clean-temp: Clarify what it does.
[gnulib.git] / ChangeLog
1 2011-04-27  Bruno Haible  <bruno@clisp.org>
2
3         clean-temp: Clarify what it does.
4         * lib/clean-temp.h: Add more comments.
5         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6         module.
7         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8         * doc/glibc-functions/mkstemps.texi: Likewise.
9         * doc/glibc-functions/mkostemps.texi: Likewise.
10
11 2011-04-27  Eric Blake  <eblake@redhat.com>
12
13         fchdir: avoid extra chdir and fix test
14         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
15         getcwd-lgpl.
16         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17         have to be canonical.
18         (canonicalize_file_name): Drop unused macro.
19         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20
21         filenamecat-lgpl: fix licence
22         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
23         when it was first created.
24
25         linkat, renameat: add missing dependency
26         * modules/linkat (Depends-on): Require getcwd-lgpl.
27         * modules/renameat (Depends-on): Likewise.
28
29         tests: reduce dependencies
30         * tests/test-linkat.c (main): Use lighter-weight getcwd.
31         * tests/test-renameat.c (main): Likewise.
32         * modules/linkat-tests (Depends-on): Relax dependency.
33         * modules/renameat-tests (Depends-on): Likewise.
34         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
35         dependency explicit.
36
37         save-cwd: reduce default dependency
38         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
39         * lib/save-cwd.c: Update comments.
40         * NEWS: Document the semantic change.
41
42         getcwd: enhance tests
43         * tests/test-getcwd-lgpl.c: New file, taken from...
44         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
45         repeat long path stress tests from m4 probe.
46         * modules/getcwd-lgpl-tests: New module.
47         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
48         * m4/getcwd-abort-bug.m4: Update comment.
49         * m4/getcwd-path-max.m4: Likewise.
50
51         getcwd-lgpl: new module
52         * modules/getcwd-lgpl: New module.
53         * lib/getcwd-lgpl.c: New file.
54         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55         * MODULES.html.sh (lacking POSIX:2008): Likewise.
56         * modules/getcwd (configure.ac): Set C witness.
57         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
58
59         getcwd: tweak comments
60         * m4/getcwd-abort-bug.m4: Fix comments.
61         * m4/getcwd-path-max.m4: Likewise.
62         * m4/getcwd.m4: Likewise.
63
64 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
65         and Eric Blake  <eblake@redhat.com>
66
67         mkstemp: replace if system version uses wrong permissions
68         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
69         read/write mode bits set in file created by mkstemp.
70         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
71
72 2011-04-27  Eric Blake  <eblake@redhat.com>
73
74         passfd: avoid compiler warning
75         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
76         Reported by Laine Stump.
77
78 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
79
80         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
81         required by the NetBSD (and perhaps other 4.4BSD derived) join.
82
83 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
84         and Eric Blake  <eblake@redhat.com>
85
86         mkstemp: mention clean-temp module
87         * lib/mkstemp.c: Add comment.
88         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
89
90 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
91
92         inttypes: also provide default values for 32-bit tests
93         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
94         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
95
96 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
97
98         strtoumax: remove dependency on strtoimax
99         This is like the strtoull change of yesterday.
100         * modules/strtoumax (Files): Add lib/strtoimax.c.
101         (Depends-on): Remove strtoimax and add verify.
102
103         inttypes-incomplete: new module
104         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
105         all but the PRI* and SCN* parts of gl_INTTYPES_H.
106         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
107         of gl_INTTYPES_H.
108         (gl_INTTYPES_H): Rewrite in terms of these new macros.
109         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
110         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
111         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
112         * modules/strtoumax, modules/xstrtol (Depends-on):
113         Depend on inttypes-incomplete, not inttypes.
114         * modules/inttypes-incomplete: New module, containing the contents
115         of the old modules/inttypes module, except that the Files: section
116         omits m4/inttypes-pri.m4, and the configure.ac section invokes
117         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
118         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
119         (Depends-on): Depend only on inttypes-incomplete.
120         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
121
122         inttypes: omit now-redundant strtoimax and strtoumax work
123         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
124         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
125
126         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
127         This supports apps that need pointers to strtoimax and strtoumax,
128         and ports to HP-UX 11.00 64.bit, which has macros that expand to
129         nonexistent functions.  See
130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
131         et seq.
132         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
133         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
134         a macro.
135         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
136
137 2011-04-25  Simon Josefsson  <simon@josefsson.org>
138
139         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
140
141 2011-04-25  Bruno Haible  <bruno@clisp.org>
142
143         strtol, strtoul: Mark modules as obsolete.
144         * modules/strtol (Status, Notice): New sections.
145         * modules/strtoul (Status, Notice): New sections.
146
147 2011-04-25  Bruno Haible  <bruno@clisp.org>
148
149         strtod: Remove check for strtod, unless supporting old platforms.
150         * modules/strtod-obsolete: New file.
151         * m4/strtod-obsolete.m4: New file.
152         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
153         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
154         * modules/strtod (Depends-on): Add strtod-obsolete.
155         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
156
157 2011-04-25  Bruno Haible  <bruno@clisp.org>
158
159         strcase: Make module obsolete.
160         * modules/strcase (Status, Notice): New sections.
161
162 2011-04-25  Bruno Haible  <bruno@clisp.org>
163
164         dup2: Remove check for dup2, unless supporting old obsolete platforms.
165         * modules/dup2-obsolete: New file.
166         * m4/dup2-obsolete.m4: New file.
167         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
168         gl_FUNC_DUP2_OBSOLETE is not also defined.
169         * modules/dup2 (Depends-on): Add dup2-obsolete.
170         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
171
172 2011-04-25  Bruno Haible  <bruno@clisp.org>
173
174         strnlen: Avoid memchr related link error on old obsolete platforms.
175         * modules/memchr-obsolete: New file.
176         * m4/memchr-obsolete.m4: New file.
177         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
178         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
179         * modules/memchr (Depends-on): Add memchr-obsolete.
180         * modules/strnlen (Depends-on): Likewise.
181         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
182
183 2011-04-25  Jim Meyering  <meyering@redhat.com>
184
185         maint.mk: makefile_at_at_check extend and clean up
186         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
187         in addition to */Makefile.am.
188         Exempt legitimate uses of @VAR@ notation, e.g.,
189         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
190         Remove obsolete coreutils-specific comment.
191         Prompted by discussion here:
192         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
193
194 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
195
196         strtoul: remove dependency on strtol
197         This is so that 'configure' need not check for strtol merely because
198         the application needs strtoul.
199         * modules/strtoul (Files): Add lib/strtol.c.
200         (Depends-on): Remove strtol.
201
202         strtoull: remove dependency on strtoul
203         This is like the strtoll change.
204         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
205         (Depends-on): Remove strtoul.
206
207         strtoll: remove dependency on strtol
208         This is so that 'configure' need not check for strtol merely because
209         the application needs strtoll.
210         * modules/strtoll (Files): Add lib/strtol.c.
211         (Depends-on): Remove strtol.
212
213 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
214
215         inttypes: Move some configure check to module 'imaxdiv'.
216         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
217         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
218         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
219
220 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
221
222         inttypes: Move some configure check to module 'imaxabs'.
223         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
224         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
225         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
226
227 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
228
229         inttypes: Remove configure tests that are not needed since 2009-12-31.
230         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
231         gl_cv_header_working_inttypes_h.
232
233 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
234
235         * modules/strnlen (Depends-on): Remove memchr.
236         The strnlen implementation doesn't need the memchr module's fixes; see
237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
238
239         strtol: remove dependency on wchar
240         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
241         * modules/strtol (Depends-on): Remove wchar.
242
243 2011-04-21  Eric Blake  <eblake@redhat.com>
244
245         passfd: fix test regression on Linux
246         * modules/passfd-tests (configure.ac): Correct socketpair check.
247
248         passfd: speed up configure and drop unused code
249         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
250         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
251         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
252         Instead of probing at configure for unix_scm_rights_bsd44_way,
253         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
254         check to a struct member probe.
255         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
256         (sendfd, recvfd): Update preprocessor checks.
257         * modules/passfd (Files): Reflect rename, and drop unused file.
258         (Depends-on): Drop unused dependency.
259
260         passfd: allow compilation on mingw
261         * modules/sys_socket (Depends-on): Add sys_uio.
262         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
263         iovec and a minimal struct msghdr.
264         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
265         * tests/test-sys_socket.c (main): Enhance test.
266         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
267         guaranteed to provide what we need.
268         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
269         * modules/passfd-tests (Depends-on): Add sys_wait.
270         * tests/test-passfd.c (main): Skip test on mingw, for now.
271         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
272         partial 'struct msghdr' implementation.
273
274         sys_uio: new module
275         * modules/sys_uio: New module.
276         * modules/sys_uio-tests: Likewise.
277         * lib/sys_uio.in.h: New file.
278         * m4/sys_uio_h.m4: Likewise.
279         * tests/test-sys_uio.c: Likewise.
280         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
281         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
282
283 2011-04-20  Jim Meyering  <meyering@redhat.com>
284
285         useless-if-before-free: avoid false-positive
286         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
287         disjunct so that it too requires a terminating ";".  Without that,
288         this script would identify as useless one statement from gcc that
289         was not:
290           if (aligned_ptr)
291             free (((void **) aligned_ptr) [-1]);
292
293 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
294
295         doc: update users.txt.
296         * users.txt: Add barcode.
297
298 2011-04-19  Bruno Haible  <bruno@clisp.org>
299
300         ioctl: Remove link dependency on native Windows.
301         * lib/fd-hook.h: Renamed from lib/close-hook.h.
302         (gl_close_fn, gl_ioctl_fn): New types.
303         (struct fd_hook): Renamed from struct close_hook. Change type of
304         private_close_fn field. Add private_ioctl_fn field.
305         (close_hook_fn): Add parameter for primary close method.
306         (execute_close_hooks, execute_all_close_hooks): Likewise.
307         (ioctl_hook_fn): New type.
308         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
309         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
310         argument.
311         (unregister_fd_hook): Renamed from unregister_close_hook.
312         * lib/fd-hook.c: Renamed from lib/close-hook.c.
313         Don't include <unistd.h>.
314         (close): Remove undef.
315         (anchor): Update.
316         (execute_close_hooks): Add argument for primary close method.
317         (execute_all_close_hooks): Likewise.
318         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
319         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
320         argument. Allow each argument to be NULL.
321         (unregister_fd_hook): Renamed from unregister_close_hook.
322         * lib/close.c (rpl_close): Pass 'close' function pointer to
323         execute_all_close_hooks.
324         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
325         (primary_ioctl): New function.
326         (ioctl): Don't call ioctlsocket here. Instead, call
327         execute_all_ioctl_hooks.
328         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
329         close method.
330         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
331         (fd_sockets_hook): Renamed from close_sockets_hook.
332         (gl_sockets_startup, gl_sockets_cleanup): Update.
333         * modules/fd-hook: Renamed from modules/close-hook. Update.
334         * modules/close (Depends-on): Add fd-hook, remove close-hook.
335         * modules/sockets (Depends-on): Likewise.
336         * modules/ioctl (Depends-on): Add fd-hook.
337         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
338         GNULIB_SOCKET.
339
340 2011-04-19  Bruno Haible  <bruno@clisp.org>
341
342         Move the support of O_NONBLOCK in open() to the 'open' module.
343         * modules/nonblocking (Depends-on): Remove 'open'.
344         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
345         gl_cv_have_open_O_NONBLOCK.
346         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
347         O_NONBLOCK support.
348         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
349
350 2011-04-17  Bruno Haible  <bruno@clisp.org>
351
352         pipe2: Simplify code.
353         * lib/pipe2.c (pipe2): Reduce code duplication.
354
355 2011-04-17  Bruno Haible  <bruno@clisp.org>
356
357         nonblocking: Add comment.
358         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
359
360 2011-04-17  Bruno Haible  <bruno@clisp.org>
361
362         nonblocking: Add tests for sockets.
363         * tests/test-nonblocking-socket.sh: New file.
364         * tests/test-nonblocking-socket-main.c: New file.
365         * tests/test-nonblocking-socket-child.c: New file.
366         * tests/test-nonblocking-socket.h: New file.
367         * tests/socket-server.h: New file.
368         * tests/socket-client.h: New file.
369         * modules/nonblocking-socket-tests: New file.
370         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
371
372 2011-04-17  Bruno Haible  <bruno@clisp.org>
373
374         nonblocking: Add tests for pipes.
375         * tests/test-nonblocking-pipe.sh: New file.
376         * tests/test-nonblocking-pipe-main.c: New file.
377         * tests/test-nonblocking-pipe-child.c: New file.
378         * tests/test-nonblocking-pipe.h: New file.
379         * tests/test-nonblocking-writer.h: New file.
380         * tests/test-nonblocking-reader.h: New file.
381         * tests/test-nonblocking-misc.h: New file.
382         * modules/nonblocking-pipe-tests: New file.
383         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
384
385 2011-04-16  Bruno Haible  <bruno@clisp.org>
386
387         gettext: Clarify the needed programmer actions.
388         * modules/gettext (Notice): New field.
389         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
390
391 2011-04-16  Bruno Haible  <bruno@clisp.org>
392
393         strchrnul: Tweak last commit.
394         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
395         bug.
396         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
397         as in _GL_FUNCDECL_SYS.
398         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
399         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
400
401 2011-04-15  Eric Blake  <eblake@redhat.com>
402
403         strchrnul: work around cygwin bug
404         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
405         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
407         * modules/string (Makefile.am): Substitute it.
408         * lib/string.in.h (strchrnul): Use it.
409
410 2011-04-15  Bruno Haible  <bruno@clisp.org>
411
412         Don't require lib/stdio-write.c when only module 'stdio' is used.
413         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
414         invocation.
415         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
416
417 2011-04-14  Bruno Haible  <bruno@clisp.org>
418
419         Support non-blocking pipe I/O in read() on native Windows.
420         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
421         (read): New declaration.
422         * lib/read.c: New file.
423         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
424         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
425         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
426         vscanf): New declarations.
427         * lib/stdio-read.c: New file.
428         * m4/read.m4: New file.
429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
430         REPLACE_READ.
431         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
432         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
433         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
434         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
435         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
436         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
437         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
438         * modules/read: New file.
439         * modules/nonblocking (Files): Add lib/stdio-read.c.
440         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
441         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
442         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
443         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
444         * modules/pread (Depends-on): Add read.
445         * modules/safe-read (Depends-on): Likewise.
446         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
447         gets, scanf, vfscanf, vscanf): Verify signatures.
448         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
449         problem with non-blocking pipes.
450         * doc/posix-functions/fgetc.texi: Likewise.
451         * doc/posix-functions/fgets.texi: Likewise.
452         * doc/posix-functions/fread.texi: Likewise.
453         * doc/posix-functions/fscanf.texi: Likewise.
454         * doc/posix-functions/getc.texi: Likewise.
455         * doc/posix-functions/getchar.texi: Likewise.
456         * doc/posix-functions/gets.texi: Likewise.
457         * doc/posix-functions/scanf.texi: Likewise.
458         * doc/posix-functions/vfscanf.texi: Likewise.
459         * doc/posix-functions/vscanf.texi: Likewise.
460
461 2011-04-14  Bruno Haible  <bruno@clisp.org>
462
463         Support non-blocking pipe I/O in write() on native Windows.
464         * lib/write.c (rpl_write): Split a write request that failed merely
465         because the byte count was larger than the pipe buffer's size.
466         * doc/posix-functions/write.texi: Mention the problem with large byte
467         counts.
468
469 2011-04-14  Bruno Haible  <bruno@clisp.org>
470
471         wchar: Ensure that wchar_t gets defined on uClibc.
472         * lib/wchar.in.h: On uClibc, include <stddef.h>.
473         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
474
475 2011-04-13  Bruno Haible  <bruno@clisp.org>
476
477         safe-write, full-read: Avoid unnecessary compilation units.
478         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
479         (Depends-on): Remove safe-read. Add ssize_t.
480         * modules/full-read (Files): Add lib/full-write.c.
481         (Depends-on): Add full-write.
482
483 2011-04-13  Bruno Haible  <bruno@clisp.org>
484
485         Support non-blocking pipe I/O and SIGPIPE in pwrite().
486         * modules/pwrite (Depends-on): Add 'write'.
487
488 2011-04-13  Bruno Haible  <bruno@clisp.org>
489
490         Support non-blocking pipe I/O in write() on native Windows.
491         * lib/unistd.in.h (write): Enable replacement also if
492         GNULIB_UNISTD_H_NONBLOCKING is 1.
493         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
494         (rpl_write): When failing to write on a non-blocking pipe, change
495         errno from ENOSPC to EAGAIN.
496         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
497         putchar, puts, vfprintf, vprintf): Enable replacement also if
498         GNULIB_STDIO_H_NONBLOCKING is 1.
499         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
500         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
501         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
502         CALL_WITH_SIGPIPE_EMULATION.
503         (CALL_WITH_SIGPIPE_EMULATION): Use them.
504         * m4/nonblocking.m4: New file.
505         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
506         for non-blocking I/O support.
507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
508         GNULIB_UNISTD_H_NONBLOCKING.
509         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
510         required for non-blocking I/O support.
511         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
512         * modules/nonblocking (Files): Add m4/nonblocking.m4,
513         lib/stdio-write.c, m4/asm-underscore.m4.
514         (Depends-on): Add stdio, unistd.
515         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
516         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
517         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
518         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
519         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
520         problem with non-blocking pipes.
521         * doc/posix-functions/fputc.texi: Likewise.
522         * doc/posix-functions/fputs.texi: Likewise.
523         * doc/posix-functions/fwrite.texi: Likewise.
524         * doc/posix-functions/printf.texi: Likewise.
525         * doc/posix-functions/putc.texi: Likewise.
526         * doc/posix-functions/putchar.texi: Likewise.
527         * doc/posix-functions/puts.texi: Likewise.
528         * doc/posix-functions/vfprintf.texi: Likewise.
529         * doc/posix-functions/vprintf.texi: Likewise.
530         * doc/posix-functions/write.texi: Likewise.
531
532 2011-04-10  Jim Meyering  <meyering@redhat.com>
533
534         maint.mk: prohibit doubled words
535         Detect them also when they're separated by a newline.
536         There are 3 ways to customize it:
537           - disable the test on a per file basis, as usual with rules using
538             $(VC_LIST_EXCEPT)
539           - replace the default doubled-word-selecting regexp (affects all files)
540           - ignore a particular file-vs-doubled-word match
541         I nearly used that last one to ignore the "is is" match in
542         coreutils' NEWS file, since the text was "ls -is is ..."
543         To do that, I would have added this line to cfg.mk:
544           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
545         but it would have ignored any "is is" match in NEWS.
546         Low probability, but still...
547         Instead, I changed the text, slightly:
548           -  ls -is is now consistent with ls -lis in ignoring values returned
549           +  "ls -is" is now consistent with ls -lis in ignoring values returned
550         * top/maint.mk (prohibit_double_word_RE_): Provide default.
551         (prohibit_doubled_word_): Define.
552         (sc_prohibit_doubled_word): New rule.
553         (sc_prohibit_the_the): Remove.  Subsumed by the above.
554
555 2011-04-10  Jim Meyering  <meyering@redhat.com>
556
557         maint: fix doubled-word typo in comment
558         * m4/gethostname.m4: s/is is/it is/
559         * m4/getdomainname.m4: Likewise.
560
561 2011-04-10  Jim Meyering  <meyering@redhat.com>
562
563         maint: remove doubled word: s/it it/it/
564         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
565
566 2011-04-10  Jim Meyering  <meyering@redhat.com>
567
568         maint.mk: remove useless semicolon and backslash
569         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
570         semicolon and backslash.
571
572 2011-04-10  Bruno Haible  <bruno@clisp.org>
573
574         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
575         * modules/stdint-tests (Depends-on): Add wchar.
576
577 2011-04-10  Jim Meyering  <meyering@redhat.com>
578
579         maint: remove doubled words in comments, e.g., s/a a/a/
580         * lib/strptime.c (day_of_the_week): s/the the/the/
581         * tests/test-chown.h (test_chown): s/a a/a/
582
583         test-chown.h: correct a cast
584         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
585         when the destination is a stat.st_gid.
586
587 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
588
589         getaddrinfo: Fix test for sa_len member.
590         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
591         include <sys/types.h> before <sys/socket.h>.
592
593 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
594
595         maint: change "can not" to "cannot"
596         * doc/posix-functions/iconv.texi (iconv): This one crossed line
597         boundaries.
598
599 2011-04-09  Jim Meyering  <meyering@redhat.com>
600
601         maint: change "a a" to "a"
602         * tests/test-lchown.h (test_lchown): s/a a/a/
603
604         maint.mk: prohibit \<the the\>
605         * top/maint.mk (sc_prohibit_the_the): New rule.
606
607         maint: fix "the the" in comment
608         * lib/count-one-bits.h: s/the the/the/
609
610         maint: change "can not" to "cannot"
611         But do not change the occurrences in maintain.texi or in
612         build-aux/po/Makefile.in.in, which I presume comes from gettext.
613         * doc/gnulib-tool.texi: s/can not/cannot/
614         * doc/posix-functions/accept.texi (accept): Likewise.
615         * doc/posix-functions/socket.texi (socket): Likewise.
616         * lib/mbrtowc.c: Likewise.
617
618         maint.mk: prohibit use of "can not"
619         * top/maint.mk (sc_prohibit_can_not): New rule.
620         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
621
622 2011-04-09  Bruno Haible  <bruno@clisp.org>
623
624         careadlinkat: Guard against misuse of careadlinkatcwd.
625         * lib/careadlinkat.c: Include <stdlib.h>.
626         (careadlinkatcwd): Check that the fd argument is as expected.
627
628 2011-04-09  Bruno Haible  <bruno@clisp.org>
629
630         careadlinkat: Use common coding style.
631         * lib/careadlinkat.c: Move gnulib includes after system includes.
632
633 2011-04-09  Bruno Haible  <bruno@clisp.org>
634
635         careadlinkat: Clarify specification.
636         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
637         (careadlinkatcwd): Add comment.
638         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
639
640 2011-04-09  Bruno Haible  <bruno@clisp.org>
641
642         areadlinkat: Avoid link error on many platforms.
643         * modules/areadlinkat (Depends-on): Add areadlink.
644
645 2011-04-09  Bruno Haible  <bruno@clisp.org>
646
647         allocator, careadlinkat: Fix double-inclusion guard.
648         * lib/allocator.h: Fix double-inclusion guard.
649         * lib/careadlinkat.h: Likewise.
650
651 2011-04-09  Bruno Haible  <bruno@clisp.org>
652
653         relocatable-prog-wrapper: Update after module 'areadlink' changed.
654         * lib/relocwrapper.c: Update dependencies hierarchy.
655         * build-aux/install-reloc: Update list of files to be compiled.
656         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
657         lib/allocator.[hc].
658
659 2011-04-08  Eric Blake  <eblake@redhat.com>
660
661         strftime: silence gnulib-tool warning
662         * modules/strftime-tests (Depends-on): Drop automatic dependency.
663
664 2011-04-08  Bruno Haible  <bruno@clisp.org>
665
666         verify: Fix syntax error with GCC 4.6 in C++ mode.
667         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
668         (HAVE_STATIC_ASSERT): New macro.
669         (verify_true, verify): Use 'static_assert' if it is supported and
670         '_Static_assert' is not supported.
671
672 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
673
674         allocator: New module.
675         * modules/allocator, lib/allocator.c: New files.
676         * lib/allocator.h (stdlib_allocator): New decl.
677         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
678         Remove.  Do not include <stdlib.h>.
679         (careadlinkat): Use stdlib_allocator instead of rolling our own.
680         * modules/careadlinkat (Files): Remove lib/allocator.h.
681         (Depends-on): Add allocator.
682
683         stdlib: let modules use system malloc, realloc
684         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
685         if !_GL_USE_STDLIB_ALLOC.
686         (malloc, realloc): Limit this change to a smaller scope.
687
688         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
689         (malloc, realloc): Don't #undef; no longer needed.
690         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
691         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
692         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
693         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
694         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
695         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
696         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
697         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
698
699         careadlinkat: rename members to avoid problem
700         * lib/allocator.h (struct allocator): Rename members from
701         malloc/realloc to allocate/reallocate, to avoid problems if malloc
702         and realloc are #define'd.  Reported by Eric Blake in
703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
704         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
705
706 2011-04-08  Eric Blake  <eblake@redhat.com>
707
708         nonblocking: reduce dependency
709         * tests/test-nonblocking.c: Only test sockets when in use.
710         * modules/nonblocking-tests (Depends-on): Drop socket.
711         (Makefile.am): Link even if sockets are not present.
712         * modules/pipe2-tests (Makefile.am): Likewise.
713         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
714
715         pipe2: fix O_NONBLOCK support on mingw
716         * modules/pipe2 (Depends-on): Add nonblocking.
717         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
718         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
719         * tests/test-nonblocking.c (main): Likewise.
720         * modules/pipe2-tests (Makefile.am): Avoid link failure.
721
722         fcntl-h: fix O_ACCMODE on cygwin
723         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
724         * lib/fcntl.in.h (O_ACCMODE): Fix it.
725
726         pipe-filter: drop O_NONBLOCK workarounds
727         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
728         * modules/pipe-filter-ii (Depends-on): Likewise.
729         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
730
731         nonblocking: provide O_NONBLOCK for mingw
732         * modules/nonblocking (Depends-on): Add open.
733         (configure.ac): Set new witness macro.
734         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
735         * modules/fcntl-h (Makefile.am): Substitute it.
736         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
737         nonblocking module is in use.
738         * lib/nonblocking.c: Adjust portability test.
739         * lib/open.c (open): Don't let native open see gnulib flag.
740         * tests/test-fcntl-h.c (main): Enhance test.
741         * tests/test-open.h (test_open): Likewise.
742         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
743
744         careadlinkat: fix compilation error on mingw
745         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
746         within struct allocator.
747
748 2011-04-06  Eric Blake  <eblake@redhat.com>
749
750         binary-io: relicense under LGPLv2+
751         * modules/binary-io (License): Relax to LGPLv2+.
752         Requested for libvirt, and required by pipe2.
753
754 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
755
756         verify: use _Static_assert if available
757         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
758         (verify_true, verify): Use it if available.  This generates better
759         diagnostics with GCC 4.6.0 and later.
760
761 2011-04-05  Bruno Haible  <bruno@clisp.org>
762
763         Remove leftover generated .h files after config.status changed.
764
765         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
766         GL_GENERATE_ALLOCA_H.
767         * modules/alloca-opt (Makefile.am): Remove alloca.h if
768         GL_GENERATE_ALLOCA_H evaluates to false.
769
770         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
771         GL_GENERATE_ARGZ_H.
772         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
773         evaluates to false.
774
775         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
776         GL_GENERATE_BYTESWAP_H.
777         * modules/byteswap (Makefile.am): Remove byteswap.h if
778         GL_GENERATE_BYTESWAP_H evaluates to false.
779
780         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
781         GL_GENERATE_ERRNO_H.
782         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
783         evaluates to false.
784
785         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
786         GL_GENERATE_FLOAT_H.
787         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
788         evaluates to false.
789
790         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
791         GL_GENERATE_FNMATCH_H.
792         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
793         GL_GENERATE_FNMATCH_H evaluates to false.
794
795         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
796         GL_GENERATE_GLOB_H.
797         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
798         evaluates to false.
799
800         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
801         automake conditional GL_GENERATE_ICONV_H.
802         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
803         evaluates to false.
804
805         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
806         GL_GENERATE_NETINET_IN_H.
807         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
808         GL_GENERATE_NETINET_IN_H evaluates to false.
809
810         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
811         conditional GL_GENERATE_PTHREAD_H.
812         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
813         * modules/pthread (Makefile.am): Remove pthread.h if
814         GL_GENERATE_PTHREAD_H evaluates to false.
815
816         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
817         GL_GENERATE_SCHED_H.
818         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
819         evaluates to false.
820
821         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
822         conditional GL_GENERATE_SELINUX_CONTEXT_H.
823         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
824         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
825
826         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
827         GL_GENERATE_STDARG_H.
828         * modules/stdarg (Makefile.am): Remove stdarg.h if
829         GL_GENERATE_STDARG_H evaluates to false.
830
831         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
832         GL_GENERATE_STDBOOL_H.
833         * modules/stdbool (Makefile.am): Remove stdbool.h if
834         GL_GENERATE_STDBOOL_H evaluates to false.
835
836         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
837         conditional GL_GENERATE_STDDEF_H.
838         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
839         * modules/stddef (Makefile.am): Remove stddef.h if
840         GL_GENERATE_STDDEF_H evaluates to false.
841
842         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
843         GL_GENERATE_STDINT_H.
844         * modules/stdint (Makefile.am): Remove stdint.h if
845         GL_GENERATE_STDINT_H evaluates to false.
846
847         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
848         GL_GENERATE_SYSEXITS_H.
849         * modules/sysexits (Makefile.am): Remove sysexits.h if
850         GL_GENERATE_SYSEXITS_H evaluates to false.
851
852         Reported by Karl Berry and Ralf Wildenhues.
853
854 2011-04-05  Bruno Haible  <bruno@clisp.org>
855
856         Ensure to rebuild generated .h files when config.status has changed.
857         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
858         config.status.
859         * modules/ctype (Makefile.am): Likewise.
860         * modules/dirent (Makefile.am): Likewise.
861         * modules/errno (Makefile.am): Likewise.
862         * modules/fcntl-h (Makefile.am): Likewise.
863         * modules/float (Makefile.am): Likewise.
864         * modules/getopt-posix (Makefile.am): Likewise.
865         * modules/glob (Makefile.am): Likewise.
866         * modules/iconv-h (Makefile.am): Likewise.
867         * modules/inttypes (Makefile.am): Likewise.
868         * modules/langinfo (Makefile.am): Likewise.
869         * modules/locale (Makefile.am): Likewise.
870         * modules/math (Makefile.am): Likewise.
871         * modules/netdb (Makefile.am): Likewise.
872         * modules/netinet_in (Makefile.am): Likewise.
873         * modules/poll-h (Makefile.am): Likewise.
874         * modules/pthread (Makefile.am): Likewise.
875         * modules/pty (Makefile.am): Likewise.
876         * modules/sched (Makefile.am): Likewise.
877         * modules/search (Makefile.am): Likewise.
878         * modules/selinux-h (Makefile.am): Likewise.
879         * modules/signal (Makefile.am): Likewise.
880         * modules/spawn (Makefile.am): Likewise.
881         * modules/stdarg (Makefile.am): Likewise.
882         * modules/stdbool (Makefile.am): Likewise.
883         * modules/stddef (Makefile.am): Likewise.
884         * modules/stdint (Makefile.am): Likewise.
885         * modules/stdio (Makefile.am): Likewise.
886         * modules/stdlib (Makefile.am): Likewise.
887         * modules/string (Makefile.am): Likewise.
888         * modules/strings (Makefile.am): Likewise.
889         * modules/sys_file (Makefile.am): Likewise.
890         * modules/sys_ioctl (Makefile.am): Likewise.
891         * modules/sys_select (Makefile.am): Likewise.
892         * modules/sys_socket (Makefile.am): Likewise.
893         * modules/sys_stat (Makefile.am): Likewise.
894         * modules/sys_time (Makefile.am): Likewise.
895         * modules/sys_times (Makefile.am): Likewise.
896         * modules/sys_utsname (Makefile.am): Likewise.
897         * modules/sys_wait (Makefile.am): Likewise.
898         * modules/sysexits (Makefile.am): Likewise.
899         * modules/termios (Makefile.am): Likewise.
900         * modules/time (Makefile.am): Likewise.
901         * modules/unistd (Makefile.am): Likewise.
902         * modules/wchar (Makefile.am): Likewise.
903         * modules/wctype-h (Makefile.am): Likewise.
904         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
905
906 2011-04-05  Bruno Haible  <bruno@clisp.org>
907
908         pipe2: Relicense under LGPLv2+.
909         * modules/pipe2 (License): Change to LGPLv2+.
910         Requested by Eric Blake, for libvirt.
911
912 2011-04-05  Bruce Korb  <bkorb@gnu.org>
913
914         bootstrap: compute gnulib_extra_files after updating build_aux
915         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
916         change build_aux or also supply gnulib_extra_files.  Handle correctly.
917
918 2011-04-05  Eric Blake  <eblake@redhat.com>
919
920         bootstrap: preserve git whitelist item sorting
921         * build-aux/bootstrap (sort_patterns): New function.
922         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
923
924 2011-04-05  Simon Josefsson  <simon@josefsson.org>
925
926         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
927         sc_space_tab check.
928
929 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
930
931         areadlink, areadlinkat: rewrite in terms of careadlinkat
932         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
933         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
934         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
935         (malloc, realloc): Remove #undefs.
936         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
937         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
938         readlink, ssize_t, stdint, unistd.
939         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
940         areadlink, stdint.
941
942         careadlinkat: new module
943         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
944         * modules/careadlinkat: New files, written by me with
945         a review and feedback from Ben Pfaff in
946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
947
948 2011-04-01  Bruno Haible  <bruno@clisp.org>
949
950         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
951         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
952         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
953         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
954         Reported by Bruce Korb <bruce.korb@gmail.com>.
955
956 2011-04-01  Bruno Haible  <bruno@clisp.org>
957
958         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
959         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
960         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
961         * modules/wcpcpy (Depends-on): Add extensions.
962         * modules/wcpncpy (Depends-on): Likewise.
963         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
964         systems.
965         * doc/posix-functions/wcpncpy.texi: Likewise.
966         * doc/posix-functions/wcwidth.texi: Likewise.
967
968 2011-03-31  Eric Blake  <eblake@redhat.com>
969
970         nonblocking: fix mingw test failures
971         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
972         non-blocking flag on regular file.
973         (get_nonblocking_flag): Set errno on invalid fd.
974         * tests/test-nonblocking.c (main): Avoid test failure on
975         directories if fchdir is not active.
976         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
977
978 2011-03-31  Bruno Haible  <bruno@clisp.org>
979
980         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
981         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
982         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
983         Reported by Simon Josefsson <simon@josefsson.org>.
984
985 2011-03-31  Bruno Haible  <bruno@clisp.org>
986         and Eric Blake  <eblake@redhat.com>
987
988         nonblocking: new module
989         * modules/nonblocking: New module.
990         * modules/nonblocking-tests: Likewise.
991         * lib/nonblocking.h: New file.
992         * lib/nonblocking.c: Likewise.
993         * tests/test-nonblocking.c: New test.
994         * lib/ioctl.c (ioctl) [mingw]: Update comment.
995
996 2011-03-30  Bruno Haible  <bruno@clisp.org>
997
998         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
999         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1000         instead of 'printf' format for GCC >= 4.4.
1001         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1002         (fprintf, printf, vfprintf, vprintf): Declare with
1003         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1004         the system's vfprintf() function.
1005         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1006
1007 2011-03-30  Eric Blake  <eblake@redhat.com>
1008
1009         passfd: fix scoping bug
1010         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1011         before sendmsg/recvmsg.
1012
1013         passfd: standardize coding conventions
1014         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1015         can be learned at compile time.
1016         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1017         ifdefs.
1018         (sendfd, recvfd): Follow gnulib code conventions.
1019
1020         passfd: fix incorrect sendmsg arguments
1021         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1022         incorrect msg_controllen value.
1023         * modules/passfd-tests (Depends-on): Check for alarm.
1024         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1025         Reported by Bastien ROUCARIES.
1026
1027 2011-03-30  Bruno Haible  <bruno@clisp.org>
1028
1029         c-strcasestr: Relicense under LGPLv2+.
1030         * modules/c-strcasestr (License): Change to LGPLv2+.
1031         Requested by Eric Blake, for libvirt.
1032
1033 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1034
1035         * users.txt: Add libidn2.  Fix libtasn1 link.
1036
1037 2011-03-30  Jim Meyering  <meyering@redhat.com>
1038
1039         tests: readlink* ("",... fails with EINVAL on newer kernels
1040         readlink and readlinkat have typically failed with ENOENT for
1041         the invalid, empty file name,  "".  However, with the advent
1042         of linux-2.6.39, they fail with EINVAL.
1043         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1044         when operating on the empty file name.
1045         * tests/test-readlink.h (test_readlink): Likewise.
1046
1047 2011-03-29  Bruno Haible  <bruno@clisp.org>
1048
1049         Relicense some modules under LGPLv2+, for libidn2.
1050         * modules/array-mergesort (License): Change to LGPLv2+.
1051         * modules/c-strcaseeq (License): Likewise.
1052         * modules/striconveh (License): Likewise.
1053         * modules/striconveha (License): Likewise.
1054         * modules/uniconv/base (License): Likewise.
1055         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1056         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1057         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1058         * modules/unictype/base (License): Likewise.
1059         * modules/unictype/bidiclass-of (License): Likewise.
1060         * modules/unictype/category-M (License): Likewise.
1061         * modules/unictype/category-none (License): Likewise.
1062         * modules/unictype/category-of (License): Likewise.
1063         * modules/unictype/category-test (License): Likewise.
1064         * modules/unictype/category-test-withtable (License): Likewise.
1065         * modules/unictype/combining-class (License): Likewise.
1066         * modules/unictype/joiningtype-of (License): Likewise.
1067         * modules/unictype/scripts (License): Likewise.
1068         * modules/uninorm/base (License): Likewise.
1069         * modules/uninorm/canonical-decomposition (License): Likewise.
1070         * modules/uninorm/composition (License): Likewise.
1071         * modules/uninorm/decompose-internal (License): Likewise.
1072         * modules/uninorm/decomposition-table (License): Likewise.
1073         * modules/uninorm/nfc (License): Likewise.
1074         * modules/uninorm/nfd (License): Likewise.
1075         * modules/uninorm/u32-normalize (License): Likewise.
1076         * modules/unistr/base (License): Likewise.
1077         * modules/unistr/u32-cpy (License): Likewise.
1078         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1079         * modules/unistr/u32-to-u8 (License): Likewise.
1080         * modules/unistr/u32-uctomb (License): Likewise.
1081         * modules/unistr/u8-check (License): Likewise.
1082         * modules/unistr/u8-mblen (License): Likewise.
1083         * modules/unistr/u8-mbtouc (License): Likewise.
1084         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1085         * modules/unistr/u8-mbtoucr (License): Likewise.
1086         * modules/unistr/u8-prev (License): Likewise.
1087         * modules/unistr/u8-strlen (License): Likewise.
1088         * modules/unistr/u8-to-u32 (License): Likewise.
1089         * modules/unistr/u8-uctomb (License): Likewise.
1090         * modules/unitypes (License): Likewise.
1091         Requested by Simon Josefsson.
1092
1093 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1094
1095         lib-symbol-visibility: Add a notice.
1096         * modules/lib-symbol-visibility (Notice): New field.
1097
1098 2011-03-29  Bruno Haible  <bruno@clisp.org>
1099
1100         getaddrinfo: Doc fix.
1101         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1102         section "fixed in Gnulib".
1103
1104 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1105
1106         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1107         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1108
1109 2011-03-26  Bruno Haible  <bruno@clisp.org>
1110
1111         unictype/property-byname: Reduce the number of load-time relocations.
1112         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1113         (UC_PROPERTY_INDEX_*): New enumeration values.
1114         (uc_property_byname): Convert an index from the lookup table to an
1115         uc_property_t.
1116         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1117         values.
1118
1119 2011-03-26  Bruno Haible  <bruno@clisp.org>
1120
1121         unictype/property-byname: Allow omitted word separators and aliases.
1122         * lib/unictype/pr_byname.gperf: Add property names without word
1123         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1124         for 'space'.
1125
1126 2011-03-26  Bruno Haible  <bruno@clisp.org>
1127
1128         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1129         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1130         also hyphens to space.
1131         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1132         without spaces.
1133         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1134
1135 2011-03-26  Bruno Haible  <bruno@clisp.org>
1136
1137         unictype/joiningtype-byname: Recognize long names as well.
1138         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1139         a long name.
1140         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1141         unictype/joiningtype_byname.h.
1142         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1143         * lib/unictype/joiningtype_byname.gperf: New file.
1144         * modules/unictype/joiningtype-byname (Files): Add
1145         lib/unictype/joiningtype_byname.gperf.
1146         (Depends-on): Add gperf.
1147         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1148         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1149         long names.
1150
1151         Tests for module 'unictype/joiningtype-longname'.
1152         * modules/unictype/joiningtype-longname-tests: New file.
1153         * tests/unictype/test-joiningtype_longname.c: New file.
1154
1155         New module 'unictype/joiningtype-longname'.
1156         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1157         * lib/unictype/joiningtype_longname.c: New file.
1158         * modules/unictype/joiningtype-longname: New file.
1159         * modules/unictype/joiningtype-all (Depends-on): Add
1160         unictype/joiningtype-longname.
1161
1162 2011-03-26  Bruno Haible  <bruno@clisp.org>
1163
1164         unictype/bidiclass-byname: Recognize long names as well.
1165         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1166         name.
1167         * lib/unictype/bidi_byname.c: Include <string.h>,
1168         unictype/bidi_byname.h.
1169         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1170         * lib/unictype/bidi_byname.gperf: New file.
1171         * modules/unictype/bidiclass-byname (Files): Add
1172         lib/unictype/bidi_byname.gperf.
1173         (Depends-on): Add gperf.
1174         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1175         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1176         long names.
1177
1178         Tests for module 'unictype/bidiclass-longname'.
1179         * modules/unictype/bidiclass-longname-tests: New file.
1180         * tests/unictype/test-bidi_longname.c: New file.
1181
1182         New module 'unictype/bidiclass-longname'.
1183         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1184         * lib/unictype/bidi_longname.c: New file.
1185         * modules/unictype/bidiclass-longname: New file.
1186         * modules/unictype/bidiclass-all (Depends-on): Add
1187         unictype/bidiclass-longname.
1188
1189 2011-03-26  Bruno Haible  <bruno@clisp.org>
1190
1191         unictype/bidi*: Rename modules.
1192         * modules/unictype/bidiclass-all: Renamed from
1193         modules/unictype/bidicategory-all.
1194         * modules/unictype/bidiclass-name: Renamed from
1195         modules/unictype/bidiclass-name.
1196         (Description): Update.
1197         * modules/unictype/bidiclass-name-tests: Renamed from
1198         modules/unictype/bidicategory-name-tests.
1199         * modules/unictype/bidiclass-byname: Renamed from
1200         modules/unictype/bidicategory-byname.
1201         (Description): Update.
1202         * modules/unictype/bidiclass-byname-tests: Renamed from
1203         modules/unictype/bidicategory-byname-tests.
1204         * modules/unictype/bidiclass-of: Renamed from
1205         modules/unictype/bidicategory-of.
1206         (Description): Update.
1207         * modules/unictype/bidiclass-of-tests: Renamed from
1208         modules/unictype/bidicategory-of-tests.
1209         * modules/unictype/bidiclass-test: Renamed from
1210         modules/unictype/bidicategory-test.
1211         (Description): Update.
1212         * modules/unictype/bidiclass-test-tests: Renamed from
1213         modules/unictype/bidicategory-test-tests.
1214         * modules/unictype/bidicategory-all: New file, a simple redirection.
1215         * modules/unictype/bidicategory-name: Likewise.
1216         * modules/unictype/bidicategory-byname: Likewise.
1217         * modules/unictype/bidicategory-of: Likewise.
1218         * modules/unictype/bidicategory-test: Likewise.
1219         * modules/unictype/property-bidi-* (Dependencies): Update.
1220         * lib/unictype/bidi_*.c: Update comment.
1221
1222 2011-03-26  Bruno Haible  <bruno@clisp.org>
1223
1224         unictype/bidi*: Rename functions, part 2.
1225         * modules/unictype/bidicategory-name (configure.ac): Update required
1226         libunistring version.
1227         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1228
1229 2011-03-25  Bruno Haible  <bruno@clisp.org>
1230
1231         New module 'unictype/combining-class-all'.
1232         * modules/unictype/combining-class-all: New file.
1233
1234         Tests for module 'unictype/combining-class-byname'.
1235         * modules/unictype/combining-class-byname-tests: New file.
1236         * tests/unictype/test-combiningclass_byname.c: New file.
1237
1238         New module 'unictype/combining-class-byname'.
1239         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1240         * lib/unictype/combiningclass_byname.c: New file.
1241         * lib/unictype/combiningclass_byname.gperf: New file.
1242         * modules/unictype/combining-class-byname: New file.
1243
1244         Tests for module 'unictype/combining-class-longname'.
1245         * modules/unictype/combining-class-longname-tests: New file.
1246         * tests/unictype/test-combiningclass_longname.c: New file.
1247
1248         New module 'unictype/combining-class-longname'.
1249         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1250         * lib/unictype/combiningclass_longname.c: New file.
1251         * modules/unictype/combining-class-longname: New file.
1252
1253         Tests for module 'unictype/combining-class-name'.
1254         * modules/unictype/combining-class-name-tests: New file.
1255         * tests/unictype/test-combiningclass_name.c: New file.
1256
1257         New module 'unictype/combining-class-name'.
1258         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1259         * lib/unictype/combiningclass_name.c: New file.
1260         * modules/unictype/combining-class-name: New file.
1261
1262 2011-03-25  Bruno Haible  <bruno@clisp.org>
1263
1264         unictype/combining-class: Rename source files.
1265         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1266         of unictype/combining.h.
1267         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1268         Update.
1269         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1270         * modules/unictype/combining-class (Description): Fix.
1271         (Files, Makefile.am): Update.
1272         * tests/unictype/test-combiningclass.c: Renamed from
1273         tests/unictype/test-combining.c.
1274         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1275
1276 2011-03-25  Bruno Haible  <bruno@clisp.org>
1277
1278         unictype: Update list of canonical combining classes.
1279         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1280
1281 2011-03-25  Bruno Haible  <bruno@clisp.org>
1282
1283         unictype/category-byname: Recognize long names as well.
1284         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1285         a long name.
1286         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1287         unictype/categ_byname.h.
1288         (UC_CATEGORY_INDEX_*): New enumeration values.
1289         (uc_general_category_byname): Use uc_general_category_lookup and
1290         convert from index to value.
1291         * lib/unictype/categ_byname.gperf: New file.
1292         * modules/unictype/category-byname (Files): Add
1293         lib/unictype/categ_byname.gperf.
1294         (Depends-on): Add gperf.
1295         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1296         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1297         long names.
1298
1299         Tests for module 'unictype/category-longname'.
1300         * modules/unictype/category-longname-tests: New file.
1301         * tests/unictype/test-categ_longname.c: New file.
1302
1303         New module 'unictype/category-longname'.
1304         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1305         * lib/unictype/categ_longname.c: New file.
1306         * modules/unictype/category-longname: New file.
1307         * modules/unictype/category-all (Depends-on): Add it.
1308
1309 2011-03-25  Bruno Haible  <bruno@clisp.org>
1310
1311         Tests for module 'unictype/category-LC'.
1312         * modules/unictype/category-LC-tests: New file.
1313         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1314
1315         New module 'unictype/category-LC'.
1316         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1317         (UC_CATEGORY_LC): New declaration.
1318         (UC_CASED_LETTER): New macro.
1319         * lib/gen-uni-tables.c (is_category_LC): New function.
1320         (output_categories): Also handle category LC.
1321         (UC_CATEGORY_MASK_LC): New enumeration value.
1322         (general_category_byname): Also handle category LC.
1323         * lib/unictype/categ_LC.c: New file.
1324         * lib/unictype/categ_LC.h: New file, automatically generated.
1325         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1326         category LC.
1327         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1328         * modules/unictype/category-LC: New file.
1329         * modules/unictype/category-byname (Depends-on): Add
1330         unictype/category-LC.
1331         * modules/unictype/category-all (Depends-on): Likewise.
1332
1333 2011-03-25  Eric Blake  <eblake@redhat.com>
1334
1335         xmalloc: revert yesterday's regression
1336         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1337         realloc's underlying behavior (allowing allocation of zero-size
1338         objects, especially if malloc-gnu is also in use).
1339
1340 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1341
1342         maint.mk: add missing version to VC-tag
1343         * top/maint.mk: git tag was missing actual tag name; add it.
1344
1345         valgrind: do leak checking, and exit with code 1 on error (not 0)
1346         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1347         to VALGRIND.
1348
1349 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1350
1351         posix-modules: say what it does.
1352         * posix-modules: Add a line to the --help output saying what it does.
1353
1354 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1355
1356         xmalloc: Do not leak if underlying realloc is C99 compatible.
1357         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1358         This avoids a leak on C99-based systems.  See
1359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1360
1361 2011-03-24  Eric Blake  <eblake@redhat.com>
1362
1363         realloc: document portability problem
1364         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1365         passing 0 size to realloc.
1366
1367 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1368
1369         doc: update users.txt
1370         * users.txt: Add cvsps, tmpwatch
1371
1372 2011-03-23  Matt Rice  <ratmice@gmail.com>
1373
1374         doc: update users.txt
1375         * users.txt: Add gdb.
1376
1377 2011-03-23  Jim Meyering  <meyering@redhat.com>
1378
1379         doc: update users.txt
1380         Looking through matches up to the following URL (there are still
1381         several more pages), I found several projects that use gnulib:
1382         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1383         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1384         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1385
1386 2011-03-22  Bruno Haible  <bruno@clisp.org>
1387
1388         unictype/bidi*: Rename functions.
1389         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1390         uc_bidi_class, uc_is_bidi_class): New declarations.
1391         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1392         uc_bidi_category_byname.
1393         (uc_bidi_category_byname): New function.
1394         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1395         u_bidi_category_name.
1396         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1397         (uc_bidi_category_name): New function.
1398         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1399         uc_bidi_category.
1400         (uc_bidi_category): New function.
1401         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1402         uc_is_bidi_category. Invoke uc_bidi_class.
1403         (uc_is_bidi_category): New function.
1404         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1405         instead of uc_bidi_category_byname.
1406         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1407         instead of uc_bidi_category_name.
1408         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1409         uc_bidi_category.
1410         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1411         instead of uc_is_bidi_category.
1412
1413 2011-03-21  Bruno Haible  <bruno@clisp.org>
1414
1415         New module 'unictype/joininggroup-all'.
1416         * modules/unictype/joininggroup-all: New file.
1417
1418         Tests for module 'unictype/joininggroup-of'.
1419         * modules/unictype/joininggroup-of-tests: New file.
1420         * tests/unictype/test-joininggroup_of.c: New file.
1421         * tests/unictype/test-joininggroup_of.h: New file, automatically
1422         generated by gen-uni-tables.
1423
1424         New module 'unictype/joininggroup-of'.
1425         * modules/unictype/joininggroup-of: New file.
1426         * lib/unictype/joininggroup_of.c: New file.
1427         * lib/unictype/joininggroup_of.h: New file, automatically generated by
1428         gen-uni-tables.
1429
1430         Tests for module 'unictype/joininggroup-byname'.
1431         * modules/unictype/joininggroup-byname-tests: New file.
1432         * tests/unictype/test-joininggroup_byname.c: New file.
1433
1434         New module 'unictype/joininggroup-byname'.
1435         * modules/unictype/joininggroup-byname: New file.
1436         * lib/unictype/joininggroup_byname.c: New file.
1437         * lib/unictype/joininggroup_byname.gperf: New file.
1438
1439         Tests for module 'unictype/joininggroup-name'.
1440         * modules/unictype/joininggroup-name-tests: New file.
1441         * tests/unictype/test-joininggroup_name.c: New file.
1442
1443         New module 'unictype/joininggroup-name'.
1444         * modules/unictype/joininggroup-name: New file.
1445         * lib/unictype/joininggroup_name.c: New file.
1446         * lib/unictype/joininggroup_name.h: New file.
1447
1448         New module 'unictype/joiningtype-all'.
1449         * modules/unictype/joiningtype-all: New file.
1450
1451         Tests for module 'unictype/joiningtype-of'.
1452         * modules/unictype/joiningtype-of-tests: New file.
1453         * tests/unictype/test-joiningtype_of.c: New file.
1454         * tests/unictype/test-joiningtype_of.h: New file, automatically
1455         generated by gen-uni-tables.
1456
1457         New module 'unictype/joiningtype-of'.
1458         * modules/unictype/joiningtype-of: New file.
1459         * lib/unictype/joiningtype_of.c: New file.
1460         * lib/unictype/joiningtype_of.h: New file, automatically generated by
1461         gen-uni-tables.
1462
1463         Tests for module 'unictype/joiningtype-byname'.
1464         * modules/unictype/joiningtype-byname-tests: New file.
1465         * tests/unictype/test-joiningtype_byname.c: New file.
1466
1467         New module 'unictype/joiningtype-byname'.
1468         * modules/unictype/joiningtype-byname: New file.
1469         * lib/unictype/joiningtype_byname.c: New file.
1470
1471         Tests for module 'unictype/joiningtype-name'.
1472         * modules/unictype/joiningtype-name-tests: New file.
1473         * tests/unictype/test-joiningtype_name.c: New file.
1474
1475         New module 'unictype/joiningtype-name'.
1476         * modules/unictype/joiningtype-name: New file.
1477         * lib/unictype/joiningtype_name.c: New file.
1478
1479         unictype: Add support for Arabic shaping properties.
1480         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
1481         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
1482         declarations.
1483         (UC_JOINING_GROUP_*): New enumeration values.
1484         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
1485         declarations.
1486         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
1487         (unicode_joining_type): New variable.
1488         (UC_JOINING_GROUP_*): New enumeration values.
1489         (unicode_joining_group): New variable.
1490         (fill_arabicshaping, joining_type_as_c_identifier,
1491         output_joining_type_test, output_joining_type,
1492         joining_group_as_c_identifier, output_joining_group_test,
1493         output_joining_group): New functions.
1494         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
1495         fill_arabicshaping and output_joining_type_test, output_joining_type,
1496         output_joining_group_test, output_joining_group.
1497         Reported by Simon Josefsson.
1498
1499 2011-03-21  Jim Meyering  <meyering@redhat.com>
1500
1501         strftime: fix a bug in yesterday's change
1502         * lib/strftime.c (add): Accommodate width's initial value of -1.
1503         Otherwise, nstrftime would copy uninitialized data into
1504         the result buffer.
1505
1506 2011-03-21  Jim Meyering  <meyering@redhat.com>
1507
1508         tests: add strftime-tests module
1509         * tests/test-strftime.c: New file.
1510         * modules/strftime-tests: New module.
1511
1512 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1513
1514         strftime: don't assume a byte count fits in 'int'
1515         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
1516         found this problem by static analysis, using gcc -Wstrict-overflow
1517         (GCC 4.5.2, x86-64).  This reported an optimization that depended
1518         on an integer overflow having undefined behavior, but it turns out
1519         that the argument is a size, which might not fit in 'int' anyway,
1520
1521 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1522
1523         stdio: don't require ignore_value around fwrite
1524
1525         This patch works around libc bug 11959
1526         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
1527         Without this patch, applications must often write
1528         ignore_value (fwrite (...)) even though the ignore_value is
1529         not helpful here.  It's common to write many objects, using
1530         fwrite/printf/etc., and then use ferror to detect output error.
1531
1532         I considered making this patch optional, but decided against it,
1533         because libc is obviously being inconsistent here: there is no
1534         reason libc should insist that user code must inspect fwrite
1535         return's value without also insisting that it inspect printf's,
1536         putchar's, etc.  If user code wants to have a strict style where
1537         all these functions' values are checked (so that ferror need not
1538         be checked), we could add support for that style in a new gnulib
1539         module, but in the meantime it's better to be consistent and to
1540         support common usage.
1541
1542         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
1543         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
1544         that we are compiling in checking mode, and if not C++, and
1545         if not already wrapping fwrite for some other reason.
1546         (fwrite): #define to rpl_fwrite if the latter is defined.
1547
1548 2011-03-20  Bruno Haible  <bruno@clisp.org>
1549
1550         verror: Fix compilation error introduced on 2011-02-13.
1551         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
1552         instead of __attribute__.
1553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1554
1555 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1556             Bruno Haible  <bruno@clisp.org>
1557
1558         socklen: do not depend on sys_socket
1559         While trying to modify Emacs to use gnulib's socklen module,
1560         I discovered a circular dependency: socklen depends on sys_socket
1561         and vice versa.  Emacs can use socklen, but it does not need
1562         sys_socket because it has its own substitute for sys/socket.h.
1563         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
1564         gl_TYPE_SOCKLEN_T.
1565         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
1566         gl_PREREQ_SYS_H_SOCKET.
1567         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
1568         gl_PREREQ_SYS_H_SOCKET.
1569         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
1570         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
1571         * modules/socklen (Depends-on): Do not depend on sys_socket.
1572         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
1573
1574 2011-03-20  Jim Meyering  <meyering@redhat.com>
1575
1576         maint.mk: sort file names *after* new transformation
1577         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
1578         prefix would have led to an unwarranted failure in GNU parted.
1579         Sort after that transformation.
1580
1581 2011-03-19  Jim Meyering  <meyering@redhat.com>
1582
1583         maint.mk: fix po-file syntax-check rule
1584         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
1585         Patch by Bruno Haible.
1586
1587 2011-03-19  Bruno Haible  <bruno@clisp.org>
1588
1589         socklen: Update comment.
1590         * m4/socklen.m4: Update comment about platforms.
1591
1592 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1593             Bruno Haible  <bruno@clisp.org>
1594
1595         inet_ntop, inet_pton: Simplify.
1596         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
1597         documented to provide socklen_t and we already depend on sys_socket.
1598         * modules/inet_pton (Depends-on): Likewise.
1599         * lib/arpa_inet.in.h: Adjust comment.
1600
1601 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1602             Bruno Haible  <bruno@clisp.org>
1603
1604         netdb: Simplify.
1605         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
1606         documented to provide socklen_t and we already depend on sys_socket.
1607         * lib/netdb.in.h: Adjust comment.
1608
1609 2011-03-19  Bruno Haible  <bruno@clisp.org>
1610
1611         sys_socket, netdb: Document problem with socklen_t.
1612         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
1613         platforms.
1614         * doc/posix-headers/netdb.texi: Likewise.
1615
1616 2011-03-18  Eric Blake  <eblake@redhat.com>
1617
1618         maint.mk: let po check work in VPATH build
1619         * top/maint.mk (po_file): Allow cfg.mk override.
1620         (sc_po_check): Allow VPATH use.
1621         Reported by Jiri Denemark.
1622
1623 2011-03-16  Jim Meyering  <meyering@redhat.com>
1624
1625         maint.mk: allow fine-grained syntax-check exclusion via Make variables
1626         Before, you would have had to create one .x-sc_ file per rule in order
1627         to exempt offending files.  Now, you may instead use a Make variable --
1628         usually defined in cfg.mk -- whose name identifies the affected rule.
1629         * top/maint.mk (_sc_excl): Define.
1630         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
1631         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
1632
1633 2011-03-13  Bruno Haible  <bruno@clisp.org>
1634
1635         ignore-value tests: Avoid warnings.
1636         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
1637         empty for gcc < 3.4.
1638
1639 2011-03-13  Bruno Haible  <bruno@clisp.org>
1640
1641         passfd: Fix link error on Solaris.
1642         * modules/passfd (Description): Correct.
1643         (Depends-on): Add socketlib.
1644         (Link): New section.
1645         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
1646
1647 2011-03-13  Bruno Haible  <bruno@clisp.org>
1648
1649         passfd: Fix link error on AIX 5.2.
1650         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
1651
1652 2011-03-13  Bruno Haible  <bruno@clisp.org>
1653
1654         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
1655         * lib/sys_socket.in.h: Include <stddef.h>.
1656         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
1657         CMSG_FIRSTHDR. Remove unused variable.
1658
1659 2011-03-13  Bruno Haible  <bruno@clisp.org>
1660
1661         passfd: Fix compilation error on OpenBSD.
1662         * lib/passfd.c: Include <sys/uio.h>.
1663
1664 2011-03-13  Bruno Haible  <bruno@clisp.org>
1665
1666         passfd test: Fix warnings.
1667         * tests/test-passfd.c: Include <sys/wait.h>.
1668         (main): Fix typo.
1669
1670 2011-03-13  Bruno Haible  <bruno@clisp.org>
1671
1672         passfd module, part 4, tweaks.
1673         * tests/test-passfd.c: Reorder includes.
1674         (main): Fix perror and printf calls.
1675
1676 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1677
1678         passfd module, part 4.
1679         * modules/passfd-tests: New file.
1680         * tests/test-passfd.c: New file.
1681
1682 2011-03-13  Jim Meyering  <meyering@redhat.com>
1683
1684         Makefile: rely on GNU make; derive syntax-check rule names
1685         Rather than requiring that each sc_ rule be listed as a dependent
1686         of "check", use features of GNU make to derive the list.
1687         * Makefile (syntax-check-rules): Define.
1688         (check): Depend on the new variable, not the hard-coded list.
1689
1690 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
1691             Bruno Haible  <bruno@clisp.org>
1692
1693         passfd module, part 3.
1694         * lib/passfd.h (recvfd): Add a flags argument.
1695         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
1696         (recvfd): Add a flags argument.
1697         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
1698         exists.
1699         * modules/passfd (Depends-on): Add cloexec.
1700         Suggested by Eric Blake.
1701
1702 2011-03-13  Bruno Haible  <bruno@clisp.org>
1703
1704         passfd module, part 2, tweaks.
1705         * modules/passfd (Files): Reorder.
1706         (Depends-on): Remove errno.
1707         (Include): Remove <sys/socket.h>, <sys/un.h>.
1708         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
1709         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
1710         specification header. Include <sys/socket.h> always. Don't include
1711         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
1712         (sendfd): Clarify that it sets errno when it fails.
1713         (recvfd): Fix specification.
1714
1715 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1716
1717         passfd module, part 2.
1718         * modules/passfd: New file.
1719         * lib/passfd.h: New file.
1720         * lib/passfd.c: New file.
1721
1722 2011-03-12  Bruno Haible  <bruno@clisp.org>
1723
1724         wcswidth, mbswidth: Avoid integer overflow.
1725         * lib/wcswidth.c: Include <limits.h>.
1726         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
1727         * lib/mbswidth.c: Include <limits.h>.
1728         (mbsnwidth): Avoid 'int' overflow.
1729         Reported by Jim Meyering.
1730
1731 2011-03-12  Bruno Haible  <bruno@clisp.org>
1732
1733         futimens, utimensat: Avoid endless recursion on Solaris 10.
1734         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
1735         Solaris.
1736         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
1737         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
1738
1739 2011-03-11  Jim Meyering  <meyering@redhat.com>
1740
1741         maint.mk: relax a regexp to accommodate other formatting styles
1742         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
1743         between "ngettext" and the following "(".
1744
1745 2011-03-11  Pádraig Brady <P@draigBrady.com>
1746
1747         maint.mk: suppress a false positive warning
1748         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
1749         diagnostics are marked with ngettext.
1750
1751 2011-03-10  Eric Blake  <eblake@redhat.com>
1752
1753         wchar: add explicit dependencies, for Tru64
1754         * modules/mbmemcasecoll (Depends-on): Add wchar.
1755         * modules/mbtowc (Depends-on): Likewise.
1756         * modules/vasnprintf (Depends-on): Likewise.
1757         * modules/unistdio/u-printf-args (Depends-on): Likewise.
1758         * modules/wctomb (Depends-on): Likewise.
1759         Reported by Peter O'Gorman.
1760
1761 2011-03-08  Bruno Haible  <bruno@clisp.org>
1762
1763         passfd module, part 1, tweaks.
1764         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
1765         Improve indentation. Improve AC_MSG_CHECKING messages.
1766         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
1767         gl_SOCKET_FAMILIES.
1768
1769 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1770
1771         passfd module, part 1.
1772         * m4/afunix.m4: New file.
1773         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
1774         sockets.
1775
1776 2011-03-08  Bruno Haible  <bruno@clisp.org>
1777
1778         regex-quote: New API.
1779         * lib/regex-quote.h: Include <stdbool.h>.
1780         (struct regex_quote_spec): New type.
1781         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1782         New declarations.
1783         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1784         'const struct regex_quote_spec *' argument.
1785         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
1786         (pcre_special): New constant.
1787         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1788         New functions.
1789         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1790         'const struct regex_quote_spec *' argument.
1791         * modules/regex-quote (Depends-on): Add stdbool.
1792         * tests/test-regex-quote.c (check): Update for new API. Add test for
1793         anchored results.
1794         * NEWS: Mention the API change.
1795         Reported by Reuben Thomas and Eric Blake.
1796
1797 2011-03-06  Bruno Haible  <bruno@clisp.org>
1798
1799         regex-quote: Fix creation of POSIX extended regular expressions.
1800         * lib/regex-quote.c (ere_special): Add grouping and alternation
1801         operators.
1802
1803 2011-03-05  Bruno Haible  <bruno@clisp.org>
1804
1805         doc: Improve doc regarding autopoint vs. gnulib.
1806         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
1807         disable autopoint while running autoreconf.
1808         Suggested by Ralf Wildenhues.
1809
1810 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1811
1812         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
1813         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
1814
1815 2011-03-03  Bruce Korb  <bkorb@gnu.org>
1816
1817         parse-duration: remove xalloc.h dependency
1818         * lib/parse-duration.c (parse_period): handle NULL return from
1819         strdup instead of calling xstrdup().
1820         * modules/parse-duration: remove "xalloc" dependency
1821
1822 2011-03-03  Matthew Booth  <mbooth@redhat.com>
1823
1824         bootstrap: honor m4_base when running aclocal
1825         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
1826
1827 2011-03-02  Jim Meyering  <meyering@redhat.com>
1828
1829         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
1830         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
1831         on request from Matt Booth.
1832
1833 2011-03-01  Eric Blake  <eblake@redhat.com>
1834
1835         test-link: work on Hurd
1836         * tests/test-link.h (test_link): Hurd rejects linking directories
1837         with EISDIR instead of the POSIX-mandated EPERM.
1838
1839 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
1840
1841         stdio: simplify by moving files to printf-posix, sigpipe
1842         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
1843         since this symbol is needed only if printf is replaced.
1844         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
1845         Require gl_ASM_SYMBOL_PREFIX.
1846         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
1847         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
1848         (Depends-on): Add 'raise'.
1849         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
1850         * modules/stdio (Files): Remove lib/stdio-write.c,
1851         m4/asm-underscore.m4.
1852         (Depends-on): Remove 'raise'.
1853
1854         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
1855         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
1856         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
1857         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
1858
1859 2011-02-28  Bruno Haible  <bruno@clisp.org>
1860
1861         localcharset: Assume ANSI C behaviour of free().
1862         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
1863         calling free().
1864         Suggested by Simon Josefsson <simon@josefsson.org>.
1865
1866 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
1867             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
1868             Bruno Haible  <bruno@clisp.org>  (tiny change)
1869
1870         On Cygwin, use /proc file system instead of win32 API.
1871         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
1872         Win32 file names.
1873         (DllMain): Simplify by removing Cygwin specific code.
1874         (find_shared_library_fullname): Use Linux specific implementation also
1875         for Cygwin.
1876         (get_shared_library_fullname): Update accordingly.
1877         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
1878         Win32 file names.
1879         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
1880         Cygwin specific code.
1881
1882 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
1883             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
1884
1885         Fix OpenMP flag detection for various Fortran compilers.
1886         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
1887         OpenMP-conditional compilation construct, to force compile
1888         failure with missing OpenMP flag.
1889         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
1890
1891 2011-02-25  Eric Blake  <eblake@redhat.com>
1892
1893         strstr: expand test coverage
1894         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
1895         compilation.
1896         * tests/test-memmem.c (main): Duplicate tests.
1897         * tests/test-strcasestr.c (main): Likewise.
1898         * tests/test-c-strcasestr.c (main): Likewise.
1899
1900 2011-02-25  Jim Meyering  <meyering@redhat.com>
1901
1902         maint.mk: detect missing-NL-at-EOF, too
1903         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
1904         it also detects when a file lacks a newline at EOF.
1905         (require_exactly_one_NL_at_EOF_): Renamed from
1906         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
1907         since people may well have .x-sc_... file names tied to the
1908         existing name.  Suggested by Eric Blake.
1909
1910 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1911
1912         dirname: move m4/dos.m4 functionality into lib/dosname.h
1913
1914         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
1915         extracts symbols from it, puts them into config.h; but it's much
1916         easier to use the symbols directly.  filename.h already does this,
1917         but it disagrees with dos.m4 in some respects.  This patch
1918         introduces a different include file dosname.h that packages up
1919         dos.m4, and then later we can work on merging filename.h and
1920         dosname.h.  Applications that need only the easy-to-configure
1921         symbols should consider including dosname.h rather than dirname.h.
1922         * NEWS: Mention incompatible changes.
1923         * m4/dos.m4: Remove.
1924         * lib/dosname.h, modules/dosname: New files.
1925         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
1926         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
1927         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
1928         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
1929         Include dosname.h, not dirname.h.
1930         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
1931         Include dosname.h, for definitions of symbols like ISSLASH
1932         that used to be in config.h.
1933         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
1934         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1935         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1936         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1937         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
1938         * modules/rmdir (Files): Likewise.
1939         * modules/stat (Files): Likewise.
1940         * modules/unlink (Files): Likewise.
1941         * modules/dirname-lgpl (Depends-on): Add dosname.
1942         * modules/lstat (Depends-on): Likewise.
1943         * modules/openat (Depends-on): Likewise.
1944         * modules/rmdir (Depends-on): Likewise.
1945         * modules/savewd (Depends-on): Likewise.
1946         * modules/stat (Depends-on): Likewise.
1947         * modules/unlink (Depends-on): Likewise.
1948         * modules/openat (Depends-on): Remove dirname-lgpl.
1949         * modules/savewd (Depends-on): Likewise.
1950         * tests/test-dirname.c: Do not use removed symbols like
1951         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
1952         the remaining symbols, e.g., ISSLASH ('\\').
1953
1954 2011-02-25  Eric Blake  <eblake@redhat.com>
1955
1956         strstr: revert patches that introduced bug and pessimization
1957         * lib/str-two-way.h: Add another reference.
1958         (two_way_short_needle, two_way_long_needle): Revert changes from
1959         2011-02-24; they pessimize search speed.
1960         (critical_factorization): Partially revert changes from
1961         2010-06-22; they violate the requirement that the left half of the
1962         needle be smaller than the period of the needle.
1963
1964 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1965
1966         filenamecat: remove unnecessary dependency on dirname-lgpl
1967         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
1968         is no direct dependency, just an indirect one via filenamecat-lgpl.
1969
1970         remove: remove unnecessary use of m4/dos.m4
1971         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
1972         * modules/remove (FILES): Remove m4/dos.m4.
1973
1974         * lib/openat-proc.c: Don't include dirname.h; not needed.
1975
1976         backupfile: remove unnecessary use of m4/dos.m4
1977         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
1978         of its symbols are used by the backupfile code.  backupfile.c does
1979         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
1980         for the rare case of programs that want all their backup file
1981         names to live within 8+3 limits, and dos.m4 doesn't address that.
1982         * modules/backupfile (Files): Remove m4/dos.m4.
1983
1984 2011-02-24  Jim Meyering  <meyering@redhat.com>
1985
1986         strstr: fix a bug whereby strstr would mistakenly return NULL
1987         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
1988         in period calculation.
1989         (two_way_long_needle): Likewise.
1990         The original problem was reported by Mike Stump in
1991         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
1992         Ralf Wildenhues provided the short needle and haystack.
1993         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
1994         Add a more involved test to trigger the bug in two_way_long_needle.
1995
1996 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1997
1998         gnulib-tool: remove use of bold display in help screen
1999         * gnulib-tool (func_usage): Do not use bold display anymore in the
2000         help screen.  That was just meant to be a temporary emphasis for a
2001         backward-incompatible change.
2002
2003 2011-02-23  Bruno Haible  <bruno@clisp.org>
2004
2005         Fix misindentation of preprocessor directives.
2006         * lib/argp-namefrob.h: Reindent preprocessor directives.
2007         * lib/getopt_int.h (struct _getopt_data): Likewise.
2008         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2009         * lib/vasnprintf.c (decode_long_double): Likewise.
2010         * tests/test-argmatch.c: Insert blank lines, for clarity.
2011         * tests/test-exclude.c: Likewise.
2012
2013 2011-02-22  Bruno Haible  <bruno@clisp.org>
2014
2015         ioctl: Fix for MacOS X in 64-bit mode.
2016         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2017         value.
2018         Suggested by Eric Blake.
2019         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2020
2021 2011-02-22  Jim Meyering  <meyering@redhat.com>
2022
2023         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2024         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2025         in lib/.
2026
2027 2011-02-22  Eric Blake  <eblake@redhat.com>
2028
2029         maint: avoid any CDPATH issue
2030         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2031
2032         maint: adjust cpp indentation for my modules, as well
2033         * Makefile (sc_cpp_indent_check): Add my name.
2034         * lib/fbufmode.c: Filter through cppi.
2035         * lib/fpurge.c: Likewise.
2036         * lib/freadable.c: Likewise.
2037         * lib/freading.c: Likewise.
2038         * lib/fwritable.c: Likewise.
2039         * lib/fwriting.c: Likewise.
2040         * lib/sigaction.c: Likewise.
2041
2042 2011-02-22  Jim Meyering  <meyering@redhat.com>
2043
2044         maint: adjust cpp indentation to reflect nesting depth
2045         I.e., in a block of code that begins with an unnested "#if",
2046         put one space between the "#" in column 1 and following token.
2047         For example,
2048         -#include <sys/vfs.h>
2049         +# include <sys/vfs.h>
2050         Do this only in .c files that are part of a module I maintain.
2051         * lib/linkat.c: Filter through cppi.
2052         * lib/nanosleep.c: Likewise.
2053         * lib/openat.c: Likewise.
2054         * lib/openat-die.c: Likewise.
2055         * lib/dup3.c: Likewise.
2056         * lib/fchownat.c: Likewise.
2057         * lib/flock.c: Likewise.
2058         * lib/fsync.c: Likewise.
2059         * lib/fts.c: Likewise.
2060         * lib/getpass.c: Likewise.
2061         * lib/gettimeofday.c: Likewise.
2062         * lib/userspec.c: Likewise.
2063         * Makefile (sc_cpp_indent_check): New rule, to check this.
2064
2065 2011-02-22  Bruno Haible  <bruno@clisp.org>
2066
2067         New module 'wctomb'.
2068         * lib/stdlib.in.h (wctomb): New declaration.
2069         * lib/wctomb.c: New file.
2070         * lib/wctomb-impl.h: New file.
2071         * m4/wctomb.m4: New file.
2072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2073         REPLACE_WCTOMB.
2074         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2075         REPLACE_WCTOMB.
2076         * modules/wctomb: New file.
2077         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2078         * doc/posix-functions/wctomb.texi: Mention the new module.
2079         * modules/wctob (Depends-on): Add wctomb.
2080
2081 2011-02-22  Bruno Haible  <bruno@clisp.org>
2082
2083         New module 'mbtowc'.
2084         * lib/stdlib.in.h (mbtowc): New declaration.
2085         * lib/mbtowc.c: New file.
2086         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2087         * m4/mbtowc.m4: New file.
2088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2089         REPLACE_MBTOWC.
2090         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2091         REPLACE_MBTOWC.
2092         * modules/mbtowc: New file.
2093         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2094         * doc/posix-functions/mbtowc.texi: Mention the new module.
2095         * modules/btowc (Depends-on): Add mbtowc.
2096
2097 2011-02-22  Bruno Haible  <bruno@clisp.org>
2098
2099         wcrtomb: Add more tests for native Windows platforms.
2100         * tests/test-wcrtomb-w32-1.sh: New file.
2101         * tests/test-wcrtomb-w32-2.sh: New file.
2102         * tests/test-wcrtomb-w32-3.sh: New file.
2103         * tests/test-wcrtomb-w32-4.sh: New file.
2104         * tests/test-wcrtomb-w32-5.sh: New file.
2105         * tests/test-wcrtomb-w32.c: New file.
2106         * modules/wcrtomb-tests (Files): Add them.
2107         (Makefile.am): Arrange to run these tests.
2108         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2109         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2110
2111 2011-02-20  Bruno Haible  <bruno@clisp.org>
2112
2113         wcrtomb: Enhance test.
2114         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2115
2116 2011-02-20  Bruno Haible  <bruno@clisp.org>
2117
2118         mbrtowc: Tiny optimization.
2119         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2120
2121 2011-02-20  Jim Meyering  <meyering@redhat.com>
2122
2123         test-exclude.c: remove unmatched #endif
2124         * tests/test-exclude.c: Remove stray #endif, left over from
2125         the change of a week ago.
2126
2127 2011-02-19  Jim Meyering  <meyering@redhat.com>
2128
2129         git-version-gen: skip "-dirty" check when appropriate
2130         * build-aux/git-version-gen: Don't run any git commands when the
2131         version string comes from .tarball-version.  Prior to this, we
2132         would run git update-index --refresh even from a just-unpacked
2133         tarball directory, and that could affect a .git/ directory in a
2134         parent of the build directory.  Reported by Mike Frysinger.
2135
2136 2011-02-19  Bruno Haible  <bruno@clisp.org>
2137
2138         unictype/property-byname: Reduce the size of the 'data' segment.
2139         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2140
2141 2011-02-19  Bruno Haible  <bruno@clisp.org>
2142
2143         unictype/scripts: Reduce the size of the 'data' segment.
2144         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2145         '%pic'.
2146         * lib/unictype/scripts_byname.gperf: Regenerated.
2147
2148 2011-02-19  Bruno Haible  <bruno@clisp.org>
2149
2150         stdint: Update documentation.
2151         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2152
2153 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2154
2155         stdint: omit redundant check for wchar.h
2156         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2157         always tests whether wchar.h exists, so remove the now-redundant test.
2158
2159 2011-02-18  Bruno Haible  <bruno@clisp.org>
2160
2161         stdint: Cut dependency to module 'wchar'.
2162         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2163         include the necessary prerequisites.
2164         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2165         * modules/stdint (Depends-on): Remove wchar.
2166         (Makefile.am): Substitute HAVE_WCHAR_H.
2167         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2168
2169 2011-02-18  Eric Blake  <eblake@redhat.com>
2170
2171         longlong: skip, rather than fail, on cross-compilation
2172         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2173         when cross-compiling; regression from 2011-02-16.
2174
2175 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2176
2177         * NEWS: Mention 2011-02-08 change to stdlib.
2178
2179 2011-02-17  Bruno Haible  <bruno@clisp.org>
2180
2181         getloadavg: Add comments about platforms.
2182         * m4/getloadavg.m4: Add comment.
2183         * lib/getloadavg.c: Likewise.
2184
2185 2011-02-17  Bruno Haible  <bruno@clisp.org>
2186
2187         getloadavg: Fix link error on Solaris 2.6.
2188         * modules/getloadavg (Link): New section.
2189         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2190         linking test-getloadavg.
2191         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2192         getloadavg.
2193
2194 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2195
2196         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2197         It was 'int', but this doesn't match the IRIX 6.5 manual.
2198         Suggested by Bruno Haible in
2199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2200
2201 2011-02-17  Bruno Haible  <bruno@clisp.org>
2202
2203         havelib: Fix comments.
2204         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2205         change.
2206
2207 2011-02-17  Bruno Haible  <bruno@clisp.org>
2208
2209         havelib: Update config.rpath.
2210         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2211
2212 2011-02-17  Bruno Haible  <bruno@clisp.org>
2213
2214         getloadavg test: Add some plausibility checks.
2215         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2216         is improbable.
2217
2218 2011-02-16  Eric Blake  <eblake@redhat.com>
2219
2220         maintainer-makefile: make syntax-check a no-op from tarballs
2221         * top/maint.mk (no-vc-detected): New rule.
2222         (local-checks-available): Use it to avoid hanging if someone tries
2223         'make syntax-check' from a tarball.  Also append to any non-syntax
2224         checks already defined in cfg.mk.
2225
2226 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2227
2228         longlong: tune, particularly for common case of c99
2229
2230         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2231         or running anything if c99, or if unsigned long long int does not
2232         work.  In either case, we know the answer without further tests.
2233         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2234         it at most once, and use its results for both long long int and
2235         unsigned long long int.  This is more likely to be efficient in
2236         the common case where the program wants to check for both long
2237         long int and unsigned long long int.
2238         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2239         since the answer is already known.
2240
2241 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2242
2243         getloadavg: set errno
2244         * lib/getloadavg.c: Set errno when returning -1.  If no other
2245         error number looks appropriate, set it to ENOSYS if the getloadavg
2246         looks like it can't possibly ever work, ENOTSUP otherwise.
2247         Suggested by Bruno Haible in
2248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2249
2250         getloadavg: trim unused parts and speed up 'configure'
2251         * NEWS: Document this.
2252         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2253         always compiled if getloadavg is absent.
2254         Move test code to ...
2255         * tests/test-getloadavg.c: New file, containing previous
2256         contents of test from lib/getloadavg.c.  It also contains
2257         suggestions by Bruno Haible in
2258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2259         * modules/getloadavg-tests: New file.
2260         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2261         Do tests in the same order as they're needed for getloadavg.c.
2262         Omit setgid-related tests that generate symbols KMEM_GROUP,
2263         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2264         Do only the tests that are needed to see whether the system has
2265         getloadavg, moving the other tests into ...
2266         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2267         NLIST_NAME_UNION; nobody should be using it.  Do not define
2268         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2269         relevant, as the user of this module shouldn't care how getloadavg
2270         is implemented.
2271
2272         getloadavg: omit unused var
2273         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2274
2275 2011-02-15  Jim Meyering  <meyering@redhat.com>
2276
2277         doc: update users.txt
2278         * users.txt: Update iwhd's URL.
2279
2280 2011-02-13  Bruno Haible  <bruno@clisp.org>
2281
2282         Consistent macro naming for macros that use GCC __attribute__.
2283         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2284         _ATTRIBUTE_NONNULL_.
2285         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2286         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2287         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2288         ATTRIBUTE_DEPRECATED.
2289         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2290         ATTRIBUTE_NORETURN.
2291         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2292         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2293         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2294         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2295         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2296         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2297         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2298         ATTRIBUTE_SENTINEL.
2299         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2300         ATTRIBUTE_RETURN_CHECK.
2301         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2302         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2303         ATTRIBUTE_NORETURN.
2304         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2305         Reported by Paul Eggert.
2306
2307 2011-02-13  Bruno Haible  <bruno@clisp.org>
2308
2309         Don't interfere with a program's definition of __attribute__.
2310         * lib/argp.h (__attribute__): Remove definition.
2311         (_GL_ATTRIBUTE_FORMAT): New macro.
2312         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2313         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2314         (_GL_ATTRIBUTE_FORMAT): New macro.
2315         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2316         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2317         GCC 3 or newer.
2318         * lib/error.h (__attribute__): Remove definition.
2319         (_GL_ATTRIBUTE_FORMAT): New macro.
2320         (error, error_at_line): Use it.
2321         * lib/hash.h (__attribute__): Remove definition.
2322         (ATTRIBUTE_WUR): Update definition. Define always.
2323         * lib/openat.h (__attribute__): Remove definition.
2324         (ATTRIBUTE_NORETURN): Update definition. Define always.
2325         * lib/sigpipe-die.h (__attribute__): Remove definition.
2326         (ATTRIBUTE_NORETURN): Update definition. Define always.
2327         * lib/vasnprintf.h (__attribute__): Remove definition.
2328         (_GL_ATTRIBUTE_FORMAT): New macro.
2329         (asnprintf, vasnprintf): Use it.
2330         * lib/xalloc.h (__attribute__): Remove definition.
2331         (ATTRIBUTE_NORETURN): Update definition. Define always.
2332         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2333         * lib/xmemdup0.h (__attribute__): Remove definition.
2334         (ATTRIBUTE_NORETURN): Update definition. Define always.
2335         * lib/xprintf.h (__attribute__): Remove definition.
2336         (_GL_ATTRIBUTE_FORMAT): New macro.
2337         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2338         * lib/xstrtol.h (__attribute__): Remove definition.
2339         (ATTRIBUTE_NORETURN): Update definition. Define always.
2340         * lib/xvasprintf.h (__attribute__): Remove definition.
2341         (_GL_ATTRIBUTE_FORMAT): New macro.
2342         (xasprintf, xvasprintf): Use it.
2343         * tests/test-argmatch.c (__attribute__): Remove definition.
2344         (ATTRIBUTE_NORETURN): Update definition. Define always.
2345         * tests/test-exclude.c (__attribute__): Remove definition.
2346         (ATTRIBUTE_NORETURN): Update definition. Define always.
2347         Reported by Paul Eggert.
2348
2349 2011-02-13  Bruno Haible  <bruno@clisp.org>
2350
2351         mbrtowc: Add more tests for native Windows platforms.
2352         * tests/test-mbrtowc-w32-1.sh: New file.
2353         * tests/test-mbrtowc-w32-2.sh: New file.
2354         * tests/test-mbrtowc-w32-3.sh: New file.
2355         * tests/test-mbrtowc-w32-4.sh: New file.
2356         * tests/test-mbrtowc-w32-5.sh: New file.
2357         * tests/test-mbrtowc-w32.c: New file.
2358         * modules/mbrtowc-tests (Files): Add them.
2359         (Makefile.am): Arrange to run these tests.
2360         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2361         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2362
2363 2011-02-13  Bruno Haible  <bruno@clisp.org>
2364
2365         mbrtowc: Work around native Windows bug.
2366         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2367         guess when no suitable locale for testing was found.
2368         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2369
2370 2011-02-13  Bruno Haible  <bruno@clisp.org>
2371
2372         mbsinit: Work around mingw bug.
2373         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2374         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2375         Windows.
2376         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2377
2378 2011-02-13  Bruno Haible  <bruno@clisp.org>
2379
2380         mbsinit: Don't crash for a NULL argument.
2381         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2382         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2383
2384 2011-02-13  Bruno Haible  <bruno@clisp.org>
2385
2386         Don't interfere with a program's definition of __attribute__.
2387         * lib/stdio.in.h (__attribute__): Remove definition.
2388         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2389         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2390         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2391         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2392         * lib/string.in.h (__attribute__): Remove definition.
2393         Reported by Paul Eggert.
2394
2395 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2396
2397         stdlib: don't get in the way of non-GCC __attribute__
2398         See thread starting at
2399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2400         Revert previous stdlib change, installing the following instead:
2401         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2402         to get in the way of a non-GCC compiler that supports __attribute__.
2403         (_GL_ATTRIBUTE_RETURN): New macro.
2404         (_Exit): Use it instead of __attribute__.
2405
2406 2011-02-12  Bruno Haible  <bruno@clisp.org>
2407
2408         quotearg test: Avoid test failure on mingw.
2409         * tests/test-quotearg.sh: Convert the locale identifier from native
2410         Windows syntax to Unix syntax.
2411
2412 2011-02-12  Bruno Haible  <bruno@clisp.org>
2413
2414         setlocale: Prefer gnulib's override over libintl's override.
2415         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2416         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
2417         GNULIB_defined_setlocale is set.
2418
2419 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2420
2421         stdlib: support non-GCC __attribute__
2422
2423         Fix a serious and tricky problem encountered when attempting to
2424         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
2425         5.5, but it crashed due to memory corruption on Solaris 10 with
2426         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
2427         bits that are otherwise zero.  This tagging is optional inside
2428         Emacs but is preferred and is used when __attribute__ ((__aligned
2429         (8))) works, as it does with both recent-enough GCC and with Sun C
2430         5.11.  However, Sun C 5.11 is not GCC and does not #define
2431         __GNUC__ and __GNUC_MINOR__.
2432
2433         When I added the getloadavg module to Emacs, it brought in
2434         stdlib.in.h, which contained this fragment:
2435
2436            #ifndef __attribute__
2437            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
2438            #  define __attribute__(Spec)   /* empty */
2439            # endif
2440            #endif
2441
2442         When files that include <stdlib.h> were compiled with Sun C 5.11,
2443         the above code disabled __attribute__ ((__aligned (8))), which
2444         caused variables to not be properly aligned, which eventually led
2445         to the pointer corruption mentioned above.  (This was a bit hard
2446         to diagnose, unfortunately.)
2447
2448         Several "#define __attribute__(X) /* empty */" code snippets need
2449         to be eradicated from Gnulib to work with non-GCC compilers that
2450         support __attribute__.  The Autoconf way to do this is to test for
2451         each kind of attribute that we want support for, and selectively
2452         enable that in source code.
2453
2454         Fix this problem just for stdlib.h, by adding a test for the
2455         __noreturn__ attribute, and change stdlib.in.h to use that test
2456         when needed.  This technique can be easily generalized to the
2457         other *.in.h files and attributes, and a similar technique can be
2458         used for *.h and *.c files.  This patch is enough to solve the
2459         problem for Emacs + getloadavg, and I thought I'd publish it for
2460         feedback before undertaking further, similar fixes in other
2461         modules.
2462
2463         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
2464         because it's not needed for stdlib.h.  It merely substitutes the
2465         value directly into stdlib.h.  We may well need to #define it, or
2466         similar symbols, for other modules, but it's nice to also have an
2467         option to not #define it for applications like Emacs that do not
2468         need it.
2469
2470         * lib/stdlib.in.h (__attribute__): Do not #define.
2471         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
2472         be defined only if the _Exit module is also used.
2473         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
2474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
2475         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
2476         platforms.
2477         * modules/_Exit (Files): Add m4/attribute.m4.
2478         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
2479         * m4/attribute.m4: New file.
2480
2481 2011-02-12  Bruno Haible  <bruno@clisp.org>
2482
2483         wcsrtombs: Work around bug on native Windows.
2484         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
2485         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
2486         instead of len.
2487         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
2488
2489 2011-02-12  Bruno Haible  <bruno@clisp.org>
2490
2491         mbsrtowcs: Work around bug on native Windows.
2492         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
2493         against mingw bug.
2494         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
2495
2496 2011-02-12  Bruno Haible  <bruno@clisp.org>
2497
2498         Avoid setlocale bugs in tests.
2499         * modules/btowc (Dependencies): Add setlocale.
2500         * modules/c-strcase (Dependencies): Likewise.
2501         * modules/mbmemcasecmp (Dependencies): Likewise.
2502         * modules/mbmemcasecoll (Dependencies): Likewise.
2503         * modules/mbrtowc (Dependencies): Likewise.
2504         * modules/mbscasecmp (Dependencies): Likewise.
2505         * modules/mbscasestr (Dependencies): Likewise.
2506         * modules/mbschr (Dependencies): Likewise.
2507         * modules/mbscspn (Dependencies): Likewise.
2508         * modules/mbsinit (Dependencies): Likewise.
2509         * modules/mbsncasecmp (Dependencies): Likewise.
2510         * modules/mbsnrtowcs (Dependencies): Likewise.
2511         * modules/mbspbrk (Dependencies): Likewise.
2512         * modules/mbspcasecmp (Dependencies): Likewise.
2513         * modules/mbsrchr (Dependencies): Likewise.
2514         * modules/mbsrtowcs (Dependencies): Likewise.
2515         * modules/mbsspn (Dependencies): Likewise.
2516         * modules/mbsstr (Dependencies): Likewise.
2517         * modules/nl_langinfo (Dependencies): Likewise.
2518         * modules/quotearg (Dependencies): Likewise.
2519         * modules/unicase/locale-language (Dependencies): Likewise.
2520         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
2521         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
2522         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
2523         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
2524         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
2525         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
2526         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
2527         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
2528         * modules/vasnprintf-posix (Dependencies): Likewise.
2529         * modules/wcrtomb (Dependencies): Likewise.
2530         * modules/wcsnrtombs (Dependencies): Likewise.
2531         * modules/wcsrtombs (Dependencies): Likewise.
2532
2533 2011-02-12  Bruno Haible  <bruno@clisp.org>
2534
2535         setlocale: Workaround native Windows bug.
2536         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
2537         succeeds but sets LC_CTYPE to "C", report a failure.
2538         * tests/test-setlocale2.sh: New file.
2539         * tests/test-setlocale2.c: New file.
2540         * modules/setlocale-tests (Files): Add the new files.
2541         (Makefile.am): Enable test-setlocale2.sh test.
2542         * doc/posix-functions/setlocale.texi: Mention workaround.
2543
2544 2011-02-11  Bruno Haible  <bruno@clisp.org>
2545
2546         Tests for module 'setlocale'.
2547         * modules/setlocale-tests: New file.
2548         * tests/test-setlocale1.sh: New file.
2549         * tests/test-setlocale1.c: New file.
2550
2551         New module 'setlocale'.
2552         * lib/locale.in.h (setlocale): New declaration.
2553         * lib/setlocale.c: New file, based on
2554         gettext/gettext-runtime/intl/setlocale.c.
2555         * m4/setlocale.m4: New file.
2556         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
2557         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
2558         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
2559         REPLACE_SETLOCALE.
2560         * modules/setlocale: New file.
2561         * tests/test-locale-c++.cc: Test the declaration of setlocale.
2562         * doc/posix-functions/setlocale.texi: Mention the new module.
2563
2564 2011-02-11  Bruno Haible  <bruno@clisp.org>
2565
2566         Prepare for locale dependent tests on mingw.
2567         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
2568         because it has the wrong locale encoding.
2569         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
2570         French_France.1252 instead of "fr".
2571         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
2572         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
2573         because it has the wrong locale encoding.
2574         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
2575         native Windows, try Turkish_Turkey.65001.
2576         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
2577         Chinese_China.54936.
2578
2579         Prepare for locale dependent tests on mingw.
2580         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
2581         differently.
2582         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2583         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2584         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2585         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2586
2587 2011-02-11  Eric Blake  <eblake@redhat.com>
2588
2589         strptime: avoid compiler warnings
2590         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
2591         compiler warnings about dead code.
2592         Reported by Daniel P. Berrange.
2593
2594 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
2595
2596         doc: update users.txt
2597         * users.txt: Add rcs.
2598
2599 2011-02-10  John W. Eaton  <jwe@gnu.org>
2600
2601         doc: update users.txt
2602         * users.txt: Add octave.
2603
2604 2011-02-10  Jim Meyering  <meyering@redhat.com>
2605
2606         doc: update users.txt
2607         * users.txt: Add iwhd.
2608
2609 2011-02-09  Bruno Haible  <bruno@clisp.org>
2610
2611         gnulib-tool: Make copyright notice adjustment more robust.
2612         * gnulib-tool (func_import): In sed_transform_main_lib_file,
2613         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
2614         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
2615         License".
2616         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
2617
2618 2011-02-06  Bruno Haible  <bruno@clisp.org>
2619
2620         New module 'towctrans'.
2621         * modules/towctrans: New file.
2622         * lib/wctype.in.h (towctrans): New declaration.
2623         * lib/towctrans.c: New file.
2624         * lib/towctrans-impl.h: New file.
2625         * m4/towctrans.m4: New file.
2626         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
2627         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
2628         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
2629         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
2630         * doc/posix-functions/towctrans.texi: Mention the new module.
2631
2632 2011-02-06  Bruno Haible  <bruno@clisp.org>
2633
2634         New module 'wctrans'.
2635         * modules/wctrans: New file.
2636         * lib/wctype.in.h (wctrans): New declaration.
2637         * lib/wctrans.c: New file.
2638         * lib/wctrans-impl.h: New file.
2639         * m4/wctrans.m4: New file.
2640         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
2641         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
2642         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
2643         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
2644         * doc/posix-functions/wctrans.texi: Mention the new module.
2645
2646 2011-02-06  Bruno Haible  <bruno@clisp.org>
2647
2648         New module 'iswctype'.
2649         * modules/iswctype: New file.
2650         * lib/wctype.in.h (iswctype): New declaration.
2651         * lib/iswctype.c: New file.
2652         * lib/iswctype-impl.h: New file.
2653         * m4/iswctype.m4: New file.
2654         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
2655         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
2656         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
2657         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
2658         * doc/posix-functions/iswctype.texi: Mention the new module and the
2659         HP-UX 11.00 problem.
2660
2661 2011-02-06  Bruno Haible  <bruno@clisp.org>
2662
2663         New module 'wctype'.
2664         * modules/wctype: Change to represent the wctype() substitute.
2665         * lib/wctype.in.h (wctype): New declaration.
2666         * lib/wctype.c: New file.
2667         * lib/wctype-impl.h: New file.
2668         * m4/wctype.m4: New file.
2669         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
2670         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
2671         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
2672         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
2673         * doc/posix-functions/wctype.texi: Mention the new module and the
2674         HP-UX 11.00 problem.
2675
2676 2011-02-06  Bruno Haible  <bruno@clisp.org>
2677
2678         wctype-h: Ensure wctype_t and wctrans_t are defined.
2679         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
2680         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2681         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2682         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
2683         HAVE_WCTRANS_T.
2684         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
2685
2686 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2687
2688         flock: fix license typo
2689
2690         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
2691         omitted.
2692
2693 2011-02-08  Bruno Haible  <bruno@clisp.org>
2694
2695         Split large sed scripts, for HP-UX sed.
2696         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
2697         to avoid HP-UX limit of 99 commands, in the near future.
2698         * modules/stdlib (Makefile.am): Likewise.
2699         * modules/unistd (Makefile.am): Likewise.
2700         * modules/wchar (Makefile.am): Likewise.
2701         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2702         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
2703         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
2704
2705 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2706             Bruno Haible  <bruno@clisp.org>
2707
2708         stdlib: improve random_r modularization
2709         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
2710         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
2711         you also need the random_r module to get this material right.
2712         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
2713         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
2714         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
2715
2716 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2717
2718         stdlib: don't depend on stdint
2719         * lib/stdlib.in.h: Don't include <stdint.h> merely because
2720         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
2721         be independent of whether stdint.h is needed.
2722         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
2723         here, instead of ...
2724         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
2725         struct random_data should be using the random_r module, not just
2726         the stdlib module (which wouldn't make sense: what package needs
2727         just struct random_data without also needing random_r?).
2728         * modules/stdlib (Depends-on): Remove stdint.
2729
2730         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
2731         See the thread rooted at
2732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
2733         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
2734         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
2735         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
2736         __VMS)); previously it was always included (via fcntl--.h).
2737         (getloadavg): Do not use c_strtod.  Instead, approximate it by
2738         hand; this is good enough for load averages.  Also, do not use
2739         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
2740         flags directly if available and don't bother otherwise.  (Packages
2741         that need the extra reliability should use the modules that define
2742         these flags on older platforms that lack them.)
2743         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
2744         fcntl-safer.
2745
2746 2011-02-08  Jim Meyering  <meyering@redhat.com>
2747
2748         di-set.h, ino-map.h: add multiple-inclusion guard
2749         Technically, the guard is required only for ino-map.h, due to its
2750         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
2751         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
2752         * lib/ino-map.h: Likewise.
2753
2754 2011-02-06  Bruno Haible  <bruno@clisp.org>
2755
2756         iswblank: Ensure declaration on glibc systems.
2757         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
2758         * modules/iswblank (Dependencies): Add 'extensions'.
2759         * doc/posix-functions/iswblank.texi: Document the glibc problem.
2760
2761 2011-02-06  Bruno Haible  <bruno@clisp.org>
2762
2763         New module 'iswblank'.
2764         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
2765         * modules/iswblank: New file.
2766         * modules/wctype-h (Files): Remove lib/iswblank.c.
2767         (Makefile.am): Substitute GNULIB_ISWBLANK.
2768         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
2769         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
2770         (gl_WCTYPE_H_DEFAULTS): New macro.
2771         (gl_WCTYPE_H): Require it. Remove iswblank related code.
2772         * modules/iswblank-tests: New file.
2773         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
2774         * tests/test-wctype-h.c (main): Remove iswblank tests.
2775         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
2776         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
2777         of 'wctype-h'.
2778         * NEWS: Mention the change.
2779         * modules/mbchar (Depends-on): Add iswblank.
2780
2781 2011-02-08  Bruno Haible  <bruno@clisp.org>
2782
2783         di-set tests: Refactor.
2784         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
2785         unnecessary includes.
2786         (ASSERT): Remove macro.
2787         (main): Make C90 compliant by avoiding variable declaration after
2788         statement.
2789         * modules/di-set-tests (Files): Add tests/macros.h.
2790
2791 2011-02-08  Bruno Haible  <bruno@clisp.org>
2792
2793         ino-map tests: Refactor.
2794         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
2795         unnecessary includes.
2796         (ASSERT): Remove macro.
2797         (main): Make C90 compliant by avoiding variable declaration after
2798         statement.
2799         * modules/ino-map-tests (Files): Add tests/macros.h.
2800
2801 2011-02-08  Jim Meyering  <meyering@redhat.com>
2802
2803         di-set: add "const" to a cast
2804         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
2805         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
2806
2807 2011-02-06  Bruno Haible  <bruno@clisp.org>
2808
2809         Rename module 'wctype' to 'wctype-h'.
2810         * modules/wctype-h: Renamed from modules/wctype.
2811         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
2812         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
2813         (Files, Depends-on, Makefile.am): Update.
2814         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
2815         (Files, Makefile.am): Update.
2816         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
2817         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
2818         * doc/posix-headers/wctype.texi: Update.
2819         * doc/posix-functions/iswalnum.texi: Update.
2820         * doc/posix-functions/iswalpha.texi: Update.
2821         * doc/posix-functions/iswblank.texi: Update.
2822         * doc/posix-functions/iswcntrl.texi: Update.
2823         * doc/posix-functions/iswdigit.texi: Update.
2824         * doc/posix-functions/iswgraph.texi: Update.
2825         * doc/posix-functions/iswlower.texi: Update.
2826         * doc/posix-functions/iswprint.texi: Update.
2827         * doc/posix-functions/iswpunct.texi: Update.
2828         * doc/posix-functions/iswspace.texi: Update.
2829         * doc/posix-functions/iswupper.texi: Update.
2830         * doc/posix-functions/iswxdigit.texi: Update.
2831         * doc/posix-functions/towlower.texi: Update.
2832         * doc/posix-functions/towupper.texi: Update.
2833         * NEWS: Mention the change.
2834         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
2835         * modules/mbchar (Dependencies): Likewise.
2836         * modules/mbswidth (Dependencies): Likewise.
2837         * modules/quotearg (Dependencies): Likewise.
2838         * modules/regex (Dependencies): Likewise.
2839         * modules/wcscasecmp (Dependencies): Likewise.
2840         * modules/wcsncasecmp (Dependencies): Likewise.
2841         * modules/wcwidth (Dependencies): Likewise.
2842
2843 2011-02-06  Bruno Haible  <bruno@clisp.org>
2844
2845         New module 'wcswidth'.
2846         * modules/wcswidth: New file.
2847         * lib/wchar.in.h (wcswidth): New declaration.
2848         * lib/wcswidth.c: New file.
2849         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
2850         * m4/wcswidth.m4: New file.
2851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
2852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
2853         REPLACE_WCSWIDTH.
2854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
2855         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
2856         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
2857         * doc/posix-functions/wcswidth.texi: Mention the new module.
2858
2859 2011-02-06  Bruno Haible  <bruno@clisp.org>
2860
2861         New module 'wcstok'.
2862         * modules/wcstok: New file.
2863         * lib/wchar.in.h (wcstok): New declaration.
2864         * lib/wcstok.c: New file.
2865         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
2866         * m4/wcstok.m4: New file.
2867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
2868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
2869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
2870         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
2871         * doc/posix-functions/wcstok.texi: Mention the new module.
2872
2873 2011-02-06  Bruno Haible  <bruno@clisp.org>
2874
2875         New module 'wcsstr'.
2876         * modules/wcsstr: New file.
2877         * lib/wchar.in.h (wcsstr): New declaration.
2878         * lib/wcsstr.c: New file.
2879         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
2880         * m4/wcsstr.m4: New file.
2881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
2882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
2883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
2884         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
2885         * doc/posix-functions/wcsstr.texi: Mention the new module.
2886
2887 2011-02-06  Bruno Haible  <bruno@clisp.org>
2888
2889         New module 'wcspbrk'.
2890         * modules/wcspbrk: New file.
2891         * lib/wchar.in.h (wcspbrk): New declaration.
2892         * lib/wcspbrk.c: New file.
2893         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
2894         * m4/wcspbrk.m4: New file.
2895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
2896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
2897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
2898         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
2899         * doc/posix-functions/wcspbrk.texi: Mention the new module.
2900
2901 2011-02-06  Bruno Haible  <bruno@clisp.org>
2902
2903         New module 'wcsspn'.
2904         * modules/wcsspn: New file.
2905         * lib/wchar.in.h (wcsspn): New declaration.
2906         * lib/wcsspn.c: New file.
2907         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
2908         * m4/wcsspn.m4: New file.
2909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
2910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
2911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
2912         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
2913         * doc/posix-functions/wcsspn.texi: Mention the new module.
2914
2915 2011-02-06  Bruno Haible  <bruno@clisp.org>
2916
2917         New module 'wcscspn'.
2918         * modules/wcscspn: New file.
2919         * lib/wchar.in.h (wcscspn): New declaration.
2920         * lib/wcscspn.c: New file.
2921         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
2922         * m4/wcscspn.m4: New file.
2923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
2924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
2925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
2926         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
2927         * doc/posix-functions/wcscspn.texi: Mention the new module.
2928
2929 2011-02-06  Bruno Haible  <bruno@clisp.org>
2930
2931         New module 'wcsrchr'.
2932         * modules/wcsrchr: New file.
2933         * lib/wchar.in.h (wcsrchr): New declaration.
2934         * lib/wcsrchr.c: New file.
2935         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
2936         * m4/wcsrchr.m4: New file.
2937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
2938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
2939         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
2940         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
2941         * doc/posix-functions/wcsrchr.texi: Mention the new module.
2942
2943 2011-02-06  Bruno Haible  <bruno@clisp.org>
2944
2945         New module 'wcschr'.
2946         * modules/wcschr: New file.
2947         * lib/wchar.in.h (wcschr): New declaration.
2948         * lib/wcschr.c: New file.
2949         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
2950         * m4/wcschr.m4: New file.
2951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
2952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
2953         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
2954         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
2955         * doc/posix-functions/wcschr.texi: Mention the new module.
2956
2957 2011-02-06  Bruno Haible  <bruno@clisp.org>
2958
2959         New module 'wcsdup'.
2960         * modules/wcsdup: New file.
2961         * lib/wchar.in.h (wcsdup): New declaration.
2962         * lib/wcsdup.c: New file.
2963         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
2964         * m4/wcsdup.m4: New file.
2965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
2966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
2967         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
2968         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
2969         * doc/posix-functions/wcsdup.texi: Mention the new module.
2970
2971 2011-02-06  Bruno Haible  <bruno@clisp.org>
2972
2973         New module 'wcsxfrm'.
2974         * modules/wcsxfrm: New file.
2975         * lib/wchar.in.h (wcsxfrm): New declaration.
2976         * lib/wcsxfrm.c: New file.
2977         * lib/wcsxfrm-impl.h: New file.
2978         * m4/wcsxfrm.m4: New file.
2979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
2980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
2981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
2982         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
2983         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
2984
2985 2011-02-06  Bruno Haible  <bruno@clisp.org>
2986
2987         New module 'wcscoll'.
2988         * modules/wcscoll: New file.
2989         * lib/wchar.in.h (wcscoll): New declaration.
2990         * lib/wcscoll.c: New file.
2991         * lib/wcscoll-impl.h: New file.
2992         * m4/wcscoll.m4: New file.
2993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
2994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
2995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
2996         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
2997         * doc/posix-functions/wcscoll.texi: Mention the new module.
2998
2999 2011-02-06  Bruno Haible  <bruno@clisp.org>
3000
3001         New module 'wcsncasecmp'.
3002         * modules/wcsncasecmp: New file.
3003         * lib/wchar.in.h (wcsncasecmp): New declaration.
3004         * lib/wcsncasecmp.c: New file.
3005         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3006         * m4/wcsncasecmp.m4: New file.
3007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3010         HAVE_WCSNCASECMP.
3011         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3012         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3013
3014 2011-02-06  Bruno Haible  <bruno@clisp.org>
3015
3016         New module 'wcscasecmp'.
3017         * modules/wcscasecmp: New file.
3018         * lib/wchar.in.h (wcscasecmp): New declaration.
3019         * lib/wcscasecmp.c: New file.
3020         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3021         * m4/wcscasecmp.m4: New file.
3022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3024         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3025         HAVE_WCSCASECMP.
3026         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3027         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3028
3029 2011-02-05  Bruno Haible  <bruno@clisp.org>
3030
3031         New module 'wcsncmp'.
3032         * modules/wcsncmp: New file.
3033         * lib/wchar.in.h (wcsncmp): New declaration.
3034         * lib/wcsncmp.c: New file.
3035         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3036         * m4/wcsncmp.m4: New file.
3037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3039         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3040         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3041         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3042
3043 2011-02-05  Bruno Haible  <bruno@clisp.org>
3044
3045         New module 'wcscmp'.
3046         * modules/wcscmp: New file.
3047         * lib/wchar.in.h (wcscmp): New declaration.
3048         * lib/wcscmp.c: New file.
3049         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3050         * m4/wcscmp.m4: New file.
3051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3053         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3054         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3055         * doc/posix-functions/wcscmp.texi: Mention the new module.
3056
3057 2011-02-05  Bruno Haible  <bruno@clisp.org>
3058
3059         New module 'wcsncat'.
3060         * modules/wcsncat: New file.
3061         * lib/wchar.in.h (wcsncat): New declaration.
3062         * lib/wcsncat.c: New file.
3063         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3064         * m4/wcsncat.m4: New file.
3065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3067         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3068         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3069         * doc/posix-functions/wcsncat.texi: Mention the new module.
3070
3071 2011-02-05  Bruno Haible  <bruno@clisp.org>
3072
3073         New module 'wcscat'.
3074         * modules/wcscat: New file.
3075         * lib/wchar.in.h (wcscat): New declaration.
3076         * lib/wcscat.c: New file.
3077         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3078         * m4/wcscat.m4: New file.
3079         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3080         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3081         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3082         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3083         * doc/posix-functions/wcscat.texi: Mention the new module.
3084
3085 2011-02-05  Bruno Haible  <bruno@clisp.org>
3086
3087         New module 'wcpncpy'.
3088         * modules/wcpncpy: New file.
3089         * lib/wchar.in.h (wcpncpy): New declaration.
3090         * lib/wcpncpy.c: New file.
3091         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3092         * m4/wcpncpy.m4: New file.
3093         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3094         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3095         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3096         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3097         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3098
3099 2011-02-05  Bruno Haible  <bruno@clisp.org>
3100
3101         New module 'wcsncpy'.
3102         * modules/wcsncpy: New file.
3103         * lib/wchar.in.h (wcsncpy): New declaration.
3104         * lib/wcsncpy.c: New file.
3105         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3106         * m4/wcsncpy.m4: New file.
3107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3110         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3111         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3112
3113 2011-02-05  Bruno Haible  <bruno@clisp.org>
3114
3115         New module 'wcpcpy'.
3116         * modules/wcpcpy: New file.
3117         * lib/wchar.in.h (wcpcpy): New declaration.
3118         * lib/wcpcpy.c: New file.
3119         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3120         * m4/wcpcpy.m4: New file.
3121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3123         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3124         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3125         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3126
3127 2011-02-05  Bruno Haible  <bruno@clisp.org>
3128
3129         New module 'wcscpy'.
3130         * modules/wcscpy: New file.
3131         * lib/wchar.in.h (wcscpy): New declaration.
3132         * lib/wcscpy.c: New file.
3133         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3134         * m4/wcscpy.m4: New file.
3135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3137         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3138         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3139         * doc/posix-functions/wcscpy.texi: Mention the new module.
3140
3141 2011-02-05  Bruno Haible  <bruno@clisp.org>
3142
3143         New module 'wcsnlen'.
3144         * modules/wcsnlen: New file.
3145         * lib/wchar.in.h (wcsnlen): New declaration.
3146         * lib/wcsnlen.c: New file.
3147         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3148         * m4/wcsnlen.m4: New file.
3149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3152         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3153         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3154
3155 2011-02-05  Bruno Haible  <bruno@clisp.org>
3156
3157         New module 'wcslen'.
3158         * modules/wcslen: New file.
3159         * lib/wchar.in.h (wcslen): New declaration.
3160         * lib/wcslen.c: New file.
3161         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3162         * m4/wcslen.m4: New file.
3163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3166         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3167         * doc/posix-functions/wcslen.texi: Mention the new module.
3168
3169 2011-02-05  Bruno Haible  <bruno@clisp.org>
3170
3171         New module 'wmemset'.
3172         * modules/wmemset: New file.
3173         * lib/wchar.in.h (wmemset): New declaration.
3174         * lib/wmemset.c: New file.
3175         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3176         * m4/wmemset.m4: New file.
3177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3179         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3180         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3181         * doc/posix-functions/wmemset.texi: Mention the new module.
3182
3183 2011-02-05  Bruno Haible  <bruno@clisp.org>
3184
3185         New module 'wmemmove'.
3186         * modules/wmemmove: New file.
3187         * lib/wchar.in.h (wmemmove): New declaration.
3188         * lib/wmemmove.c: New file.
3189         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3190         * m4/wmemmove.m4: New file.
3191         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3192         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3193         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3194         HAVE_WMEMMOVE.
3195         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3196         * doc/posix-functions/wmemmove.texi: Mention the new module.
3197
3198 2011-02-05  Bruno Haible  <bruno@clisp.org>
3199
3200         New module 'wmemcpy'.
3201         * modules/wmemcpy: New file.
3202         * lib/wchar.in.h (wmemcpy): New declaration.
3203         * lib/wmemcpy.c: New file.
3204         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3205         * m4/wmemcpy.m4: New file.
3206         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3207         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3208         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3209         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3210         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3211
3212 2011-02-05  Bruno Haible  <bruno@clisp.org>
3213
3214         New module 'wmemcmp'.
3215         * modules/wmemcmp: New file.
3216         * lib/wchar.in.h (wmemcmp): New declaration.
3217         * lib/wmemcmp.c: New file.
3218         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3219         * m4/wmemcmp.m4: New file.
3220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3222         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3223         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3224         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3225
3226 2011-02-07  Jim Meyering  <meyering@redhat.com>
3227
3228         di-set, ino-map: new modules, from coreutils
3229         * lib/di-set.c: New file.
3230         * lib/di-set.h: Likewise.
3231         * lib/ino-map.c: Likewise.
3232         * lib/ino-map.h: Likewise.
3233         * modules/di-set: Likewise.
3234         * modules/di-set-tests: Likewise.
3235         * modules/ino-map: Likewise.
3236         * modules/ino-map-tests: Likewise.
3237         * tests/test-di-set.c: Likewise.
3238         * tests/test-ino-map.c: Likewise.
3239
3240 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3241
3242         getloadavg: merge minor changes from Emacs
3243
3244         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3245         (getloadavg): Use memset, not bzero.
3246
3247         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3248         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3249         clash (bug#86).
3250
3251 2010-11-14  Bruno Haible  <bruno@clisp.org>
3252
3253         Allow multiple gnulib generated replacements to coexist.
3254         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3255         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3256         * lib/langinfo.in.h (nl_item): Likewise.
3257         * lib/math.in.h (_NaN, NAN): Likewise.
3258         * lib/netdb.in.h (struct addrinfo): Likewise.
3259         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3260         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3261         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3262         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3263         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3264         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3265         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3266         pthread_mutexattr_init, pthread_mutexattr_settype,
3267         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3268         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3269         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3270         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3271         * lib/sched.in.h (struct sched_param): Likewise.
3272         * lib/se-selinux.in.h (security_class_t, security_context_t,
3273         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3274         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3275         lsetfilecon, fsetfilecon, security_check_context,
3276         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3277         Likewise.
3278         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3279         Likewise.
3280         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3281         _gl_function_taking_int_returning_void_t, union sigval,
3282         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3283         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3284         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3285         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3286         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3287         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3288         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3289         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3290         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3291         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3292         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3293         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3294         socklen_t, rpl_fd_isset): Likewise.
3295         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3296         * lib/sys_time.in.h (struct timeval): Likewise.
3297         * lib/sys_times.in.h (struct tms): Likewise.
3298         * lib/sys_utsname.in.h (struct utsname):
3299         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3300         * lib/unistd.in.h (getpagesize): Likewise.
3301         * lib/wchar.in.h (mbstate_t): Likewise.
3302         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3303         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3304         towlower, towupper): Likewise.
3305         Reported by Sam Steingold <sds@gnu.org>.
3306
3307 2011-02-05  Eric Blake  <eblake@redhat.com>
3308
3309         unsetenv: work around Haiku issues
3310         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3311         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3312
3313 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3314
3315         libposix: avoid calling error() within libposix
3316         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3317         is defined.
3318
3319 2011-02-05  Eric Blake  <eblake@redhat.com>
3320
3321         strerror_r-posix: port to cygwin
3322         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3323         implementation.
3324         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3325         * tests/test-strerror_r.c (main): Fix test.
3326         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3327         issue.
3328
3329 2011-02-05  Bruno Haible  <bruno@clisp.org>
3330
3331         New module 'wmemchr'.
3332         * modules/wmemchr: New file.
3333         * lib/wchar.in.h (wmemchr): New declaration.
3334         * lib/wmemchr.c: New file.
3335         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3336         * m4/wmemchr.m4: New file.
3337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3339         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3340         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3341         * doc/posix-functions/wmemchr.texi: Mention the new module.
3342
3343 2011-02-04  Eric Blake  <eblake@redhat.com>
3344
3345         fdopendir: detect FreeBSD bug
3346         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3347         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3348
3349 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3350
3351         stdbool: do not define HAVE_STDBOOL_H
3352         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
3353         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3354         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3355         imported from the latest Autoconf git.  It was motivated by Emacs,
3356         which uses gnulib but does not need HAVE_STDBOOL_H.
3357
3358 2011-02-04  Bruno Haible  <bruno@clisp.org>
3359
3360         wcsnrtombs: Prepare for new module wwcsnrtombs.
3361         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3362         * lib/wcsnrtombs.c: Include it.
3363         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3364
3365         wcsrtombs: Prepare for new module wwcsrtombs.
3366         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3367         * lib/wcsrtombs.c: Include it.
3368         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3369
3370         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3371         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3372         * lib/mbsnrtowcs.c: Include it.
3373         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3374
3375         mbsrtowcs: Prepare for new module mbsrtowwcs.
3376         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3377         * lib/mbsrtowcs.c: Include it.
3378         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3379
3380 2011-02-04  Bruno Haible  <bruno@clisp.org>
3381
3382         vasnprintf: Reduce use of malloc for small format strings.
3383         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3384         (arguments): Add room for the first 7 arguments.
3385         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3386         (char_directives, u8_directives, u16_directives, u32_directives): Add
3387         room for the first 7 directives.
3388         * lib/printf-parse.c: Include <string.h>.
3389         (PRINTF_PARSE): Change memory handling code so that it uses the first
3390         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3391         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3392         Reported by Pádraig Brady <P@draigbrady.com>.
3393
3394 2011-01-31  Eric Blake  <eblake@redhat.com>
3395
3396         dup2: work around Haiku bug
3397         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3398         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3399         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3400         * tests/test-dup2.c (main): Enhance test.
3401
3402 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3403
3404         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3405         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3406         declared by eglibc 2.11.2.
3407         * lib/stdio.in.h: Likewise.
3408
3409 2011-01-31  Eric Blake  <eblake@redhat.com>
3410
3411         ignore-value: add missing test dependency
3412         * tests/test-ignore-value.c: Revert previous change; stdio.h
3413         provides off_t.
3414         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3415
3416 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3417
3418         mktime: clarify long_int width checking
3419         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
3420         the top level, to make it clearer that the assumption about
3421         long_int width is being checked.  See
3422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
3423
3424 2011-01-30  Simon Josefsson  <simon@josefsson.org>
3425
3426         ignore-value: Fix self-test.
3427         * tests/test-ignore-value.c: Include sys/types.h for off_t.
3428
3429 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
3430
3431         TYPE_MAXIMUM: avoid theoretically undefined behavior
3432         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
3433         negative number, which the C Standard says has undefined behavior.
3434         In practice this is not a problem, but might as well do it by the book.
3435         Reported by Rich Felker and Eric Blake; see
3436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
3437         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
3438         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3439         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3440         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
3441         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3442         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
3443
3444         mktime: #undef mktime before #defining it
3445         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
3446
3447         mktime: systematically normalize tm_isdst comparisons
3448         * lib/mktime.c (isdst_differ): New function.
3449         (__mktime_internal): Use it systematically for all isdst comparisons.
3450         This completes the fix for libc BZ #6723, and removes the need for
3451         normalizing tm_isdst.  See
3452         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
3453         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
3454
3455         mktime: fix some integer overflow issues and sidestep the rest
3456
3457         This was prompted by a bug report by Benjamin Lindner for MinGW
3458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
3459         His bug is due to signed integer overflow (0 - INT_MIN), and I
3460         I scanned through mktime.c looking for other integer overflow
3461         problems, fixing all the bugs I found.
3462
3463         Although the C Standard says the resulting code is still not safe
3464         in the presence of integer overflow, in practice it should be good
3465         enough for all real-world two's-complement implementations, except
3466         for debugging environments that deliberately trap on integer
3467         overflow (e.g., gcc -ftrapv).
3468
3469         * lib/mktime.c (WRAPV): New macro.
3470         (SHR): Also check that long_int and time_t shift right in the
3471         usual way, before using the fast-but-unportable method.
3472         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
3473         used.  The code already assumed two's complement, so there's
3474         no need to test for alternatives.  All uses removed.
3475         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
3476         the C standard.  Problem reported by Rich Felker in
3477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
3478         (twos_complement_arithmetic): Also check long_int and time_t.
3479         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
3480         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
3481         (__mktime_internal): Avoid integer overflow with unary subtraction
3482         in two instances where -1 - X is an adequate replacement for -X,
3483         since the calculations are approximate.
3484
3485 2011-01-29  Eric Blake  <eblake@redhat.com>
3486
3487         mktime: avoid infinite loop
3488         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
3489         type; behavior is still undefined but portable to all known targets.
3490         Reported by Rich Felker.
3491
3492 2011-01-29  Simon Josefsson  <simon@josefsson.org>
3493
3494         rename, unlink, same-inode: Relicense.
3495         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
3496         * modules/unlink (License): Likewise.
3497         * modules/same-inode (License): Likewise.
3498
3499 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3500
3501         mktime: avoid problems on NetBSD 5 / i386
3502         * lib/mktime.c (long_int): New type.  This works around a problem
3503         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
3504         but time_t is 64 bits, and where I expect the existing code is
3505         wrong in some cases.
3506         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
3507         (ydhms_diff): Bring back the compile-time check for wide-enough
3508         year and yday.
3509
3510         mktime: fix misspelling in comment
3511         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
3512         This merges all recent glibc changes of importance.
3513
3514 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3515
3516         move-if-change: cope with concurrent mv of identical file.
3517         * build-aux/move-if-change (CMPPROG): Accept environment
3518         variable as an override for `cmp'.
3519         (usage): Document CMPPROG.
3520         Adjust comparison to drop stdout.  Cope with failure of mv if
3521         the target file exists and is identical to the source, for
3522         parallel builds.
3523         Report from H.J. Lu against binutils in PR binutils/12283.
3524
3525 2011-01-28  Bruce Korb  <bkorb@gnu.org>
3526
3527         * users.txt: Mention sharutils.
3528
3529 2011-01-28  Simon Josefsson  <simon@josefsson.org>
3530
3531         * users.txt: Mention OATH Toolkit.
3532
3533 2011-01-27  Bruno Haible  <bruno@clisp.org>
3534
3535         Prepare for supporting FreeBSD 10.
3536         * build-aux/config.libpath: Remove handling of freebsd1*.
3537
3538 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
3539
3540         Prepare for supporting FreeBSD 10.
3541         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
3542         match FreeBSD 10.0.
3543
3544 2011-01-27  Bruno Haible  <bruno@clisp.org>
3545
3546         vma-iter, get-rusage-as: Add OpenBSD support.
3547         * modules/vma-iter (configure.ac): Test for mquery.
3548         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
3549         * lib/vma-iter.c: Include <sys/mman.h>.
3550         (vma_iterate): Add an implementation based on mquery().
3551         * lib/resource-ext.h (get_rusage_as): Update comments.
3552         * lib/get-rusage-as.c: Likewise.
3553         * lib/get-rusage-data.c: Likewise.
3554
3555 2011-01-26  Karl Berry  <karl@gnu.org>
3556
3557         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
3558         variables to make it easier to override the makeinfo program used.
3559
3560 2011-01-26  Eric Blake  <eblake@redhat.com>
3561
3562         fcntl: work around Haiku F_DUPFD bugs
3563         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
3564         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
3565         cloexec bit on duplication.
3566         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
3567
3568 2011-01-26  Bruno Haible  <bruno@clisp.org>
3569
3570         Enable memory leak tests on AIX.
3571         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
3572         * tests/test-fprintf-posix3.c (main): Likewise.
3573
3574 2011-01-26  Bruno Haible  <bruno@clisp.org>
3575
3576         Tests for module 'get-rusage-data'.
3577         * modules/get-rusage-data-tests: New file.
3578         * tests/test-get-rusage-data.c: New file.
3579
3580         New module 'get-rusage-data'.
3581         * lib/resource-ext.h (get_rusage_data): New declaration.
3582         * lib/get-rusage-data.c: New file.
3583         * modules/get-rusage-data: New file.
3584
3585 2011-01-25  Bruno Haible  <bruno@clisp.org>
3586
3587         get-rusage-as: Allow for easier testing.
3588         * lib/resource-ext.h (get_rusage_as): Add comment.
3589         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
3590         (main): New function for interactive testing.
3591
3592 2011-01-25  Bruno Haible  <bruno@clisp.org>
3593
3594         vma-iter: Treat Haiku like BeOS.
3595         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
3596         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
3597
3598 2011-01-25  Eric Blake  <eblake@redhat.com>
3599
3600         c-stack: fix regression on cygwin when libsigsegv is present
3601         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
3602
3603 2011-01-24  Bruno Haible  <bruno@clisp.org>
3604
3605         vma-iter: Avoid empty intervals.
3606         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
3607         on an empty interval.
3608
3609 2011-01-24  Jim Meyering  <meyering@redhat.com>
3610
3611         u64: remove unnecessary #include
3612         * lib/u64.h: Don't include <stddef.h>.  It was not used.
3613
3614 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3615
3616         Allow the user to avoid the HAVE_RAW_DECL_* macros.
3617         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
3618
3619 2011-01-23  Bruno Haible  <bruno@clisp.org>
3620
3621         New module 'vma-iter'.
3622         * lib/vma-iter.h: New file.
3623         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
3624         * modules/vma-iter: New file.
3625         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
3626         for get_rusage_as_via_iterator.
3627         (vma_iterate_callback): New function.
3628         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
3629         * modules/get-rusage-as (Depends-on): Add vma-iter.
3630
3631 2011-01-23  Bruno Haible  <bruno@clisp.org>
3632
3633         uninorm: Tweak includes.
3634         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
3635         Reported by Jim Meyering.
3636
3637 2011-01-23  Bruno Haible  <bruno@clisp.org>
3638
3639         get-rusage-as: Improve on NetBSD.
3640         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
3641         /proc, like on FreeBSD.
3642
3643 2011-01-23  Jim Meyering  <meyering@redhat.com>
3644
3645         xreadlink.h: remove unnecessary #include
3646         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
3647
3648         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
3649         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
3650
3651 2011-01-23  Bruno Haible  <bruno@clisp.org>
3652
3653         get-rusage-as: Fix bug.
3654         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
3655         original limit when aborting the first loop.
3656
3657 2011-01-23  Bruno Haible  <bruno@clisp.org>
3658
3659         wctype: Ensure valid C syntax.
3660         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
3661         unconditionally, instead of gl_NEXT_HEADERS conditionally.
3662
3663 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3664
3665         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
3666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
3667         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
3668         as they are needed only for configure's test case.
3669         This removes two unnecessary symbols from config.h.
3670
3671         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
3672         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
3673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
3674         AC_CHECK_HEADERS_ONCE on a header that we also invoke
3675         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
3676         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
3677         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
3678         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3679         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3680         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3681         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3682         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3683         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3684         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3685         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3686         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3687         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3688         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3689
3690 2011-01-21  Eric Blake  <eblake@redhat.com>
3691
3692         maintainer-makefile: work with older git for submodule check
3693         * top/maint.mk (public-submodule-commit): Rewrite to avoid
3694         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
3695         Reported by Matthias Bolte.
3696
3697         bootstrap: minor portability fixes
3698         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
3699         (usage): Omit leading capital and trailing . on help phrases, per
3700         GNU Coding Standards.
3701         (check_versions, top level): Prefix messages with script name.
3702
3703 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
3704
3705         bootstrap: support --no-git option
3706         * build-aux/bootstrap: Add --no-git option, to be used when
3707         --gnulib-srcdir points to the exact desired checkout.
3708
3709 2011-01-21  Eric Blake  <eblake@redhat.com>
3710
3711         strerror_r-posix: work with glibc 2.13
3712         * lib/strerror_r.c (strerror_r): Fix return type.
3713
3714 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3715             Bruno Haible  <bruno@clisp.org>
3716
3717         uN_strstr: New unit tests.
3718         * modules/unistr/u8-strstr-tests: New file.
3719         * modules/unistr/u16-strstr-tests: New file.
3720         * modules/unistr/u32-strstr-tests: New file.
3721         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
3722         * tests/unistr/test-u8-strstr.c: New file.
3723         * tests/unistr/test-u16-strstr.c: New file.
3724         * tests/unistr/test-u32-strstr.c: New file.
3725
3726 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3727             Bruno Haible  <bruno@clisp.org>
3728
3729         Make uN_strstr functions O(n) worst-case.
3730         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
3731         16-bit and 32-bit unit cases, use the unibyte algorithm from
3732         lib/mbsstr.c.
3733         * lib/unistr/u8-strstr.c: Include <string.h>.
3734         (UNIT_IS_UINT8_T): New macro.
3735         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
3736         (U_STRLEN, U_STRNLEN): New macros.
3737         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
3738         (U_STRLEN, U_STRNLEN): New macros.
3739         * modules/unistr/u8-strstr (Depends-on): Add strstr.
3740         (configure.ac): Update required libunistring version.
3741         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
3742         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
3743         malloca.
3744         (configure.ac): Update required libunistring version.
3745         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
3746         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
3747         malloca.
3748         (configure.ac): Update required libunistring version.
3749
3750 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3751             Bruno Haible  <bruno@clisp.org>
3752
3753         Prepare for faster uN_strstr functions.
3754         * lib/str-kmp.h: Support definable UNITs.
3755         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
3756         needle_len argument.
3757         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
3758         * lib/mbscasestr.c (mbscasestr): Likewise.
3759
3760 2011-01-21  Pádraig Brady <P@draigBrady.com>
3761
3762         malloca-tests: make faster by unsetting MALLOC_PERTURB_
3763         * tests/test-malloca.c (main): Unset the environment variable
3764         to greatly speed up the test.
3765         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
3766         * modules/malloca-tests: Depend on unsetenv.
3767
3768 2011-01-21  Pádraig Brady <P@draigBrady.com>
3769
3770         ignore-value: remove stdint dependency
3771         * lib/ignore-value.h: Remove <stdint.h>
3772         * modules/ignore-value: Remove stdint dependency.
3773
3774 2011-01-21  Jim Meyering  <meyering@redhat.com>
3775
3776         maint.mk: adjust variable name to be consistent with other gl_ vars
3777         * top/maint.mk (gl_public_submodule_commit): Rename the variable
3778         to be lower case.
3779
3780 2011-01-20  Jim Meyering  <meyering@redhat.com>
3781
3782         maint.mk: make "check" depend on public-submodule-commit by default
3783         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
3784
3785 2011-01-20  Bruno Haible  <bruno@clisp.org>
3786
3787         mbfile, mbiter: Complete change from 2008-12-21.
3788         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
3789         * m4/mbiter.m4 (gl_MBITER): Likewise.
3790
3791 2011-01-20  Jim Meyering  <meyering@redhat.com>
3792
3793         init.sh: insert space between each function name and "()"
3794         * tests/init.sh: Make it a little easier to see that a function's
3795         name is "warn_", and not "warn" when looking at the first part of
3796         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
3797
3798 2011-01-20  Jim Meyering  <meyering@redhat.com>
3799
3800         mountlist: clean up code formatting
3801         * lib/mountlist.c (read_file_system_list): Split a long line,
3802         correct bracing style, use NULL in place of "(struct statfs *)0",
3803         don't parenthesize return value, add spaces around "=" and after
3804         ";-in-for-stmt".
3805
3806 2011-01-14  Markus Duft <mduft@gentoo.org>
3807
3808         mountlist: add support for Interix
3809         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
3810         Apply statvfs to all entries of /dev/fs.
3811         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
3812         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
3813
3814 2011-01-20  Jim Meyering  <meyering@redhat.com>
3815
3816         maint.mk: improve the public-submodule-commit rule
3817         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
3818         to suppress printing of its commands... unless V=1.
3819         Add git submodule's --quiet option to suppress printing of e.g.,
3820         "Entering gnulib" output.
3821         "cd" into $(srcdir) before running git submodule.
3822
3823 2011-01-20  Bruno Haible  <bruno@clisp.org>
3824
3825         include_next: Fix bug introduced on 2011-01-18.
3826         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
3827         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
3828         ac_cv_header_... variable if the second argument is not 'check'.
3829         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
3830         gl_NEXT_HEADERS_INTERNAL.
3831
3832 2011-01-20  Bruno Haible  <bruno@clisp.org>
3833
3834         Allow the user to avoid the GNULIB_TEST_* macros.
3835         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
3836         Suggested by Paul Eggert.
3837
3838 2011-01-14  Jim Meyering  <meyering@redhat.com>
3839
3840         bootstrap: avoid failure when there is no .gitmodules file
3841         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
3842         has been assigned to, even when its value is the empty string.
3843         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
3844         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
3845         Reported by John W. Eaton <jwe@gnu.org>.
3846
3847 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
3848
3849         assume <ctype.h>, ..., <time.h> exist
3850         For years gnulib has been assuming the existence of the headers
3851         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
3852         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
3853         them, since they don't appear to be needed.
3854         * README (Portability guidelines): Document this.
3855         * lib/flock.c: Assume <fcntl.h> exists.
3856         * lib/regex_internal.h: Assume <locale.h> exists.
3857         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
3858         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
3859         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
3860         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
3861         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
3862         * m4/regex.m4 (gl_REGEX): Likewise.
3863         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
3864         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
3865         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
3866         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
3867         * tests/test-argp.c: Likewise.
3868         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
3869
3870         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
3871         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
3872         AA_APPLE_UNIVERSAL_BUILD.  See
3873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
3874         * NEWS: Document this.
3875
3876 2011-01-19  Eric Blake  <eblake@redhat.com>
3877
3878         c-stack: assume stack overflow if SA_SIGINFO unsupported
3879         * lib/c-stack.c (SIGACTION_WORKS): Rename...
3880         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
3881         sigaction will work.
3882         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
3883         behavior match Linux.
3884         * tests/test-c-stack.c (main): Prefer NULL for pointers.
3885
3886         stdbool-tests: accomodate Haiku
3887         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
3888
3889         binary-io: fix O_TEXT on Haiku
3890         * modules/binary-io (Depends-on): Add fcntl-h.
3891         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
3892         than blindly undefining O_TEXT.
3893         Reported by Scott McCreary.
3894
3895 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3896
3897         include_next: do not check for standard headers like stddef.h
3898
3899         I found this problem when modifying Emacs to use gnulib.
3900         I noticed that it added HAVE_STDDEF_H to config.h, even though
3901         gnulib always assumes <stddef.h> exists as per README and this
3902         symbol is unnecessary.
3903         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
3904         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
3905         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
3906         faster for headers like stddef.h that are known to exist.
3907         (gl_CHECK_NEXT_HEADERS): Use it.
3908         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
3909         rather than gl_CHECK_NEXT_HEADERS.
3910         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
3911         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
3912
3913 2011-01-18  Eric Blake  <eblake@redhat.com>
3914
3915         ansi-c++-opt: skip C++ dependency style if C++ is unused
3916         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
3917         tests when we know C++ compilation is not desired.
3918         Reported by Scott McCreary.
3919
3920 2011-01-18  Bruno Haible  <bruno@clisp.org>
3921
3922         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
3923         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
3924         (main): Perform test also when getrlimit and setrlimit don't exist or
3925         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
3926         limiting the address space size using setrlimit, compare the address
3927         space size before and after the the test.
3928         * tests/test-dprintf-posix2.c: Likewise.
3929         * tests/test-fprintf-posix3.sh: Update skip messages.
3930         * tests/test-dprintf-posix2.sh: Likewise.
3931         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
3932         * modules/dprintf-posix-tests (Depends-on): Likewise.
3933         Reported by Bruce Korb <bkorb@gnu.org> and
3934         Gary V. Vaughan <gary@gnu.org>.
3935
3936 2011-01-18  Bruno Haible  <bruno@clisp.org>
3937
3938         get-rusage-as: Improvement for Cygwin.
3939         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
3940         areas that are merely reserved.
3941
3942 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3943
3944         strftime: remove dependencies on multibyte modules
3945
3946         strftime depended on mbrlen, mbsinit, and wchar, but these modules
3947         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
3948         only if __osf__ is defined, and I suspect OSF doesn't need these
3949         other modules.  If my guess is wrong, we'll need to come up with a
3950         variant of strftime that doesn't need the multibyte modules.
3951
3952         I discovered this problem when attempting modify Emacs to use the
3953         strftime module.  With the previous gnulib, this caused Emacs to
3954         need 31 new files, ranging from lib/config.charset to
3955         m4/wint_t.m4.  This was overkill and I expect would be offputting
3956         to the Emacs maintainers.  After this change, only 6 new files are
3957         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
3958         stdbool.m4, and tm_gmtoff.m4.
3959
3960         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
3961         Suggested by Bruno Haible in
3962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
3963         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
3964         and do not check for wchar.h.
3965         * modules/strftime (Files): Remove m4/mbstate_t.m4.
3966         (Depends-on): Remove mbrlen, mbsinit, wchar.
3967
3968 2011-01-18  Bruno Haible  <bruno@clisp.org>
3969
3970         Tests for module 'get-rusage-as'.
3971         * modules/get-rusage-as-tests: New file.
3972         * tests/test-get-rusage-as.c: New file.
3973
3974         New module 'get-rusage-as'.
3975         * modules/get-rusage-as: New file.
3976         * lib/resource-ext.h: New file.
3977         * lib/get-rusage-as.c: New file.
3978
3979 2011-01-17  Eric Blake  <eblake@redhat.com>
3980
3981         sigaction: relax license from LGPLv3+ to LGPLv2+
3982         * modules/sigaction (License): Relax to LGPLv2+.
3983
3984 2011-01-14  Bruno Haible  <bruno@clisp.org>
3985
3986         filemode: Make function declarations usable in C++ mode.
3987         * lib/filemode.h: Enclose function declarations in extern "C" block.
3988         Reported by John W. Eaton <jwe@gnu.org>.
3989
3990 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
3991
3992         save-cwd: no longer include "xgetcwd.h"
3993         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
3994         This avoids a compilation failure in projects that use save-cwd
3995         without also using the xgetcwd module.
3996
3997 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3998
3999         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4000         This is so that a program like Emacs, which needs only dtoastr,
4001         does not have to bother with distributing and compiling ftoastr
4002         and ldtoastr.
4003         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4004         * modules/dtoastr, modules/ldtoastr: New files.
4005         * modules/ftoastr: Now works just for 'float'.
4006         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4007         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4008         dtoastr.c, ldtoastr.c.
4009
4010 2011-01-11  Jim Meyering  <meyering@redhat.com>
4011
4012         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4013         There is no need to work around the lack of the fchdir function,
4014         since gnulib can now provide a replacement when required.
4015         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4016         * modules/save-cwd (Depends-on): Add fchdir.
4017
4018 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4019
4020         openat, save-cwd: avoid xmalloc
4021
4022         This removes a direct (but undocumented) dependency of openat on
4023         xalloc, along with an indirect dependency via save-cwd.  It also
4024         removes a dependency of save-cwd on xgetcwd, and thereby
4025         indirectly on xalloc.  This change causes the openat substitute
4026         to fall back on save_cwd when memory is tight, and for save_cwd to
4027         fail instead of dying when memory is tight, but that's good enough.
4028         Problem and initial idea for fix reported by Bastien Roucaries in
4029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4030
4031         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4032         xalloc.h (for xmalloc).
4033         (openat_proc_name): Use malloc, not xmalloc.
4034         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4035         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4036
4037         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4038         This avoids heap allocation for file names whose lengths are in
4039         the range 512..1023, with the upper bound increasing to at most
4040         4031 depending on the platform's PATH_MAX.  (We do not want
4041         pathmax.h here as it might supply a non-constant PATH_MAX.)
4042         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4043         Perhaps they should be moved to malloca.h?
4044         (OPENAT_BUFFER_SIZE): Use them.
4045
4046 2011-01-10  Bruno Haible  <bruno@clisp.org>
4047
4048         doc: Update users.txt.
4049         * users.txt: Add recutils.
4050
4051 2011-01-09  Karl Berry  <karl@gnu.org>
4052
4053         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4054
4055         * doc/configmake.texi: New file.
4056         * doc/gnulib.texi: Include it.
4057         * modules/configmake: Move documentation from here.
4058
4059 2011-01-09  Bruno Haible  <bruno@clisp.org>
4060
4061         Update to Unicode 6.0.0.
4062         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4063         (get_lbp): Update for Unicode 6.0.0.
4064         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4065         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4066         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4067         U+11001, U+11038..U+11046. Remove U+06DE.
4068         (uc_width): Fix bounds of planes.
4069         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4070         lib/uniwidth/width.c.
4071         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4072         trailing whitespace removed.
4073         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4074         without comments, but with the original copyright notice.
4075         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4076         * lib/unicase/ignorable.h: Likewise.
4077         * lib/unicase/tocasefold.h: Likewise.
4078         * lib/unicase/tolower.h: Likewise.
4079         * lib/unicase/totitle.h: Likewise.
4080         * lib/unicase/toupper.h: Likewise.
4081         * lib/unictype/bidi_of.h: Likewise.
4082         * lib/unictype/blocks.h: Likewise.
4083         * lib/unictype/categ_C.h: Likewise.
4084         * lib/unictype/categ_Cn.h: Likewise.
4085         * lib/unictype/categ_L.h: Likewise.
4086         * lib/unictype/categ_Ll.h: Likewise.
4087         * lib/unictype/categ_Lm.h: Likewise.
4088         * lib/unictype/categ_Lo.h: Likewise.
4089         * lib/unictype/categ_Lu.h: Likewise.
4090         * lib/unictype/categ_M.h: Likewise.
4091         * lib/unictype/categ_Mc.h: Likewise.
4092         * lib/unictype/categ_Me.h: Likewise.
4093         * lib/unictype/categ_Mn.h: Likewise.
4094         * lib/unictype/categ_N.h: Likewise.
4095         * lib/unictype/categ_Nd.h: Likewise.
4096         * lib/unictype/categ_No.h: Likewise.
4097         * lib/unictype/categ_P.h: Likewise.
4098         * lib/unictype/categ_Po.h: Likewise.
4099         * lib/unictype/categ_S.h: Likewise.
4100         * lib/unictype/categ_Sc.h: Likewise.
4101         * lib/unictype/categ_Sk.h: Likewise.
4102         * lib/unictype/categ_Sm.h: Likewise.
4103         * lib/unictype/categ_So.h: Likewise.
4104         * lib/unictype/categ_of.h: Likewise.
4105         * lib/unictype/combining.h: Likewise.
4106         * lib/unictype/ctype_alnum.h: Likewise.
4107         * lib/unictype/ctype_alpha.h: Likewise.
4108         * lib/unictype/ctype_graph.h: Likewise.
4109         * lib/unictype/ctype_lower.h: Likewise.
4110         * lib/unictype/ctype_print.h: Likewise.
4111         * lib/unictype/ctype_punct.h: Likewise.
4112         * lib/unictype/ctype_upper.h: Likewise.
4113         * lib/unictype/decdigit.h: Likewise.
4114         * lib/unictype/digit.h: Likewise.
4115         * lib/unictype/numeric.h: Likewise.
4116         * lib/unictype/pr_alphabetic.h: Likewise.
4117         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4118         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4119         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4120         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4121         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4122         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4123         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4124         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4125         * lib/unictype/pr_case_ignorable.h: Likewise.
4126         * lib/unictype/pr_cased.h: Likewise.
4127         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4128         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4129         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4130         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4131         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4132         * lib/unictype/pr_combining.h: Likewise.
4133         * lib/unictype/pr_composite.h: Likewise.
4134         * lib/unictype/pr_currency_symbol.h: Likewise.
4135         * lib/unictype/pr_decimal_digit.h: Likewise.
4136         * lib/unictype/pr_deprecated.h: Likewise.
4137         * lib/unictype/pr_format_control.h: Likewise.
4138         * lib/unictype/pr_grapheme_base.h: Likewise.
4139         * lib/unictype/pr_grapheme_extend.h: Likewise.
4140         * lib/unictype/pr_grapheme_link.h: Likewise.
4141         * lib/unictype/pr_id_continue.h: Likewise.
4142         * lib/unictype/pr_id_start.h: Likewise.
4143         * lib/unictype/pr_ideographic.h: Likewise.
4144         * lib/unictype/pr_lowercase.h: Likewise.
4145         * lib/unictype/pr_math.h: Likewise.
4146         * lib/unictype/pr_numeric.h: Likewise.
4147         * lib/unictype/pr_other_alphabetic.h: Likewise.
4148         * lib/unictype/pr_other_id_continue.h: Likewise.
4149         * lib/unictype/pr_other_math.h: Likewise.
4150         * lib/unictype/pr_punctuation.h: Likewise.
4151         * lib/unictype/pr_sentence_terminal.h: Likewise.
4152         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4153         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4154         * lib/unictype/pr_unified_ideograph.h: Likewise.
4155         * lib/unictype/pr_uppercase.h: Likewise.
4156         * lib/unictype/pr_xid_continue.h: Likewise.
4157         * lib/unictype/pr_xid_start.h: Likewise.
4158         * lib/unictype/scripts.h: Likewise.
4159         * lib/unictype/scripts_byname.gperf: Likewise.
4160         * lib/unictype/sy_java_ident.h: Likewise.
4161         * lib/unigbrk/gbrkprop.h: Likewise.
4162         * lib/unilbrk/lbrkprop1.h: Likewise.
4163         * lib/unilbrk/lbrkprop2.h: Likewise.
4164         * lib/uninorm/decomposition-table2.h: Likewise.
4165         * lib/uniwbrk/wbrkprop.h: Likewise.
4166         * tests/unicase/test-cased.c: Likewise.
4167         * tests/unicase/test-ignorable.c: Likewise.
4168         * tests/unicase/test-uc_tolower.c: Likewise.
4169         * tests/unicase/test-uc_totitle.c: Likewise.
4170         * tests/unicase/test-uc_toupper.c: Likewise.
4171         * tests/unictype/test-categ_C.c: Likewise.
4172         * tests/unictype/test-categ_Cn.c: Likewise.
4173         * tests/unictype/test-categ_L.c: Likewise.
4174         * tests/unictype/test-categ_Ll.c: Likewise.
4175         * tests/unictype/test-categ_Lm.c: Likewise.
4176         * tests/unictype/test-categ_Lo.c: Likewise.
4177         * tests/unictype/test-categ_Lu.c: Likewise.
4178         * tests/unictype/test-categ_M.c: Likewise.
4179         * tests/unictype/test-categ_Mc.c: Likewise.
4180         * tests/unictype/test-categ_Me.c: Likewise.
4181         * tests/unictype/test-categ_Mn.c: Likewise.
4182         * tests/unictype/test-categ_N.c: Likewise.
4183         * tests/unictype/test-categ_Nd.c: Likewise.
4184         * tests/unictype/test-categ_No.c: Likewise.
4185         * tests/unictype/test-categ_P.c: Likewise.
4186         * tests/unictype/test-categ_Po.c: Likewise.
4187         * tests/unictype/test-categ_S.c: Likewise.
4188         * tests/unictype/test-categ_Sc.c: Likewise.
4189         * tests/unictype/test-categ_Sk.c: Likewise.
4190         * tests/unictype/test-categ_Sm.c: Likewise.
4191         * tests/unictype/test-categ_So.c: Likewise.
4192         * tests/unictype/test-ctype_alnum.c: Likewise.
4193         * tests/unictype/test-ctype_alpha.c: Likewise.
4194         * tests/unictype/test-ctype_graph.c: Likewise.
4195         * tests/unictype/test-ctype_lower.c: Likewise.
4196         * tests/unictype/test-ctype_print.c: Likewise.
4197         * tests/unictype/test-ctype_punct.c: Likewise.
4198         * tests/unictype/test-ctype_upper.c: Likewise.
4199         * tests/unictype/test-decdigit.h: Likewise.
4200         * tests/unictype/test-digit.h: Likewise.
4201         * tests/unictype/test-numeric.h: Likewise.
4202         * tests/unictype/test-pr_alphabetic.c: Likewise.
4203         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4204         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4205         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4206         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4207         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4208         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4209         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4210         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4211         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4212         * tests/unictype/test-pr_cased.c: Likewise.
4213         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4214         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4215         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4216         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4217         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4218         * tests/unictype/test-pr_combining.c: Likewise.
4219         * tests/unictype/test-pr_composite.c: Likewise.
4220         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4221         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4222         * tests/unictype/test-pr_deprecated.c: Likewise.
4223         * tests/unictype/test-pr_format_control.c: Likewise.
4224         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4225         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4226         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4227         * tests/unictype/test-pr_id_continue.c: Likewise.
4228         * tests/unictype/test-pr_id_start.c: Likewise.
4229         * tests/unictype/test-pr_ideographic.c: Likewise.
4230         * tests/unictype/test-pr_lowercase.c: Likewise.
4231         * tests/unictype/test-pr_math.c: Likewise.
4232         * tests/unictype/test-pr_numeric.c: Likewise.
4233         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4234         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4235         * tests/unictype/test-pr_other_math.c: Likewise.
4236         * tests/unictype/test-pr_punctuation.c: Likewise.
4237         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4238         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4239         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4240         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4241         * tests/unictype/test-pr_uppercase.c: Likewise.
4242         * tests/unictype/test-pr_xid_continue.c: Likewise.
4243         * tests/unictype/test-pr_xid_start.c: Likewise.
4244         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4245         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4246         changes.
4247         * lib/unictype/categ_Cc.h: Likewise.
4248         * lib/unictype/categ_Cf.h: Likewise.
4249         * lib/unictype/categ_Co.h: Likewise.
4250         * lib/unictype/categ_Cs.h: Likewise.
4251         * lib/unictype/categ_Lt.h: Likewise.
4252         * lib/unictype/categ_Nl.h: Likewise.
4253         * lib/unictype/categ_Pc.h: Likewise.
4254         * lib/unictype/categ_Pd.h: Likewise.
4255         * lib/unictype/categ_Pe.h: Likewise.
4256         * lib/unictype/categ_Pf.h: Likewise.
4257         * lib/unictype/categ_Pi.h: Likewise.
4258         * lib/unictype/categ_Ps.h: Likewise.
4259         * lib/unictype/categ_Z.h: Likewise.
4260         * lib/unictype/categ_Zl.h: Likewise.
4261         * lib/unictype/categ_Zp.h: Likewise.
4262         * lib/unictype/categ_Zs.h: Likewise.
4263         * lib/unictype/ctype_blank.h: Likewise.
4264         * lib/unictype/ctype_cntrl.h: Likewise.
4265         * lib/unictype/ctype_digit.h: Likewise.
4266         * lib/unictype/ctype_space.h: Likewise.
4267         * lib/unictype/ctype_xdigit.h: Likewise.
4268         * lib/unictype/mirror.h: Likewise.
4269         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4270         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4271         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4272         * lib/unictype/pr_bidi_control.h: Likewise.
4273         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4274         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4275         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4276         * lib/unictype/pr_bidi_pdf.h: Likewise.
4277         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4278         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4279         * lib/unictype/pr_dash.h: Likewise.
4280         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4281         * lib/unictype/pr_diacritic.h: Likewise.
4282         * lib/unictype/pr_extender.h: Likewise.
4283         * lib/unictype/pr_hex_digit.h: Likewise.
4284         * lib/unictype/pr_hyphen.h: Likewise.
4285         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4286         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4287         * lib/unictype/pr_ignorable_control.h: Likewise.
4288         * lib/unictype/pr_iso_control.h: Likewise.
4289         * lib/unictype/pr_join_control.h: Likewise.
4290         * lib/unictype/pr_left_of_pair.h: Likewise.
4291         * lib/unictype/pr_line_separator.h: Likewise.
4292         * lib/unictype/pr_logical_order_exception.h: Likewise.
4293         * lib/unictype/pr_non_break.h: Likewise.
4294         * lib/unictype/pr_not_a_character.h: Likewise.
4295         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4296         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4297         * lib/unictype/pr_other_id_start.h: Likewise.
4298         * lib/unictype/pr_other_lowercase.h: Likewise.
4299         * lib/unictype/pr_other_uppercase.h: Likewise.
4300         * lib/unictype/pr_paired_punctuation.h: Likewise.
4301         * lib/unictype/pr_paragraph_separator.h: Likewise.
4302         * lib/unictype/pr_pattern_syntax.h: Likewise.
4303         * lib/unictype/pr_pattern_white_space.h: Likewise.
4304         * lib/unictype/pr_private_use.h: Likewise.
4305         * lib/unictype/pr_quotation_mark.h: Likewise.
4306         * lib/unictype/pr_radical.h: Likewise.
4307         * lib/unictype/pr_soft_dotted.h: Likewise.
4308         * lib/unictype/pr_space.h: Likewise.
4309         * lib/unictype/pr_titlecase.h: Likewise.
4310         * lib/unictype/pr_variation_selector.h: Likewise.
4311         * lib/unictype/pr_white_space.h: Likewise.
4312         * lib/unictype/pr_zero_width.h: Likewise.
4313         * lib/unictype/sy_c_ident.h: Likewise.
4314         * lib/unictype/sy_c_whitespace.h: Likewise.
4315         * lib/unictype/sy_java_whitespace.h: Likewise.
4316         * lib/uninorm/composition-table.gperf: Likewise.
4317         * lib/uninorm/decomposition-table1.h: Likewise.
4318         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4319         LB8.
4320         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4321         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4322         * modules/unictype/*: Bump version number of expected libunistring
4323         version.
4324
4325 2011-01-09  Bruno Haible  <bruno@clisp.org>
4326
4327         Update to Unicode 5.2.0.
4328         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4329         trailing whitespace removed.
4330
4331 2011-01-09  Bruno Haible  <bruno@clisp.org>
4332
4333         New Unicode character properties, from Unicode 5.2.0.
4334         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4335         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4336         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4337         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4338         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4339         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4340         uc_is_property_cased, uc_is_property_case_ignorable,
4341         uc_is_property_changes_when_lowercased,
4342         uc_is_property_changes_when_uppercased,
4343         uc_is_property_changes_when_titlecased,
4344         uc_is_property_changes_when_casefolded,
4345         uc_is_property_changes_when_casemapped): New declarations.
4346         * lib/unictype/pr_byname.gperf: Add the new properties.
4347         * modules/unictype/property-byname (Depends-on): Depend on the new
4348         properties modules.
4349         * modules/unictype/property-all (Depends-on): Likewise.
4350         * MODULES.html.sh (Unicode string functions): Add
4351         unictype/property-case-ignorable, unictype/property-cased,
4352         unictype/property-changes-when-casefolded,
4353         unictype/property-changes-when-casemapped,
4354         unictype/property-changes-when-lowercased,
4355         unictype/property-changes-when-titlecased,
4356         unictype/property-changes-when-uppercased.
4357
4358         New module 'unictype/property-changes-when-casemapped'.
4359         * modules/unictype/property-changes-when-casemapped: New file.
4360         * lib/unictype/pr_changes_when_casemapped.c: New file.
4361         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4362         generated by gen-uni-tables.
4363         * modules/unictype/property-changes-when-casemapped-tests: New file.
4364         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4365         automatically generated by gen-uni-tables.
4366
4367         New module 'unictype/property-changes-when-casefolded'.
4368         * modules/unictype/property-changes-when-casefolded: New file.
4369         * lib/unictype/pr_changes_when_casefolded.c: New file.
4370         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4371         generated by gen-uni-tables.
4372         * modules/unictype/property-changes-when-casefolded-tests: New file.
4373         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4374         automatically generated by gen-uni-tables.
4375
4376         New module 'unictype/property-changes-when-titlecased'.
4377         * modules/unictype/property-changes-when-titlecased: New file.
4378         * lib/unictype/pr_changes_when_titlecased.c: New file.
4379         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4380         generated by gen-uni-tables.
4381         * modules/unictype/property-changes-when-titlecased-tests: New file.
4382         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4383         automatically generated by gen-uni-tables.
4384
4385         New module 'unictype/property-changes-when-uppercased'.
4386         * modules/unictype/property-changes-when-uppercased: New file.
4387         * lib/unictype/pr_changes_when_uppercased.c: New file.
4388         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4389         generated by gen-uni-tables.
4390         * modules/unictype/property-changes-when-uppercased-tests: New file.
4391         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4392         automatically generated by gen-uni-tables.
4393
4394         New module 'unictype/property-changes-when-lowercased'.
4395         * modules/unictype/property-changes-when-lowercased: New file.
4396         * lib/unictype/pr_changes_when_lowercased.c: New file.
4397         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4398         generated by gen-uni-tables.
4399         * modules/unictype/property-changes-when-lowercased-tests: New file.
4400         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4401         automatically generated by gen-uni-tables.
4402
4403         New module 'unictype/property-case-ignorable'.
4404         * modules/unictype/property-case-ignorable: New file.
4405         * lib/unictype/pr_case_ignorable.c: New file.
4406         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4407         by gen-uni-tables.
4408         * modules/unictype/property-case-ignorable-tests: New file.
4409         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4410         generated by gen-uni-tables.
4411
4412         New module 'unictype/property-cased'.
4413         * modules/unictype/property-cased: New file.
4414         * lib/unictype/pr_cased.c: New file.
4415         * lib/unictype/pr_cased.h: New file, automatically generated by
4416         gen-uni-tables.
4417         * modules/unictype/property-cased-tests: New file.
4418         * tests/unictype/test-pr_cased.c: New file, automatically generated by
4419         gen-uni-tables.
4420
4421 2011-01-09  Bruno Haible  <bruno@clisp.org>
4422
4423         Update to Unicode 5.2.0.
4424         * lib/gen-uni-tables.c (output_predicate, output_category,
4425         output_combclass, output_bidi_category, output_decimal_digit_test,
4426         output_decimal_digit, output_digit_test, output_digit,
4427         output_numeric_test, output_numeric, output_mirror, output_scripts,
4428         output_scripts_byname, output_blocks, output_ident_category): Fix
4429         comment header.
4430         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
4431         get_wbp.
4432         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
4433         items.
4434         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
4435         Changes_When_Lowercased, Changes_When_Uppercased,
4436         Changes_When_Titlecased, Changes_When_Casefolded,
4437         Changes_When_Casemapped.
4438         (is_property_alphabetic, is_property_default_ignorable_code_point):
4439         Update for Unicode 5.2.0.
4440         (is_property_cased, is_property_case_ignorable,
4441         is_property_changes_when_lowercased,
4442         is_property_changes_when_uppercased,
4443         is_property_changes_when_titlecased,
4444         is_property_changes_when_casefolded,
4445         is_property_changes_when_casemapped): New functions.
4446         (output_properties): Output also the properties cased, case_ignorable,
4447         changes_when_lowercased, changes_when_uppercased,
4448         changes_when_titlecased, changes_when_casefolded,
4449         changes_when_casemapped.
4450         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
4451         Unicode TR#11 revision 17 -> 19.
4452         (LBP_CP): New enumeration value.
4453         (LBP_*): Adjust values accordingly.
4454         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4455         TR#14 revision 22 -> 24.
4456         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
4457         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
4458         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4459         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
4460         is_WBP_MIDLETTER.
4461         (output_composition_tables): Allow for 24 bits instead of 16 bits in
4462         the code1 and code2 of each composition rule.
4463         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
4464         * lib/unicase/ignorable.h: Likewise.
4465         * lib/unicase/tocasefold.h: Likewise.
4466         * lib/unicase/tolower.h: Likewise.
4467         * lib/unicase/totitle.h: Likewise.
4468         * lib/unicase/toupper.h: Likewise.
4469         * lib/unictype/bidi_of.h: Likewise.
4470         * lib/unictype/blocks.h: Likewise.
4471         * lib/unictype/categ_C.h: Likewise.
4472         * lib/unictype/categ_Cf.h: Likewise.
4473         * lib/unictype/categ_Cn.h: Likewise.
4474         * lib/unictype/categ_L.h: Likewise.
4475         * lib/unictype/categ_Ll.h: Likewise.
4476         * lib/unictype/categ_Lm.h: Likewise.
4477         * lib/unictype/categ_Lo.h: Likewise.
4478         * lib/unictype/categ_Lu.h: Likewise.
4479         * lib/unictype/categ_M.h: Likewise.
4480         * lib/unictype/categ_Mc.h: Likewise.
4481         * lib/unictype/categ_Mn.h: Likewise.
4482         * lib/unictype/categ_N.h: Likewise.
4483         * lib/unictype/categ_Nd.h: Likewise.
4484         * lib/unictype/categ_Nl.h: Likewise.
4485         * lib/unictype/categ_No.h: Likewise.
4486         * lib/unictype/categ_P.h: Likewise.
4487         * lib/unictype/categ_Pd.h: Likewise.
4488         * lib/unictype/categ_Po.h: Likewise.
4489         * lib/unictype/categ_S.h: Likewise.
4490         * lib/unictype/categ_Sc.h: Likewise.
4491         * lib/unictype/categ_So.h: Likewise.
4492         * lib/unictype/categ_of.h: Likewise.
4493         * lib/unictype/combining.h: Likewise.
4494         * lib/unictype/ctype_alnum.h: Likewise.
4495         * lib/unictype/ctype_alpha.h: Likewise.
4496         * lib/unictype/ctype_graph.h: Likewise.
4497         * lib/unictype/ctype_lower.h: Likewise.
4498         * lib/unictype/ctype_print.h: Likewise.
4499         * lib/unictype/ctype_punct.h: Likewise.
4500         * lib/unictype/ctype_upper.h: Likewise.
4501         * lib/unictype/decdigit.h: Likewise.
4502         * lib/unictype/digit.h: Likewise.
4503         * lib/unictype/numeric.h: Likewise.
4504         * lib/unictype/pr_alphabetic.h: Likewise.
4505         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4506         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4507         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4508         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4509         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4510         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4511         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4512         * lib/unictype/pr_combining.h: Likewise.
4513         * lib/unictype/pr_composite.h: Likewise.
4514         * lib/unictype/pr_currency_symbol.h: Likewise.
4515         * lib/unictype/pr_dash.h: Likewise.
4516         * lib/unictype/pr_decimal_digit.h: Likewise.
4517         * lib/unictype/pr_deprecated.h: Likewise.
4518         * lib/unictype/pr_diacritic.h: Likewise.
4519         * lib/unictype/pr_extender.h: Likewise.
4520         * lib/unictype/pr_grapheme_base.h: Likewise.
4521         * lib/unictype/pr_grapheme_extend.h: Likewise.
4522         * lib/unictype/pr_grapheme_link.h: Likewise.
4523         * lib/unictype/pr_id_continue.h: Likewise.
4524         * lib/unictype/pr_id_start.h: Likewise.
4525         * lib/unictype/pr_ideographic.h: Likewise.
4526         * lib/unictype/pr_ignorable_control.h: Likewise.
4527         * lib/unictype/pr_logical_order_exception.h: Likewise.
4528         * lib/unictype/pr_lowercase.h: Likewise.
4529         * lib/unictype/pr_numeric.h: Likewise.
4530         * lib/unictype/pr_other_alphabetic.h: Likewise.
4531         * lib/unictype/pr_punctuation.h: Likewise.
4532         * lib/unictype/pr_sentence_terminal.h: Likewise.
4533         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4534         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4535         * lib/unictype/pr_unified_ideograph.h: Likewise.
4536         * lib/unictype/pr_uppercase.h: Likewise.
4537         * lib/unictype/pr_xid_continue.h: Likewise.
4538         * lib/unictype/pr_xid_start.h: Likewise.
4539         * lib/unictype/pr_zero_width.h: Likewise.
4540         * lib/unictype/scripts.h: Likewise.
4541         * lib/unictype/scripts_byname.gperf: Likewise.
4542         * lib/unictype/sy_java_ident.h: Likewise.
4543         * lib/unigbrk/gbrkprop.h: Likewise.
4544         * lib/unilbrk/lbrkprop1.h: Likewise.
4545         * lib/unilbrk/lbrkprop2.h: Likewise.
4546         * lib/unilbrk/lbrktables.h: Likewise.
4547         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
4548         LBP_CP. Implement rule LB30.
4549         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
4550         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
4551         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
4552         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
4553         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
4554         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
4555         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
4556         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
4557         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
4558         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
4559         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
4560         bits instead of 16 bits in the code1 and code2 of each composition
4561         rule.
4562         (uc_composition): Update for Unicode 5.2.0.
4563         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
4564         * lib/uninorm/decomposition-table2.h: Likewise.
4565         * lib/uniwbrk/wbrkprop.h: Likewise.
4566         * tests/unicase/test-cased.c: Likewise.
4567         * tests/unicase/test-ignorable.c: Likewise.
4568         * tests/unicase/test-uc_tolower.c: Likewise.
4569         * tests/unicase/test-uc_totitle.c: Likewise.
4570         * tests/unicase/test-uc_toupper.c: Likewise.
4571         * tests/unictype/test-categ_C.c: Likewise.
4572         * tests/unictype/test-categ_Cf.c: Likewise.
4573         * tests/unictype/test-categ_Cn.c: Likewise.
4574         * tests/unictype/test-categ_L.c: Likewise.
4575         * tests/unictype/test-categ_Ll.c: Likewise.
4576         * tests/unictype/test-categ_Lm.c: Likewise.
4577         * tests/unictype/test-categ_Lo.c: Likewise.
4578         * tests/unictype/test-categ_Lu.c: Likewise.
4579         * tests/unictype/test-categ_M.c: Likewise.
4580         * tests/unictype/test-categ_Mc.c: Likewise.
4581         * tests/unictype/test-categ_Mn.c: Likewise.
4582         * tests/unictype/test-categ_N.c: Likewise.
4583         * tests/unictype/test-categ_Nd.c: Likewise.
4584         * tests/unictype/test-categ_Nl.c: Likewise.
4585         * tests/unictype/test-categ_No.c: Likewise.
4586         * tests/unictype/test-categ_P.c: Likewise.
4587         * tests/unictype/test-categ_Pd.c: Likewise.
4588         * tests/unictype/test-categ_Po.c: Likewise.
4589         * tests/unictype/test-categ_S.c: Likewise.
4590         * tests/unictype/test-categ_Sc.c: Likewise.
4591         * tests/unictype/test-categ_So.c: Likewise.
4592         * tests/unictype/test-ctype_alnum.c: Likewise.
4593         * tests/unictype/test-ctype_alpha.c: Likewise.
4594         * tests/unictype/test-ctype_graph.c: Likewise.
4595         * tests/unictype/test-ctype_lower.c: Likewise.
4596         * tests/unictype/test-ctype_print.c: Likewise.
4597         * tests/unictype/test-ctype_punct.c: Likewise.
4598         * tests/unictype/test-ctype_upper.c: Likewise.
4599         * tests/unictype/test-decdigit.h: Likewise.
4600         * tests/unictype/test-digit.h: Likewise.
4601         * tests/unictype/test-numeric.h: Likewise.
4602         * tests/unictype/test-pr_alphabetic.c: Likewise.
4603         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4604         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4605         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4606         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4607         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4608         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4609         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4610         * tests/unictype/test-pr_combining.c: Likewise.
4611         * tests/unictype/test-pr_composite.c: Likewise.
4612         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4613         * tests/unictype/test-pr_dash.c: Likewise.
4614         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4615         * tests/unictype/test-pr_deprecated.c: Likewise.
4616         * tests/unictype/test-pr_diacritic.c: Likewise.
4617         * tests/unictype/test-pr_extender.c: Likewise.
4618         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4619         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4620         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4621         * tests/unictype/test-pr_id_continue.c: Likewise.
4622         * tests/unictype/test-pr_id_start.c: Likewise.
4623         * tests/unictype/test-pr_ideographic.c: Likewise.
4624         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4625         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4626         * tests/unictype/test-pr_lowercase.c: Likewise.
4627         * tests/unictype/test-pr_numeric.c: Likewise.
4628         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4629         * tests/unictype/test-pr_punctuation.c: Likewise.
4630         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4631         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4632         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4633         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4634         * tests/unictype/test-pr_uppercase.c: Likewise.
4635         * tests/unictype/test-pr_xid_continue.c: Likewise.
4636         * tests/unictype/test-pr_xid_start.c: Likewise.
4637         * tests/unictype/test-pr_zero_width.c: Likewise.
4638         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4639         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
4640         changed behaviour: line breaking is now disallowed between a letter
4641         or '=' and '('.
4642         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4643         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4644         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4645         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
4646         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4647         lib/uniwidth/width.c.
4648         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
4649         without comments, but with the original copyright notice.
4650         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4651         changes.
4652         * lib/unictype/categ_Cc.h: Likewise.
4653         * lib/unictype/categ_Co.h: Likewise.
4654         * lib/unictype/categ_Cs.h: Likewise.
4655         * lib/unictype/categ_Lt.h: Likewise.
4656         * lib/unictype/categ_Me.h: Likewise.
4657         * lib/unictype/categ_Pc.h: Likewise.
4658         * lib/unictype/categ_Pe.h: Likewise.
4659         * lib/unictype/categ_Pf.h: Likewise.
4660         * lib/unictype/categ_Pi.h: Likewise.
4661         * lib/unictype/categ_Ps.h: Likewise.
4662         * lib/unictype/categ_Sk.h: Likewise.
4663         * lib/unictype/categ_Sm.h: Likewise.
4664         * lib/unictype/categ_Z.h: Likewise.
4665         * lib/unictype/categ_Zl.h: Likewise.
4666         * lib/unictype/categ_Zp.h: Likewise.
4667         * lib/unictype/categ_Zs.h: Likewise.
4668         * lib/unictype/ctype_blank.h: Likewise.
4669         * lib/unictype/ctype_cntrl.h: Likewise.
4670         * lib/unictype/ctype_digit.h: Likewise.
4671         * lib/unictype/ctype_space.h: Likewise.
4672         * lib/unictype/ctype_xdigit.h: Likewise.
4673         * lib/unictype/mirror.h: Likewise.
4674         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4675         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4676         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4677         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4678         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4679         * lib/unictype/pr_bidi_control.h: Likewise.
4680         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4681         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4682         * lib/unictype/pr_bidi_pdf.h: Likewise.
4683         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4684         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4685         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4686         * lib/unictype/pr_format_control.h: Likewise.
4687         * lib/unictype/pr_hex_digit.h: Likewise.
4688         * lib/unictype/pr_hyphen.h: Likewise.
4689         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4690         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4691         * lib/unictype/pr_iso_control.h: Likewise.
4692         * lib/unictype/pr_join_control.h: Likewise.
4693         * lib/unictype/pr_left_of_pair.h: Likewise.
4694         * lib/unictype/pr_line_separator.h: Likewise.
4695         * lib/unictype/pr_math.h: Likewise.
4696         * lib/unictype/pr_non_break.h: Likewise.
4697         * lib/unictype/pr_not_a_character.h: Likewise.
4698         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4699         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4700         * lib/unictype/pr_other_id_continue.h: Likewise.
4701         * lib/unictype/pr_other_id_start.h: Likewise.
4702         * lib/unictype/pr_other_lowercase.h: Likewise.
4703         * lib/unictype/pr_other_math.h: Likewise.
4704         * lib/unictype/pr_other_uppercase.h: Likewise.
4705         * lib/unictype/pr_paired_punctuation.h: Likewise.
4706         * lib/unictype/pr_paragraph_separator.h: Likewise.
4707         * lib/unictype/pr_pattern_syntax.h: Likewise.
4708         * lib/unictype/pr_pattern_white_space.h: Likewise.
4709         * lib/unictype/pr_private_use.h: Likewise.
4710         * lib/unictype/pr_quotation_mark.h: Likewise.
4711         * lib/unictype/pr_radical.h: Likewise.
4712         * lib/unictype/pr_soft_dotted.h: Likewise.
4713         * lib/unictype/pr_space.h: Likewise.
4714         * lib/unictype/pr_titlecase.h: Likewise.
4715         * lib/unictype/pr_variation_selector.h: Likewise.
4716         * lib/unictype/pr_white_space.h: Likewise.
4717         * lib/unictype/sy_c_ident.h: Likewise.
4718         * lib/unictype/sy_c_whitespace.h: Likewise.
4719         * lib/unictype/sy_java_whitespace.h: Likewise.
4720         * modules/uni*/*: Bump version number of expected libunistring version.
4721         Reported by Simon Josefsson.
4722
4723 2011-01-09  Karl Heuer  <kwzh@gnu.org>
4724
4725         useless-if-before-free: fix typo in --help and make the internal,
4726         automatic version date update process work once again.
4727         --help output contained a NUL character instead of the
4728         backslash-zero that was intended.  Also, the "must lie within
4729         the first 8 lines" line is on line 9, and hence not getting
4730         automatically updated.
4731         * build-aux/useless-if-before-free: Fix the former by adding a
4732         backslash, and the latter by condensing the three lines of what-it-does
4733         to a single line, leaving one line of slack for the future.
4734
4735 2011-01-09  Bruno Haible  <bruno@clisp.org>
4736
4737         uniwidth/width: Fix width of U+1D173..U+1D17A.
4738         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
4739         symbolic_width, output_width_property_test): New functions.
4740         (main): Invoke output_nonspacing_property, output_width_property_test.
4741         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
4742         U+1D173..U+1D17A.
4743         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
4744         1.
4745         * modules/uniwidth/*: Bump version number of expected libunistring
4746         version.
4747         * modules/unilbrk/*: Likewise.
4748
4749 2011-01-08  Bruno Haible  <bruno@clisp.org>
4750
4751         uninorm tests: Preserve copyright of Unicode data file.
4752         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
4753         Mention modifications.
4754
4755 2011-01-08  Bruno Haible  <bruno@clisp.org>
4756
4757         gen-uni-tables: Prepare for Unicode 5.2.0.
4758         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
4759         (debug_output_lbp, output_lbp): Update.
4760
4761 2011-01-08  Bruno Haible  <bruno@clisp.org>
4762
4763         unilbrk: Clarify gen-uni-tables.c code.
4764         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
4765         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
4766         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
4767
4768 2011-01-07  Bruno Haible  <bruno@clisp.org>
4769
4770         strtod: Restore errno when successfully parsing Infinity or NaN.
4771         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
4772         restore the original errno.
4773
4774 2011-01-07  Bruno Haible  <bruno@clisp.org>
4775
4776         remove test: Avoid failure on HP-UX 11.
4777         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
4778
4779 2011-01-07  Bruno Haible  <bruno@clisp.org>
4780
4781         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
4782         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
4783         error code.
4784
4785 2011-01-07  Pádraig Brady <P@draigBrady.com>
4786
4787         ignore-value: fixup comments, and add Eric Blake
4788         as an author since he rewrote the macros.
4789         * lib/ignore-value.h (ignore_value):  State that
4790         we now support aggregates.  Also specify exactly
4791         when the GCC warn_unused_result feature was added.
4792
4793 2011-01-06  Eric Blake  <eblake@redhat.com>
4794
4795         ignore-value: support aggregate types
4796         * lib/ignore-value.h (ignore_value): Provide separate gcc
4797         definition.
4798         * modules/ignore-value-tests: New test module.
4799         * tests/test-ignore-value.c: New test.
4800
4801         maint.mk: improve sc_prohibit_strcmp regex
4802         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
4803         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
4804         definition of STRNEQ.
4805
4806         signal: work around Haiku issue with SIGBUS
4807         * lib/siglist.h: Add comment.
4808         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
4809         strsignal's favoring of SIGSEGV.
4810         * tests/test-signal.c (main): Avoid test failure.
4811         * doc/posix-headers/signal.texi (signal.h): Document the issue.
4812         Reported by Scott McCreary.
4813
4814         maint.mk: add pre-release check to ensure submodule commits are public
4815         * top/maint.mk (public-submodule-commit): New rule.
4816         (submodule-checks): New variable.
4817         (alpha beta stable): Depend on the variable.
4818
4819 2011-01-05  Pádraig Brady <P@draigBrady.com>
4820         and Jim Meyering  <meyering@redhat.com>
4821
4822         ignore-value: make ignore_value more generic; deprecate ignore_ptr
4823         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
4824         (ATTRIBUTE_DEPRECATED): Define.
4825         (_ignore_case): New function.
4826         (ignore_value): New macro, to replace the old function.
4827         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
4828         * modules/ignore-value (Depends-on): Add stdint.
4829
4830 2011-01-04  Eric Blake  <eblake@redhat.com>
4831
4832         doc: regenerate INSTALL
4833         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
4834         @firstparagraphindent support, now that autoconf dropped it.
4835         (INSTALL_PRELUDE): Reinstate old macro.
4836         * doc/install.texi: Resync from autoconf.
4837         * doc/INSTALL: Reflect recent autoconf update.
4838         * doc/INSTALL.ISO: Likewise.
4839         * doc/INSTALL.UTF-8: Likewise.
4840         Reported by Karl Berry.
4841
4842 2011-01-04  Bruce Korb  <address@hidden>
4843
4844         git-version-gen: avoid a sub-shell
4845         * build-aux/git-version-gen: Redirect stderr in `...` via
4846         "exec 2>...", rather than via an added sub-shell.
4847
4848 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
4849
4850         git-version-gen: use (...) rather than sh -c '...'
4851         * build-aux/git-version-gen: Rather than hard-coding a shell's name
4852         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
4853
4854 2011-01-03  Jim Meyering  <meyering@redhat.com>
4855
4856         git-version-gen: convert leading TABs to spaces
4857         * build-aux/git-version-gen: Expand leading TABs.
4858
4859         git-version-gen: handle failed "git rev-list"
4860         * build-aux/git-version-gen: Rather than leaking a "fatal" error
4861         from git and proceeding as if it had succeeded but printed no SHA1
4862         checksums, suppress the diagnostic and handle the failure.
4863         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
4864
4865         git-version-gen: include command name in one more diagnostic
4866         * build-aux/git-version-gen: When the required .tarball-version file
4867         was missing or unreadable, you might see the diagnostic from "cat",
4868         but no trace of the name of the invoking script.  Now, you still see
4869         the diagnostic from cat, but also get one from "git-version-gen: ".
4870         Inspired by a patch from Bruce Korb.
4871
4872         update-copyright: adjust test to match changed code
4873         * tests/test-update-copyright.sh: Change test's expected output
4874         to match new actual output.
4875
4876 2011-01-02  Bruno Haible  <bruno@clisp.org>
4877
4878         getlogin_r: Avoid test failure on HP-UX 11.
4879         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
4880         ERANGE when the second argument is zero.
4881         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
4882         portability problem.
4883
4884 2011-01-02  Bruce Korb  <bkorb@gnu.org>
4885
4886         * build-aux/update-copyright: doc Simon's changes
4887
4888 2011-01-02  Simon Josefsson  <simon@josefsson.org>
4889
4890         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
4891         environment variable.
4892
4893 2011-01-02  Bruno Haible  <bruno@clisp.org>
4894
4895         unigbrk: Avoid gcc warnings.
4896         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
4897         unused variable.
4898         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
4899         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
4900         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
4901         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
4902         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
4903         Change type of first argument to 'const char *'.
4904         (main): Remove unused variable.
4905         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
4906         type of first argument to 'const char *'.
4907         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
4908         Likewise.
4909         (main): Change type of variable 's'.
4910         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
4911         to 'int'.
4912
4913 2011-01-02  Bruno Haible  <bruno@clisp.org>
4914
4915         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
4916         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
4917         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
4918         bug.
4919         * lib/pwrite.c: Undo 2010-12-31 patch.
4920         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
4921
4922 2011-01-02  Bruno Haible  <bruno@clisp.org>
4923
4924         pread: Fix test whether it works.
4925         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
4926
4927 2011-01-02  Bruno Haible  <bruno@clisp.org>
4928
4929         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
4930         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
4931         ends in "6". Don't require a specific month name. Try also the locale
4932         names found on HP-UX 11 and Solaris 7.
4933
4934 2011-01-02  Bruno Haible  <bruno@clisp.org>
4935
4936         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
4937         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
4938         C linkage.
4939         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
4940
4941 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4942
4943         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
4944         for consistency, since the "cluster" term is not used elsewhere.
4945         * lib/unigbrk.in.h: Update name.
4946         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
4947         * lib/unigbrk/u16-grapheme-next.c: Update name.
4948         * lib/unigbrk/u16-grapheme-prev.c: Update name.
4949         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
4950         * lib/unigbrk/u32-grapheme-next.c: Update name.
4951         * lib/unigbrk/u32-grapheme-prev.c: Update name.
4952         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
4953         * lib/unigbrk/u8-grapheme-next.c: Update name.
4954         * lib/unigbrk/u8-grapheme-prev.c: Update name.
4955         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
4956         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
4957         Suggested by Bruno Haible.
4958
4959 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4960
4961         Remove module 'u8-grapheme-len' as too redundant with
4962         'u8-grapheme-next'.
4963         * modules/unigbrk/u8-grapheme-len: Delete file.
4964         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
4965         * lib/unigbrk.in.h: Remove prototype for deleted function.
4966         * lib/unigbrk/u8-grapheme-len.c: Delete file.
4967         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
4968
4969         Remove module 'u16-grapheme-len' as too redundant with
4970         'u16-grapheme-next'.
4971         * modules/unigbrk/u16-grapheme-len: Delete file.
4972         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
4973         * lib/unigbrk.in.h: Remove prototype for deleted function.
4974         * lib/unigbrk/u16-grapheme-len.c: Delete file.
4975         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
4976
4977         Remove module 'u32-grapheme-len' as too redundant with
4978         'u32-grapheme-next'.
4979         * modules/unigbrk/u32-grapheme-len: Delete file.
4980         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
4981         * lib/unigbrk.in.h: Remove prototype for deleted function.
4982         * lib/unigbrk/u32-grapheme-len.c: Delete file.
4983         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
4984
4985         Suggested by Bruno Haible.
4986
4987 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4988
4989         * unigbrk.in.h: Fix typo: "ben" => "been".
4990         Reported by Bruno Haible.
4991
4992 2011-01-01  Jim Meyering  <meyering@redhat.com>
4993
4994         maint: update almost all copyright ranges to include 2011
4995         Run the new "make update-copyright" rule.
4996
4997 2011-01-01  Jim Meyering  <meyering@redhat.com>
4998
4999         maint: update-copyright: exempt doc/INSTALL*
5000         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5001         since they are generated.  Suggested by Bruno Haible.
5002
5003 2011-01-01  Jim Meyering  <meyering@redhat.com>
5004
5005         maint: refine the update-copyright rule
5006         * Makefile (update-copyright): Also exclude any file that includes
5007         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5008         code that merely generates the comment.
5009
5010 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5011
5012         New module 'u8-grapheme-len'.
5013         * modules/unigbrk/u8-grapheme-len: New file.
5014         * modules/unigbrk/u8-grapheme-len-tests: New file.
5015         * lib/unigbrk.in.h: Add prototype for new function.
5016         * lib/unigbrk/u8-grapheme-len.c: New file.
5017         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5018
5019         New module 'u16-grapheme-len'.
5020         * modules/unigbrk/u16-grapheme-len: New file.
5021         * modules/unigbrk/u16-grapheme-len-tests: New file.
5022         * lib/unigbrk.in.h: Add prototype for new function.
5023         * lib/unigbrk/u16-grapheme-len.c: New file.
5024         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5025
5026         New module 'u32-grapheme-len'.
5027         * modules/unigbrk/u32-grapheme-len: New file.
5028         * modules/unigbrk/u32-grapheme-len-tests: New file.
5029         * lib/unigbrk.in.h: Add prototype for new function.
5030         * lib/unigbrk/u32-grapheme-len.c: New file.
5031         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5032
5033         New module 'u8-grapheme-next'.
5034         * modules/unigbrk/u8-grapheme-next: New file.
5035         * modules/unigbrk/u8-grapheme-next-tests: New file.
5036         * lib/unigbrk.in.h: Add prototype for new function.
5037         * lib/unigbrk/u8-grapheme-next.c: New file.
5038         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5039
5040         New module 'u16-grapheme-next'.
5041         * modules/unigbrk/u16-grapheme-next: New file.
5042         * modules/unigbrk/u16-grapheme-next-tests: New file.
5043         * lib/unigbrk.in.h: Add prototype for new function.
5044         * lib/unigbrk/u16-grapheme-next.c: New file.
5045         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5046
5047         New module 'u32-grapheme-next'.
5048         * modules/unigbrk/u32-grapheme-next: New file.
5049         * modules/unigbrk/u32-grapheme-next-tests: New file.
5050         * lib/unigbrk.in.h: Add prototype for new function.
5051         * lib/unigbrk/u32-grapheme-next.c: New file.
5052         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5053
5054         New module 'u8-grapheme-prev'.
5055         * modules/unigbrk/u8-grapheme-prev: New file.
5056         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5057         * lib/unigbrk.in.h: Add prototype for new function.
5058         * lib/unigbrk/u8-grapheme-prev.c: New file.
5059         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5060
5061         New module 'u16-grapheme-prev'.
5062         * modules/unigbrk/u16-grapheme-prev: New file.
5063         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5064         * lib/unigbrk.in.h: Add prototype for new function.
5065         * lib/unigbrk/u16-grapheme-prev.c: New file.
5066         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5067
5068         New module 'u32-grapheme-prev'.
5069         * modules/unigbrk/u32-grapheme-prev: New file.
5070         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5071         * lib/unigbrk.in.h: Add prototype for new function.
5072         * lib/unigbrk/u32-grapheme-prev.c: New file.
5073         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5074
5075         New module 'u8-grapheme-breaks'.
5076         * modules/unigbrk/u8-grapheme-breaks: New file.
5077         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5078         * lib/unigbrk.in.h: Add prototype for new function.
5079         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5080         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5081
5082         New module 'u16-grapheme-breaks'.
5083         * modules/unigbrk/u16-grapheme-breaks: New file.
5084         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5085         * lib/unigbrk.in.h: Add prototype for new function.
5086         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5087         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5088
5089         New module 'u32-grapheme-breaks'.
5090         * modules/unigbrk/u32-grapheme-breaks: New file.
5091         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5092         * lib/unigbrk.in.h: Add prototype for new function.
5093         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5094         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5095
5096         New module 'ulc-grapheme-breaks'.
5097         * modules/unigbrk/ulc-grapheme-breaks: New file.
5098         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5099         * m4/locale-ar.m4: New file.
5100         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5101         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5102         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5103
5104 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5105
5106         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5107         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5108         modified how this file was generated before I initially submitted
5109         the module, but failed to regenerate it.  This meant that several
5110         of the level2 entries were wrong.
5111         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5112         Remove the division-by-2 that is folded into the table now that
5113         gbrkprop.h has been regenerated properly.  Now -1 entries are
5114         handled correctly.
5115
5116         New module 'unigbrk/uc-gbrk-prop-tests'.
5117         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5118         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5119         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5120         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5121
5122 2011-01-01  Bruno Haible  <bruno@clisp.org>
5123
5124         Avoid use of hexadecimal escapes.
5125         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5126         instead of hexadecimal escapes.
5127
5128 2011-01-01  Jim Meyering  <meyering@redhat.com>
5129
5130         maint: new rule to update copyright year ranges
5131         * Makefile (update-copyright): New rule.
5132
5133         maint: indent with TABs in Makefile
5134         * Makefile: Expand leading sequences of spaces to TABs
5135
5136         version-etc: update the copyright year it reports
5137         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5138
5139 2010-12-31  Bruno Haible  <bruno@clisp.org>
5140
5141         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5142         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5143         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5144         zero.
5145
5146 2010-12-31  Bruno Haible  <bruno@clisp.org>
5147
5148         pwrite: Work around HP-UX 11.11 bug.
5149         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5150         works and set REPLACE_PWRITE if not.
5151         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5152         function.
5153         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5154
5155 2010-12-31  Bruno Haible  <bruno@clisp.org>
5156
5157         pread: Work around HP-UX 11 bugs.
5158         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5159         and set REPLACE_PREAD if not.
5160         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5161
5162 2010-12-31  Eric Blake  <eblake@redhat.com>
5163
5164         nl_langinfo: fix YESEXPR on Irix 6.5
5165         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5166         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5167         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5168         it.
5169
5170 2010-12-31  Bruno Haible  <bruno@clisp.org>
5171
5172         iconv: Document HP-UX 11 bug.
5173         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5174
5175 2010-12-31  Bruno Haible  <bruno@clisp.org>
5176
5177         ldexpl: Fix link error on HP-UX 11.
5178         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5179         LDEXPL_LIBM, using $ISNANL_LIBM.
5180
5181 2010-12-31  Eric Blake  <eblake@redhat.com>
5182
5183         ftello: avoid compilation failure with SunStudio c89
5184         * lib/ftello.c (ftello): Use lseek, not llseek.
5185
5186         tests: avoid failing coreutils tests on cygwin
5187         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5188         (create_exe_shims_): Return 0 when skipping.
5189
5190 2010-12-31  Bruno Haible  <bruno@clisp.org>
5191
5192         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5193         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5194
5195 2010-12-31  Bruno Haible  <bruno@clisp.org>
5196
5197         waitpid: Fix link error in C++ mode.
5198         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5199
5200 2010-12-31  Bruno Haible  <bruno@clisp.org>
5201
5202         isnan: Use GCC built-ins when possible.
5203         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5204         __builtin_isnan.
5205         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5206         (isnan): Define using GCC built-ins for GCC >= 4.0.
5207
5208 2010-12-31  Bruno Haible  <bruno@clisp.org>
5209
5210         isnand: Fix mistake.
5211         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5212         __builtin_isnand.
5213
5214 2010-12-31  Bruno Haible  <bruno@clisp.org>
5215
5216         open: Avoid C++ error on HP-UX 11.
5217         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5218
5219 2010-12-31  Bruno Haible  <bruno@clisp.org>
5220
5221         time_r: Add missing declarations on HP-UX 11.
5222         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5223         instead of HAVE_LOCALTIME_R.
5224         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5225         HAVE_LOCALTIME_R always.
5226         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5227         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5228         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5229         HAVE_LOCALTIME_R.
5230         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5231         * doc/posix-functions/localtime_r.texi: Likewise.
5232
5233 2010-12-29  Eric Blake  <eblake@redhat.com>
5234
5235         mountlist: tweak previous commit
5236         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5237         Reported by Paul Eggert.
5238
5239         mountlist: fix local drive detection on cygwin
5240         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5241         that works for cygwin.
5242
5243 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5244
5245         ftoastr, snprintf: ftoastr + snprintf module
5246         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5247         since the snprintf module now should be good enough here.
5248         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5249         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5250         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5251         GNULIB_SNPRINTF only for the test directory, and the latter
5252         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5253         seems to suffice by itself.
5254
5255 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5256
5257         alloca: one step towards thread-safety
5258         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5259         need for a static variable.  All callers changed.  This does not
5260         make the alloca replacement thread-safe, but it's one step.
5261
5262         tests: minor indenting change
5263         * tests/init.sh: Sync from coreutils housekeeping patch
5264         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5265         to keep lines within 80 columns.
5266
5267 2010-12-28  Jim Meyering  <meyering@redhat.com>
5268
5269         regex: don't infloop on persistent failing calloc
5270         * lib/regexec.c (build_trtable): Return failure indication upon
5271         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5272         In glibc, this was fixed for version 2.13:
5273         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5274
5275 2010-12-28  Bruno Haible  <bruno@clisp.org>
5276             Paul Eggert <eggert@cs.ucla.edu>
5277
5278         linkat: Make implementation robust against system behaviour variations.
5279         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5280         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5281         way, and to -2 if it needs a generic runtime test.
5282         * lib/linkat.c (solaris_optimized_link_immediate,
5283         solaris_optimized_link_follow): New functions.
5284         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5285         (check_same_link): Use it.
5286
5287 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5288
5289         New module 'unigbrk/base'.
5290         * modules/unigbrk/base: New file.
5291         * lib/unigbrk.in.h: New file.
5292
5293         New module 'unigbrk/uc-gbrk-prop'.
5294         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5295         * modules/unigbrk/uc-gbrk-prop: New file.
5296         * lib/unigbrk/gbrkprop.h: New file.
5297         * lib/unigbrk/uc-gbrk-prop.c: New file.
5298
5299         New module 'unigbrk/uc-is-grapheme-break'.
5300         * modules/unigbrk/uc-is-grapheme-break: New file.
5301         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5302         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5303         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5304         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5305         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5306
5307         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5308
5309 2010-12-27  Bruno Haible  <bruno@clisp.org>
5310
5311         linkat test: Avoid failure on Solaris 11 2010-11.
5312         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5313
5314 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5315
5316         utimens: work around glibc rounding bug on more platforms
5317         * lib/utimens.c (fdutimens): Work around rounding bug even if
5318         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5319         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5320
5321 2010-12-27  Bruno Haible  <bruno@clisp.org>
5322
5323         select tests: Improve comments.
5324         * tests/test-select.c (do_select): Add comments.
5325
5326 2010-12-27  Bruno Haible  <bruno@clisp.org>
5327
5328         select tests: Safer way of handling timeout.
5329         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5330         at every invocation.
5331
5332 2010-12-27  Bruno Haible  <bruno@clisp.org>
5333
5334         select tests: Use 'bool' where appropriate.
5335         * tests/test-select.c (connect_to_socket): Change argument type to
5336         'bool'.
5337
5338 2010-12-27  Bruno Haible  <bruno@clisp.org>
5339
5340         select tests: Use existing modules.
5341         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5342         (configure.ac): Don't test for unistd.h.
5343         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5344         declared in <unistd.h>.
5345
5346 2010-12-27  Bruno Haible  <bruno@clisp.org>
5347
5348         mbrtowc: Work around a Solaris 7 bug.
5349         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5350         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
5351         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
5352         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
5353         MBRTOWC_NULL_ARG1_BUG.
5354         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5355         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5356         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5357         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5358
5359 2010-12-27  Jim Meyering  <meyering@redhat.com>
5360
5361         read-file.c: tweak syntax
5362         * lib/read-file.c (fread_file): Remove space after "*" in function
5363         definitions.
5364
5365 2010-12-27  Bruno Haible  <bruno@clisp.org>
5366
5367         times test: Avoid gcc warnings on OSF/1.
5368         * tests/test-times.c (main): Cast printf arguments from clock_t to
5369         'long int'.
5370
5371 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5372
5373         utimens: work around glibc rounding bug on older Linux kernels
5374         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5375         on Linux with a glibc whose utimes might not work, then work
5376         around a longstanding glibc bug involving rounding rather than
5377         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5378         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5379
5380 2010-12-26  Bruno Haible  <bruno@clisp.org>
5381
5382         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5383         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5384         _GL_CXXALIAS_SYS.
5385         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5386
5387 2010-12-26  Bruno Haible  <bruno@clisp.org>
5388
5389         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5390         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5391         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5392         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5393         looking for the declaration.
5394         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5395         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5396         problem.
5397         * doc/posix-functions/inet_pton.texi: Likewise.
5398
5399 2010-12-26  Bruno Haible  <bruno@clisp.org>
5400
5401         arpa_inet: Use the common idioms with C++ support.
5402         * lib/arpa_inet.in.h: Include c++defs.h.
5403         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5404         support.
5405         * modules/arpa_inet (Depends-on): Add c++defs.
5406         (Makefile.am): Substitute the contents of c++defs.h.
5407         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5408         * modules/arpa_inet-c++-tests: New file.
5409         * tests/test-arpa_inet-c++.cc: New file.
5410
5411 2010-12-25  Bruno Haible  <bruno@clisp.org>
5412
5413         Fix more C++ link errors on Solaris 8.
5414         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5415         $(LIB_EACCESS).
5416         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
5417         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
5418         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
5419         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
5420         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
5421
5422 2010-12-25  Bruno Haible  <bruno@clisp.org>
5423
5424         printf-posix: Fix link error when a non-GCC compiler is used.
5425         * lib/stdio.in.h (printf): When not using GCC, override printf
5426         correctly.
5427         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5428
5429 2010-12-25  Bruno Haible  <bruno@clisp.org>
5430
5431         strerror_r-posix: Update doc.
5432         * doc/posix-functions/strerror_r.texi: Update doc about the return
5433         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
5434
5435 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5436
5437         utimens: simplify the logic of the previous change
5438         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
5439         This should not affect whether the test succeeds or fails.
5440
5441         utimens: configure better on hosts with NFS clock skew
5442         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
5443         uses the clock of the local host.  It might use the clock of the
5444         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
5445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5446
5447 2010-12-25  Bruno Haible  <bruno@clisp.org>
5448
5449         ptsname test: Avoid failure on Solaris.
5450         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
5451         open a pseudo-terminal; don't use BSD-style ptys.
5452         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
5453
5454 2010-12-25  Bruno Haible  <bruno@clisp.org>
5455
5456         ptsname: Avoid ERANGE failure on some systems.
5457         * lib/ptsname.c (buffer): Increase size.
5458
5459 2010-12-25  Bruno Haible  <bruno@clisp.org>
5460
5461         rename, renameat: Avoid test failures at NFS mounted locations.
5462         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
5463         so that subsequent mkdir calls succeed.
5464
5465 2010-12-25  Bruno Haible  <bruno@clisp.org>
5466
5467         iswblank: Fix C++ link error on Solaris 8.
5468         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
5469         _GL_FUNCDECL_SYS.
5470
5471 2010-12-25  Bruno Haible  <bruno@clisp.org>
5472
5473         unistd: Fix C++ link error on Solaris 8.
5474         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
5475
5476 2010-12-25  Bruno Haible  <bruno@clisp.org>
5477
5478         readlink doc: Mention an old glibc bug.
5479         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
5480
5481 2010-12-25  Bruno Haible  <bruno@clisp.org>
5482
5483         fcntl-h: Fix for use of C++ on glibc systems.
5484         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5485         also on glibc systems in C++ mode.
5486         Reported by Gary V. Vaughan <gary@gnu.org>.
5487
5488 2010-12-25  Bruno Haible  <bruno@clisp.org>
5489
5490         roundl-ieee: Make it work on OSF/1 5.1 with cc.
5491         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
5492
5493 2010-12-25  Bruno Haible  <bruno@clisp.org>
5494
5495         truncl-ieee: Make it work on OSF/1 5.1 with cc.
5496         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
5497         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
5498         test whether truncl works according to ISO C 99 with IEC 60559.
5499         * m4/truncl-ieee.m4: New file.
5500         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
5501         m4/signbit.m4.
5502         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
5503
5504 2010-12-25  Bruno Haible  <bruno@clisp.org>
5505
5506         ceill-ieee: Make it work on OSF/1 5.1 with cc.
5507         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
5508         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
5509         test whether ceill works according to ISO C 99 with IEC 60559.
5510         * m4/ceill-ieee.m4: New file.
5511         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
5512         m4/signbit.m4.
5513         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
5514
5515 2010-12-25  Bruno Haible  <bruno@clisp.org>
5516
5517         Ensure all prerequisites of <wchar.h> are included.
5518         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
5519         before <wchar.h>.
5520         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5521         gl_MBRLEN_NUL_RETVAL): Likewise.
5522         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5523         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
5524         AC_FUNC_MBRTOWC): Likewise.
5525         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5526         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5527         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5528         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5529         Likewise.
5530         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5531         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
5532         (gl_WCHAR_H): Improve comments.
5533         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5534
5535 2010-12-25  Bruno Haible  <bruno@clisp.org>
5536
5537         strtok_r: Fix C syntax error in autoconf macro.
5538         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
5539         characters in test program.
5540
5541 2010-12-24  Bruno Haible  <bruno@clisp.org>
5542
5543         ceil, trunc, round: Fix gcc warnings.
5544         * lib/ceil.c (MIN): Undefine before redefining.
5545         * lib/trunc.c (MIN): Likewise.
5546         * lib/round.c (MIN): Likewise.
5547         Include <math.h> first.
5548
5549 2010-12-24  Bruno Haible  <bruno@clisp.org>
5550
5551         select tests: Avoid failures on OSF/1 5.1.
5552         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
5553         failure of closing the last socket; it may fail with ECONNRESET.
5554
5555 2010-12-24  Eric Blake  <eblake@redhat.com>
5556
5557         stdint: avoid HP-UX 10.20 preprocessor bug
5558         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
5559         than #if.
5560         * tests/test-floor2.c (main): Likewise.
5561         Reported by Peter O'Gorman.
5562
5563         pipe: make obsoletion transition easier
5564         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
5565         * modules/pipe (Files): Include revived file.
5566         (Include): Drop reference, to mirror getdate's behavior.
5567
5568 2010-12-24  Bruno Haible  <bruno@clisp.org>
5569
5570         sys_socket: Hide mismatch of declarations on NonStop Kernel.
5571         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
5572         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
5573         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5574
5575 2010-12-24  Bruno Haible  <bruno@clisp.org>
5576
5577         gethostname: Ensure declaration on NonStop Kernel.
5578         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
5579         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5580
5581 2010-12-24  Bruno Haible  <bruno@clisp.org>
5582
5583         sys_select: Ensure all necessary types on NonStop Kernel.
5584         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
5585         include <sys/time.h>.
5586         * doc/posix-headers/sys_select.texi: Mention that it's missing on
5587         NonStop Kernel.
5588         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5589
5590 2010-12-24  Bruno Haible  <bruno@clisp.org>
5591
5592         sys_select: Remove unneeded include.
5593         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
5594         have <sys/select.h>.
5595
5596 2010-12-24  Bruno Haible  <bruno@clisp.org>
5597
5598         gethostname: Provide a fallback for HOST_NAME_MAX.
5599         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
5600         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
5601         instead.
5602         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5603
5604 2010-12-24  Bruno Haible  <bruno@clisp.org>
5605
5606         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
5607         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
5608         (SA_RESTART): Likewise.
5609         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5610
5611 2010-12-24  Bruno Haible  <bruno@clisp.org>
5612
5613         signal: Define NSIG.
5614         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
5615         * tests/test-signal.c (nsig): New variable.
5616         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5617
5618 2010-12-24  Bruno Haible  <bruno@clisp.org>
5619
5620         rename, renameat: Avoid test failures on OSF/1 5.1.
5621         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
5622         alternative error codes.
5623         * tests/test-renameat.c (main): Likewise.
5624
5625 2010-12-24  Bruno Haible  <bruno@clisp.org>
5626
5627         *printf: Detect large precisions bug on Solaris 10/SPARC.
5628         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
5629         by Paul Eggert.
5630         * tests/test-snprintf-posix.h (test_function): Add this test code here
5631         too.
5632         * tests/test-sprintf-posix.h (test_function): Likewise.
5633         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5634         * tests/test-vasprintf-posix.c (test_function): Likewise.
5635         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
5636         around by gnulib.
5637         * doc/posix-functions/printf.texi: Likewise.
5638         * doc/posix-functions/snprintf.texi: Likewise.
5639         * doc/posix-functions/sprintf.texi: Likewise.
5640         * doc/posix-functions/vfprintf.texi: Likewise.
5641         * doc/posix-functions/vprintf.texi: Likewise.
5642         * doc/posix-functions/vsnprintf.texi: Likewise.
5643         * doc/posix-functions/vsprintf.texi: Likewise.
5644         * doc/posix-functions/dprintf.texi: Undo last commit.
5645         * doc/posix-functions/vdprintf.texi: Likewise.
5646
5647 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5648
5649         tests: port test-fdutimensat.c to Solaris 8
5650         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
5651         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
5652         On Solaris 8, it fails with errno == ENOSYS, because there is no
5653         futimens (so it can't use the fd), and there is no lutimens (so it
5654         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
5655
5656         vsnprintf: make more consistent with snprintf; doc fixes
5657
5658         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
5659         the byte count return problem was promoted from the snprintf-posix
5660         to the snprintf module.
5661         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5662         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
5663         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
5664         * tests/test-snprintf.c (main): Check the byte count returned.
5665         * tests/test-vsnprintf.c (main): Likewise.
5666
5667 2010-12-23  Eric Blake  <eblake@redhat.com>
5668
5669         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
5670         * modules/sigpipe (License): Relax license.
5671
5672 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5673
5674         doc: document Solaris printf bug with large float precisions
5675         * doc/posix-functions/dprintf.texi (dprintf):
5676         * doc/posix-functions/fprintf.texi (fprintf):
5677         * doc/posix-functions/printf.texi (printf):
5678         * doc/posix-functions/snprintf.texi (snprintf):
5679         * doc/posix-functions/sprintf.texi (sprintf):
5680         * doc/posix-functions/vdprintf.texi (vdprintf):
5681         * doc/posix-functions/vfprintf.texi (vfprintf):
5682         * doc/posix-functions/vprintf.texi (vprintf):
5683         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5684         * doc/posix-functions/vsprintf.texi (vsprintf):
5685         Mention that these functions mishandle large floating point
5686         precisions on Solaris 10.  The same bug is also present in Solaris
5687         8, and I assume earlier.  This causes "cd gnulib-tests; make
5688         check" to fail on Solaris 8 (and I assume, later) when building
5689         the latest coreutils, in test-vasprintf-posix's call to
5690         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
5691         the wide flavors (e.g., wprintf) so this patch just updates the
5692         documentation for the narrow ones.
5693
5694         test-posixtm.c: add two tests
5695         * tests/test-posixtm.c: Add two tests, to highlight the
5696         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
5697         around this bug; this is merely to document it.
5698
5699 2010-12-22  Bruno Haible  <bruno@clisp.org>
5700
5701         getlogin_r: Work around portability problem on OSF/1.
5702         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
5703         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
5704         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
5705         test for a truncated result.
5706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
5707         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
5708         * modules/getlogin_r (Depends-on): Add memchr.
5709         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
5710
5711 2010-12-22  Bruno Haible  <bruno@clisp.org>
5712
5713         ptsname: Avoid test failure on OSF/1 5.1.
5714         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
5715         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
5716         (same_slave): New function.
5717         (main): Use it to compare ptsname's result with the expected file name.
5718
5719 2010-12-22  Bruno Haible  <bruno@clisp.org>
5720
5721         Port extended stdio modules to HP NonStop Kernel.
5722         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
5723         macros.
5724         * lib/fbufmode.c: Update comments.
5725         * lib/fflush.c: Likewise.
5726         * lib/fpurge.c: Likewise.
5727         * lib/freadable.c: Likewise.
5728         * lib/freadahead.c: Likewise.
5729         * lib/freading.c: Likewise.
5730         * lib/freadptr.c: Likewise.
5731         * lib/freadseek.c: Likewise.
5732         * lib/fseeko.c: Likewise.
5733         * lib/fseterr.c: Likewise.
5734         * lib/fwritable.c: Likewise.
5735         * lib/fwriting.c: Likewise.
5736         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5737
5738 2010-12-22  Bruno Haible  <bruno@clisp.org>
5739
5740         ttyname_r: Work around bug on OSF/1 5.1.
5741         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
5742         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
5743         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
5744         present.
5745         * lib/ttyname_r.c (ttyname_r): Update comments.
5746
5747 2010-12-22  Bruno Haible  <bruno@clisp.org>
5748
5749         round: Implement result sign according to IEEE 754.
5750         * lib/round.c (MIN, MINUS_ZERO): New macros.
5751         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
5752         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
5753         * tests/test-round-ieee.c (main): Likewise.
5754         * tests/test-roundl-ieee.c (main): Likewise.
5755
5756         trunc: Implement result sign according to IEEE 754.
5757         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
5758         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
5759         * tests/test-trunc2.c: Include minus-zero.h.
5760         (MINUS_ZERO): New macro.
5761         (trunc_reference): Keep in sync with lib/trunc.c.
5762         * tests/test-truncf2.c: Include minus-zero.h.
5763         (MINUS_ZERO): New macro.
5764         (truncf_reference): Keep in sync with lib/trunc.c.
5765         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
5766         * tests/test-trunc-ieee.c (main): Likewise.
5767         * tests/test-truncl-ieee.c (main): Likewise.
5768
5769         ceil: Implement result sign according to IEEE 754.
5770         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
5771         (FUNC): Return -0.0 for -1 < x < 0.
5772         * tests/test-ceil2.c: Include minus-zero.h.
5773         (MINUS_ZERO): New macro.
5774         (ceil_reference): Keep in sync with lib/ceil.c.
5775         * tests/test-ceilf2.c: Include minus-zero.h.
5776         (MINUS_ZERO): New macro.
5777         (ceilf_reference): Keep in sync with lib/ceil.c.
5778         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
5779         * tests/test-ceil-ieee.c (main): Likewise.
5780         * tests/test-ceill-ieee.c (main): Likewise.
5781
5782         floor: Implement result sign according to IEEE 754.
5783         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
5784         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
5785         * tests/test-floorf2.c (floorf_reference): Likewise.
5786         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
5787         * tests/test-floor-ieee.c (main): Likewise.
5788         * tests/test-floorl-ieee.c (main): Likewise.
5789
5790 2010-12-22  Bruno Haible  <bruno@clisp.org>
5791
5792         getaddrinfo: Update doc.
5793         * doc/posix-functions/gai_strerror.texi: Return type is also different
5794         on AIX and HP-UX.
5795
5796 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5797
5798         getaddrinfo, inet_ntop: Update doc for Solaris.
5799         * doc/posix-functions/gai_strerror.texi: Return type is also an
5800         issue on Solaris 9 and earlier.
5801         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
5802         on Solaris 10 and earlier.
5803
5804 2010-12-21  Bruno Haible  <bruno@clisp.org>
5805
5806         New module 'roundl-ieee'.
5807         * modules/roundl-ieee: New file.
5808         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
5809         test whether roundl works according to ISO C 99 with IEC 60559.
5810         * m4/roundl-ieee.m4: New file.
5811         * modules/roundl-ieee-tests: New file.
5812         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
5813         * tests/test-roundl.c (main): Remove signbit tests.
5814         * modules/roundl-tests (Depends-on): Remove signbit.
5815         * doc/posix-functions/roundl.texi: Mention the new module.
5816
5817 2010-12-21  Bruno Haible  <bruno@clisp.org>
5818
5819         New module 'truncl-ieee'.
5820         * modules/truncl-ieee: New file.
5821         * modules/truncl-ieee-tests: New file.
5822         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
5823         * tests/test-truncl.c (main): Remove signbit tests.
5824         * modules/truncl-tests (Depends-on): Remove signbit.
5825         * doc/posix-functions/truncl.texi: Mention the new module.
5826
5827 2010-12-21  Bruno Haible  <bruno@clisp.org>
5828
5829         New module 'ceill-ieee'.
5830         * modules/ceill-ieee: New file.
5831         * modules/ceill-ieee-tests: New file.
5832         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
5833         * tests/test-ceill.c (main): Remove signbit tests.
5834         * modules/ceill-tests (Depends-on): Remove signbit.
5835         * doc/posix-functions/ceill.texi: Mention the new module.
5836
5837 2010-12-21  Bruno Haible  <bruno@clisp.org>
5838
5839         New module 'floorl-ieee'.
5840         * modules/floorl-ieee: New file.
5841         * modules/floorl-ieee-tests: New file.
5842         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
5843         * tests/test-floorl.c (main): Remove signbit tests.
5844         * modules/floorl-tests (Depends-on): Remove signbit.
5845         * doc/posix-functions/floorl.texi: Mention the new module.
5846
5847 2010-12-21  Bruno Haible  <bruno@clisp.org>
5848
5849         New module 'round-ieee'.
5850         * modules/round-ieee: New file.
5851         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
5852         whether round works according to ISO C 99 with IEC 60559.
5853         * m4/round-ieee.m4: New file.
5854         * modules/round-ieee-tests: New file.
5855         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
5856         * tests/test-round1.c (main): Remove signbit tests.
5857         * modules/round-tests (Depends-on): Remove 'signbit'.
5858         * doc/posix-functions/round.texi: Mention the new module.
5859
5860 2010-12-21  Bruno Haible  <bruno@clisp.org>
5861
5862         New module 'trunc-ieee'.
5863         * modules/trunc-ieee: New file.
5864         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
5865         whether trunc works according to ISO C 99 with IEC 60559.
5866         * m4/trunc-ieee.m4: New file.
5867         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
5868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
5869         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
5870         * modules/trunc-ieee-tests: New file.
5871         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
5872         * tests/test-trunc1.c (main): Remove signbit tests.
5873         * modules/trunc-tests (Depends-on): Remove 'signbit'.
5874         * doc/posix-functions/trunc.texi: Mention the new module.
5875
5876 2010-12-21  Bruno Haible  <bruno@clisp.org>
5877
5878         New module 'ceil-ieee'.
5879         * modules/ceil-ieee: New file.
5880         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
5881         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
5882         ISO C 99 with IEC 60559.
5883         * m4/ceil-ieee.m4: New file.
5884         * modules/ceil (Files): Add lib/ceil.c.
5885         (Depends-on): Add 'float'.
5886         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5887         * lib/math.in.h (ceil): New declaration.
5888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
5889         REPLACE_CEIL.
5890         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
5891         * modules/ceil-ieee-tests: New file.
5892         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
5893         * tests/test-math-c++.cc: Check the signature of 'ceil'.
5894         * doc/posix-functions/ceil.texi: Mention the new module.
5895
5896 2010-12-21  Bruno Haible  <bruno@clisp.org>
5897
5898         New module 'floor-ieee'.
5899         * modules/floor-ieee: New file.
5900         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
5901         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
5902         ISO C 99 with IEC 60559.
5903         * m4/floor-ieee.m4: New file.
5904         * modules/floor (Files): Add lib/floor.c.
5905         (Depends-on): Add 'float'.
5906         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5907         * lib/math.in.h (floor): New declaration.
5908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
5909         REPLACE_FLOOR.
5910         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
5911         * modules/floor-ieee-tests: New file.
5912         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
5913         * tests/test-math-c++.cc: Check the signature of 'floor'.
5914         * doc/posix-functions/floor.texi: Mention the new module.
5915
5916 2010-12-21  Bruno Haible  <bruno@clisp.org>
5917
5918         New module 'roundf-ieee'.
5919         * modules/roundf-ieee: New file.
5920         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
5921         test whether roundf works according to ISO C 99 with IEC 60559.
5922         * m4/roundf-ieee.m4: New file.
5923         * modules/roundf-ieee-tests: New file.
5924         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
5925         * tests/test-roundf1.c (main): Remove signbit tests.
5926         * modules/roundf-tests (Depends-on): Remove 'signbit'.
5927         * doc/posix-functions/roundf.texi: Mention the new module.
5928
5929 2010-12-21  Bruno Haible  <bruno@clisp.org>
5930
5931         New module 'truncf-ieee'.
5932         * modules/truncf-ieee: New file.
5933         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
5934         test whether truncf works according to ISO C 99 with IEC 60559.
5935         * m4/truncf-ieee.m4: New file.
5936         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
5937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
5938         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
5939         * modules/truncf-ieee-tests: New file.
5940         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
5941         * tests/test-truncf1.c (main): Remove signbit tests.
5942         * modules/truncf-tests (Depends-on): Remove 'signbit'.
5943         * doc/posix-functions/truncf.texi: Mention the new module.
5944
5945 2010-12-21  Bruno Haible  <bruno@clisp.org>
5946
5947         New module 'ceilf-ieee'.
5948         * modules/ceilf-ieee: New file.
5949         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
5950         test whether ceilf works according to ISO C 99 with IEC 60559.
5951         * m4/ceilf-ieee.m4: New file.
5952         * modules/ceilf-ieee-tests: New file.
5953         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
5954         * tests/test-ceilf1.c (main): Remove signbit tests.
5955         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
5956         * doc/posix-functions/ceilf.texi: Mention the new module.
5957
5958 2010-12-21  Bruno Haible  <bruno@clisp.org>
5959
5960         New module 'floorf-ieee'.
5961         * modules/floorf-ieee: New file.
5962         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
5963         test whether floorf works according to ISO C 99 with IEC 60559.
5964         * m4/floorf-ieee.m4: New file.
5965         * modules/floorf-ieee-tests: New file.
5966         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
5967         * tests/test-floorf1.c (main): Remove signbit tests.
5968         * modules/floorf-tests (Depends-on): Remove 'signbit'.
5969         * doc/posix-functions/floorf.texi: Mention the new module.
5970
5971 2010-12-21  Bruno Haible  <bruno@clisp.org>
5972
5973         Support for minus zero in autoconf macros.
5974         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
5975         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
5976         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
5977         * tests/minus-zero.h: Update comments.
5978
5979 2010-12-21  Bruno Haible  <bruno@clisp.org>
5980
5981         Tests for module 'ceil'.
5982         * modules/ceil-tests: New file.
5983         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
5984         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
5985
5986 2010-12-21  Bruno Haible  <bruno@clisp.org>
5987
5988         Tests for module 'floor'.
5989         * modules/floor-tests: New file.
5990         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
5991         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
5992
5993 2010-12-21  Bruno Haible  <bruno@clisp.org>
5994
5995         math: Fix indentation.
5996         * lib/math.in.h (floorf): Fix indentation.
5997
5998 2010-12-21  Bruno Haible  <bruno@clisp.org>
5999
6000         Fix cross-compilation guesses on Solaris.
6001         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6002         not match "solaris2.10".
6003         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6004         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6005         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6006
6007 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6008
6009         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6010         This fixes a problem observed with the latest coreutils snapshot
6011         that caused a test to fail on Solaris 8.  src/csplit.c's call
6012         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6013         earlier, instead of returning the number of bytes that would have
6014         been generated; this causes csplit to incorrectly report memory
6015         exhaustion.
6016         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6017         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6018         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6019         comments to match.
6020         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6021         Fix typo in matching older versions of Solaris: "solaris2.10"
6022         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6023         only for guessing while cross-compiling.
6024         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6025
6026 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6027
6028         ftoastr: fix comment again
6029         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6030         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6031         Also, simplify example a bit by using flags = 0.
6032
6033 2010-12-20  Bruno Haible  <bruno@clisp.org>
6034
6035         round*, trunc*: Update documentation regarding glibc.
6036         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6037         * doc/posix-functions/round.texi: Likewise.
6038         * doc/posix-functions/roundl.texi: Likewise.
6039         * doc/posix-functions/truncf.texi: Likewise.
6040         * doc/posix-functions/trunc.texi: Likewise.
6041         * doc/posix-functions/truncl.texi: Likewise.
6042
6043 2010-12-20  Bruno Haible  <bruno@clisp.org>
6044
6045         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6046         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6047         * doc/posix-functions/round.texi: Likewise.
6048         * doc/posix-functions/roundl.texi: Likewise.
6049
6050 2010-12-20  Bruno Haible  <bruno@clisp.org>
6051
6052         ttyname_r: Add missing declaration on HP-UX 11.
6053         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6054         HAVE_TTYNAME_R.
6055         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6056         declared. Set HAVE_TTYNAME_R always.
6057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6058         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6059         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6060         HAVE_TTYNAME_R.
6061         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6062
6063 2010-12-20  Bruno Haible  <bruno@clisp.org>
6064
6065         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6066         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6067         * doc/posix-functions/getlogin_r.texi: Likewise.
6068         * tests/test-getlogin.c: Include <errno.h>.
6069         (main): Avoid test failure on HP-UX 11.11.
6070         * tests/test-getlogin_r.c (main): Likewise.
6071
6072 2010-12-20  Bruno Haible  <bruno@clisp.org>
6073
6074         getlogin_r: Add missing declaration on HP-UX 11.
6075         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6076         declared also when it exists as a function.
6077         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6078
6079 2010-12-20  Bruno Haible  <bruno@clisp.org>
6080
6081         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6082         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6083         through wcrtomb.
6084
6085 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6086
6087         ftoastr: fix comment
6088         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6089         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6090
6091 2010-12-19  Bruno Haible  <bruno@clisp.org>
6092
6093         isnan: Ensure it is a macro.
6094         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6095         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6096         Solaris.
6097
6098 2010-12-19  Bruno Haible  <bruno@clisp.org>
6099
6100         ldexpl test: Fix link error on OSF/1 5.1.
6101         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6102
6103 2010-12-19  Bruno Haible  <bruno@clisp.org>
6104
6105         wctype: Make it work in C++ mode on OSF/1 5.1.
6106         * lib/wctype.in.h (iswblank): Declare but not define here.
6107         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6108         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6109         * modules/wctype (Files): Add lib/iswblank.c.
6110
6111 2010-12-19  Bruno Haible  <bruno@clisp.org>
6112
6113         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6114         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6115         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6116
6117 2010-12-19  Bruno Haible  <bruno@clisp.org>
6118
6119         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6120         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6121         _POSIX_PII_SOCKET.
6122         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6123         * doc/posix-functions/recvfrom.texi: Likewise.
6124         * doc/posix-functions/send.texi: Likewise.
6125         * doc/posix-functions/sendto.texi: Likewise.
6126
6127 2010-12-19  Bruno Haible  <bruno@clisp.org>
6128
6129         tcgetsid: Add missing declaration on OSF/1 5.1.
6130         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6131         HAVE_TCGETSID.
6132         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6133         Don't set HAVE_TCGETSID.
6134         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6135         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6136         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6137         HAVE_TCGETSID.
6138         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6139
6140 2010-12-19  Bruno Haible  <bruno@clisp.org>
6141
6142         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6143         * lib/stdio.in.h: During the include_next statement, let recursive
6144         includes of this file include only the system header file.
6145
6146 2010-12-19  Bruno Haible  <bruno@clisp.org>
6147
6148         iconv_open: Fix regression from 2010-12-04.
6149         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6150         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6151
6152 2010-12-19  Bruno Haible  <bruno@clisp.org>
6153
6154         stdbool test: Avoid a gcc warning.
6155         * tests/test-stdbool.c (main): Fail if e1 is false.
6156         Reported by Jim Meyering.
6157
6158 2010-12-19  Jim Meyering  <meyering@redhat.com>
6159
6160         setenv: restore to working order
6161         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6162         mistakenly removed.
6163         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6164         HAVE_SETENV.
6165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6166         HAVE_SETENV.
6167
6168 2010-12-19  Bruno Haible  <bruno@clisp.org>
6169
6170         Document some different function declarations on OSF/1 5.1.
6171         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6172         * doc/posix-functions/inet_ntop.texi: Likewise.
6173         * doc/posix-functions/gethostname.texi: Likewise.
6174         * lib/unistd.in.h (gethostname): Update comment.
6175
6176 2010-12-19  Bruno Haible  <bruno@clisp.org>
6177
6178         doc: Mention vasprintf-posix module.
6179         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6180         the 'vasprintf-posix' module.
6181         * doc/glibc-functions/vasprintf.texi: Likewise.
6182
6183 2010-12-19  Bruno Haible  <bruno@clisp.org>
6184
6185         unsetenv: Add missing declaration on OSF/1 5.1.
6186         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6187         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6188         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6190         not HAVE_UNSETENV.
6191         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6192         HAVE_UNSETENV.
6193         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6194
6195 2010-12-19  Bruno Haible  <bruno@clisp.org>
6196
6197         setenv: Add missing declaration on OSF/1 5.1.
6198         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6199         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6200         declared. Don't set HAVE_SETENV.
6201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6202         not HAVE_SETENV.
6203         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6204         HAVE_SETENV.
6205         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6206
6207 2010-12-19  Bruno Haible  <bruno@clisp.org>
6208
6209         nl_langinfo tests: Avoid gcc warning.
6210         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6211
6212 2010-12-19  Bruno Haible  <bruno@clisp.org>
6213
6214         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6215         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6216         _GL_CXXALIAS_SYS.
6217
6218 2010-12-19  Bruno Haible  <bruno@clisp.org>
6219
6220         stdbool: Relax test.
6221         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6222         address to 'bool' work in static initializer, for compilers other than
6223         GCC.
6224
6225 2010-12-19  Bruno Haible  <bruno@clisp.org>
6226
6227         ftello: Add missing declaration on OSF/1 5.1.
6228         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6229         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6231         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6232         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6233
6234 2010-12-19  Bruno Haible  <bruno@clisp.org>
6235
6236         fseeko: Add missing declaration on OSF/1 5.1.
6237         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6238         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6240         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6241         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6242
6243 2010-12-19  Bruno Haible  <bruno@clisp.org>
6244
6245         fchdir: Add missing declaration on OSF/1 5.1.
6246         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6247         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6249         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6250         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6251
6252 2010-12-19  Bruno Haible  <bruno@clisp.org>
6253
6254         relocatable-prog-wrapper: Separate from relocatable-prog.
6255         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6256         uninstall-relocwrapper rule here.
6257         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6258         Reported by Ian Beckwith <ianb@erislabs.net>.
6259
6260 2010-12-19  Bruno Haible  <bruno@clisp.org>
6261
6262         unistr/u8-mbsnlen: Add missing dependency.
6263         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6264         Reported by Ian Beckwith <ianb@erislabs.net>.
6265
6266 2010-12-19  Bruno Haible  <bruno@clisp.org>
6267
6268         iconv: Make it possible again to use this module without 'iconv-h'.
6269         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6270         if it is not defined.
6271         Reported by Ian Beckwith <ianb@erislabs.net>.
6272
6273 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6274
6275         acl: port to Solaris 8 when copying from tmpfs to ufs
6276         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6277         error number.  Problem observed on Solaris 8 with latest
6278         coreutils, with "mv A B", where A is on a tmpfs file system and B
6279         is on a ufs file system.  This caused coreutils' mv/part-symlink
6280         test to fail.
6281
6282         tests: set fail=0 at start
6283         * tests/init.sh (setup_): Move fail=0 initialization here ...
6284         (mktempd_): ... from here, so that tests can rely on fail being
6285         set to 0 initially.  This fixes a problem in coreutils; see:
6286         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6287
6288 2010-12-18  Bruno Haible  <bruno@clisp.org>
6289
6290         memmem-simple: Stylistic changes.
6291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6292         Fix preprocessor directive indentation.
6293
6294 2010-12-15  Pádraig Brady <P@draigBrady.com>
6295
6296         memmem, memmem-simple: reorganize and expand empty needle check
6297         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6298         functional checks to memmem-simple so that one has a fully functional
6299         memmem by using just this module.
6300         Restrict the performance only check to the memmem module.
6301         Also expand the empty needle check to ensure the correct
6302         pointer is returned, not just a non NULL pointer.
6303         * doc/glibc-functions/memmem.texi: Rearrange the portability
6304         documentation to correlate with the rearranged checks.
6305         Clarify exactly how the memmem and memmem-simple modules
6306         relate to each other.
6307
6308 2010-12-15  Pádraig Brady <P@draigBrady.com>
6309             Bruno Haible  <bruno@clisp.org>
6310
6311         Improve cross-compilation guesses for uClibc.
6312         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6313         that uClibc does not have the glibc bug.
6314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6315         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6316
6317 2010-12-14  Eric Blake  <eblake@redhat.com>
6318
6319         configmake: provide fallbacks for oldest supported autotools
6320         * m4/configmake.m4: New file.
6321         * modules/configmake (Files): Ship it.
6322         (configure.ac): Use it to guarantee fallbacks.
6323
6324 2010-12-13  Pádraig Brady <P@draigBrady.com>
6325
6326         read-file: Improve handling of large files
6327         * lib/read-file.c (fread_file): Minimize realloc()s
6328         for regular files, and better manage sizes around SIZE_MAX.
6329
6330 2010-12-13  Eric Blake  <eblake@redhat.com>
6331
6332         cloexec, fcntl: relax license
6333         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6334         consent from all contributors.
6335         * modules/fcntl (License): Likewise.
6336
6337 2010-12-10  Bruno Haible  <bruno@clisp.org>
6338
6339         Tests for module 'pipe-posix'.
6340         * modules/pipe-posix-tests: New file.
6341         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6342
6343 2010-12-10  Bruno Haible  <bruno@clisp.org>
6344
6345         pipe-posix: Make it work in C++ mode.
6346         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6347         (pipe): Use common idiom, not a macro definition.
6348         * lib/pipe.c: New file.
6349         * m4/pipe.m4: New file.
6350         * modules/pipe-posix (Description): Enhance.
6351         (Files): Add lib/pipe.c, m4/pipe.m4.
6352         (configure.ac): Invoke gl_FUNC_PIPE.
6353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6354         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6355         * tests/test-unistd-c++.cc: Check the signature of pipe.
6356
6357 2010-12-10  Bruno Haible  <bruno@clisp.org>
6358
6359         Rename module 'pipe' to 'spawn-pipe'.
6360         * modules/spawn-pipe: New file, renamed from modules/pipe.
6361         (Files, configure.ac, Makefile.am): Update.
6362         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6363         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6364         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6365         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6366         "spawn-pipe.h" instead of "pipe.h".
6367         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6368         to gl_SPAWN_PIPE.
6369         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6370         (Files, Makefile.am): Update.
6371         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6372         Update.
6373         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6374         Include "spawn-pipe.h" instead of "pipe.h".
6375         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6376         * lib/javacomp.c: Likewise.
6377         * lib/javaversion.c: Likewise.
6378         * lib/pipe-filter-gi.c: Likewise.
6379         * lib/pipe-filter-ii.c: Likewise.
6380         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6381         * modules/javacomp (Depends-on): Likewise.
6382         * modules/javaversion (Depends-on): Likewise.
6383         * modules/pipe-filter-gi (Depends-on): Likewise.
6384         * modules/pipe-filter-ii (Depends-on): Likewise.
6385         * MODULES.html.sh (Executing programs): Update.
6386         * NEWS: Mention the change.
6387
6388 2010-12-10  Eric Blake  <eblake@redhat.com>
6389
6390         pipe-posix: new module
6391         * modules/pipe-posix: New file.
6392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6393         (gl_UNISTD_H): Check for declaration.
6394         * modules/unistd (Makefile.am): Substitute it.
6395         * lib/unistd.in.h (pipe): Provide it for mingw.
6396         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6397         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6398
6399 2010-12-07  Bruno Haible  <bruno@clisp.org>
6400
6401         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6402         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6403         u8_strcmp_gnu.
6404         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6405
6406 2010-12-06  Bruno Haible  <bruno@clisp.org>
6407
6408         Update internal documentation.
6409         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6410
6411 2010-12-04  Bruno Haible  <bruno@clisp.org>
6412
6413         Put more information about failed tests into the test return codes.
6414         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6415         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6416         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6417         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6418         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6419         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6420         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6421         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6422         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
6423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6424         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
6425         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6426         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6427         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6428         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
6429         returns a bit mask.
6430         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6431         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
6432         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
6433         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6434         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6435         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6436         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6438         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6439         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6440         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6441         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6442         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6443         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6444         * m4/link.m4 (gl_FUNC_LINK): Likewise.
6445         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6446         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
6447         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
6448         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6449         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
6450         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6451         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6453         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6454         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6455         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6456         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6457         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6458         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6459         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
6460         gl_PRINTF_PRECISION): Likewise.
6461         * m4/regex.m4 (gl_REGEX): Likewise.
6462         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6463         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6464         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
6465         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6466         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6468         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6469         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
6470         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6471         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6472         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6473         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6474         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6475         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6476         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6477         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6478         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6479         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6481         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
6482         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
6483         enumerated value.
6484         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
6485
6486 2010-12-04  Bruno Haible  <bruno@clisp.org>
6487
6488         Update for Solaris 11 2010-11.
6489         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
6490         Express, released in November 2010.
6491
6492 2010-12-04  Bruno Haible  <bruno@clisp.org>
6493
6494         nproc: Relax license.
6495         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
6496         and Paul Eggert.
6497         Requested by Ludovic Courtès <ludo@gnu.org>.
6498
6499 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6500
6501         utimecmp: fine-grained src to nearby coarse-grained dest
6502
6503         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
6504         and the source is on a file system with higher-resolution time
6505         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
6506         not work, and the time stamps are close together, the algorithm to
6507         determine the exact resolution from the read-back mtime was buggy:
6508         it had a "!=" where it should have had an "==".  This bug has been
6509         in the code ever since it was introduced to gnulib.
6510         Problem reported by Dan Jacobson in
6511         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
6512
6513 2010-11-30  Bruno Haible  <bruno@clisp.org>
6514
6515         strerror_r-posix: Fix autoconf test.
6516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
6517
6518 2010-11-28  Bruno Haible  <bruno@clisp.org>
6519             Paul Eggert  <eggert@cs.ucla.edu>
6520
6521         Tests for module 'getdomainname'.
6522         * modules/getdomainname-tests: New file.
6523         * tests/test-getdomainname.c: New file, based on
6524         tests/test-gethostname.c.
6525
6526 2010-11-28  Bruno Haible  <bruno@clisp.org>
6527             Paul Eggert  <eggert@cs.ucla.edu>
6528
6529         getdomainname: Use the system function when possible.
6530         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
6531         (getdomainname): Replace if needed. Provide the declaration if it is
6532         missing. Don't use _GL_CXXALIAS_SYS_CAST.
6533         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
6534         (getdomainname): When the system has getdomainname, call the system
6535         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
6536         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6537         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
6538         found in libnsl. Look for the declaration also in <netdb.h>. Replace
6539         the function if its second argument is of type 'int' or if it is found
6540         in libnsl.
6541         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
6542         <sys/systeminfo.h> and sysinfo().
6543         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
6544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6545         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
6546         HAVE_GETDOMAINNAME.
6547         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
6548         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
6549         * doc/glibc-functions/getdomainname.texi: Document the problems with
6550         the getdomainname declaration.
6551
6552 2010-11-28  Bruno Haible  <bruno@clisp.org>
6553
6554         sys_socket: Ensure ss_family field on AIX.
6555         * lib/sys_socket.in.h (ss_family): New macro definition.
6556         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
6557         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
6558         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6559         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6560         * modules/sys_socket (Makefile.am): Substitute
6561         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6562         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
6563
6564 2010-11-27  Bruno Haible  <bruno@clisp.org>
6565
6566         readline: Improve configure output.
6567         * m4/readline.m4 (gl_FUNC_READLINE): Make the
6568         "checking for readline..." result understandable.
6569
6570 2010-11-27  Bruno Haible  <bruno@clisp.org>
6571
6572         *printf-posix: Detect a bug on Solaris 10/x86.
6573         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
6574         for floating-point output.
6575         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
6576         directive.
6577         * tests/test-snprintf-posix.h (test_function): Likewise.
6578         * tests/test-sprintf-posix.h (test_function): Likewise.
6579         * tests/test-vasprintf-posix.c (test_function): Likewise.
6580         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
6581         * doc/posix-functions/printf.texi: Likewise.
6582         * doc/posix-functions/snprintf.texi: Likewise.
6583         * doc/posix-functions/sprintf.texi: Likewise.
6584         * doc/posix-functions/vfprintf.texi: Likewise.
6585         * doc/posix-functions/vprintf.texi: Likewise.
6586         * doc/posix-functions/vsnprintf.texi: Likewise.
6587         * doc/posix-functions/vsprintf.texi: Likewise.
6588         * doc/glibc-functions/obstack_printf.texi: Likewise.
6589         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6590
6591 2010-11-27  Bruno Haible  <bruno@clisp.org>
6592
6593         Fix link error when module libunistring-optional is in use.
6594         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
6595         * modules/striconveha-tests (Makefile.am): Likewise.
6596
6597 2010-11-27  Bruno Haible  <bruno@clisp.org>
6598
6599         regex: Mention link dependencies.
6600         * modules/regex (Link): New section.
6601         * modules/rpmatch (Link): Likewise.
6602         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
6603
6604 2010-11-27  Bruno Haible  <bruno@clisp.org>
6605
6606         ftoastr: Fix compilation error on Solaris.
6607         * lib/ftoastr.c: Include <config.h>.
6608
6609 2010-11-27  Bruno Haible  <bruno@clisp.org>
6610
6611         getloadavg: Update documentation.
6612         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
6613
6614 2010-11-27  Bruno Haible  <bruno@clisp.org>
6615
6616         sys_socket: Fix test whether the functions are declared.
6617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
6618         not <sys/select.h>.
6619
6620 2010-11-27  Bruno Haible  <bruno@clisp.org>
6621
6622         getpass: Make sure to get system declaration on some platforms.
6623         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
6624         gl_USE_SYSTEM_EXTENSIONS.
6625         * modules/getpass (Depends-on): Add extensions.
6626
6627 2010-11-26  Bruno Haible  <bruno@clisp.org>
6628
6629         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
6630         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
6631         'iconv' module is present.
6632         (ICONV_CONST): New macro.
6633         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
6634         ICONV_CONST.
6635         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
6636         set ICONV_CONST.
6637         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
6638         here.
6639         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
6640         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
6641         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
6642         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
6643         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
6644         present.
6645
6646 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6647
6648         ftoastr: comment fix
6649         * lib/ftoastr.c: "little" -> "little or no" in comment
6650
6651 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
6652
6653         stdint: port to GCC 4.3 + OSX + Octave
6654         On this platform, stdint.h is buggy and defines int64_t to long
6655         long int.  The replacement defined it to long int, causing
6656         problems with C++ style name mangling.  Instead, trust the system
6657         definition if INT64_MAX is defined, and likewise for the unsigned
6658         variant.   Problem reported by Jarno Rajahalme in
6659         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
6660         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
6661         and don't mess with int64_t and INT64_MAX in this case.
6662         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
6663
6664 2010-11-24  Bruno Haible  <bruno@clisp.org>
6665
6666         doc: Corrections regarding MacOS X 10.4 and 10.5.
6667         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
6668         MacOS X.
6669         Reported by Simon Josefsson.
6670
6671 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
6672
6673         Uninstall ".bin" files installed by relocwrapper.
6674         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
6675         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
6676         unless it is already there.
6677
6678 2010-11-21  Bruno Haible  <bruno@clisp.org>
6679
6680         Update for NetBSD 5.0.
6681         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6682         NetBSD; the test fails on NetBSD 5.0.
6683         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6684         about NetBSD.
6685
6686 2010-11-21  Bruno Haible  <bruno@clisp.org>
6687
6688         Update for HP-UX 11.23 and HP-UX 11.31.
6689         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
6690         HP-UX.
6691
6692 2010-11-21  Bruno Haible  <bruno@clisp.org>
6693
6694         Update for MacOS X 10.5.
6695         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6696         MacOS X; the test fails on MacOS X 10.5.8.
6697         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6698         about MacOS X.
6699
6700 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
6701
6702         bootstrap: add bootstrap_sync option.
6703         See discussion at
6704         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
6705         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
6706         * build-aux/bootstrap: Accept --bootstrap-sync to update
6707         bootstrap if it is not identical to the local gnulib's
6708         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
6709         enable this by default.  Accept --no-bootstrap-sync to disable
6710         it.
6711
6712 2010-11-20  Bruno Haible  <bruno@clisp.org>
6713
6714         Ensure that <features.h> is included before __GLIBC__ is tested.
6715         * lib/printf-parse.h: Include <features.h>.
6716         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
6717         Reported by Mike Frysinger <vapier@gentoo.org>.
6718
6719         Ensure that <features.h> is included before __GLIBC__ is tested.
6720         * lib/wchar.in.h: Include <features.h>.
6721         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
6722         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
6723         Reported by Mike Frysinger <vapier@gentoo.org>.
6724
6725         Ensure that <features.h> is included before __GLIBC__ is tested.
6726         * lib/arpa_inet.in.h: Include <features.h>.
6727         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
6728         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
6729         Reported by Mike Frysinger <vapier@gentoo.org>.
6730
6731         Ensure that <features.h> is included before __GLIBC__ is tested.
6732         * build-aux/link-warning.h: Include <features.h>.
6733         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
6734         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
6735         Reported by Mike Frysinger <vapier@gentoo.org>.
6736
6737         Ensure that <features.h> is included before __GLIBC__ is tested.
6738         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
6739         Reported by Mike Frysinger <vapier@gentoo.org>.
6740
6741 2010-11-20  Bruno Haible  <bruno@clisp.org>
6742
6743         memmem: Fix autoconf test.
6744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
6745
6746 2010-11-20  Bruno Haible  <bruno@clisp.org>
6747
6748         Port to uClibc.
6749         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
6750         * lib/fcntl.in.h: Likewise.
6751         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
6752         * lib/mbrtowc.c (mbrtowc): Likewise.
6753         * lib/relocatable.c (find_shared_library_fullname): Likewise.
6754         * lib/strerror_r.c: Likewise.
6755         * lib/unistr/u8-strnlen.c: Likewise.
6756         * lib/vasnprintf.c (decimal_point_char): Likewise.
6757         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6758         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6759         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6760         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6761         * tests/test-sigaction.c (handler, main): Likewise.
6762         * lib/freading.h: Treat uClibc like a non-glibc platform.
6763         * lib/freading.c: Likewise.
6764         * lib/gettext.h: Likewise.
6765         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
6766         Likewise.
6767         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
6768         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6769         * lib/propername.c (proper_name_utf8): Likewise.
6770         * lib/spawn.in.h: Likewise.
6771         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
6772         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
6773         mem_cd_iconveh_internal): Likewise.
6774         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
6775         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6776         strstr, strcasestr): Likewise.
6777         * lib/unicodeio.c (unicode_to_mb): Likewise.
6778         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
6779         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
6780         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
6781         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
6782         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
6783         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
6784         * lib/unistr/u8-stpncpy.c: Likewise.
6785         * lib/vasnprintf.c (VASNPRINTF): Likewise.
6786         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
6787         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6788         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6789         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6790         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
6791         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
6792         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
6793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6794         Likewise.
6795         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6796         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6797         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6798         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6799         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6800         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6801         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6802         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6803         * tests/test-getopt.h (OPTIND_MIN): Likewise.
6804         * tests/test-striconveha.c (main): Likewise.
6805         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6806         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
6807         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
6808         * doc/posix-functions/getline.texi: Likewise.
6809         Reported by Mike Frysinger <vapier@gentoo.org>.
6810
6811 2010-11-20  Bruno Haible  <bruno@clisp.org>
6812
6813         nproc: Fix condition.
6814         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
6815         HAVE_PTHREAD_AFFINITY_NP.
6816
6817 2010-11-20  Bruno Haible  <bruno@clisp.org>
6818
6819         Fix a comment.
6820         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
6821
6822 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
6823
6824         ftoastr: don't assume snprintf
6825         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
6826         Implement a subset of snprintf here, by using sprintf safely.
6827         * modules/ftoastr (Depends-on): Remove snprintf.
6828
6829 2010-11-19  Jim Meyering  <meyering@redhat.com>
6830
6831         test-rename.h: fix compilation failure
6832         * tests/test-rename.h (test_rename): Add omitted "}".
6833
6834 2010-11-17  Jim Meyering  <meyering@redhat.com>
6835
6836         maint.mk: add a URL discussing the no-@acronym policy
6837         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
6838
6839 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6840
6841         ftoastr: depend on snprintf, improve comments
6842         * lib/ftoastr.c: Also mention Loitsch's draft.
6843         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
6844         needed in the current implementation, but it might simplify
6845         speeding up the code later.
6846         * modules/ftoastr: Depend on snprintf; this improves portability.
6847         Suggested by Bruno Haible in the same email.
6848
6849         ftoastr: port to hosts lacking strtof and strtold
6850         Problem reported by Bruno Haible in
6851         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
6852         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
6853         environment and strtold (and presumably strtof) are not available.
6854         * modules/ftoastr (Files): Add m4/c-strtod.m4.
6855         (configure.ac): Require gl_C99_STRTOLD.
6856
6857 2010-11-18  Bruno Haible  <bruno@clisp.org>
6858
6859         c-strtold: Avoid link error on AIX 7.
6860         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
6861         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
6862         (gl_C_STRTOLD): Test whether strtold_l exists.
6863         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6864
6865 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6866
6867         intprops: new macro INT_BITS_STRLEN_BOUND
6868         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
6869         ftoastr.h.  This exposes an internal of intprops.h that was formerly
6870         not exposed.  Also, it uses a slightly tighter bound than before;
6871         though this makes no practical difference, we might as well be as
6872         tight as we easily can.
6873
6874         ftoastr: new module, for lossless conversion of floats to short strings
6875         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
6876         * modules/ftoastr: New files.
6877
6878 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6879
6880         bootstrap: port to Solaris sed
6881         * build-aux/bootstrap (get_version): Port to Solaris sed.
6882         See Ralf Wildenhues's note in
6883         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
6884
6885 2010-11-14  Jim Meyering  <meyering@redhat.com>
6886
6887         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
6888         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
6889         and move definition closer to sole use.
6890
6891 2010-11-13  Jim Meyering  <meyering@redhat.com>
6892
6893         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
6894         Now we require at least autoconf-2.59, which means the work-around
6895         is no longer needed.
6896         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
6897         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6898         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6899         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6900         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6901
6902 2010-11-13  Bruno Haible  <bruno@clisp.org>
6903
6904         rename, renameat: Avoid test failures at NFS mounted locations.
6905         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
6906         functions.
6907         (test_rename): Use assert_nonexistent.
6908         * tests/test-rename.c: Include <dirent.h>.
6909         * tests/test-renameat.c: Likewise.
6910         Reported by Gary V. Vaughan <gary@gnu.org>.
6911
6912         rename, renameat: Document Linux bug with NFS
6913         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
6914         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
6915         * doc/posix-functions/renameat.texi: Likewise.
6916         Suggested by Eric Blake.
6917
6918 2010-11-13  Bruno Haible  <bruno@clisp.org>
6919
6920         rename test: Add comments.
6921         * tests/test-rename.h (test_rename): Add structure and comments.
6922
6923 2010-11-13  Eric Blake  <eblake@redhat.com>
6924
6925         maintainer-makefile: cover a few more files
6926         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
6927         scripts generated within C files, for libvirt.
6928
6929 2010-11-13  Bruno Haible  <bruno@clisp.org>
6930
6931         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
6932         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
6933         character, return the number of bytes that belong together, not always
6934         1.
6935         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6936         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6937         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6938         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
6939         number of bytes of an invalid character.
6940         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
6941         (main): Invoke it.
6942         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
6943         results.
6944         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
6945         malformed byte sequences.
6946         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
6947         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
6948         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
6949         Reported by Ben Pfaff and Paolo Bonzini.
6950
6951 2010-11-13  Bruno Haible  <bruno@clisp.org>
6952
6953         openat: Work around glibc bug with fchownat() and empty file names.
6954         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
6955         (gl_FUNC_FCHOWNAT): Invoke it.
6956         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
6957         * doc/posix-functions/fchownat.texi: Document the glibc bug.
6958         Reported by Gary V. Vaughan <gary@gnu.org>.
6959
6960 2010-11-13  Bruno Haible  <bruno@clisp.org>
6961
6962         openat: Ensure autoconf macro ordering.
6963         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
6964         gl_USE_SYSTEM_EXTENSIONS.
6965         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
6966
6967 2010-11-13  Bruno Haible  <bruno@clisp.org>
6968
6969         Update comments.
6970         * lib/unistr/u8-check.c: Update file name in comments.
6971         * lib/unistr/u8-mblen.c: Likewise.
6972         * lib/unistr/u8-prev.c: Likewise.
6973         * lib/unistr/u8-strmblen.c: Likewise.
6974         * lib/unistr/u8-strmbtouc.c: Likewise.
6975
6976 2010-11-13  Jim Meyering  <meyering@redhat.com>
6977
6978         tests: avoid test failure on Solaris 10 due to lack of PATH export
6979         * tests/test-update-copyright.sh: Don't forget to export PATH.
6980
6981         init.sh: ensure that IFS is defined, just in case...
6982         * tests/init.sh (setup_): Ensure that IFS is defined,
6983         so that saving and restoring it works as expected.  This
6984         appears to be useful at least for an old version of dash
6985         from a long time ago (RH 6).  See here for details:
6986         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
6987
6988         maint.mk: tighten "test a == b" check
6989         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
6990         test to files that contain something like #!/bin/sh.
6991         Without this, coreutils would get two false positives in
6992         the comments of C source files.
6993
6994 2010-11-12  Eric Blake  <eblake@redhat.com>
6995
6996         bootstrap: fix typo in previous attempt
6997         * build-aux/bootstrap (buildreq): Correct the grouping.
6998         Reported by Paul Eggert.
6999
7000         maintainer-makefile: prohibit test x == x
7001         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7002         Based on a report by Matthias Bolte.
7003
7004         bootstrap: allow FreeBSD gzip
7005         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7006         which has no '.' and goes to stderr.
7007         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7008         Reported by Matthias Bolte.
7009
7010         maintainer-makefile: check for i18n setup
7011         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7012         will likely work.
7013
7014 2010-11-12  Bruno Haible  <bruno@clisp.org>
7015
7016         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7017         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7018         * lib/nanosleep.c (nanosleep): Likewise.
7019
7020 2010-11-11  Bruno Haible  <bruno@clisp.org>
7021
7022         fcntl-h: Fix for use of C++ on glibc systems.
7023         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7024         also on glibc systems in C++ mode.
7025         Reported by Gary V. Vaughan <gary@gnu.org>.
7026
7027 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7028
7029         mknod: avoid false failure with dash
7030         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7031
7032 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7033
7034         unlink: Fix "is it should" typo in diagnostic.
7035         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7037
7038 2010-11-11  Bruno Haible  <bruno@clisp.org>
7039
7040         Tests for module 'strerror_r-posix'.
7041         * modules/strerror_r-posix-tests: New file.
7042         * tests/test-strerror_r.c: New file.
7043         * tests/test-string-c++.cc: Check the signature of strerror_r.
7044
7045         New module 'strerror_r-posix'.
7046         * lib/string.in.h (strerror_r): New declaration.
7047         * lib/strerror_r.c: New file.
7048         * m4/strerror_r.m4: New file.
7049         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7050         of strerror_r.
7051         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7052         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7053         * modules/strerror_r-posix: New file.
7054         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7055         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7056         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7057         portability problems.
7058
7059 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7060
7061         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7062         line is also considered for output. Quoted function name in shell
7063         command, so temporary files for functions like MyClass::operator()
7064         are removed correctly without errors.
7065
7066 2010-11-09  Bruno Haible  <bruno@clisp.org>
7067
7068         * doc/posix-functions/strerror.texi: List more failing platforms.
7069
7070         * doc/posix-functions/strerror.texi: Add a comment.
7071
7072 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7073
7074         fdopendir: fix bug on MacOS X when low on file descriptors
7075
7076         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7077         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7078         All callers changed.
7079         (fdopendir): Invoke save_cwd at the top level, not after using
7080         multiple dup() calls to use up file descriptors.  Then retry
7081         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7082         less than the maximum number of open file descriptors, because
7083         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7084         on Mac OS X 10.6.4 for tar 1.24
7085         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7086         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7087         and for tar 1.25
7088         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7089
7090 2010-11-07  Bruno Haible  <bruno@clisp.org>
7091
7092         vasnprintf: Support I flag on glibc systems.
7093         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7094         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7095         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7096         snprintf function.
7097         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7098         glibc systems.
7099         * tests/test-vasnprintf-posix3.c: New file.
7100         * modules/vasnprintf-posix-tests (Files): Add it.
7101         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7102
7103 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7104
7105         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7106         * MODULES.html.sh: For compiler warnings, use name
7107         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7108
7109 2010-11-05  Eric Blake  <eblake@redhat.com>
7110
7111         ceil, floor: avoid spurious failure with icc
7112         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7113         [denormals-as-zero] when optimizing without -mieee-fp option.
7114         * tests/test-floorf2.c (floorf_reference): Likewise.
7115         * tests/test-ceilf1.c (dummy): New function.
7116         (main): Use it to outsmart icc's optimization.
7117         * tests/test-floorf1.c (dummy, main): Likewise.
7118
7119         tests: require working signbit
7120         * modules/ceilf-tests (Depends-on): Add signbit.
7121         * modules/ceill-tests (Depends-on): Likewise.
7122         * modules/floorf-tests (Depends-on): Likewise.
7123         * modules/floorl-tests (Depends-on): Likewise.
7124         * modules/round-tests (Depends-on): Likewise.
7125         * modules/roundf-tests (Depends-on): Likewise.
7126         * modules/roundl-tests (Depends-on): Likewise.
7127         * modules/trunc-tests (Depends-on): Likewise.
7128         * modules/truncf-tests (Depends-on): Likewise.
7129         * modules/truncl-tests (Depends-on): Likewise.
7130
7131         strtod: work around icc bug
7132         * lib/strtod.c (minus_zero): Define to working value.
7133         (strtod): Use it to avoid icc bug.
7134
7135         copysign: enhance tests
7136         * modules/copysign-tests (Files): Add minus-zero.h.
7137         * tests/test-copysign.c (main): Also test zeros.
7138
7139 2010-11-04  Eric Blake  <eblake@redhat.com>
7140
7141         ceil, floor, round, trunc: enhance tests of -0
7142         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7143         * tests/test-ceill.c (main): Likewise.
7144         * tests/test-floorf1.c (main): Likewise.
7145         * tests/test-floorl.c (main): Likewise.
7146         * tests/test-round1.c (main): Likewise.
7147         * tests/test-roundf1.c (main): Likewise.
7148         * tests/test-roundl.c (main): Likewise.
7149         * tests/test-trunc1.c (main): Likewise.
7150         * tests/test-truncf1.c (main): Likewise.
7151         * tests/test-truncl.c (main): Likewise.
7152
7153 2010-11-04  Eric Blake  <eblake@redhat.com>
7154
7155         frexp, tests: work around ICC bug with -zero
7156         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7157         works with more compilers.
7158         * tests/minus-zero.h: New file.
7159         * modules/ceilf-tests (Files): Include it.
7160         * modules/ceill-tests (Files): Likewise.
7161         * modules/floorf-tests (Files): Likewise.
7162         * modules/floorl-tests (Files): Likewise.
7163         * modules/frexp-nolibm-tests (Files): Likewise.
7164         * modules/frexp-tests (Files): Likewise.
7165         * modules/frexpl-nolibm-tests (Files): Likewise.
7166         * modules/frexpl-tests (Files): Likewise.
7167         * modules/isnan-tests (Files): Likewise.
7168         * modules/isnand-nolibm-tests (Files): Likewise.
7169         * modules/isnand-tests (Files): Likewise.
7170         * modules/isnanf-nolibm-tests (Files): Likewise.
7171         * modules/isnanf-tests (Files): Likewise.
7172         * modules/isnanl-nolibm-tests (Files): Likewise.
7173         * modules/isnanl-tests (Files): Likewise.
7174         * modules/round-tests (Files): Likewise.
7175         * modules/roundf-tests (Files): Likewise.
7176         * modules/roundl-tests (Files): Likewise.
7177         * modules/ldexpl-tests (Files): Likewise.
7178         * modules/signbit-tests (Files): Likewise.
7179         * modules/snprintf-posix-tests (Files): Likewise.
7180         * modules/sprintf-posix-tests (Files): Likewise.
7181         * modules/strtod-tests (Files): Likewise.
7182         * modules/trunc-tests (Files): Likewise.
7183         * modules/truncf-tests (Files): Likewise.
7184         * modules/truncl-tests (Files): Likewise.
7185         * modules/vsnprintf-posix-tests (Files): Likewise.
7186         * modules/vsprintf-posix-tests (Files): Likewise.
7187         * modules/vasnprintf-posix-tests (Files): Likewise.
7188         * modules/vasprintf-posix-tests (Files): Likewise.
7189         * tests/test-ceilf1.c (main): Use it.
7190         * tests/test-ceill.c (main): Likewise.
7191         * tests/test-floorf1.c (main): Likewise.
7192         * tests/test-floorl.c (main): Likewise.
7193         * tests/test-frexp.c (main): Likewise.
7194         * tests/test-frexpl.c (main): Likewise.
7195         * tests/test-isnan.c (main): Likewise.
7196         * tests/test-isnand.h (main): Likewise.
7197         * tests/test-isnanf.h (main): Likewise.
7198         * tests/test-isnanl.h (main): Likewise.
7199         * tests/test-ldexpl.c (main): Likewise.
7200         * tests/test-round.c (main): Likewise.
7201         * tests/test-roundf.c (main): Likewise.
7202         * tests/test-roundl.c (main): Likewise.
7203         * tests/test-signbit.c (test_signbitf, test_signbitd)
7204         (test_signbitl): Likewise.
7205         * tests/test-snprintf-posix.h (test_function): Likewise.
7206         * tests/test-sprintf-posix.h (test_function): Likewise.
7207         * tests/test-strtod.c (main): Likewise.
7208         * tests/test-trunc1.c (main): Likewise.
7209         * tests/test-truncf1.c (main): Likewise.
7210         * tests/test-truncl.c (main): Likewise.
7211
7212         isnanl: work around icc bug
7213         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7214
7215 2010-11-03  Eric Blake  <eblake@redhat.com>
7216
7217         tests: fix compiler warnings
7218         * tests/test-getopt.h (test_getopt): Fix condition.
7219         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7220         * tests/test-pipe2.c (main): Likewise.
7221         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7222
7223         utimens: fix broken m4 test
7224         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7225
7226 2010-10-28  Bruno Haible  <bruno@clisp.org>
7227
7228         posix_spawn*, getdtablesize: Relax license.
7229         * modules/posix_spawn (License): Change to LGPLv2+.
7230         * modules/posix_spawnp (License): Likewise.
7231         * modules/posix_spawn-internal (License): Likewise.
7232         * modules/posix_spawnattr_init (License): Likewise.
7233         * modules/posix_spawnattr_getflags (License): Likewise.
7234         * modules/posix_spawnattr_setflags (License): Likewise.
7235         * modules/posix_spawnattr_getpgroup (License): Likewise.
7236         * modules/posix_spawnattr_setpgroup (License): Likewise.
7237         * modules/posix_spawnattr_getschedparam (License): Likewise.
7238         * modules/posix_spawnattr_setschedparam (License): Likewise.
7239         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7240         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7241         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7242         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7243         * modules/posix_spawnattr_getsigmask (License): Likewise.
7244         * modules/posix_spawnattr_setsigmask (License): Likewise.
7245         * modules/posix_spawnattr_destroy (License): Likewise.
7246         * modules/posix_spawn_file_actions_init (License): Likewise.
7247         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7248         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7249         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7250         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7251         * modules/getdtablesize (License): Likewise.
7252         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7253
7254 2010-10-26  Bruno Haible  <bruno@clisp.org>
7255
7256         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7257         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7258         Cygwin and mingw.
7259         Suggested by Eric Blake.
7260
7261 2010-10-26  Bruno Haible  <bruno@clisp.org>
7262
7263         stdio: Work around compilation error due to renameat() on Solaris 10.
7264         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7265         * lib/renameat.c: Don't include <unistd.h> here.
7266         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7267         Reported by Paul Eggert and Eric Blake.
7268
7269 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7270
7271         renameat: port to Solaris 10, which declares renameat in unistd.h
7272
7273         * lib/renameat.c: Include unistd.h before stdio.h, because
7274         Solaris 10 declares renameat in unistd.h.  Problem encountered
7275         when building GNU tar 1.24 on Solaris 10.
7276
7277 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7278
7279         fdopendir: fix C89 compilation
7280         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7281         compilers.
7282
7283 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7284
7285         inttostr: simplify by removing unnecessary redundancy
7286         * lib/anytostr.c: Don't include verify.h.
7287         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7288         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7289         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7290         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7291         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7292         Likewise.
7293         * modules/inttostr (Depends-on): Remove 'verify'.
7294
7295 2010-10-23  Bruno Haible  <bruno@clisp.org>
7296
7297         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7298         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7299         Reported by Eric Blake.
7300
7301 2010-10-23  Bruno Haible  <bruno@clisp.org>
7302
7303         Tests: Fix LOCALE_JA on MirBSD 10.
7304         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7305         to an UTF-8 locale.
7306         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7307         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7308         Reported by Eric Blake.
7309
7310 2010-10-21  Bruno Haible  <bruno@clisp.org>
7311
7312         nl_langinfo test: Avoid test failure on NetBSD 5.
7313         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7314         Reported by Eric Blake.
7315
7316 2010-10-21  Eric Blake  <eblake@redhat.com>
7317
7318         c-stack: work around libsigsegv 2.8 bug
7319         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7320         overflow on at least PowerPC64.
7321
7322 2010-10-17  Bruno Haible  <bruno@clisp.org>
7323
7324         userspec: Drop redundant file.
7325         * modules/userspec (Files): Remove lib/inttostr.h.
7326
7327 2010-10-17  Bruno Haible  <bruno@clisp.org>
7328
7329         nl_langinfo tests: Silence some warnings.
7330         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7331         Reported by Jim Meyering.
7332
7333 2010-10-17  Bruno Haible  <bruno@clisp.org>
7334
7335         Make use of GCC's attribute __alloc_size__.
7336         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7337         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7338         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7339         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7340         __alloc_size__.
7341         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7342         Suggested by Jim Meyering.
7343
7344 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7345
7346         bootstrap: anchor .gitignore entries.
7347         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7348         with...
7349         (insert_vc_ignore): ... this new function, which prepends `/' to
7350         all .gitignore entries before passing them to
7351         insert_sorted_if_absent.
7352
7353 2010-10-16  Bruno Haible  <bruno@clisp.org>
7354
7355         nextafter: Fix configure check.
7356         * modules/nextafter (configure.ac): Correct expected prototype.
7357
7358 2010-10-16  Bruno Haible  <bruno@clisp.org>
7359
7360         termios: Update documentation.
7361         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7362
7363 2010-10-16  Bruno Haible  <bruno@clisp.org>
7364
7365         tests: Make them compile with TinyCC.
7366         * tests/test-strstr.c (main): Remove parentheses around array
7367         initializer.
7368
7369 2010-10-15  Eric Blake  <eblake@redhat.com>
7370
7371         ignore-value: make header idempotent
7372         * lib/ignore-value.h: Add double-inclusion guards.
7373         Reported by Stefan Berger.
7374
7375 2010-10-15  Jim Meyering  <meyering@redhat.com>
7376
7377         GNUmakefile: handle "stable" target, not "major"
7378         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7379         lists in maint.mk and announce-gen.  Without this, "make stable"
7380         would fail to ensure that $(VERSION) is up to date.
7381
7382 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7383
7384         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7385         & co.
7386
7387 2010-10-14  Bruno Haible  <bruno@clisp.org>
7388
7389         vasnprintf: Don't set errno to 0.
7390         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7391         block that sets it to 0.
7392         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7393
7394 2010-10-14  Bruno Haible  <bruno@clisp.org>
7395
7396         socketlib: Fix.
7397         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7398         gl_PREREQ_SYS_H_WINSOCK2.
7399         Reported by Ian Beckwith <ianb@erislabs.net>.
7400
7401 2010-10-13  Jim Meyering  <meyering@redhat.com>
7402
7403         test-select-stdin.c: avoid warn_unused_result warnings
7404         * tests/test-select-stdin.c: Include "macros.h".
7405         ASSERT that read and fflush succeed.
7406
7407 2010-10-13  Jim Meyering  <meyering@redhat.com>
7408
7409         git-version-gen: do require git-VC'd files in cwd
7410         * build-aux/git-version-gen: Reject a git version string
7411         if there are no commits associated with the current directory.
7412         This avoids an unlikely false-positive (unrelated dir whose parent
7413         repository also contains a tag matching v*), as pointed out
7414         by Giuseppe Scrivano in
7415         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7416
7417 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7418
7419         argv-iter: omit nonconforming declaration
7420         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
7421         enum arg_iter_err declaration, which doesn't conform to C99.
7422         Solaris 10 cc warns about this.
7423
7424 2010-10-13  Eric Blake  <eblake@redhat.com>
7425
7426         termios: fix compilation on mingw
7427         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
7428         (gl_TERMIOS_H): Adjust it on mingw.
7429         * modules/termios (Makefile.am): Substitute new key.
7430         * lib/termios.in.h (includes): Make include_next conditional.
7431         * doc/posix-headers/termios.texi (termios.h): Update
7432         documentation.
7433         Reported by Daniel P. Berrange.
7434
7435 2010-10-13  Jim Meyering  <meyering@redhat.com>
7436
7437         git-version-gen: don't require that .git/ be in the current dir
7438         * build-aux/git-version-gen: Adjust this script so that it works
7439         when run from any working directory beneath the top-level .git/-
7440         containing directory.  Inspired by a patch from Giuseppe Scrivano,
7441         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
7442
7443         test-select: avoid warn_unused_result warnings
7444         * tests/test-select.c: Include "macros.h".
7445         ASSERT that each call to read, write, and pipe succeeds.
7446         While not technically required, also check each "close".
7447         * modules/select-tests (Files): Add tests/macros.h.
7448
7449         test-symlinkat: remove declaration of unused local
7450         * tests/test-symlinkat.c (main): Remove unused local, "buf".
7451
7452         test-inttostr: avoid shadowing warnings
7453         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
7454         and use malloc rather than the stack for the same reason as
7455         mentioned in the comment justifying the other allocation.
7456
7457 2010-10-11  Bruno Haible  <bruno@clisp.org>
7458
7459         stdlib: Allow multiple gnulib generated replacements to coexist.
7460         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
7461         Reported by Sam Steingold <sds@gnu.org>.
7462
7463 2010-10-11  Jim Meyering  <meyering@redhat.com>
7464
7465         fix a documentation typo
7466         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
7467
7468 2010-10-11  Eric Blake  <eblake@redhat.com>
7469
7470         futimens: work around Solaris 11 bug
7471         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
7472         * tests/test-futimens.h (test_futimens): Enhance, rather than
7473         weaken test.
7474         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7475
7476 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7477
7478         Indentation.
7479         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
7480         higher-level operators more to the left.
7481
7482 2010-10-11  Jim Meyering  <meyering@redhat.com>
7483
7484         test-futimens: avoid unwarranted test failure on Solaris 5.11
7485         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
7486         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
7487         because it tries to dereference the NULL name argument.
7488
7489 2010-10-11  Bruno Haible  <bruno@clisp.org>
7490
7491         Indentation.
7492         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
7493         indentation.
7494
7495 2010-10-11  Jim Meyering  <meyering@redhat.com>
7496
7497         spawn.in.h: make indentation consistent with parentheses
7498         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
7499         Make indentation consistent with parentheses.
7500
7501 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
7502
7503         Fix mismatched parens in previous commit
7504         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
7505         parens.
7506
7507 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7508
7509         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
7510
7511         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
7512         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
7513         * lib/malloca.c: Include "verify.h".
7514         (verify1): Remove, replacing with a verify call.
7515         * lib/relocwrapper.c (verify1): Likewise.
7516         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
7517         Likewise.
7518         * modules/malloca (Depends-on): Add 'verify'.
7519         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
7520         * modules/vasnprintf (Depends-on): Add 'verify'.
7521         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7522         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7523         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7524         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7525         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7526         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7527         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7528
7529         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
7530
7531         Formerly the style was sometimes 2*X - 1, because the C standard
7532         was wrongly thought to disallow ?: in integral constant expressions.
7533         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
7534         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
7535         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7536         * lib/stdint.in.h (_verify_intmax_size): Likewise.
7537         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
7538         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
7539         verify that time_t cannot be floating.
7540
7541 2010-10-08  Eric Blake  <eblake@redhat.com>
7542
7543         time: enforce recent POSIX ruling that time_t is integral
7544         * lib/time.in.h (__time_t_must_be_integral): Detect any
7545         problematic systems, allowing the rest of gnulib to assume POSIX.
7546
7547 2010-10-08  Jim Meyering  <meyering@redhat.com>
7548
7549         fdopendir: fix a bug on systems lacking openat and /proc support
7550         OpenBSD 4.7 is one such system.  The most noticeable effect was
7551         failure of any application making nontrivial use of fts: rm, du,
7552         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
7553           ./rm: traversal failed: `a': Bad file descriptor
7554         Debugging that, you see that even though FD 6 was closed just
7555         prior to the opendir call in fd_clone_opendir, its resulting
7556         dir->dd_fd was 8, rather than the expected value of 6:
7557
7558         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
7559         93                close (fd);
7560         (gdb) n
7561         94                dir = fd_clone_opendir (dupfd);
7562         (gdb) n
7563         95                saved_errno = errno;
7564         (gdb) p dir->dd_fd
7565         $11 = 8
7566
7567         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
7568         The problem is that on OpenBSD, fd_clone_opendir has to resort
7569         to using the old-style save/restore CWD mechanism, due to its
7570         lack of openat/proc support, and *that* would steal the FD (6)
7571         that opendir was supposed to use.
7572
7573         The fix is to squirrel away the desired FD so that save_cwd uses a
7574         different one, and then free the dest FD right before calling opendir.
7575         That guarantees opendir will use the required file descriptor.
7576
7577         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
7578
7579 2010-10-08  Bruno Haible  <bruno@clisp.org>
7580
7581         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
7582         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
7583
7584 2010-10-08  Bruno Haible  <bruno@clisp.org>
7585
7586         nanosleep: Make replacement POSIX compliant.
7587         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
7588         is out of range.
7589         Reported by Jim Meyering.
7590
7591 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7592
7593         bootstrap: add hook for altering gnulib.mk, for Bison
7594         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
7595         the Bison bootstrapping process can rewrite file names and variables
7596         in this file before later parts of 'bootstrap' use the file.
7597         Bison wants to include lib/gnulib.mk from the top-level makefile,
7598         so it needs the file names in this file to be relative to the top
7599         level, not relative to lib; plus it needs variable names to be
7600         rewritten.
7601         (slurp): Use the new function.
7602
7603         bootstrap: reformat for readability
7604         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
7605
7606 2010-10-08  Eric Blake  <eblake@redhat.com>
7607
7608         docs: update cygwin progress
7609         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
7610         1.7.7.
7611         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
7612         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
7613         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
7614         * doc/posix-functions/carg.texi (carg): Likewise.
7615         * doc/posix-functions/cargf.texi (cargf): Likewise.
7616         * doc/posix-functions/casin.texi (casin): Likewise.
7617         * doc/posix-functions/casinf.texi (casinf): Likewise.
7618         * doc/posix-functions/casinh.texi (casinh): Likewise.
7619         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
7620         * doc/posix-functions/catan.texi (catan): Likewise.
7621         * doc/posix-functions/catanf.texi (catanf): Likewise.
7622         * doc/posix-functions/catanh.texi (catanh): Likewise.
7623         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
7624         * doc/posix-functions/ccos.texi (ccos): Likewise.
7625         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
7626         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
7627         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
7628         * doc/posix-functions/cexp.texi (cexp): Likewise.
7629         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
7630         * doc/posix-functions/cimag.texi (cimag): Likewise.
7631         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
7632         * doc/posix-functions/clog.texi (clog): Likewise.
7633         * doc/posix-functions/clogf.texi (clogf): Likewise.
7634         * doc/posix-functions/conj.texi (conj): Likewise.
7635         * doc/posix-functions/conjf.texi (conjf): Likewise.
7636         * doc/posix-functions/cpow.texi (cpow): Likewise.
7637         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
7638         * doc/posix-functions/cproj.texi (cproj): Likewise.
7639         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
7640         * doc/posix-functions/creal.texi (creal): Likewise.
7641         * doc/posix-functions/crealf.texi (crealf): Likewise.
7642         * doc/posix-functions/csin.texi (csin): Likewise.
7643         * doc/posix-functions/csinf.texi (csinf): Likewise.
7644         * doc/posix-functions/csinh.texi (csinh): Likewise.
7645         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
7646         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
7647         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
7648         * doc/posix-functions/ctan.texi (ctan): Likewise.
7649         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
7650         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
7651         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
7652         * doc/posix-headers/complex.texi (complex.h): Likewise.
7653
7654 2010-10-07  Jim Meyering  <meyering@redhat.com>
7655
7656         parse-datetime: avoid compilation failure on OpenBSD 4.7
7657         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
7658         This works around a compilation failure on OpenBSD 4.7:
7659         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
7660
7661 2010-10-07  Eric Blake  <eblake@redhat.com>
7662
7663         docs: update cygwin progress
7664         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
7665         1.7.6.
7666         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7667         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
7668         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
7669         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
7670         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
7671         Likewise.
7672         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
7673         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
7674         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
7675         Likewise.
7676         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
7677         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
7678         Likewise.
7679         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
7680         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
7681         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
7682         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
7683         Likewise.
7684         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
7685         Likewise.
7686         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
7687
7688         docs: update parse-datetime history
7689         * doc/parse-datetime.texi (Authors of parse_datetime): Better
7690         documentation of this function's history and alternatives.
7691
7692         cygwin: use more robust version check
7693         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
7694         exclude an eventual cygwin 1.9.1.
7695         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7697         (gl_FUNC_STRCASESTR): Likewise.
7698         Reported by Bruno Haible.
7699
7700 2010-10-06  Bruno Haible  <bruno@clisp.org>
7701
7702         string, sys_select: Avoid #including large headers unless necessary.
7703         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
7704         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
7705         OSF/1, BeOS, Haiku.
7706         Reported by Jim Meyering.
7707
7708 2010-10-05  Eric Blake  <eblake@redhat.com>
7709
7710         memmem, strstr, strcasestr: fix bug with long periodic needle
7711         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
7712         periodic needle having false positive.
7713         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
7714         and cygwin 1.7.7.
7715         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
7716         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7717         (gl_FUNC_STRCASESTR): Likewise.
7718         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7719         * tests/test-memmem.c (main): Expose the bug.
7720         * tests/test-strcasestr.c (main): Likewise.
7721         * tests/test-strstr.c (main): Likewise.
7722         * tests/test-c-strcasestr.c (main): Likewise.
7723         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
7724         * doc/posix-functions/strstr.texi (strstr): Likewise.
7725         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7726         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
7727
7728 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7729
7730         parse-datetime: do some more renaming
7731         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
7732         parse_datetime, not get_date.  Mention the renaming.
7733         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
7734         in comments.
7735         * m4/bison.m4: Likewise.
7736
7737 2010-10-05  Eric Blake  <eblake@redhat.com>
7738
7739         parse-datetime: better name than get_date
7740         * NEWS: Reword the deprecation notice.
7741         * modules/get_date: Rename to modules/parse-datetime.
7742         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
7743         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
7744         * lib/get_date.y: Rename to lib/parse-datetime.y.
7745         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
7746         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
7747         * doc/getdate.texi: Provide fallback wrapper.
7748         * lib/getdate.h: Move guts, and wrap...
7749         * lib/parse-datetime.h: ...new file.
7750         * lib/parse-datetime.y (get_date): Rename...
7751         (parse_datetime): ...to this.
7752         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
7753         (gl_PARSE_DATETIME): ...to this.
7754         * doc/posix-functions/getdate.texi (get_date): Provide fallback
7755         documentation.
7756         * modules/getdate (Files): Provide fallback docs and header.
7757         (Notice, Depends-on): Update references.
7758         * tests/test-parse-datetime.c: Likewise.
7759         * DEPENDENCIES: Likewise.
7760         * MODULES.html.sh (Date and time <time.h>): Likewise.
7761         * doc/parse-datetime.texi (Date input formats)
7762         (Authors of parse_datetime): Likewise.
7763         * modules/parse-datetime (Files, configure.ac, Makefile.am)
7764         (Include): Likewise.
7765         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
7766         * gnulib-tool: Likewise.
7767         * m4/bison.m4 (gl_BISON): Likewise.
7768         Suggested by Bruno Haible.
7769
7770 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7771
7772         more ports to Solaris tr, which needs [] around ranges
7773         * gnulib-tool: Solaris tr needs [] around ranges.
7774         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7775         * tests/test-pipe-filter-gi1.c (main): Likewise.
7776         * tests/test-pipe-filter-ii1.c (main): Likewise.
7777
7778 2010-10-05  Eric Blake  <eblake@redhat.com>
7779
7780         bootstrap: fix Solaris regression
7781         * build-aux/bootstrap (check_versions): Solaris tr still needs []
7782         around ranges.
7783         Reported by Pádraig Brady.
7784
7785         bootstrap: work with pkg-config
7786         * build-aux/bootstrap (check_versions): Also transliterate - in
7787         prerequisite name.
7788         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
7789         prerequisites that were already found, to avoid confusion.
7790         Reported by Justin Clift.
7791
7792         faccessat: remove unused wrappers
7793         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
7794         presence of these wrappers dragged in -lgen on Solaris.
7795         Reported by Clemens Brogi; fix suggested by Paul Eggert.
7796
7797 2010-10-05  Jim Meyering  <meyering@redhat.com>
7798
7799         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
7800         * Makefile (sc_pragma_columns): New syntax-check rule.
7801
7802 2010-10-04  Bruno Haible  <bruno@clisp.org>
7803
7804         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
7805         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
7806         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
7807         Reported by Bruce Korb and Eric Blake.
7808
7809 2010-10-04  Bruno Haible  <bruno@clisp.org>
7810
7811         threadlib: Make option --with-libpth-prefix work.
7812         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
7813         use $LIBPTH, not just -lpth.
7814
7815 2010-10-04  Bruno Haible  <bruno@clisp.org>
7816
7817         Avoid line length limitation from HP NonStop system header files.
7818         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
7819         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
7820         * lib/ctype.in.h: Likewise.
7821         * lib/dirent.in.h: Likewise.
7822         * lib/errno.in.h: Likewise.
7823         * lib/fcntl.in.h: Likewise.
7824         * lib/float.in.h: Likewise.
7825         * lib/getopt.in.h: Likewise.
7826         * lib/iconv.in.h: Likewise.
7827         * lib/inttypes.in.h: Likewise.
7828         * lib/langinfo.in.h: Likewise.
7829         * lib/locale.in.h: Likewise.
7830         * lib/math.in.h: Likewise.
7831         * lib/netdb.in.h: Likewise.
7832         * lib/netinet_in.in.h: Likewise.
7833         * lib/poll.in.h: Likewise.
7834         * lib/pthread.in.h: Likewise.
7835         * lib/pty.in.h: Likewise.
7836         * lib/sched.in.h: Likewise.
7837         * lib/se-selinux.in.h: Likewise.
7838         * lib/search.in.h: Likewise.
7839         * lib/signal.in.h: Likewise.
7840         * lib/spawn.in.h: Likewise.
7841         * lib/stdarg.in.h: Likewise.
7842         * lib/stddef.in.h: Likewise.
7843         * lib/stdint.in.h: Likewise.
7844         * lib/stdio.in.h: Likewise.
7845         * lib/stdlib.in.h: Likewise.
7846         * lib/string.in.h: Likewise.
7847         * lib/strings.in.h: Likewise.
7848         * lib/sys_file.in.h: Likewise.
7849         * lib/sys_ioctl.in.h: Likewise.
7850         * lib/sys_select.in.h: Likewise.
7851         * lib/sys_socket.in.h: Likewise.
7852         * lib/sys_stat.in.h: Likewise.
7853         * lib/sys_time.in.h: Likewise.
7854         * lib/sys_times.in.h: Likewise.
7855         * lib/sys_utsname.in.h: Likewise.
7856         * lib/sys_wait.in.h: Likewise.
7857         * lib/sysexits.in.h: Likewise.
7858         * lib/termios.in.h: Likewise.
7859         * lib/time.in.h: Likewise.
7860         * lib/unistd.in.h: Likewise.
7861         * lib/wchar.in.h: Likewise.
7862         * lib/wctype.in.h: Likewise.
7863         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
7864         * modules/ctype (Makefile.am): Likewise.
7865         * modules/dirent (Makefile.am): Likewise.
7866         * modules/errno (Makefile.am): Likewise.
7867         * modules/fcntl-h (Makefile.am): Likewise.
7868         * modules/float (Makefile.am): Likewise.
7869         * modules/getopt-posix (Makefile.am): Likewise.
7870         * modules/iconv-h (Makefile.am): Likewise.
7871         * modules/inttypes (Makefile.am): Likewise.
7872         * modules/langinfo (Makefile.am): Likewise.
7873         * modules/locale (Makefile.am): Likewise.
7874         * modules/math (Makefile.am): Likewise.
7875         * modules/netdb (Makefile.am): Likewise.
7876         * modules/netinet_in (Makefile.am): Likewise.
7877         * modules/poll-h (Makefile.am): Likewise.
7878         * modules/pthread (Makefile.am): Likewise.
7879         * modules/pty (Makefile.am): Likewise.
7880         * modules/sched (Makefile.am): Likewise.
7881         * modules/search (Makefile.am): Likewise.
7882         * modules/selinux-h (Makefile.am): Likewise.
7883         * modules/signal (Makefile.am): Likewise.
7884         * modules/spawn (Makefile.am): Likewise.
7885         * modules/stdarg (Makefile.am): Likewise.
7886         * modules/stddef (Makefile.am): Likewise.
7887         * modules/stdint (Makefile.am): Likewise.
7888         * modules/stdio (Makefile.am): Likewise.
7889         * modules/stdlib (Makefile.am): Likewise.
7890         * modules/string (Makefile.am): Likewise.
7891         * modules/strings (Makefile.am): Likewise.
7892         * modules/sys_file (Makefile.am): Likewise.
7893         * modules/sys_ioctl (Makefile.am): Likewise.
7894         * modules/sys_select (Makefile.am): Likewise.
7895         * modules/sys_socket (Makefile.am): Likewise.
7896         * modules/sys_stat (Makefile.am): Likewise.
7897         * modules/sys_time (Makefile.am): Likewise.
7898         * modules/sys_times (Makefile.am): Likewise.
7899         * modules/sys_utsname (Makefile.am): Likewise.
7900         * modules/sys_wait (Makefile.am): Likewise.
7901         * modules/sysexits (Makefile.am): Likewise.
7902         * modules/termios (Makefile.am): Likewise.
7903         * modules/time (Makefile.am): Likewise.
7904         * modules/unistd (Makefile.am): Likewise.
7905         * modules/wchar (Makefile.am): Likewise.
7906         * modules/wctype (Makefile.am): Likewise.
7907
7908 2010-10-04  Bruno Haible  <bruno@clisp.org>
7909
7910         read-file tests: Avoid a test failure on NonStop Kernel.
7911         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
7912         a regular file.
7913         Reported by Joachim Schmitz <schmitz@hp.com>.
7914
7915 2010-10-03  Bruno Haible  <bruno@clisp.org>
7916
7917         gnulib-tool: Fixes for --create-testdir with --libtool.
7918         * gnulib-tool (func_get_automake_snippet): Don't augment
7919         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
7920         an executable.
7921         (func_create_testdir): Handle module 'alloca' like func_import.
7922         Reported by Bruce Korb <bruce.korb@gmail.com>.
7923
7924 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7925
7926         Avoid some lines longer than 80 characters.
7927         * lib/stdint.in.h: Break long comment lines.
7928         * lib/math.in.h: Likewise.
7929         (_GL_NUM_UINT_WORDS): New macro, for readability.
7930         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
7931         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
7932         * lib/stdlib.in.h: Likewise.
7933         * lib/spawn.in.h: Likewise.
7934         * lib/sys_socket.in.h: Update an URL.
7935         * lib/sys_stat.in.h: Break long line.
7936
7937 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
7938
7939         Improve pmccabe2html.
7940         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
7941         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
7942         when the sources change. Remove the line in the HTML about "Used
7943         ranges" (which implied that there might be other unused ranges),
7944         rename "Resume" to "Summary" (easier to understand for more users).
7945         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
7946         styles, and some unnecessary blank lines.
7947
7948 2010-10-03  Bruno Haible  <bruno@clisp.org>
7949             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7950
7951         acl: Add support for ACLs on NonStop Kernel.
7952         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
7953         Check whether the function aclsort() exists.
7954         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
7955         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
7956         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7957         (acl_nontrivial [HAVE_ACLSORT]: New function.
7958         (file_has_acl): Implement for NonStop Kernel.
7959         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7960         (qset_acl): Implement for NonStop Kernel.
7961         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
7962         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7963         (main): Implement for NonStop Kernel.
7964         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
7965         Kernel. Handle this flavor.
7966         * tests/test-set-mode-acl.sh: Likewise.
7967         * tests/test-copy-acl.sh: Likewise.
7968         * tests/test-copy-file.sh: Likewise.
7969
7970 2010-10-03  Bruno Haible  <bruno@clisp.org>
7971
7972         Info about ACLs on NonStop Kernel.
7973         * doc/acl-resources.txt: Add info about NonStop Kernel.
7974         References by Joachim Schmitz <schmitz@hp.com>.
7975
7976 2010-10-02  Bruno Haible  <bruno@clisp.org>
7977
7978         Define missing EDQUOT on NonStop Kernel.
7979         * lib/errno.in.h (EDQUOT): Assign a value if missing.
7980         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
7981         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
7982         missing.
7983         * doc/posix-headers/errno.texi: Mention the NSK bug.
7984         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
7985         Reported by Joachim Schmitz <schmitz@hp.com>.
7986
7987 2010-10-02  Bruno Haible  <bruno@clisp.org>
7988
7989         Update doc for POSIX:2008.
7990         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
7991         Update URL of POSIX specification.
7992
7993 2010-10-02  Bruno Haible  <bruno@clisp.org>
7994
7995         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
7996         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
7997         from gnulib, not from Automake.
7998
7999 2010-10-02  Bruno Haible  <bruno@clisp.org>
8000
8001         New module 'system-posix'.
8002         * modules/system-posix: New file.
8003         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8004         module is present.
8005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8006         GNULIB_SYSTEM_POSIX.
8007         * modules/stdlib (Depends-on): Remove sys_wait.
8008         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8009         * doc/posix-functions/system.texi: Mention the new module.
8010         * doc/posix-headers/stdlib.texi: Likewise.
8011         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8012         define test_sys_wait_macros to a no-op.
8013         Reported by Sam Steingold <sds@gnu.org>.
8014
8015 2010-09-30  Bruno Haible  <bruno@clisp.org>
8016
8017         More renaming from 'getdate' to 'get_date'.
8018         * doc/get_date.texi: Renamed from doc/getdate.texi.
8019         * modules/get_date (Files): Update.
8020         * MODULES.html.sh (Date and time <time.h>): Update.
8021         * DEPENDENCIES: Update.
8022         * gnulib-tool: Update comment.
8023         * m4/bison.m4 (gl_BISON): Likewise.
8024         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8025
8026 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8027
8028         bootstrap: support ACLOCAL_FLAGS during aclocal
8029         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8030         can add additional -I dir for third-party .m4 files.
8031
8032 2010-09-30  Eric Blake  <eblake@redhat.com>
8033
8034         bootstrap: use glibtoolize on MacOS
8035         * build-aux/bootstrap (check_versions): Convert libtool into
8036         libtoolize.
8037         (tool search): Move libtool check earlier, and look for
8038         glibtoolize for MacOS.
8039         (gnulib_tool_options): Auto-add --libtool when appropriate.
8040         Reported by Justin Clift.
8041
8042         poll: fix typo that broke test on MacOS
8043         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8044         Reported by Justin Clift.
8045
8046         getdate: rename to get_date
8047         Note: getdate.h is not renamed, to minimize client impact.
8048         * modules/getdate: Mark obsolete.  Move old contents...
8049         * modules/get_date: ...to new module name.
8050         * modules/getdate-tests: Move...
8051         * modules/get_date-tests: ...here.
8052         * m4/getdate.m4: Move...
8053         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8054         * lib/getdate.y: Move...
8055         * lib/get_date.y: ...here.
8056         * tests/test-getdate.c: Move...
8057         * tests/test-get_date.c: ...here.
8058         * doc/posix-functions/getdate.texi (getdate): Update name.
8059         * NEWS: Mention the change.
8060
8061 2010-09-29  Bruno Haible  <bruno@clisp.org>
8062
8063         Separate the module 'waitpid' from the module 'sys_wait'.
8064         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8065         present.
8066         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8067         gl_MODULE_INDICATOR_FOR_TESTS.
8068         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8069         * modules/sys_wait (Depends-on): Remove waitpid.
8070         (Makefile.am): Substitute GNULIB_WAITPID.
8071         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8072         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8073         signature only if the 'waitpid' module is present.
8074         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8075         * NEWS: Mention the change.
8076         * modules/grantpt (Depends-on): Add waitpid.
8077         * modules/wait-process (Depends-on): Likewise.
8078
8079 2010-09-29  Bruno Haible  <bruno@clisp.org>
8080
8081         More tests for module 'sys_wait'.
8082         * modules/sys_wait-c++-tests: New file.
8083         * tests/test-sys_wait-c++.cc: New file.
8084         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8085         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8086
8087 2010-09-29  Bruno Haible  <bruno@clisp.org>
8088
8089         New module 'waitpid'.
8090         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8091         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8092         Don't include <process.h>.
8093         (waitpid): Declare only, using modern idiom.
8094         * m4/waitpid.m4: New file.
8095         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8096         * modules/waitpid: New file.
8097         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8098         (Makefile.am): Update.
8099         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8100
8101 2010-09-28  Bruno Haible  <bruno@clisp.org>
8102
8103         poll: Assume ANSI C.
8104         * lib/poll.c (poll): Use an ANSI C declaration.
8105
8106 2010-09-28  Bruno Haible  <bruno@clisp.org>
8107
8108         poll-h: Create poll.h on all platforms.
8109         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8110         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8111         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8112         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8113         (gl_REPLACE_POLL_H): Don't set POLL_H.
8114         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8115         * modules/poll-h (Depends-on): Add include_next.
8116         (Makefile.am): Create poll.h unconditionally. Substitute also
8117         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8118
8119 2010-09-28  Bruno Haible  <bruno@clisp.org>
8120
8121         Tests for module 'poll-h'.
8122         * modules/poll-h-c++-tests: New file.
8123         * tests/test-poll-h-c++.cc: New file.
8124
8125         Tests for module 'poll-h'.
8126         * modules/poll-h-tests: New file.
8127         * tests/test-poll-h.c: New file.
8128
8129 2010-09-28  Bruno Haible  <bruno@clisp.org>
8130
8131         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8132         * modules/poll-h (Depends-on): Add 'extensions'.
8133
8134 2010-09-28  Bruno Haible  <bruno@clisp.org>
8135
8136         New module 'poll-h'.
8137         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8138         (poll): Use modern idiom.
8139         * modules/poll-h: New file.
8140         * modules/poll (Files): Remove lib/poll.in.h.
8141         (Depends-on): Add poll-h.
8142         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8143         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8144         * m4/poll_h.m4: New file.
8145         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8146         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8147         and invoke gl_REPLACE_POLL_H.
8148         * lib/poll.c: Use common idiom.
8149         * tests/test-poll.c: Likewise.
8150         * doc/posix-headers/poll.texi: Mention the poll-h module.
8151         Suggested by Eric Blake.
8152
8153 2010-09-26  Bruno Haible  <bruno@clisp.org>
8154
8155         sys_wait: Implement WSTOPSIG.
8156         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8157         Reported by Simon Josefsson.
8158
8159 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8160
8161         stdlib, sys_wait: Avoid compilation error on mingw.
8162         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8163
8164 2010-09-26  Bruno Haible  <bruno@clisp.org>
8165
8166         stdlib tests: Avoid code duplication.
8167         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8168         * modules/sys_wait-tests (Files): Likewise.
8169         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8170         * tests/test-stdlib.c: Include test-sys_wait.h.
8171         (main): Invoke test_sys_wait_macros.
8172         * tests/test-sys_wait.c: Include test-sys_wait.h.
8173         (main): Invoke test_sys_wait_macros.
8174
8175 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8176
8177         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8178         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8179         sure Windows sockets are working before calling getaddrinfo.
8180         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8181         * doc/gnulib.texi (Windows sockets): Fix typo.
8182
8183 2010-09-25  Bruno Haible  <bruno@clisp.org>
8184
8185         Tests for module 'regex-quote'.
8186         * modules/regex-quote-tests: New file.
8187         * tests/test-regex-quote.c: New file.
8188
8189         New module 'regex-quote'.
8190         * lib/regex-quote.h: New file.
8191         * lib/regex-quote.c: New file.
8192         * modules/regex-quote: New file.
8193         Suggested by Reuben Thomas <rrt@sc3d.org>.
8194
8195 2010-09-24  Bruno Haible  <bruno@clisp.org>
8196
8197         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8198         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8199
8200 2010-09-23  Bruno Haible  <bruno@clisp.org>
8201
8202         setenv: Relax license.
8203         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8204         Blake.
8205         Requested by Eric Blake.
8206
8207 2010-09-22  Bruno Haible  <bruno@clisp.org>
8208
8209         termios: Relax license.
8210         * modules/termios (License): Change to LGPLv2+.
8211         Requested by Eric Blake.
8212
8213 2010-09-22  Bruno Haible  <bruno@clisp.org>
8214
8215         threadlib: Allow the package to change the default to 'no'.
8216         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8217         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8218         Reported by Paul Eggert.
8219
8220 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8221             Bruno Haible  <bruno@clisp.org>
8222
8223         Fix endless loop in mbmemcasecoll.
8224         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8225         byte.
8226         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8227
8228 2010-09-22  Bruno Haible  <bruno@clisp.org>
8229
8230         Tests for module 'memcoll'.
8231         * modules/memcoll-tests: New file.
8232         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8233
8234         memcoll, xmemcoll: Clarify size vs. length.
8235         * modules/memcoll.c (memcoll0): Clarify specification.
8236         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8237         passed to collate_error.
8238
8239 2010-09-22  Bruno Haible  <bruno@clisp.org>
8240
8241         Tests for module 'memcasecmp'.
8242         * modules/memcasecmp-tests: New file.
8243         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8244
8245 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8246
8247         * lib/pthread.in.h: Add split double-inclusion guard, and include
8248         system <pthread.h> if there is one.  Use @@-style as in other
8249         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8250         pthread.h doesn't.
8251         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8252         (pthread_mutexattr_settype, pthread_mutex_trylock):
8253         New static inline functions, if there's no system <pthread.h>.
8254         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8255         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8256         Approximate with mutexes if the system lacks spinlocks, as in
8257         MacOS.
8258         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8259         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8260         @@-style.  Check for spinlocks separately.
8261         (gl_PTHREAD_DEFAULTS): New macro.
8262         * modules/pthread: Redo to use a more typical style for in.h files.
8263
8264 2010-09-21  Eric Blake  <eblake@redhat.com>
8265
8266         net_if: enhance tests
8267         * tests/test-net_if.c (main): Move signature checks earlier.
8268         Print failures to stderr.
8269         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8270         Document the bug that we do not yet fix.
8271
8272 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8273
8274         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8275         about gnulib, not GSS.
8276
8277 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8278
8279         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8280         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8281         for Emacs.
8282         * build-aux/pmccabe2html: Make Makefile.am example code more
8283         cut-and-paste friendly.
8284
8285 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8286
8287         * tests/test-net_if.c: New file.
8288         * modules/net_if-tests: New file.
8289
8290 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8291
8292         pthread: add pthread_spin_destroy
8293         * lib/pthread.in.h (pthread_spin_destroy): New function.
8294
8295 2010-09-19  Bruno Haible  <bruno@clisp.org>
8296
8297         gnulib-tool: Fix --help output.
8298         * gnulib-tool (func_usage): Fix help message.
8299         Reported by Reuben Thomas <rrt@sc3d.org>.
8300
8301 2010-09-18  Jim Meyering  <meyering@redhat.com>
8302
8303         maint.mk: avoid unexpanded \n in two diagnostics
8304         * top/maint.mk (sc_prohibit_always_true_header_tests):
8305         Don't use a literal \n in a halt=... assignment.  It would not be
8306         expanded, and the two \n bytes would appear in the diagnostic output
8307         rather than the desired newline.  Use halt=$$(printf ... instead.
8308         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8309
8310 2010-09-18  Bruno Haible  <bruno@clisp.org>
8311
8312         netinet_in: Doc tweak.
8313         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8314         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8315
8316 2010-09-18  Jim Meyering  <meyering@redhat.com>
8317
8318         init.sh: correct an outdated comment
8319         * tests/init.sh (create_exe_shims_):  s/function/alias/
8320
8321         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8322         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8323         a file named "*.exe" is removed between the glob expansion and the
8324         processing of that oddly named file.
8325
8326 2010-09-17  Eric Blake  <eblake@redhat.com>
8327
8328         mirbsd: add some more support
8329         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8330         in BSD family.
8331         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8332         devices as OpenBSD.
8333         * m4/host-os.m4 (mirbsd): Add MirBSD.
8334
8335         tests: fix unportable assumption on sys/wait.h
8336         * tests/test-sys_wait.c (main): Relax test.
8337         * tests/test-stdlib.c (main): Likewise.
8338
8339         init.sh: accomodate directory with no .exes
8340         * tests/init.sh: Accomodate directory containing only scripts.
8341
8342         tests: avoid compiler warning
8343         * tests/test-stdlib.c (main): Use the variable.
8344
8345         fdutimens, fdutimensat: update signature, again
8346         * lib/utimens.h (gl_futimens): Delete, and move signature...
8347         (fdutimens): ...here.
8348         (fdutimensat): Rearrange signature.
8349         (lutimensat): Rename variable for clarity.
8350         * lib/fdutimensat.c (fdutimensat): Update signature.
8351         * lib/utimens.c (fdutimens): Likewise.
8352         (gl_futimens): Delete.
8353         (utimens, lutimens): Update callers.
8354         * lib/futimens.c (futimens): Likewise.
8355         * tests/test-fdutimensat.c: Likewise.
8356         * tests/test-utimens.c: Likewise.
8357         * tests/test-futimens.h: Update comment.
8358         * NEWS: Mention this.
8359         Suggested by Paul Eggert.
8360
8361 2010-09-17  Bruno Haible  <bruno@clisp.org>
8362
8363         Take over the maintenance of some older macros from Autoconf.
8364         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8365         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8366         GNU Autoconf.
8367         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8368         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8369
8370 2010-09-17  Eric Blake  <eblake@redhat.com>
8371
8372         fdutimensat: drop atflag validation
8373         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8374         with valid fd, to close a race scenario where futimens is
8375         unsupported and FILE was replaced by a symlink.
8376         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8377         accordingly.
8378         Suggested by Paul Eggert.
8379
8380 2010-09-16  Bruno Haible  <bruno@clisp.org>
8381
8382         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8383         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8384
8385 2010-09-16  Bruno Haible  <bruno@clisp.org>
8386
8387         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8388         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8389         login_tty exists.
8390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8391
8392 2010-09-16  Bruno Haible  <bruno@clisp.org>
8393
8394         login_tty: Make the replacement code work on BSD systems.
8395         * lib/login_tty.c: Include <sys/ioctl.h>.
8396         (login_tty): Use ioctl TIOCSCTTY when available.
8397         * modules/login_tty (Depends-on): Add sys_ioctl.
8398         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8399
8400 2010-09-16  Bruno Haible  <bruno@clisp.org>
8401
8402         login_tty: Stricter unit test.
8403         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8404         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8405         and tcgetsid() after login_tty.
8406         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8407
8408 2010-09-16  Bruno Haible  <bruno@clisp.org>
8409
8410         New module 'tcgetsid'.
8411         * lib/tcgetsid.c: New file.
8412         * m4/tcgetsid.m4: New file.
8413         * modules/tcgetsid: New file.
8414         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8415         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8416         GNULIB_TCGETSID, HAVE_TCGETSID.
8417         * lib/termios.in.h: Include <sys/types.h>.
8418         (tcgetsid): New declaration.
8419         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
8420         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
8421         * doc/posix-functions/tcgetsid.texi: Mention the new module.
8422         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
8423
8424 2010-09-16  Bruno Haible  <bruno@clisp.org>
8425
8426         Tests for module 'termios'.
8427         * modules/termios-c++-tests: New file.
8428         * modules/termios-tests: New file.
8429         * tests/test-termios-c++.cc: New file.
8430         * tests/test-termios.c: New file.
8431
8432         New module 'termios'.
8433         * modules/termios: New file.
8434         * lib/termios.in.h: New file.
8435         * m4/termios_h.m4: New file.
8436         * doc/posix-headers/termios.texi: Mention the new module.
8437
8438 2010-09-16  Eric Blake  <eblake@redhat.com>
8439
8440         fdutimensat: add an atflag parameter
8441         * lib/fdutimensat.c (fdutimensat): Add new parameter.
8442         * lib/utimens.h (fdutimensat): Update prototype.
8443         * tests/test-fdutimensat.c: Adjust test to match.
8444         * NEWS: Document the change.
8445         Suggested by Paul Eggert.
8446
8447 2010-09-16  Bruno Haible  <bruno@clisp.org>
8448
8449         Fix typos in comments.
8450         * lib/striconveh.h: Fix typo in comment.
8451         * lib/login_tty.c (login_tty): Likewise.
8452
8453 2010-09-15  Bruno Haible  <bruno@clisp.org>
8454
8455         stdlib: clarify MirBSD WEXITSTATUS bug
8456         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
8457         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8458
8459 2010-09-15  Eric Blake  <eblake@redhat.com>
8460
8461         stdlib: work around MirBSD WEXITSTATUS bug
8462         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
8463         * modules/stdlib (Depends-on): Add sys_wait.
8464         * tests/test-sys_wait.c (main): Enhance test.
8465         * tests/test-stdlib.c (main): Likewise.
8466         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
8467
8468         docs: mention MacOS issue with WEXITSTATUS(constant)
8469         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
8470         issue.
8471         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8472
8473         strnlen: add tests
8474         * modules/strnlen-tests: New file.
8475         * tests/test-strnlen.c: Likewise.
8476
8477 2010-09-14  Bruno Haible  <bruno@clisp.org>
8478
8479         unistr/base: Avoid link errors when module 'libunistring' is also used.
8480         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
8481         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
8482         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
8483         Declare also when HAVE_LIBUNISTRING is set.
8484         Reported by Pádraig Brady <P@draigbrady.com>.
8485
8486 2010-09-14  Eric Blake  <eblake@redhat.com>
8487
8488         test-rawmemchr: make more robust
8489         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
8490         (Depends-on, configure.ac): Add needed prerequisites to use it.
8491         * modules/memchr-tests (Files, Depends-on, configure.ac):
8492         Likewise, to avoid implicit reliance on memchr module prereqs.
8493         * tests/test-memchr.c (main): Ensure proper masking.
8494         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
8495         reads.
8496
8497         memchr: detect glibc Alpha bug
8498         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
8499         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
8500         Alpha.
8501         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
8502         * tests/test-memchr.c (main): Enhance test.
8503         Reported by Nelson H. F. Beebe.
8504
8505 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8506
8507         fts, getcwd, glob: audit for dirfd returning -1
8508         * lib/fts.c (opendir): Remove #define; no longer used.
8509         (opendirat): New arg PDIR_FD.  All callers changed.
8510         (fts_build, _opendir2): Use new opendirat to avoid the need for
8511         dirfd, or for checking whether dirfd returns a negative value.
8512         Don't use opendir; always use openat followed by fdopendir.
8513         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
8514         it.
8515         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
8516         returns -1 here.
8517         * modules/fts (Depends-on): Remove dirfd.
8518         * modules/getcwd (Depends-on): Likewise.
8519
8520 2010-09-13  Eric Blake  <eblake@redhat.com>
8521
8522         float: fix broken MirBSD header
8523         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
8524         * doc/posix-headers/float.texi (float.h): Document it.
8525
8526 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8527
8528         fts: use O_NOFOLLOW to avoid race condition when opening a directory
8529         * lib/fts.c (opendirat): New arg extra_flags.
8530         (__opendir2): Use it to avoid following symlinks when opening
8531         a directory, if symlinks are not supposed to be followed.  See
8532         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
8533
8534         fdopendir: preserve argument fd before returning
8535         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
8536         (fdopendir_with_dup, fd_clone_opendir): New static functions.
8537         (fdopendir): Use them, arranging for FD to be open to the same
8538         directory that it was when it started.  (It might be temporarily
8539         closed while fdopendir is running, so this not thread- or
8540         signal-safe.)  Be careful to do the right thing even when file
8541         descriptors are scarce and dup fails with errno == EMFILE.  See
8542         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
8543
8544 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
8545
8546         regex: Pass the system regex if its only problem is 32-bit regoff_t.
8547         * NEWS: Document change.
8548         * m4/regex.m4: Disable test for regoff_t size.
8549
8550 2010-09-13  Jim Meyering  <meyering@redhat.com>
8551
8552         fts: don't operate on an invalid file descriptor after failed dup
8553         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
8554         negative file descriptor.
8555
8556 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8557
8558         savedir: add streamsavedir, deprecate fdsavedir
8559         * NEWS: Mention deprecation of fdsavedir.
8560         * lib/savedir.c (streamsavedir): New extern function, whose name
8561         ends in "savedir" to be consistent with the others.  This differs
8562         from savedirstream in that it doesn't close its argument.  The
8563         next version of GNU tar will use this instead of fdsavedir, to
8564         avoid some race conditions and conserve file descriptors.
8565         (savedirstream): Reimplement as a wrapper around streamsavedir.
8566         (fdsavedir): Add a comment deprecating this function.  As far as
8567         I know, only GNU tar used it, and GNU tar doesn't need it any more.
8568         * lib/savedir.h (streamsavedir): New decl.
8569         (fdsavedir): Add a comment deprecating this.
8570
8571 2010-09-10  Bruno Haible  <bruno@clisp.org>
8572
8573         langinfo: Fix last commit.
8574         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
8575         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
8576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8577
8578 2010-09-10  Bruno Haible  <bruno@clisp.org>
8579
8580         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
8581         * lib/progreloc.c (O_EXEC): Define fallback.
8582
8583 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
8584
8585         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
8586         * NEWS: Document recent changes to fcntl-h.
8587         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
8588         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
8589         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
8590         Similarly for O_SEARCH; this last was already true, but not documented.
8591         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
8592         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
8593         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
8594         Likewise.
8595         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
8596         is zero, not whether it is defined.
8597         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
8598         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
8599         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
8600
8601 2010-09-10  Bruno Haible  <bruno@clisp.org>
8602
8603         langinfo, nl_langinfo: Fix for IRIX 5.3.
8604         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
8605         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
8606         HAVE_LANGINFO_YESEXPR.
8607         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
8608         HAVE_LANGINFO_YESEXPR.
8609         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
8610         HAVE_LANGINFO_T_FMT_AMPM is 0.
8611         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
8612         HAVE_LANGINFO_YESEXPR is 0.
8613         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
8614         NOEXPR.
8615         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
8616         * doc/posix-functions/nl_langinfo.texi: Likewise.
8617         Reported by Eric Blake.
8618
8619 2010-09-10  Bruno Haible  <bruno@clisp.org>
8620
8621         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
8622         * doc/glibc-functions/login_tty.texi: Mention the include file problem
8623         on FreeBSD 8.0 and OpenBSD 4.6.
8624         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
8625         * m4/pty_h.m4 (gl_PTY_H): Likewise.
8626         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
8627         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
8628         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
8629         ac_includes_default.
8630         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8631
8632 2010-09-09  Eric Blake  <eblake@redhat.com>
8633
8634         strsignal: work around NetBSD bug
8635         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
8636         * lib/string.in.h (includes): Likewise.
8637         * doc/posix-functions/strsignal.texi (strsignal): Document the
8638         bug.
8639         Reported by Nelson H. F. Beebe.
8640
8641         gnulib-tool: work with NetBSD /bin/sh
8642         * gnulib-tool (func_cache_var, func_cache_lookup_module)
8643         (func_get_description, func_get_comment, func_get_status)
8644         (func_get_notice, func_get_applicability, func_get_filelist)
8645         (func_get_dependencies, func_get_autoconf_early_snippet)
8646         (func_get_autoconf_snippet, func_get_automake_snippet)
8647         (func_get_include_directive, func_get_link_directive)
8648         (func_get_license, func_get_maintainer, func_import): Avoid
8649         shell syntax errors from parsing syntax extensions.
8650
8651 2010-09-09  Bruno Haible  <bruno@clisp.org>
8652
8653         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8654         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
8655         a reliable way to determine whether the 'alias' command works.
8656
8657 2010-09-08  Jim Meyering  <meyering@redhat.com>
8658
8659         init.sh: penalize a set-x-impaired shell; don't disqualify it
8660         * tests/init.sh: Too many shells corrupt application stderr when
8661         you set -x, so we can't afford to disqualify them, since at least
8662         on Irix-6.5, that would disqualify all bourne shells.
8663         Instead, use a two-pass approach.
8664         On the first pass, try to find a shell that meets the stricter
8665         condition that set -x does not corrupt stderr.
8666         If no shell meets the stricter condition, retest each candidate
8667         shell, but without that extra condition.  Finally, when
8668         VERBOSE=yes is requested and set -x might cause trouble, simply
8669         issue a warning and refrain from enabling debug output.
8670
8671 2010-09-08  Eric Blake  <eblake@redhat.com>
8672
8673         unsetenv: fix OpenBSD bug
8674         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
8675         * doc/posix-functions/unsetenv.texi (unsetenv): Update
8676         documentation.
8677         Reported by Jim Meyering.
8678
8679         strtod: work around IRIX 6.5 bug
8680         * lib/strtod.c (strtod): Reparse number on shorter string if
8681         exponent parse was invalid.
8682         * tests/test-strtod.c (main): Add check for "0x1p 2".
8683         Reported by Tom G. Christensen.
8684
8685         getopt: optimize previous patch
8686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
8687         empty variable.  Speed up awk script.
8688         Reported by Paolo Bonzini.
8689
8690 2010-09-08  Jim Meyering  <meyering@redhat.com>
8691
8692         test.sh: disqualify shells for which set -x corrupts stderr
8693         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
8694         and OpenBSD 4.7.  They make it so with "set -x", environment settings
8695         appear in stderr output.  For example, this command:
8696             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
8697         prints "P=1" on those two systems:
8698
8699 2010-09-08  Bruno Haible  <bruno@clisp.org>
8700
8701         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8702         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
8703         commands, because some shells ignore redirections when there is an
8704         error in the command lookup.
8705         Reported by Eric Blake.
8706
8707 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
8708
8709         * lib/regex.h: Fix a mention of `regex_compile' (should be
8710         `re_compile_pattern').
8711         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
8712         (re_set_registers): Correct name of parameter in comment.
8713
8714         * doc/regex.texi: Add documentation for missing syntax flags.
8715         Remove commented-out documentation of defunct syntax option
8716         RE_NO_EMPTY_ALTS.
8717         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
8718         Add documentation of re_set_registers.
8719         Document trick to re-use a pattern buffer by setting fastmap manually.
8720         Update documentation of struct re_pattern_buffer per public members.
8721         Uncomment documentation of equivalence class operators and
8722         collating symbol operators, since they are now implemented,
8723         Explain leftmost-longest matching in relation to alternatives.
8724         Tidy documentation of substring matching.
8725         Remove POSIX documentation, which is done better in
8726         glibc, and refer the reader there. Keep BSD API documentation, as
8727         that is not readily available elsewhere.
8728
8729 2010-09-07  Eric Blake  <eblake@redhat.com>
8730
8731         getopt: handle POSIXLY_CORRECT set but not exported
8732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
8733         export state of POSIXLY_CORRECT, due to bash set -o posix.
8734         Reported by Dustin J. Mitchell.
8735
8736 2010-09-05  Bruno Haible  <bruno@clisp.org>
8737
8738         gnulib-tool: Highlight the changed options.
8739         * gnulib-tool (func_usage): Display the --import, --add-import,
8740         --remove-import explanations in bold font.
8741
8742 2010-09-06  Karl Berry  <karl@gnu.org>
8743
8744         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
8745
8746 2010-09-05  Bruno Haible  <bruno@clisp.org>
8747
8748         uniwidth/width: Update comment.
8749         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
8750         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
8751
8752 2010-09-05  Bruno Haible  <bruno@clisp.org>
8753
8754         isinf, isnan: Relax license.
8755         * modules/isinf (License): Change from GPL to LGPL, with consent from
8756         Ben Pfaff.
8757         * modules/isnan (License): Likewise.
8758         Requested by Ludovic Courtès.
8759
8760 2010-09-04  Bruno Haible  <bruno@clisp.org>
8761
8762         gnulib-tool: Help migration from --import to --add-import or --update.
8763         * gnulib-tool: Emit a verbose error message when --import is used
8764         without any module name.
8765
8766 2010-09-04  Bruno Haible  <bruno@clisp.org>
8767
8768         Update doc about gnulib-tool.
8769         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
8770         'gnulib-tool --update' in more detail.
8771         Reported by Eric Blake.
8772
8773 2010-09-04  Bruno Haible  <bruno@clisp.org>
8774
8775         gnulib-tool: Change --import. New options --add/remove-import.
8776         * gnulib-tool: New options --add-import, --remove-import.
8777         (func_usage): Document them.
8778         (have_associative): Define always.
8779         (func_import): In import mode, don't merge the specified settings with
8780         the cached settings. Implement remove-import mode.
8781         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
8782         Explain when to use them versus --import.
8783         (Simple update): Use --add-import instead of --import.
8784         * NEWS: Mention the change.
8785
8786 2010-09-04  Bruno Haible  <bruno@clisp.org>
8787
8788         * doc/gnulib-tool.texi (Initial import): Update paragraph about
8789         separate gnulib.mk.
8790
8791 2010-09-04  Bruno Haible  <bruno@clisp.org>
8792
8793         gnulib-tool: Don't talk about CVS any more.
8794         * gnulib-tool (func_usage, func_import): Write "version control"
8795         instead of CVS.
8796
8797 2010-09-04  Jim Meyering  <meyering@redhat.com>
8798
8799         maint.mk: avoid obscure sc_copyright_check failure in coreutils
8800         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
8801         false positives (whose names may be ill-chosen) when searching
8802         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
8803         would cause a false-positive.
8804
8805         avoid coreutils "make distcheck" failure
8806         Coreutils tests with an absolute build directory name that contains
8807         a space.  Not quoting this directory name caused a failure.
8808         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
8809         * tests/test-vc-list-files-cvs.sh: Likewise.
8810
8811 2010-09-04  Bruno Haible  <bruno@clisp.org>
8812
8813         gnulib-tool: Avoid error when run in a package without Makefile.am.
8814         * gnulib-tool: When collecting the m4dirs in a package that does not
8815         have a Makefile.am, eliminate those directories that contain no
8816         gnulib-cache.m4. Fix expression that counts these directories.
8817
8818 2010-09-04  Bruno Haible  <bruno@clisp.org>
8819
8820         update-copyright test: Improve output when perl is missing or too old.
8821         * tests/test-update-copyright.sh: Move test of Perl version down after
8822         the test whether Perl exists. Provide an explanation relating Perl's
8823         error message to Automake's SKIP: message.
8824
8825 2010-09-04  Bruno Haible  <bruno@clisp.org>
8826
8827         Don't augment PATH in TESTS_ENVIRONMENT.
8828         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
8829         set abs_aux_dir instead of augmenting PATH.
8830         * modules/vc-list-files-tests (Makefile.am): Likewise.
8831         * tests/test-update-copyright.sh: Augment PATH here.
8832         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
8833         path_prepend_.
8834         * tests/test-vc-list-files-git.sh: Likewise.
8835
8836 2010-09-04  Jim Meyering  <meyering@redhat.com>
8837
8838         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
8839         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
8840
8841 2010-09-04  Bruno Haible  <bruno@clisp.org>
8842
8843         strdup: Fix compilation error in C++ mode.
8844         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
8845         the macro.
8846
8847 2010-09-04  Bruno Haible  <bruno@clisp.org>
8848
8849         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
8850         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
8851         macro into a function.
8852         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8853
8854 2010-09-04  Bruno Haible  <bruno@clisp.org>
8855
8856         Set PATH_SEPARATOR the same way autoconf does.
8857         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
8858         the value of PATH_SEPARATOR the same way autoconf-generated configure
8859         scripts do.
8860         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
8861         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8862
8863 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8864
8865         Set PATH_SEPARATOR the same way autoconf does.
8866         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
8867         the same way autoconf-generated configure scripts do.
8868         * posix-modules: Likewise.
8869
8870 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8871
8872         hash: fix safe_hasher const typo
8873         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
8874         const; otherwise, there is a type error later.
8875
8876 2010-09-02  Jim Meyering  <meyering@redhat.com>
8877
8878         test-update-copyright.sh: require perl 5.8.0
8879         * tests/test-update-copyright.sh: Require 5.8.0,
8880         which Tom G. Christensen has confirmed is adequate,
8881         while 5.6.1 is not.
8882
8883 2010-09-02  Eric Blake  <eblake@redhat.com>
8884
8885         tests: init.sh improvements for re-exec'ing with zsh
8886         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
8887         -vx through shell re-exec.
8888         Reported by Tom G. Christensen.
8889
8890         wctype: fix typo in previous commit
8891         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
8892         Reported by Ludovic Courtès.
8893
8894 2010-09-02  Jim Meyering  <meyering@redhat.com>
8895
8896         test-update-copyright.sh: skip test if Perl is too old
8897         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
8898         Reported by Tom G. Christensen.
8899
8900 2010-09-02  Bruno Haible  <bruno@clisp.org>
8901
8902         wctype: Avoid compilation error on IRIX 6.5.30.
8903         * lib/wctype.in.h (iswblank): Declare with a replacement if
8904         REPLACE_ISWBLANK is set.
8905         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
8906         declared. Set REPLACE_ISWBLANK.
8907         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
8908         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
8909         * doc/posix-headers/wctype.texi: Likewise.
8910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8911
8912 2010-09-01  Bruno Haible  <bruno@clisp.org>
8913
8914         New module 'socketlib'.
8915         * modules/socketlib: New file.
8916         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
8917         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
8918         * modules/sockets (Depends-on): Add socketlib.
8919         Suggested by Sam Steingold <sds@gnu.org>.
8920
8921 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8922
8923         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
8924
8925         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
8926         when one needs search access to a directory but not read access.
8927         On systems where it is available, it works in some cases where
8928         O_RDONLY does not, namely on directories that are searchable but
8929         not readable, and which need only to be searchable.  If O_SEARCH
8930         is not available, fall back to the traditional method of using
8931         O_RDONLY.
8932
8933         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
8934         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
8935         when opening a directory that needs only to be searchable.
8936         * lib/chdir-safer.c (chdir_no_follow): Likewise.
8937         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
8938         * lib/openat-proc.c (openat_proc_name): Likewise.
8939         * lib/openat.c (openat_needs_fchdir): Likewise.
8940         * lib/save-cwd.c (save_cwd): Likewise.
8941         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
8942
8943 2010-08-28  Bruno Haible  <bruno@clisp.org>
8944
8945         New module 'host-cpu-c-abi'.
8946         * modules/host-cpu-c-abi: New file.
8947         * m4/host-cpu-c-abi.m4: New file, based on part of
8948         clisp/src/m4/general.m4.
8949         Requested by Sam Steingold <sds@gnu.org>.
8950
8951 2010-08-31  Eric Blake  <eblake@redhat.com>
8952         and Jim Meyering  <meyering@redhat.com>
8953
8954         hash: factor, and guard against misbehaving hasher function
8955         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
8956         of table->hasher's return value.  Also protect against a hash value
8957         so large that adding it to table->bucket results in a NULL pointer.
8958         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
8959         Use it in place of open-coded check-and-abort.
8960
8961 2010-08-30  Bruno Haible  <bruno@clisp.org>
8962
8963         hash: silence spurious clang warning
8964         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
8965         Reported by Eric Blake.
8966
8967 2010-08-30  Eric Blake  <eblake@redhat.com>
8968
8969         strstr, memmem, strcasestr: avoid leaked shell message
8970         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
8971         FreeBSD.
8972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8973         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8974
8975         tests: silence clang warning
8976         * tests/test-malloca.c (do_allocation): Avoid dead store.
8977
8978 2010-08-29  Bruno Haible  <bruno@clisp.org>
8979
8980         gettext: Fix recent mistake.
8981         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
8982
8983 2010-08-29  Bruno Haible  <bruno@clisp.org>
8984
8985         selinux-h: Offer a --without-selinux option.
8986         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
8987         --without-selinux was specified, skip all tests and define
8988         HAVE_SELINUX_SELINUX_H to 0.
8989         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
8990         set LIB_SELINUX to empty.
8991         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
8992         gl_LIBSELINUX. If --without-selinux was specified, replace
8993         selinux/context.h.
8994         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
8995
8996 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8997             Bruno Haible  <bruno@clisp.org>
8998
8999         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9000         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9001         of HAVE_REALLOC.
9002         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9003         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9004         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9005         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9006
9007 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9008             Bruno Haible  <bruno@clisp.org>
9009
9010         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9011         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9012         HAVE_CALLOC.
9013         * lib/xmalloc.c: Update accordingly.
9014         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9015         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9016         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9017
9018 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9019             Bruno Haible  <bruno@clisp.org>
9020
9021         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9022         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9023         HAVE_MALLOC.
9024         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9025         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9026         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9027
9028 2010-08-29  Bruno Haible  <bruno@clisp.org>
9029
9030         Update modules list.
9031         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9032         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9033         (String handling <string.h>): Add astrxfrm.
9034         (File system functions): Add readlinkat.
9035
9036 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9037
9038         Tests for module 'realloc-gnu'.
9039         * modules/realloc-gnu-tests: New file.
9040         * tests/test-realloc-gnu.c: New file.
9041
9042         Tests for module 'calloc-gnu'.
9043         * modules/calloc-gnu-tests: New file.
9044         * tests/test-calloc-gnu.c: New file.
9045
9046         Tests for module 'malloc-gnu'.
9047         * modules/malloc-gnu-tests: New file.
9048         * tests/test-malloc-gnu.c: New file.
9049
9050 2010-08-28  Bruno Haible  <bruno@clisp.org>
9051
9052         Rename module 'realloc' -> 'realloc-gnu'.
9053         * modules/realloc-gnu: New file, copied from modules/realloc.
9054         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9055         obsolete.
9056         * modules/mgetgroups (Depends-on): Update.
9057         * doc/posix-functions/realloc.texi: Update.
9058         * NEWS: Mention the change.
9059
9060         Rename module 'calloc' -> 'calloc-gnu'.
9061         * modules/calloc-gnu: New file, copied from modules/calloc.
9062         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9063         obsolete.
9064         * doc/posix-functions/calloc.texi: Update.
9065         * NEWS: Mention the change.
9066
9067         Rename module 'malloc' -> 'malloc-gnu'.
9068         * modules/malloc-gnu: New file, copied from modules/malloc.
9069         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9070         obsolete.
9071         * modules/argp (Depends-on): Update.
9072         * modules/regex (Depends-on): Update.
9073         * doc/posix-functions/malloc.texi: Update.
9074         * NEWS: Mention the change.
9075
9076 2010-08-28  Eric Blake  <eblake@redhat.com>
9077
9078         pread, pwrite: add missing dependency
9079         * modules/pread (Depends-on): Add extensions.
9080         * modules/pwrite (Depends-on): Likewise.
9081
9082 2010-08-28  Bruno Haible  <bruno@clisp.org>
9083
9084         unistr/u*-strchr: Fix tests dependencies.
9085         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9086         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9087         Reported by Ian Beckwith <ianb@erislabs.net>.
9088
9089 2010-08-28  Bruno Haible  <bruno@clisp.org>
9090
9091         read-file: Don't occupy too much unused memory.
9092         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9093
9094 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9095             Eric Blake  <eblake@redhat.com>
9096             Bruno Haible  <bruno@clisp.org>
9097
9098         read-file: Avoid memory reallocations with regular files.
9099         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9100         (fread_file): With regular files, use the remaining length as the
9101         initial buffer size.  Check against overflow.
9102         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9103         sys_stat.
9104
9105 2010-08-28  Bruno Haible  <bruno@clisp.org>
9106
9107         ftello: Relax license.
9108         * modules/ftello (License): Relax to LGPLv2+.
9109         Reported by Eric Blake.
9110
9111 2010-08-28  Bruno Haible  <bruno@clisp.org>
9112
9113         Avoid relocwrapper link errors due to gnulib replacement functions.
9114         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9115         function.
9116         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9117
9118 2010-08-28  Bruno Haible  <bruno@clisp.org>
9119
9120         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9121         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9122         defined.
9123         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9124         Suggested by Eric Blake.
9125
9126 2010-08-28  Bruno Haible  <bruno@clisp.org>
9127
9128         sys_socket, netdb: Ensure socklen_t gets defined.
9129         * modules/sys_socket (Depends-on): Add socklen.
9130         * modules/netdb (Depends-on): Likewise.
9131         * modules/getaddrinfo (Depends-on): Remove socklen.
9132         * modules/getsockopt (Depends-on): Likewise.
9133         * modules/setsockopt (Depends-on): Likewise.
9134         * tests/test-sys_socket.c: Check that socklen_t is defined.
9135         * tests/test-netdb.c: Likewise.
9136         * m4/socklen.m4: Update comments.
9137         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9138
9139 2010-08-27  Eric Blake  <eblake@redhat.com>
9140
9141         login_tty: add missing dependency
9142         * modules/login_tty (Depends-on): Add pty.
9143
9144 2010-08-26  Eric Blake  <eblake@redhat.com>
9145
9146         lib-symbol-versions: fix m4 quoting
9147         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9148         format for AC_LINK_IFELSE.
9149
9150         glob: fix compile test
9151         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9152
9153         btowc: fix missing file
9154         * modules/btowc (Files): Also ship locale-fr.m4.
9155
9156         lseek: fix link test
9157         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9158         AC_LINK_IFELSE.
9159
9160         include_next: silence autoconf 2.68 warning
9161         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9162         AC_COMPILE_IFELSE as special.
9163         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9164         autoconf < 2.68.
9165
9166         acl: fix compilation test
9167         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9168         AC_COMPILE_IFELSE.
9169
9170 2010-08-26  Bruno Haible  <bruno@clisp.org>
9171
9172         Modernize AC_TRY_RUN invocations.
9173         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9174         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9175         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9176         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9177         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9178         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9180         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9181         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9182         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9183         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9184         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9185         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9186         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9187         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9188         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9189         gl_MBRLEN_NUL_RETVAL): Likewise.
9190         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9191         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9192         Likewise.
9193         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9194         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9195         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9196         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9197         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9198         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9199         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9200         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9201         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9202         Likewise.
9203         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9204         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9205         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9206         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9207         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9208         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9209         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9210         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9211         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9213
9214 2010-08-26  Bruno Haible  <bruno@clisp.org>
9215
9216         Modernize AC_TRY_LINK invocations.
9217         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9218         AC_TRY_LINK.
9219         * m4/argp.m4 (gl_ARGP): Likewise.
9220         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9221         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9222         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9223         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9224         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9225         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9226         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9227         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9228         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9229         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9230         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9231         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9232         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9233         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9234         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9235         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9236         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9237         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9238         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9239         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9240         Likewise.
9241         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9242         Likewise.
9243         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9244         Likewise.
9245         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9246         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9247         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9248         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9249         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9250         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9251         * m4/servent.m4 (gl_SERVENT): Likewise.
9252         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9253         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9254         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9255         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9256         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9257         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9258         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9259         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9260         * modules/tsearch-tests (configure.ac): Likewise.
9261
9262 2010-08-26  Bruno Haible  <bruno@clisp.org>
9263
9264         Modernize AC_TRY_COMPILE invocations.
9265         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9266         AC_TRY_COMPILE.
9267         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9268         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9269         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9270         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9271         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9272         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9273         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9274         * m4/lock.m4 (gl_LOCK): Likewise.
9275         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9276         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9277         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9278         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9279         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9280         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9281         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9283         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9284         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9285         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9286         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9287         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9288         extraneous semicolon.
9289
9290 2010-08-26  Jim Meyering  <meyering@redhat.com>
9291
9292         stat-time: relax license LGPL
9293         * modules/stat-time (License): Change from GPL to LGPL,
9294         with consent from all contributors, for use in libguile.
9295         Requested by Ludovic Courtès.
9296
9297 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9298
9299         poll: return immediately on POLLHUP.
9300         * lib/poll.c (poll): Always set timeout before wait_timeout is
9301         computed.
9302
9303 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9304
9305         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9306         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9307         rmdir ("dir/.//"), unlinkat.
9308
9309 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9310
9311         stdbool: avoid spurious failure with modern xlc
9312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9313
9314 2010-08-24  Bruno Haible  <bruno@clisp.org>
9315
9316         getloadavg: simplify code
9317         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9318         gl_have_func. Update comments.
9319
9320 2010-08-24  Eric Blake  <eblake@redhat.com>
9321
9322         getloadavg: don't define SVR4 on cygwin
9323         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9324         only define SVR4 when -lkvm is required.
9325         Reported by Yaakov Selkowitz.
9326
9327 2010-08-24  Bruno Haible  <bruno@clisp.org>
9328
9329         priv-set: fix comment
9330         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9331
9332 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9333
9334         priv-set: fix comments
9335         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9336         to match code, as suggested by David Bartley in:
9337         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9338
9339 2010-08-23  Eric Blake  <eblake@redhat.com>
9340
9341         stdbool: avoid rejecting clang
9342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9343         * tests/test-stdbool.c: Enable more tests if using the system
9344         <stdbool.h> instead of the gnulib replacement.
9345         (main): Move xlc bug test to a runtime test for all compilers.
9346         Reported by Anders Kaseorg.
9347
9348         argz: fix shell quoting issue
9349         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9350         Reported by Charles Wilson.
9351
9352 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
9353             Erik Faye-Lund <kusmabite@gmail.com>
9354
9355         poll, select: handle ERROR_BROKEN_PIPE.
9356         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9357         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9358         * lib/select.c (win32_compute_revents): Do not mark a pipe
9359         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9360
9361 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9362
9363         fts: allow compilation with C++
9364         * lib/fts_.h: Specify extern "C" linkage with C++.
9365
9366 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9367
9368         Fix gnulib-tool sed script de-commentation for AIX sed.
9369         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9370         sed.
9371
9372 2010-08-17  Eric Blake  <eblake@redhat.com>
9373
9374         test-stddef: test for (some) offsetof bugs
9375         * tests/test-stddef.c: Enhance test to ensure correct type of
9376         offsetof.
9377         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9378         that we are not fixing at this time.
9379
9380 2010-08-15  Bruno Haible  <bruno@clisp.org>
9381
9382         stpncpy: Allow stpncpy to be defined as a macro.
9383         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9384         if it's already correctly declared.
9385         * lib/string.in.h (stpncpy): Undefine before redefining.
9386         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9387
9388 2010-08-14  Bruno Haible  <bruno@clisp.org>
9389
9390         Rename module 'memxfrm' to 'amemxfrm'.
9391         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9392         (amemxfrm): Renamed from memxfrm.
9393         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9394         (amemxfrm): Renamed from memxfrm.
9395         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9396         * NEWS: Mention the change.
9397         * MODULES.html.sh (String handling <string.h>): Update.
9398         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9399         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9400         * lib/unicase/u16-casexfrm.c: Likewise.
9401         * lib/unicase/u32-casexfrm.c: Likewise.
9402         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9403         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9404         * lib/uninorm/u16-normxfrm.c: Likewise.
9405         * lib/uninorm/u32-normxfrm.c: Likewise.
9406         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9407         memxfrm.
9408         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9409         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9410         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9411         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9412         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9413         Suggested by Paul Eggert.
9414
9415 2010-08-14  Bruno Haible  <bruno@clisp.org>
9416
9417         Tests for module 'astrxfrm'.
9418         * modules/astrxfrm-tests: New file.
9419         * tests/test-astrxfrm.c: New file.
9420
9421         New module 'astrxfrm'.
9422         * lib/astrxfrm.h: New file.
9423         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
9424         * modules/astrxfrm: New file.
9425
9426 2010-08-14  Reuben Thomas <rrt@sc3d.org>
9427
9428         regex: Tweak doc.
9429         * doc/regex.texi (Overview): Don't mention regex.c.
9430         (GNU Regular Expression Compiling): Likewise.
9431         (Match-end-of-line Operator): Mention 'not_eol'.
9432
9433 2010-08-14  Brian Gough  <bjg@gnu.org>
9434             Bruno Haible  <bruno@clisp.org>
9435
9436         git-merge-changelog: add doc relating to use with bzr and hg.
9437         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
9438
9439 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
9440
9441         pthread: fix pthread.h creation for srcdir != builddir
9442         * modules/pthread (Makefile.am): Fix the rule to work also in a
9443         non-srcdir build.
9444
9445 2010-08-13  Karl Berry  <karl@gnu.org>
9446
9447         * doc/regex.texi (Predefined Syntaxes): @smallexample.
9448         * doc/posix-*/*: force line break before @url of POSIX
9449         specifications.
9450         Suggested by Werner Lemberg.
9451
9452 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9453
9454         strtod: fix const diagnostic
9455         * lib/strtod.c (strtod): Don't assign const char * to char *,
9456         as this elicits a warning from GCC when warnings are enabled.
9457
9458 2010-08-10  Pádraig Brady <P@draigbrady.com>
9459         and Eric Blake  <eblake@redhat.com>
9460
9461         copy-acl: ignore ENOTSUP on HP-UX
9462         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
9463         so that it is available for HP-UX.
9464         * lib/copy-acl.c (qcopy_acl): Use it.
9465         Reported by Patrick M. Callahan.
9466
9467 2010-08-10  Eric Blake  <eblake@redhat.com>
9468
9469         open, chown: relax license
9470         * modules/open (License): Change to LGPLv2+, with consent by all
9471         authors, for use in augeas.
9472         * modules/chown (License): Likewise.
9473         * modules/lchown (Likewise): Likewise.
9474         Requested by Adam Stokes.
9475
9476 2010-08-09  Karl Berry  <karl@gnu.org>
9477
9478         * build-aux/ar-lib: new file, import from Automake.
9479         * config/srclist.txt: autocheck for updates.
9480
9481 2010-08-09  Eric Blake  <eblake@redhat.com>
9482
9483         readlinkat: adjust client modules
9484         * modules/areadlinkat (Depends-on): Use readlinkat, not
9485         symlinkat.
9486         * modules/areadlinkat-with-size (Depends-on): Likewise.
9487
9488         mknod: be more vocal about danger of running tests as root
9489         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
9490         root, since that is just asking for problems.
9491         Suggested by Bruno Haible, based on a report by Rainer Tammer.
9492
9493         readlinkat: split into its own module
9494         * modules/symlinkat: Split readlinkat...
9495         * modules/readlinkat: ...into separate module.
9496         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
9497         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
9498         * lib/symlinkat.c (readlinkat): Move...
9499         * lib/readlinkat.c: ...into new file.
9500         * modules/symlinkat-tests: Split readlinkat test...
9501         * modules/readlinkat-tests: ...into separate module.
9502         * tests/test-symlinkat.c: Split...
9503         * tests/test-readlinkat.c: ...into new file.
9504         * NEWS: Document the split.
9505         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9506         * lib/unistd.in.h (readlinkat): Likewise.
9507         Suggested by Bruno Haible.
9508
9509 2010-08-08  Bruno Haible  <bruno@clisp.org>
9510
9511         memxfrm: Speed up.
9512         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
9513         that usually only one call to strxfrm is necessary for each string
9514         part.
9515         Reported by Paul Eggert <eggert@cs.ucla.edu>.
9516
9517 2010-08-07  Karl Berry  <karl@gnu.org>
9518
9519         * doc/posix-headers/limits.texi,
9520         * doc/posix-functions/malloc.texi,
9521         * doc/posix-functions/strsignal.texi: missing @item.
9522         * doc/ld-version-script.texi: spurious leading i.
9523         * doc/regex.texi (Interval Operators): no commas inside @var.
9524
9525 2010-08-01  Bruno Haible  <bruno@clisp.org>
9526
9527         Integrate the regex documentation.
9528         * doc/gnulib.texi: Define 'cn' index.
9529         (Regular expressions): New a chapter that includes regex.texi and
9530         regexprops-generic.texi.
9531         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
9532         syntax.
9533
9534         Whitespace cleanup.
9535         * doc/regex.texi: Remove trailing spaces.
9536
9537         Add regex documentation.
9538         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
9539         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
9540         Written by Kathy A. Hargreaves and Karl Berry.
9541
9542 2010-08-01  Bruno Haible  <bruno@clisp.org>
9543
9544         link: Update documentation.
9545         * doc/posix-functions/link.texi: Update regarding Solaris.
9546
9547 2010-07-31  Bruno Haible  <bruno@clisp.org>
9548
9549         Update modules list.
9550         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
9551         (String handling <string.h>): Add memcmp2, memxfrm.
9552         (Container data structures): Add xlist, xsublist, xoset.
9553         (Core language properties): Add alignof, unused-parameter.
9554         (Process control, Numeric conversion functions <stdlib.h>): Renamed
9555         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
9556         (Unibyte characters <ctype.h>): New section.
9557         (String handling <string.h>): New section.
9558         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
9559         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
9560         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
9561         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
9562         tan, tanh, tanl, y0, y1, yn.
9563         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
9564         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
9565         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
9566         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
9567         unlockpt, vdprintf, vdprintf-posix.
9568         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
9569         (File system functions): Add concat-filename, sys_file, sys_ioctl,
9570         xconcat-filename.
9571         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
9572         getdtablesize, pipe2, pipe2-safer.
9573         (Security): New section.
9574         (Networking functions): Add accept4.
9575         (Signal handling): Add sigpipe.
9576         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
9577         mbmemcasecoll.
9578         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
9579         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
9580         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
9581         pipe-filter-ii.
9582         (Misc): Add argp-version-etc, login_tty, parse-duration.
9583
9584 2010-07-31  Bruno Haible  <bruno@clisp.org>
9585
9586         Improve doc in MODULES.html.
9587         * modules/linkat (Description): Add the word "function".
9588         * modules/mkfifo (Description): Likewise.
9589         * modules/mknod (Description): Likewise.
9590         * modules/remove (Description): Likewise.
9591         * modules/renameat (Description): Likewise.
9592         * modules/stat (Description): Likewise.
9593         * modules/symlink (Description): Likewise.
9594         * modules/unlink (Description): Likewise.
9595
9596 2010-07-31  Bruno Haible  <bruno@clisp.org>
9597
9598         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
9599         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
9600         option --enable/disable-c++ instead of --enable/disable-cxx.
9601         * NEWS: Mention the change.
9602
9603 2010-07-31  Bruno Haible  <bruno@clisp.org>
9604
9605         readlink, areadlink: Relax test a bit.
9606         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
9607         alternative to ENOTDIR.
9608         * tests/test-areadlink.h (test_areadlink): Likewise.
9609         Reported by Rainer Tammer.
9610
9611 2010-07-31  Bruno Haible  <bruno@clisp.org>
9612
9613         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
9614         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
9615         character, perform the search using U_STRCHR.
9616         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
9617         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
9618         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
9619         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
9620         Suggested by Paolo Bonzini.
9621
9622 2010-07-31  Bruno Haible  <bruno@clisp.org>
9623
9624         unistr/u*-strstr: Fix dependencies.
9625         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
9626         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
9627         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
9628
9629 2010-07-31  Bruno Haible  <bruno@clisp.org>
9630
9631         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
9632         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
9633         the beginning of the loop.
9634         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
9635         cases in 'switch' statement.
9636
9637         unistr/u8-strchr: Fix several bugs.
9638         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
9639         the string. When not found, return NULL, not a pointer near the end.
9640
9641         More tests for unistr/u8-strchr.
9642         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
9643         that the function does not read past the first occurrence of the byte
9644         being searched.
9645         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
9646         * tests/unistr/test-u16-strchr.c (main): New function.
9647         * tests/unistr/test-u32-strchr.c (main): New function.
9648
9649 2010-07-31  Bruno Haible  <bruno@clisp.org>
9650
9651         posix-modules: Ignore backup files of documentation files.
9652         * posix-modules: grep only through files named *.texi.
9653
9654 2010-07-31  Bruno Haible  <bruno@clisp.org>
9655
9656         symlinkat: Fix documentation.
9657         * doc/posix-functions/readlinkat.texi: Fix module name.
9658
9659 2010-07-31  Bruno Haible  <bruno@clisp.org>
9660
9661         fchownat: Replace also when chown has the trailing slash bug.
9662         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
9663         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
9664         introduced on 2010-04-10.
9665         Reported by Rainer Tammer.
9666
9667 2010-07-31  Bruno Haible  <bruno@clisp.org>
9668
9669         linkat: Work around AIX 7.1 bug.
9670         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
9671         whether linkat handles trailing slash correctly. If not, replace linkat
9672         and define LINKAT_TRAILING_SLASH_BUG.
9673         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
9674         check whether (fd1,file1) points to a directory if file1 or file2 ends
9675         in a slash. Code taken from lib/link.c.
9676         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
9677         Reported by Rainer Tammer.
9678
9679 2010-07-31  Bruno Haible  <bruno@clisp.org>
9680
9681         Correctly determine whether pow is available in libc on AIX 7 with xlc.
9682         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
9683         This disables an xlc optimization that was causing wrong test results.
9684         Reported by Rainer Tammer.
9685
9686 2010-07-31  Bruno Haible  <bruno@clisp.org>
9687
9688         iconv: Work around AIX 6.1..7.1 bug.
9689         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
9690         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
9691         cross-compiling, guess no on all versions of AIX.
9692         Reported by Rainer Tammer.
9693
9694 2010-07-31  Bruno Haible  <bruno@clisp.org>
9695
9696         readlink: Relax test a bit.
9697         * tests/test-readlink.h (test_readlink): Allow different errno value
9698         when readlink is called with a file name that ends in / and refers to
9699         a file.
9700         Suggested by Eric Blake.
9701         Reported by Rainer Tammer.
9702
9703 2010-07-31  Bruno Haible  <bruno@clisp.org>
9704
9705         copysign: Does not require -lm on glibc systems.
9706         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
9707         gl_COMMON_DOUBLE_MATHFUNC.
9708         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
9709
9710 2010-07-31  Bruno Haible  <bruno@clisp.org>
9711
9712         duplocale: Work around AIX 7.1 bug.
9713         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
9714         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
9715         * lib/duplocale.c (rpl_duplocale): Update comment.
9716         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
9717         Reported by Rainer Tammer.
9718
9719 2010-07-30  Bruno Haible  <bruno@clisp.org>
9720
9721         dirfd: Avoid link error on AIX 7.1.
9722         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
9723         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
9724         exist, set REPLACE_DIRFD.
9725         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
9726         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
9727         * doc/posix-functions/dirfd.texi: Update.
9728         Reported by Rainer Tammer.
9729
9730 2010-07-30  Eric Blake  <eblake@redhat.com>
9731
9732         strtod: next round of AIX fixes
9733         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
9734         exponent.
9735         * tests/test-strtod.c (main): Enhance tests.
9736         * doc/posix-functions/strtod.texi (strtod): Document next bug.
9737         Reported by Rainer Tammer.
9738
9739         futimens: fix configure check
9740         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
9741         Reported by Bruno Haible.
9742
9743 2010-07-30  Bruno Haible  <bruno@clisp.org>
9744
9745         getline: Update regarding AIX.
9746         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
9747         Reported by Rainer Tammer.
9748
9749 2010-07-30  Bruno Haible  <bruno@clisp.org>
9750
9751         wcwidth: Drop replacement on AIX 7.
9752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
9753         AIX 7.
9754         Reported by Rainer Tammer.
9755
9756 2010-07-30  Bruno Haible  <bruno@clisp.org>
9757
9758         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
9759         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
9760         a 'char *'.
9761         Reported by Rainer Tammer.
9762
9763 2010-07-30  Bruno Haible  <bruno@clisp.org>
9764
9765         unlink: Update regarding AIX.
9766         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
9767         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
9768         Reported by Rainer Tammer.
9769
9770 2010-07-30  Bruno Haible  <bruno@clisp.org>
9771
9772         symlink: Update regarding AIX.
9773         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
9774         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
9775         Reported by Rainer Tammer.
9776
9777 2010-07-30  Bruno Haible  <bruno@clisp.org>
9778
9779         strndup: Update regarding AIX.
9780         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
9781         AIX 7.
9782         Reported by Rainer Tammer.
9783
9784 2010-07-30  Bruno Haible  <bruno@clisp.org>
9785
9786         stat: Update regarding AIX.
9787         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
9788         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
9789         Reported by Rainer Tammer.
9790
9791 2010-07-30  Bruno Haible  <bruno@clisp.org>
9792
9793         truncl: Fix autoconf test.
9794         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
9795         whether truncl works.
9796         Reported by Rainer Tammer.
9797
9798 2010-07-30  Bruno Haible  <bruno@clisp.org>
9799
9800         round: Update regarding AIX.
9801         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
9802         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
9803         Reported by Rainer Tammer.
9804
9805 2010-07-30  Bruno Haible  <bruno@clisp.org>
9806
9807         rename: Update regarding AIX.
9808         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
9809         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
9810         Reported by Rainer Tammer.
9811
9812 2010-07-30  Bruno Haible  <bruno@clisp.org>
9813
9814         printf.m4: Update regarding AIX.
9815         * m4/printf.m4: Update comments regarding AIX.
9816         Reported by Rainer Tammer.
9817
9818 2010-07-30  Bruno Haible  <bruno@clisp.org>
9819
9820         iconv: Update regarding AIX.
9821         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
9822         AIX 7.
9823         Reported by Rainer Tammer.
9824
9825 2010-07-30  Bruno Haible  <bruno@clisp.org>
9826
9827         getopt: Update regarding AIX.
9828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
9829         no on AIX.
9830         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
9831         Reported by Rainer Tammer.
9832
9833 2010-07-30  Bruno Haible  <bruno@clisp.org>
9834
9835         ldexpl; Update regarding AIX.
9836         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
9837         on AIX 7.
9838         Reported by Rainer Tammer.
9839
9840 2010-07-30  Bruno Haible  <bruno@clisp.org>
9841
9842         frexpl: Update regarding AIX.
9843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
9844         on AIX 7.
9845         Reported by Rainer Tammer.
9846
9847 2010-07-30  Bruno Haible  <bruno@clisp.org>
9848
9849         open, fopen: Update regarding AIX.
9850         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
9851         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9852         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
9853         * doc/posix-functions/fopen.texi: Likewise.
9854         Reported by Rainer Tammer.
9855
9856 2010-07-30  Bruno Haible  <bruno@clisp.org>
9857
9858         chown: Update doc regarding AIX.
9859         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
9860         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
9861         Reported by Rainer Tammer.
9862
9863 2010-07-30  Eric Blake  <eblake@redhat.com>
9864
9865         strtod: fix bug in replacement function on AIX
9866         * lib/strtod.c (strtod): Special case broken "0x" parse in
9867         underlying strtod.
9868         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
9869         * doc/posix-functions/strtod.texi (strtod): Likewise.
9870         Reported by Rainer Tammer.
9871
9872 2010-07-30  Bruno Haible  <bruno@clisp.org>
9873
9874         mbrlen: Fix cross-compilation guess for AIX.
9875         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
9876         guess. Leftover from 2008-12-22.
9877
9878 2010-07-30  Bruno Haible  <bruno@clisp.org>
9879
9880         mbrtowc: Fix cross-compilation guess for AIX.
9881         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
9882         guess. Leftover from 2008-12-21.
9883
9884 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
9885
9886         init.sh: work around trap limitation of some shells
9887         * tests/init.sh (setup_): Move exit trap outside of shell function.
9888
9889 2010-07-29  Eric Blake  <eblake@redhat.com>
9890
9891         strtod: aid debugging
9892         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
9893         understanding why strtod is rejected.
9894
9895 2010-07-28  Bruno Haible  <bruno@clisp.org>
9896
9897         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
9898         * lib/unistr/u8-chr.c: Include <string.h>.
9899         * tests/unistr/test-u8-chr.c: Likewise.
9900         * tests/unistr/test-u16-chr.c: Likewise.
9901         * tests/unistr/test-u32-chr.c: Likewise.
9902         * tests/unistr/test-u8-strchr.c: Likewise.
9903         * tests/unistr/test-u16-strchr.c: Likewise.
9904         * tests/unistr/test-u32-strchr.c: Likewise.
9905         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
9906         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
9907         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
9908         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
9909
9910 2010-07-28  Bruno Haible  <bruno@clisp.org>
9911
9912         Use spaces for indentation, not tabs.
9913         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
9914
9915 2010-07-27  Bruno Haible  <bruno@clisp.org>
9916
9917         mbspcasecmp: Fix function specification.
9918         * lib/string.in.h (mbspcasecmp): Fix specification comment.
9919         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
9920         Reported by Eric Blake <eblake@redhat.com>.
9921
9922 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
9923
9924         timespec: use cast and not conditional, as truncation isn't possible
9925         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
9926         instead of a conditional.  Comment about the situation in more detail.
9927         This undoes most of the 2009-10-29 patch.
9928
9929 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
9930
9931         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
9932         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
9933         * lib/unistr/u8-strchr.c: Likewise.
9934         * modules/unistr/u8-chr: Depend on memchr.
9935
9936         unistr/u*-strchr: add tests
9937         * modules/unistr/u8-strchr-tests: New file.
9938         * modules/unistr/u16-strchr-tests: New file.
9939         * modules/unistr/u32-strchr-tests: New file.
9940         * tests/unistr/test-strchr.h: New file.
9941         * tests/unistr/test-u8-strchr.c: New file.
9942         * tests/unistr/test-u16-strchr.c: New file.
9943         * tests/unistr/test-u32-strchr.c: New file.
9944
9945         unistr/u*-chr: test multibyte sequences more
9946         * tests/unistr/test-chr.h: Do complete testing of the characters in the
9947         test vector.
9948         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
9949         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
9950         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
9951
9952         unistr/u*-chr: test multibyte sequences
9953         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
9954
9955         unistr/u*-chr: prepare for multibyte tests
9956         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
9957         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
9958         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
9959         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
9960         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
9961         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
9962
9963 2010-07-18  Bruno Haible  <bruno@clisp.org>
9964
9965         unistr/u8-strchr: Optimize non-ASCII argument case.
9966         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
9967         because the first byte often matches anyway.
9968         Reported by Pádraig Brady <P@draigbrady.com>.
9969
9970 2010-07-15  Karl Berry  <karl@gnu.org>
9971
9972         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
9973
9974 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
9975
9976         getcwd: on Solaris, work better if ancestors are inaccessible
9977         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
9978         buffer and size, try again with a large buffer.  This works better
9979         on Solaris, since its getcwd succeeds even if the path to the root
9980         is inaccessible, and this is helpful in common cases such as .zfs
9981         hidden directories.  Problem reported by J Chapman Flack in
9982         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
9983         Use system getcwd if it's declared, not merely if it's partly
9984         working; use the partly-working test only to avoid needless effort
9985         if the system getcwd fails.
9986         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
9987         comment that was already obsolete and is now even more obsolete.
9988         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
9989         now might call strdup.
9990
9991 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
9992
9993         pthread: Add enough so that coreutils/src/sort.c compiles.
9994         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
9995         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
9996         gnulib. Include <sched.h> and <time.h>, as per POSIX.
9997         Include <sys/types.h>, in case it defines pthread_t.
9998         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
9999         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10000         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10001         (pthread_rwlockattr_t, pthread_spinlock_t):
10002         New typedefs, if HAVE_PTHREAD_T is not defined.
10003         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10004         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10005         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10006         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10007         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10008         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10009         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10010         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10011         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10012         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10013         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10014         New macros.
10015         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10016         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10017         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10018         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10019         (pthread_spin_unlock): New dummy functions.
10020         (pthread_create): Return EAGAIN; don't set errno.
10021         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10022         require AC_C_INLINE.
10023         * modules/pthread (Depends-on): Add sched, time.
10024         (pthread.h): Use AM_V_GEN.
10025
10026 2010-07-13  Bruno Haible  <bruno@clisp.org>
10027
10028         striconveh: Don't malloc memory if the result buffer is sufficient.
10029         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10030         buffer if its size is sufficient.
10031         Reported by Ludovic Courtès <ludo@gnu.org>.
10032
10033 2010-07-13  Bruno Haible  <bruno@clisp.org>
10034
10035         strtod: Add safety check.
10036         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10037
10038 2010-07-12  Bruno Haible  <bruno@clisp.org>
10039
10040         Unify tests that set gl_cv_func_ldexpl_no_libm.
10041         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10042         gl_FUNC_LDEXPL.
10043         (gl_FUNC_LDEXPL): Invoke it.
10044         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10045
10046 2010-07-12  Bruno Haible  <bruno@clisp.org>
10047
10048         Unify tests that set gl_cv_func_ldexp_no_libm.
10049         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10050         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10051         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10052         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10053         * modules/strtod (Files): Add m4/ldexp.m4.
10054
10055 2010-07-12  Bruno Haible  <bruno@clisp.org>
10056
10057         Unify tests that set gl_cv_func_frexpl_no_libm.
10058         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10059         gl_FUNC_FREXPL_NO_LIBM.
10060         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10061         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10062
10063 2010-07-12  Bruno Haible  <bruno@clisp.org>
10064
10065         Unify tests that set gl_cv_func_frexp_no_libm.
10066         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10067         gl_FUNC_FREXP_NO_LIBM.
10068         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10069         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10070
10071 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10072
10073         memcoll: clarify sizes versus lengths, document better, and tweak perf
10074         * lib/memcoll.c (strcoll_loop, memcoll0):
10075         Improve quality of descriptive comments.  Name variables
10076         consistently as to whether they are lengths (which do not include
10077         terminating null) versus sizes (which do).
10078         * lib/xmemcoll.c (xmemcoll0): Likewise.
10079         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10080         returned when s1size == 0; this is easier to compile and saves
10081         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10082
10083 2010-07-12  Bruno Haible  <bruno@clisp.org>
10084
10085         Tests for module '_Exit'.
10086         * modules/_Exit-tests: New file.
10087         * tests/test-_Exit.sh: New file.
10088         * tests/test-_Exit.c: New file.
10089
10090         New module '_Exit'.
10091         * lib/stdlib.in.h (__attribute__): New macro.
10092         (_Exit): New declaration.
10093         * lib/_Exit.c: New file.
10094         * m4/_Exit.m4: New file.
10095         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10096         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10097         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10098         * modules/_Exit: New file.
10099         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10100         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10101
10102 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10103
10104         strtod: make it more-accurate typically, and don't require libm
10105         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10106         Include limits.h.  Don't include string.h.
10107         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10108         (locale_isspace): New function, so that no casts are needed to
10109         check whether *s is a space.
10110         (ldexp): Provide an unused dummy if not available.
10111         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10112         (strtod): Use them.  This implementation prefers to use the
10113         underlying strtod if available, falling back on our own code
10114         only to fix known bugs.  This is more likely to produce an
10115         accurate result.  Also, it avoids the use of libm functions.
10116         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10117         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10118         was absent, but it caused a test failure with coreutils.
10119         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10120         with libm.
10121         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10122         * modules/strtod-tests (Makefile.am): Likewise.
10123
10124 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10125             Bruno Haible  <bruno@clisp.org>
10126
10127         unistr/u8-strchr: Optimize ASCII argument case.
10128         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10129
10130 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10131
10132         (x)memcoll: minor tweaks
10133         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10134         is after the type that it qualifies.
10135         (memcoll0): Likewise.
10136         * lib/memcoll.h (memcoll0): Likewise.
10137         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10138         * lib/xmemcoll.h (xmemcoll0): Likewise.
10139         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10140         differs from memcoll in that the NUL byte is part of the argument.
10141         Omit the abort-checks, as performance is a real issue here.  Plus,
10142         the checks were wrong anyway (an off-by-one error).  Omit local
10143         variable 'diff', as it's a bit clearer that way.
10144         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10145         no longer needed.
10146
10147 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10148
10149         (x)memcoll: speedup when input is known to be NUL delimited
10150         * lib/memcoll.c: Include stdlib.
10151         (memcoll0) New function.
10152         (strcoll_loop) New function, refactored for use in both memcoll
10153         and memcoll0.
10154         * lib/memcoll.h: Add prototype for memcoll0.
10155         * lib/xmemcoll.c: (xmemcoll0) New function.
10156         (collate_error) New function, refactored for use in both xmemcoll
10157         and xmemcoll0.
10158         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10159         * m4/memcoll.m4: add inline invocation.
10160
10161 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10162
10163         * build-aux/bootstrap: Remove any local translations
10164         from the translation project synchronization directory,
10165         so that local only translations are not distributed.
10166
10167 2010-07-04  Bruno Haible  <bruno@clisp.org>
10168
10169         fsusage: Clarify which code applies to which platforms.
10170         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10171         platform.
10172         * lib/fsusage.c (get_fs_usage): Likewise.
10173
10174 2010-07-04  Bruno Haible  <bruno@clisp.org>
10175
10176         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10177         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10178         Reported by Martin Lambers <marlam@marlam.de>.
10179
10180 2010-07-04  Jim Meyering  <meyering@redhat.com>
10181
10182         hash: once again explicitly disallow insertion of NULL
10183         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10184         inserting a NULL pointer cannot work with these functions.
10185         Add a comment with details.
10186         This reverts part of the 2010-07-01 commit, 5bef1a35
10187         "hash: extend module to deal with non-pointer keys".
10188
10189 2010-07-01  Bruno Haible  <bruno@clisp.org>
10190
10191         stdbool: Update doc.
10192         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10193         Info from Christian Weisgerber <naddy@mips.inka.de>.
10194
10195 2010-07-01  Jim Meyering  <meyering@redhat.com>
10196
10197         hash: extend module to deal with non-pointer keys
10198         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10199         but that allows insertion of non-pointer entries.
10200         Do not disallow an ENTRY value of NULL.
10201         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10202         * lib/hash.h (hash_insert0): Declare.
10203
10204 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10205
10206         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10207         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10208         not present (i.e. with autoconf 2.59 and when using gettextize, not
10209         gnulib), require AC_GNU_SOURCE instead.
10210
10211 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10212
10213         idpriv-drop: Fix tests.
10214         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10215         not to the test-idpriv-droptemp program.
10216
10217 2010-06-29  Bruno Haible  <bruno@clisp.org>
10218
10219         string: Fix syntax error with g++ 2.96.
10220         * lib/string.in.h (__pure__): Remove definition.
10221         (_GL_ATTRIBUTE_PURE): New macro.
10222         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10223         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10224         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10225
10226 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10227
10228         unitypes: Fix bug introduced on 2010-05-18.
10229         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10230
10231 2010-06-22  Eric Blake  <eblake@redhat.com>
10232
10233         memmem: slight optimization
10234         * lib/str-two-way.h (critical_factorization): Update comments.
10235         Reduce work during factorization phase.
10236         Reported by Carlos Bueno <carlos@bueno.org>.
10237
10238 2010-06-21  Bruno Haible  <bruno@clisp.org>
10239
10240         Fix HAVE_CALLOC_POSIX misnomer.
10241         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10242         !HAVE_CALLOC_POSIX.
10243         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10244         HAVE_CALLOC_POSIX.
10245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10246         instead of HAVE_CALLOC_POSIX.
10247         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10248         HAVE_CALLOC_POSIX.
10249
10250         Use modern idiom for calloc() replacement.
10251         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10252         AC_FUNC_CALLOC.
10253         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10254         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10255         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10256         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10257         (gl_REPLACE_CALLOC): New macro.
10258
10259 2010-06-21  Bruno Haible  <bruno@clisp.org>
10260
10261         Fix HAVE_REALLOC_POSIX misnomer.
10262         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10263         !HAVE_REALLOC_POSIX.
10264         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10265         HAVE_REALLOC_POSIX.
10266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10267         instead of HAVE_REALLOC_POSIX.
10268         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10269         HAVE_REALLOC_POSIX.
10270
10271         Use modern idiom for realloc() replacement.
10272         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10273         AC_FUNC_REALLOC.
10274         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10275         Autoconf's AC_FUNC_REALLOC.
10276         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10277         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10278         (gl_REPLACE_REALLOC): New macro.
10279         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10280
10281 2010-06-21  Bruno Haible  <bruno@clisp.org>
10282
10283         Fix HAVE_MALLOC_POSIX misnomer.
10284         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10285         !HAVE_MALLOC_POSIX.
10286         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10287         HAVE_MALLOC_POSIX.
10288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10289         instead of HAVE_MALLOC_POSIX.
10290         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10291         HAVE_MALLOC_POSIX.
10292
10293         Use modern idiom for malloc() replacement.
10294         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10295         AC_FUNC_MALLOC.
10296         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10297         Autoconf's AC_FUNC_MALLOC.
10298         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10299         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10300         (gl_REPLACE_MALLOC): New macro.
10301         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10302
10303 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10304
10305         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10306         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10307         This macro takes 3 arguments, not 4.
10308
10309 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10310
10311         ipv6: fix detection under mingw
10312         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10313         in6_addr.
10314
10315 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10316
10317         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10318         that strtod() works when cross-compiling to a glibc version known
10319         to work.
10320
10321 2010-06-15  Bruno Haible  <bruno@clisp.org>
10322
10323         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10324
10325 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10326
10327         select: Correct timeout.
10328         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10329
10330 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10331
10332         git-version-gen: init shell var to avoid env var influence
10333         * build-aux/git-version-gen (v): Init shell var to empty.
10334
10335 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10336
10337         priv-set: Don't assume that priv.h exists merely because getppriv does.
10338         See Jan Andersen's bug report about AIX 5L in
10339         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10340         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10341         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10342         * lib/priv-set.h: Likewise.
10343         * tests/test-priv-set.c: Likewise.
10344
10345 2010-06-13  Bruno Haible  <bruno@clisp.org>
10346
10347         relocatable: Make it easier to test whether to install wrappers.
10348         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10349         RELOCATABLE_VIA_WRAPPER.
10350
10351 2010-06-13  Bruno Haible  <bruno@clisp.org>
10352
10353         gnulib-tool: Display specified modules and dependencies differently.
10354         * gnulib-tool (func_show_module_list): New function.
10355         (func_import, func_create_testdir): Invoke it.
10356         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10357
10358 2010-06-13  Bruno Haible  <bruno@clisp.org>
10359
10360         gnulib-tool: Align code of func_import and func_create_testdir.
10361         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10362         specified_modules.
10363
10364 2010-06-12  Jim Meyering  <meyering@redhat.com>
10365
10366         test-inttostr: avoid spurious failure on Solaris 9
10367         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10368         to accept "%ju".  Reported by Bruno Haible.
10369
10370 2010-06-11  Jim Meyering  <meyering@redhat.com>
10371
10372         test-sys_socket: mark variables as used more readably
10373         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10374         as "used" explicitly via (void) statement casts.  This is more
10375         readable than using them in an artificial return expression.
10376         Suggestion from Bruno Haible.
10377
10378 2010-06-11  Bruno Haible  <bruno@clisp.org>
10379
10380         Avoid some more warnings from "gcc -Wwrite-strings".
10381         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10382         to 'const char *'.
10383         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10384         * tests/test-c-strcasestr.c (main): Likewise.
10385         * tests/test-mbscasestr1.c (main): Likewise.
10386         * tests/test-mbscasestr2.c (main): Likewise.
10387         * tests/test-memmem.c (main): Likewise.
10388         * tests/test-strstr.c (main): Likewise.
10389         * tests/test-strcasestr.c (main): Likewise.
10390
10391 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10392
10393         init.sh: change framework_failure_ to fail with status 99, not 1
10394         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10395         automake's parallel-tests rule that this is an unexpected failure,
10396         even if the test is listed in XFAIL_TESTS.
10397
10398 2010-06-11  Jim Meyering  <meyering@redhat.com>
10399
10400         test-inttostr: avoid warnings about 4-6KB literal strings
10401         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10402         Include "macros.h", for its definition of ASSERT.
10403         (CK): s/assert/ASSERT/
10404         * modules/inttostr-tests (Files): Add macros.h.
10405
10406         init.sh: don't use $ME_ or skip_ before they are defined
10407         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10408         their first uses.  Also hoist their companions: warn_, fail_,
10409         framework_failure_, $stderr_fileno.  Prompted by a patch from
10410         Stefano Lattarini.
10411
10412         test-sys_socket: avoid set-but-not-used warnings from gcc
10413         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10414         avoid warning about set-but-not-used variables.
10415
10416         test-xvasprintf: avoid 'const' discard warnings
10417         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
10418         "const" when assigning from literal strings.
10419         (test_xasprintf): Add "void" in function argument list to placate
10420         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
10421
10422         tests: avoid compilation warnings in argmatch and exclude tests...
10423         in packages that define ARGMATCH_DIE_DECL, like coreutils.
10424         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
10425         Since it always exits, declare with the "noreturn" attribute.
10426         * tests/test-argmatch.c: Likewise.
10427
10428         tests: avoid 'const' discard warnings in mbsstr tests
10429         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
10430         * tests/test-mbsstr2.c (main): Likewise.
10431
10432         test-verify: avoid warning from gcc's -Wmissing-declarations
10433         * tests/test-verify.c (function): Declare to be static.
10434
10435         test-inttostr.c: include <string.h> for use of strcmp
10436         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
10437
10438         test-linkat: avoid failed assertion on "other" architectures
10439         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
10440         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
10441         sparc: https://bugs.launchpad.net/bugs/591968
10442
10443 2010-06-11  Jim Meyering  <meyering@redhat.com>
10444
10445         printf.m4: avoid autoconf's "Expanded Before Required" warning
10446         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
10447         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
10448         autoconf warning.
10449
10450 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
10451
10452         Replacement header templates are now named with ".in", not "_".
10453         * doc/gnulib-intro.texi: Correct.
10454
10455 2010-06-10  Jim Meyering  <meyering@redhat.com>
10456
10457         inttostr-tests: depend on snprintf, not snprintf-posix
10458         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
10459         snprintf-posix, to avoid this aclocal failure:
10460           missing file gnulib-tests/vasnprintf.c
10461           configure.ac:45: error: expected source file, required through \
10462           AC_LIBSOURCES, not found
10463
10464 2010-06-10  Jim Meyering  <meyering@redhat.com>
10465
10466         inttostr: add a new function, inttostr, and tests
10467         The namesake function was not available.  The existence of the
10468         template file, inttostr.c makes its addition nontrivial.
10469         * lib/anytostr.c: Rename from inttostr.c.
10470         (anytostr): Rename from inttostr.
10471         * lib/inttostr.c: New file.
10472         * modules/inttostr (Files): Add anytostr.c.
10473         (Makefile.am): Set lib_SOURCES instead of ...
10474         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
10475         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
10476         * lib/offtostr.c: Likewise.
10477         * lib/uinttostr.c: Likewise.
10478         * lib/umaxtostr.c: Likewise.
10479         * modules/inttostr-tests: New file.
10480         * tests/test-inttostr.c: New file.  Test these functions.
10481
10482 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
10483             Bruno Haible  <bruno@clisp.org>
10484
10485         Add "Extending Gnulib" chapter to manual.
10486         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
10487         chapter.
10488         (Extending Gnulib): New chapter.
10489         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
10490         chapter.
10491
10492 2010-06-09  Bruno Haible  <bruno@clisp.org>
10493
10494         Avoid relocwrapper link errors due to gnulib replacement functions.
10495         * lib/areadlink.c: Use the system's malloc, realloc functions.
10496         (areadlink): Set errno to ENOMEM explicitly.
10497         * modules/areadlink (Depends-on): Remove malloc-posix.
10498         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10499
10500 2010-06-09  Bruno Haible  <bruno@clisp.org>
10501
10502         Avoid relocwrapper link errors due to gnulib replacement functions.
10503         * lib/canonicalize-lgpl.c: Use the system's malloc function.
10504         * lib/malloca.c: Likewise.
10505         * lib/relocatable.c: Likewise.
10506         * lib/progreloc.c: Use the system's malloc, sprintf functions.
10507         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
10508         * lib/setenv.c: Use the system's malloc, realloc functions.
10509         * lib/strerror.c: Use the system's sprintf function.
10510         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10511
10512 2010-06-04  Bruno Haible  <bruno@clisp.org>
10513
10514         Prefer documented low-level autoconf macro names.
10515         * m4/lib-link.m4: Use m4_translit instead of translit.
10516         * m4/environ.m4: Likewise.
10517         * m4/mathfunc.m4: Likewise.
10518         * m4/onceonly.m4: Likewise.
10519         * m4/stdint.m4: Likewise.
10520         Suggested by Eric Blake.
10521
10522 2010-06-04  Martin Lambers  <marlam@marlam.de>
10523             Bruno Haible  <bruno@clisp.org>
10524
10525         havelib: Allow library names with '+' characters.
10526         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10527         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
10528
10529 2010-06-09  Bruno Haible  <bruno@clisp.org>
10530
10531         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
10532         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
10533         realloc failed.
10534
10535 2010-06-08  Peter Simons  <simons@cryp.to>
10536
10537         maint.mk: make the news-check rule more configurable
10538         * top/maint.mk (news-check-lines-spec) New variable.
10539         (news-check): Use "sed -n 1,10p" in place of "head".
10540
10541 2010-06-07  Jim Meyering  <meyering@redhat.com>
10542
10543         do-release-commit-and-tag: fix typo in --help
10544         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
10545
10546         regex: avoid new dead-code warning with gcc-4.6.0
10547         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
10548         if-block containing a while-loop.  It's been unused for at least
10549         5 years.
10550
10551 2010-06-05  Bruno Haible  <bruno@clisp.org>
10552
10553         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
10554         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
10555
10556 2010-06-04  Bruno Haible  <bruno@clisp.org>
10557
10558         Update to GNU gettext 0.18.1.
10559         * modules/gettext (configure.ac): Require gettext infrastructure from
10560         version 0.18.1.
10561
10562 2010-06-03  Bruno Haible  <bruno@clisp.org>
10563
10564         Don't use AC_LIBOBJ with file names in subdirectories.
10565         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
10566         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
10567         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
10568         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
10569         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
10570         gl_LIBUNISTRING_LIBSOURCE.
10571         (Makefile.am): Augment lib_SOURCES here, conditionally.
10572         * NEWS: Drop requirement for Automake option 'subdir-objects'.
10573
10574 2010-06-03  Bruno Haible  <bruno@clisp.org>
10575
10576         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
10577         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
10578         expansion does not end with a newline.
10579         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
10580         unnecessary newline.
10581
10582 2010-06-03  Bruno Haible  <bruno@clisp.org>
10583
10584         Reduce dependencies.
10585         * tests/test-quotearg.h: New file, extracted from
10586         tests/test-quotearg.c.
10587         * tests/test-quotearg-simple.c: New file, extracted from
10588         tests/test-quotearg.c.
10589         * tests/test-quotearg.c: Don't include <ctype.h>.
10590         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
10591         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
10592         use_quote_double_quotes, use_quotearg_colon): Moved to
10593         tests/test-quotearg.h.
10594         (results_g, flag_results, custom_quotes, custom_results): Moved
10595         to tests/test-quotearg-simple.c.
10596         (main): Moved the part that does not depend on gettext to
10597         tests/test-quotearg-simple.c. Return 77 if the test cannot be
10598         performed.
10599         * modules/quotearg-simple: New file.
10600         * modules/quotearg-simple-tests: New file.
10601         * modules/quotearg (Depends-on): Add quotearg-simple.
10602         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
10603         (Files): Add tests/test-quotearg.h.
10604         Reported by Paolo Bonzini.
10605
10606 2010-06-03  Bruno Haible  <bruno@clisp.org>
10607
10608         Reduce dependencies.
10609         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
10610
10611 2010-06-03  Bruno Haible  <bruno@clisp.org>
10612
10613         time: Undefine more broken macros.
10614         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
10615         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
10616         Reported by Eric Blake.
10617
10618 2010-06-03  Bruno Haible  <bruno@clisp.org>
10619
10620         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
10621         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
10622         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
10623         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
10624         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
10625         Reported by Ludovic Courtès <ludo@gnu.org>.
10626
10627 2010-06-02  Eric Blake  <eblake@redhat.com>
10628
10629         time: work with mingw + pthreads-win32 library
10630         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
10631         if timespec is defined only in pthread.h.
10632         * modules/time (Makefile.am): Substitute it.
10633         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
10634         <pthread.h>, when needed.
10635         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
10636         from the library.
10637
10638 2010-05-31  Bruno Haible  <bruno@clisp.org>
10639
10640         Avoid expanding two macros in the wrong order.
10641         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
10642         gl_LIBUNISTRING if it is defined.
10643         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
10644         autoconf >= 2.64.
10645         Reported by Ludovic Courtès <ludo@gnu.org>.
10646
10647 2010-05-27  Jim Meyering  <meyering@redhat.com>
10648
10649         maint.mk: also prohibit "#undef" of always-defined symbols
10650         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
10651         Allow more than one space before the symbol name.
10652         (sc_prohibit_always-defined_macros): Use grep's -E, now that
10653         the regexp uses alternation.
10654
10655 2010-05-26  Eric Blake  <eblake@redhat.com>
10656
10657         maint.mk: avoid echo -e
10658         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
10659         Convert all uses of echo -* to printf.
10660         Reported by Matthias Bolte.
10661
10662 2010-05-25  Bruno Haible  <bruno@clisp.org>
10663
10664         Update to GNU gettext 0.18, part 2.
10665         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
10666         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
10667
10668 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10669
10670         Add missing include in test-pwrite.c.
10671         * tests/test-pwrite.c: Include string.h, for strcmp.
10672
10673 2010-05-24  Bruno Haible  <bruno@clisp.org>
10674
10675         * NEWS: Mention requirement for Automake option 'subdir-objects'.
10676
10677 2010-05-24  Bruno Haible  <bruno@clisp.org>
10678
10679         Don't use conversion with transliteration in u{8,16,32}_strcoll.
10680         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
10681         iconveh_error argument.
10682         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
10683         U_STRCONV_TO_LOCALE.
10684         * lib/unistr/u16-strcoll.c: Likewise.
10685         * lib/unistr/u32-strcoll.c: Likewise.
10686         * modules/unistr/u8-strcoll (Depends-on): Add
10687         uniconv/u8-strconv-to-enc, localcharset. Remove
10688         uniconv/u8-strconv-to-locale.
10689         (configure.ac): Bump version number.
10690         * modules/unistr/u16-strcoll (Depends-on): Add
10691         uniconv/u16-strconv-to-enc, localcharset. Remove
10692         uniconv/u16-strconv-to-locale.
10693         (configure.ac): Bump version number.
10694         * modules/unistr/u32-strcoll (Depends-on): Add
10695         uniconv/u32-strconv-to-enc, localcharset. Remove
10696         uniconv/u32-strconv-to-locale.
10697         (configure.ac): Bump version number.
10698
10699 2010-05-24  Bruno Haible  <bruno@clisp.org>
10700
10701         Avoid a test failure on NetBSD 5.0.
10702         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
10703         an iconv() bug.
10704
10705 2010-05-24  Bruno Haible  <bruno@clisp.org>
10706
10707         Adjust #include directive style.
10708         * modules/regex (Includes): Recommend to write <regex.h>.
10709
10710 2010-05-24  Bruno Haible  <bruno@clisp.org>
10711
10712         regex: Don't require alloca.
10713         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
10714         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
10715         only inside if (0).
10716
10717 2010-05-23  Jim Meyering  <meyering@redhat.com>
10718
10719         test-renameat.c: include <sys/stat.h>
10720         * tests/test-renameat.c: Include <sys/stat.h>; required for
10721         definition of S_IS* macros.
10722
10723 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
10724
10725         Update maintainer documentation for 'relocatable-prog' module.
10726         * doc/relocatable-maint.texi: Update.
10727         Comments by Bruno Haible.
10728
10729 2010-05-23  Bruno Haible  <bruno@clisp.org>
10730
10731         git-merge-changelog: Enable --split-merged-entry by default.
10732         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
10733         (usage): Don't mention this option any more.
10734         Reported by Ralf Wildenhues.
10735
10736 2010-05-23  Jim Meyering  <meyering@redhat.com>
10737
10738         test-pwrite: do not leave behind a test file named "out"
10739         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
10740         The trivial-looking use of init.sh is really necessary.
10741         It ensures that the temporary file, "out", is created in
10742         a temporary directory, and removed upon termination.
10743         * tests/test-pwrite.sh: Re-add file.
10744         * modules/pwrite-tests: Reference it.
10745
10746 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10747
10748         Fix output redirection buglet in init.sh.
10749         * tests/init.sh: Fix redirection of stderr.
10750
10751 2010-05-20  Simon Josefsson  <simon@josefsson.org>
10752
10753         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
10754
10755 2010-05-17  Simon Josefsson  <simon@josefsson.org>
10756
10757         * modules/valgrind-tests: New file.
10758         * m4/valgrind-tests.m4: New file.
10759         * doc/valgrind-tests.texi: New file.
10760         * doc/gnulib.texi (Running self-tests under valgrind): New
10761         section.
10762
10763 2010-05-19  Bruno Haible  <bruno@clisp.org>
10764
10765         Clean up dead code in recent commit.
10766         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
10767         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
10768         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
10769         Suggested by Paolo Bonzini.
10770
10771 2010-05-19  Bruno Haible  <bruno@clisp.org>
10772
10773         Avoid valgrind error reports from libunistring.
10774         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
10775         * modules/libunistring (Files): Add it.
10776         * modules/libunistring-optional (Files): Likewise.
10777
10778 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
10779             Bruno Haible  <bruno@clisp.org>
10780
10781         New module 'libunistring-optional'.
10782         * modules/libunistring-optional: New file.
10783         * m4/libunistring-base.m4: New file.
10784         * m4/libunistring-optional.m4: New file.
10785         * lib/unicase.in.h: Renamed from lib/unicase.h.
10786         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
10787         * lib/unictype.in.h: Renamed from lib/unictype.h.
10788         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
10789         * lib/uniname.in.h: Renamed from lib/uniname.h.
10790         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
10791         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
10792         * lib/unistr.in.h: Renamed from lib/unistr.h.
10793         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
10794         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
10795         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
10796         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
10797         gl_LIBUNISTRING. If the library was found, determine the installed
10798         version and set LIBUNISTRING_VERSION.
10799         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
10800         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
10801         handle a configuration option --with-included-libunistring.
10802         * modules/libunistring (Files): Add m4/absolute-header.m4.
10803         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
10804         Add m4/libunistring-base.m4.
10805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10806         (Makefile.am): Build unicase.h from unicase.in.h.
10807         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
10808         Add m4/libunistring-base.m4.
10809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10810         (Makefile.am): Build uniconv.h from uniconv.in.h.
10811         * modules/unictype/base (Files): Use unictype.in.h instead of
10812         unictype.h. Add m4/libunistring-base.m4.
10813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10814         (Makefile.am): Build unictype.h from unictype.in.h.
10815         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
10816         Add m4/libunistring-base.m4.
10817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10818         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
10819         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
10820         Add m4/libunistring-base.m4.
10821         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10822         (Makefile.am): Build uniname.h from uniname.in.h.
10823         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
10824         Add m4/libunistring-base.m4.
10825         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10826         (Makefile.am): Build uninorm.h from uninorm.in.h.
10827         * modules/unistdio/base (Files): Use unistdio.in.h instead of
10828         unistdio.h. Add m4/libunistring-base.m4.
10829         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10830         (Makefile.am): Build unistdio.h from unistdio.in.h.
10831         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
10832         Add m4/libunistring-base.m4.
10833         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10834         (Makefile.am): Build unistr.h from unistr.in.h.
10835         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
10836         Add m4/libunistring-base.m4.
10837         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10838         (Makefile.am): Build unitypes.h from unitypes.in.h.
10839         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
10840         Add m4/libunistring-base.m4.
10841         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10842         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
10843         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
10844         uniwidth.h. Add m4/libunistring-base.m4.
10845         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10846         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
10847         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
10848         instead of augmenting lib_SOURCES.
10849         * modules/unicase/empty-suffix-context: Likewise.
10850         * modules/unicase/locale-language: Likewise.
10851         * modules/unicase/tolower: Likewise.
10852         * modules/unicase/totitle: Likewise.
10853         * modules/unicase/toupper: Likewise.
10854         * modules/unicase/u8-casecmp: Likewise.
10855         * modules/unicase/u8-casecoll: Likewise.
10856         * modules/unicase/u8-casefold: Likewise.
10857         * modules/unicase/u8-casexfrm: Likewise.
10858         * modules/unicase/u8-ct-casefold: Likewise.
10859         * modules/unicase/u8-ct-tolower: Likewise.
10860         * modules/unicase/u8-ct-totitle: Likewise.
10861         * modules/unicase/u8-ct-toupper: Likewise.
10862         * modules/unicase/u8-is-cased: Likewise.
10863         * modules/unicase/u8-is-casefolded: Likewise.
10864         * modules/unicase/u8-is-lowercase: Likewise.
10865         * modules/unicase/u8-is-titlecase: Likewise.
10866         * modules/unicase/u8-is-uppercase: Likewise.
10867         * modules/unicase/u8-prefix-context: Likewise.
10868         * modules/unicase/u8-suffix-context: Likewise.
10869         * modules/unicase/u8-tolower: Likewise.
10870         * modules/unicase/u8-totitle: Likewise.
10871         * modules/unicase/u8-toupper: Likewise.
10872         * modules/unicase/u16-casecmp: Likewise.
10873         * modules/unicase/u16-casecoll: Likewise.
10874         * modules/unicase/u16-casefold: Likewise.
10875         * modules/unicase/u16-casexfrm: Likewise.
10876         * modules/unicase/u16-ct-casefold: Likewise.
10877         * modules/unicase/u16-ct-tolower: Likewise.
10878         * modules/unicase/u16-ct-totitle: Likewise.
10879         * modules/unicase/u16-ct-toupper: Likewise.
10880         * modules/unicase/u16-is-cased: Likewise.
10881         * modules/unicase/u16-is-casefolded: Likewise.
10882         * modules/unicase/u16-is-lowercase: Likewise.
10883         * modules/unicase/u16-is-titlecase: Likewise.
10884         * modules/unicase/u16-is-uppercase: Likewise.
10885         * modules/unicase/u16-prefix-context: Likewise.
10886         * modules/unicase/u16-suffix-context: Likewise.
10887         * modules/unicase/u16-tolower: Likewise.
10888         * modules/unicase/u16-totitle: Likewise.
10889         * modules/unicase/u16-toupper: Likewise.
10890         * modules/unicase/u32-casecmp: Likewise.
10891         * modules/unicase/u32-casecoll: Likewise.
10892         * modules/unicase/u32-casefold: Likewise.
10893         * modules/unicase/u32-casexfrm: Likewise.
10894         * modules/unicase/u32-ct-casefold: Likewise.
10895         * modules/unicase/u32-ct-tolower: Likewise.
10896         * modules/unicase/u32-ct-totitle: Likewise.
10897         * modules/unicase/u32-ct-toupper: Likewise.
10898         * modules/unicase/u32-is-cased: Likewise.
10899         * modules/unicase/u32-is-casefolded: Likewise.
10900         * modules/unicase/u32-is-lowercase: Likewise.
10901         * modules/unicase/u32-is-titlecase: Likewise.
10902         * modules/unicase/u32-is-uppercase: Likewise.
10903         * modules/unicase/u32-prefix-context: Likewise.
10904         * modules/unicase/u32-suffix-context: Likewise.
10905         * modules/unicase/u32-tolower: Likewise.
10906         * modules/unicase/u32-totitle: Likewise.
10907         * modules/unicase/u32-toupper: Likewise.
10908         * modules/unicase/ulc-casecmp: Likewise.
10909         * modules/unicase/ulc-casecoll: Likewise.
10910         * modules/unicase/ulc-casexfrm: Likewise.
10911         * modules/uniconv/u8-conv-from-enc: Likewise.
10912         * modules/uniconv/u8-conv-to-enc: Likewise.
10913         * modules/uniconv/u8-strconv-from-enc: Likewise.
10914         * modules/uniconv/u8-strconv-from-locale: Likewise.
10915         * modules/uniconv/u8-strconv-to-enc: Likewise.
10916         * modules/uniconv/u8-strconv-to-locale: Likewise.
10917         * modules/uniconv/u16-conv-from-enc: Likewise.
10918         * modules/uniconv/u16-conv-to-enc: Likewise.
10919         * modules/uniconv/u16-strconv-from-enc: Likewise.
10920         * modules/uniconv/u16-strconv-from-locale: Likewise.
10921         * modules/uniconv/u16-strconv-to-enc: Likewise.
10922         * modules/uniconv/u16-strconv-to-locale: Likewise.
10923         * modules/uniconv/u32-conv-from-enc: Likewise.
10924         * modules/uniconv/u32-conv-to-enc: Likewise.
10925         * modules/uniconv/u32-strconv-from-enc: Likewise.
10926         * modules/uniconv/u32-strconv-from-locale: Likewise.
10927         * modules/uniconv/u32-strconv-to-enc: Likewise.
10928         * modules/uniconv/u32-strconv-to-locale: Likewise.
10929         * modules/unictype/bidicategory-byname: Likewise.
10930         * modules/unictype/bidicategory-name: Likewise.
10931         * modules/unictype/bidicategory-of: Likewise.
10932         * modules/unictype/bidicategory-test: Likewise.
10933         * modules/unictype/block-list: Likewise.
10934         * modules/unictype/block-test: Likewise.
10935         * modules/unictype/category-C: Likewise.
10936         * modules/unictype/category-Cc: Likewise.
10937         * modules/unictype/category-Cf: Likewise.
10938         * modules/unictype/category-Cn: Likewise.
10939         * modules/unictype/category-Co: Likewise.
10940         * modules/unictype/category-Cs: Likewise.
10941         * modules/unictype/category-L: Likewise.
10942         * modules/unictype/category-Ll: Likewise.
10943         * modules/unictype/category-Lm: Likewise.
10944         * modules/unictype/category-Lo: Likewise.
10945         * modules/unictype/category-Lt: Likewise.
10946         * modules/unictype/category-Lu: Likewise.
10947         * modules/unictype/category-M: Likewise.
10948         * modules/unictype/category-Mc: Likewise.
10949         * modules/unictype/category-Me: Likewise.
10950         * modules/unictype/category-Mn: Likewise.
10951         * modules/unictype/category-N: Likewise.
10952         * modules/unictype/category-Nd: Likewise.
10953         * modules/unictype/category-Nl: Likewise.
10954         * modules/unictype/category-No: Likewise.
10955         * modules/unictype/category-P: Likewise.
10956         * modules/unictype/category-Pc: Likewise.
10957         * modules/unictype/category-Pd: Likewise.
10958         * modules/unictype/category-Pe: Likewise.
10959         * modules/unictype/category-Pf: Likewise.
10960         * modules/unictype/category-Pi: Likewise.
10961         * modules/unictype/category-Po: Likewise.
10962         * modules/unictype/category-Ps: Likewise.
10963         * modules/unictype/category-S: Likewise.
10964         * modules/unictype/category-Sc: Likewise.
10965         * modules/unictype/category-Sk: Likewise.
10966         * modules/unictype/category-Sm: Likewise.
10967         * modules/unictype/category-So: Likewise.
10968         * modules/unictype/category-Z: Likewise.
10969         * modules/unictype/category-Zl: Likewise.
10970         * modules/unictype/category-Zp: Likewise.
10971         * modules/unictype/category-Zs: Likewise.
10972         * modules/unictype/category-and: Likewise.
10973         * modules/unictype/category-and-not: Likewise.
10974         * modules/unictype/category-byname: Likewise.
10975         * modules/unictype/category-name: Likewise.
10976         * modules/unictype/category-none: Likewise.
10977         * modules/unictype/category-of: Likewise.
10978         * modules/unictype/category-or: Likewise.
10979         * modules/unictype/category-test: Likewise.
10980         * modules/unictype/combining-class: Likewise.
10981         * modules/unictype/ctype-alnum: Likewise.
10982         * modules/unictype/ctype-alpha: Likewise.
10983         * modules/unictype/ctype-blank: Likewise.
10984         * modules/unictype/ctype-cntrl: Likewise.
10985         * modules/unictype/ctype-digit: Likewise.
10986         * modules/unictype/ctype-graph: Likewise.
10987         * modules/unictype/ctype-lower: Likewise.
10988         * modules/unictype/ctype-print: Likewise.
10989         * modules/unictype/ctype-punct: Likewise.
10990         * modules/unictype/ctype-space: Likewise.
10991         * modules/unictype/ctype-upper: Likewise.
10992         * modules/unictype/ctype-xdigit: Likewise.
10993         * modules/unictype/decimal-digit: Likewise.
10994         * modules/unictype/digit: Likewise.
10995         * modules/unictype/mirror: Likewise.
10996         * modules/unictype/numeric: Likewise.
10997         * modules/unictype/property-alphabetic: Likewise.
10998         * modules/unictype/property-ascii-hex-digit: Likewise.
10999         * modules/unictype/property-bidi-arabic-digit: Likewise.
11000         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11001         * modules/unictype/property-bidi-block-separator: Likewise.
11002         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11003         * modules/unictype/property-bidi-common-separator: Likewise.
11004         * modules/unictype/property-bidi-control: Likewise.
11005         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11006         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11007         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11008         * modules/unictype/property-bidi-european-digit: Likewise.
11009         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11010         * modules/unictype/property-bidi-left-to-right: Likewise.
11011         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11012         * modules/unictype/property-bidi-other-neutral: Likewise.
11013         * modules/unictype/property-bidi-pdf: Likewise.
11014         * modules/unictype/property-bidi-segment-separator: Likewise.
11015         * modules/unictype/property-bidi-whitespace: Likewise.
11016         * modules/unictype/property-byname: Likewise.
11017         * modules/unictype/property-combining: Likewise.
11018         * modules/unictype/property-composite: Likewise.
11019         * modules/unictype/property-currency-symbol: Likewise.
11020         * modules/unictype/property-dash: Likewise.
11021         * modules/unictype/property-decimal-digit: Likewise.
11022         * modules/unictype/property-default-ignorable-code-point: Likewise.
11023         * modules/unictype/property-deprecated: Likewise.
11024         * modules/unictype/property-diacritic: Likewise.
11025         * modules/unictype/property-extender: Likewise.
11026         * modules/unictype/property-format-control: Likewise.
11027         * modules/unictype/property-grapheme-base: Likewise.
11028         * modules/unictype/property-grapheme-extend: Likewise.
11029         * modules/unictype/property-grapheme-link: Likewise.
11030         * modules/unictype/property-hex-digit: Likewise.
11031         * modules/unictype/property-hyphen: Likewise.
11032         * modules/unictype/property-id-continue: Likewise.
11033         * modules/unictype/property-id-start: Likewise.
11034         * modules/unictype/property-ideographic: Likewise.
11035         * modules/unictype/property-ids-binary-operator: Likewise.
11036         * modules/unictype/property-ids-trinary-operator: Likewise.
11037         * modules/unictype/property-ignorable-control: Likewise.
11038         * modules/unictype/property-iso-control: Likewise.
11039         * modules/unictype/property-join-control: Likewise.
11040         * modules/unictype/property-left-of-pair: Likewise.
11041         * modules/unictype/property-line-separator: Likewise.
11042         * modules/unictype/property-logical-order-exception: Likewise.
11043         * modules/unictype/property-lowercase: Likewise.
11044         * modules/unictype/property-math: Likewise.
11045         * modules/unictype/property-non-break: Likewise.
11046         * modules/unictype/property-not-a-character: Likewise.
11047         * modules/unictype/property-numeric: Likewise.
11048         * modules/unictype/property-other-alphabetic: Likewise.
11049         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11050         * modules/unictype/property-other-grapheme-extend: Likewise.
11051         * modules/unictype/property-other-id-continue: Likewise.
11052         * modules/unictype/property-other-id-start: Likewise.
11053         * modules/unictype/property-other-lowercase: Likewise.
11054         * modules/unictype/property-other-math: Likewise.
11055         * modules/unictype/property-other-uppercase: Likewise.
11056         * modules/unictype/property-paired-punctuation: Likewise.
11057         * modules/unictype/property-paragraph-separator: Likewise.
11058         * modules/unictype/property-pattern-syntax: Likewise.
11059         * modules/unictype/property-pattern-white-space: Likewise.
11060         * modules/unictype/property-private-use: Likewise.
11061         * modules/unictype/property-punctuation: Likewise.
11062         * modules/unictype/property-quotation-mark: Likewise.
11063         * modules/unictype/property-radical: Likewise.
11064         * modules/unictype/property-sentence-terminal: Likewise.
11065         * modules/unictype/property-soft-dotted: Likewise.
11066         * modules/unictype/property-space: Likewise.
11067         * modules/unictype/property-terminal-punctuation: Likewise.
11068         * modules/unictype/property-test: Likewise.
11069         * modules/unictype/property-titlecase: Likewise.
11070         * modules/unictype/property-unassigned-code-value: Likewise.
11071         * modules/unictype/property-unified-ideograph: Likewise.
11072         * modules/unictype/property-uppercase: Likewise.
11073         * modules/unictype/property-variation-selector: Likewise.
11074         * modules/unictype/property-white-space: Likewise.
11075         * modules/unictype/property-xid-continue: Likewise.
11076         * modules/unictype/property-xid-start: Likewise.
11077         * modules/unictype/property-zero-width: Likewise.
11078         * modules/unictype/scripts: Likewise.
11079         * modules/unictype/syntax-c-ident: Likewise.
11080         * modules/unictype/syntax-c-whitespace: Likewise.
11081         * modules/unictype/syntax-java-ident: Likewise.
11082         * modules/unictype/syntax-java-whitespace: Likewise.
11083         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11084         * modules/unilbrk/u8-width-linebreaks: Likewise.
11085         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11086         * modules/unilbrk/u16-width-linebreaks: Likewise.
11087         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11088         * modules/unilbrk/u32-width-linebreaks: Likewise.
11089         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11090         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11091         * modules/uniname/uniname: Likewise.
11092         * modules/uninorm/canonical-decomposition: Likewise.
11093         * modules/uninorm/composition: Likewise.
11094         * modules/uninorm/decomposing-form: Likewise.
11095         * modules/uninorm/decomposition: Likewise.
11096         * modules/uninorm/filter: Likewise.
11097         * modules/uninorm/nfc: Likewise.
11098         * modules/uninorm/nfd: Likewise.
11099         * modules/uninorm/nfkc: Likewise.
11100         * modules/uninorm/nfkd: Likewise.
11101         * modules/uninorm/u8-normalize: Likewise.
11102         * modules/uninorm/u8-normcmp: Likewise.
11103         * modules/uninorm/u8-normcoll: Likewise.
11104         * modules/uninorm/u8-normxfrm: Likewise.
11105         * modules/uninorm/u16-normalize: Likewise.
11106         * modules/uninorm/u16-normcmp: Likewise.
11107         * modules/uninorm/u16-normcoll: Likewise.
11108         * modules/uninorm/u16-normxfrm: Likewise.
11109         * modules/uninorm/u32-normalize: Likewise.
11110         * modules/uninorm/u32-normcmp: Likewise.
11111         * modules/uninorm/u32-normcoll: Likewise.
11112         * modules/uninorm/u32-normxfrm: Likewise.
11113         * modules/unistdio/u8-asnprintf: Likewise.
11114         * modules/unistdio/u8-asprintf: Likewise.
11115         * modules/unistdio/u8-snprintf: Likewise.
11116         * modules/unistdio/u8-sprintf: Likewise.
11117         * modules/unistdio/u8-u8-asnprintf: Likewise.
11118         * modules/unistdio/u8-u8-asprintf: Likewise.
11119         * modules/unistdio/u8-u8-snprintf: Likewise.
11120         * modules/unistdio/u8-u8-sprintf: Likewise.
11121         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11122         * modules/unistdio/u8-u8-vasprintf: Likewise.
11123         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11124         * modules/unistdio/u8-u8-vsprintf: Likewise.
11125         * modules/unistdio/u8-vasnprintf: Likewise.
11126         * modules/unistdio/u8-vasprintf: Likewise.
11127         * modules/unistdio/u8-vsnprintf: Likewise.
11128         * modules/unistdio/u8-vsprintf: Likewise.
11129         * modules/unistdio/u16-asnprintf: Likewise.
11130         * modules/unistdio/u16-asprintf: Likewise.
11131         * modules/unistdio/u16-snprintf: Likewise.
11132         * modules/unistdio/u16-sprintf: Likewise.
11133         * modules/unistdio/u16-u16-asnprintf: Likewise.
11134         * modules/unistdio/u16-u16-asprintf: Likewise.
11135         * modules/unistdio/u16-u16-snprintf: Likewise.
11136         * modules/unistdio/u16-u16-sprintf: Likewise.
11137         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11138         * modules/unistdio/u16-u16-vasprintf: Likewise.
11139         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11140         * modules/unistdio/u16-u16-vsprintf: Likewise.
11141         * modules/unistdio/u16-vasnprintf: Likewise.
11142         * modules/unistdio/u16-vasprintf: Likewise.
11143         * modules/unistdio/u16-vsnprintf: Likewise.
11144         * modules/unistdio/u16-vsprintf: Likewise.
11145         * modules/unistdio/u32-asnprintf: Likewise.
11146         * modules/unistdio/u32-asprintf: Likewise.
11147         * modules/unistdio/u32-snprintf: Likewise.
11148         * modules/unistdio/u32-sprintf: Likewise.
11149         * modules/unistdio/u32-u32-asnprintf: Likewise.
11150         * modules/unistdio/u32-u32-asprintf: Likewise.
11151         * modules/unistdio/u32-u32-snprintf: Likewise.
11152         * modules/unistdio/u32-u32-sprintf: Likewise.
11153         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11154         * modules/unistdio/u32-u32-vasprintf: Likewise.
11155         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11156         * modules/unistdio/u32-u32-vsprintf: Likewise.
11157         * modules/unistdio/u32-vasnprintf: Likewise.
11158         * modules/unistdio/u32-vasprintf: Likewise.
11159         * modules/unistdio/u32-vsnprintf: Likewise.
11160         * modules/unistdio/u32-vsprintf: Likewise.
11161         * modules/unistdio/ulc-asnprintf: Likewise.
11162         * modules/unistdio/ulc-asprintf: Likewise.
11163         * modules/unistdio/ulc-fprintf: Likewise.
11164         * modules/unistdio/ulc-snprintf: Likewise.
11165         * modules/unistdio/ulc-sprintf: Likewise.
11166         * modules/unistdio/ulc-vasnprintf: Likewise.
11167         * modules/unistdio/ulc-vasprintf: Likewise.
11168         * modules/unistdio/ulc-vfprintf: Likewise.
11169         * modules/unistdio/ulc-vsnprintf: Likewise.
11170         * modules/unistdio/ulc-vsprintf: Likewise.
11171         * modules/unistr/u8-check: Likewise.
11172         * modules/unistr/u8-chr: Likewise.
11173         * modules/unistr/u8-cmp: Likewise.
11174         * modules/unistr/u8-cmp2: Likewise.
11175         * modules/unistr/u8-cpy: Likewise.
11176         * modules/unistr/u8-cpy-alloc: Likewise.
11177         * modules/unistr/u8-endswith: Likewise.
11178         * modules/unistr/u8-mblen: Likewise.
11179         * modules/unistr/u8-mbsnlen: Likewise.
11180         * modules/unistr/u8-mbtouc: Likewise.
11181         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11182         * modules/unistr/u8-mbtoucr: Likewise.
11183         * modules/unistr/u8-move: Likewise.
11184         * modules/unistr/u8-next: Likewise.
11185         * modules/unistr/u8-prev: Likewise.
11186         * modules/unistr/u8-set: Likewise.
11187         * modules/unistr/u8-startswith: Likewise.
11188         * modules/unistr/u8-stpcpy: Likewise.
11189         * modules/unistr/u8-stpncpy: Likewise.
11190         * modules/unistr/u8-strcat: Likewise.
11191         * modules/unistr/u8-strchr: Likewise.
11192         * modules/unistr/u8-strcmp: Likewise.
11193         * modules/unistr/u8-strcoll: Likewise.
11194         * modules/unistr/u8-strcpy: Likewise.
11195         * modules/unistr/u8-strcspn: Likewise.
11196         * modules/unistr/u8-strdup: Likewise.
11197         * modules/unistr/u8-strlen: Likewise.
11198         * modules/unistr/u8-strmblen: Likewise.
11199         * modules/unistr/u8-strmbtouc: Likewise.
11200         * modules/unistr/u8-strncat: Likewise.
11201         * modules/unistr/u8-strncmp: Likewise.
11202         * modules/unistr/u8-strncpy: Likewise.
11203         * modules/unistr/u8-strnlen: Likewise.
11204         * modules/unistr/u8-strpbrk: Likewise.
11205         * modules/unistr/u8-strrchr: Likewise.
11206         * modules/unistr/u8-strspn: Likewise.
11207         * modules/unistr/u8-strstr: Likewise.
11208         * modules/unistr/u8-strtok: Likewise.
11209         * modules/unistr/u8-to-u16: Likewise.
11210         * modules/unistr/u8-to-u32: Likewise.
11211         * modules/unistr/u8-uctomb: Likewise.
11212         * modules/unistr/u16-check: Likewise.
11213         * modules/unistr/u16-chr: Likewise.
11214         * modules/unistr/u16-cmp: Likewise.
11215         * modules/unistr/u16-cmp2: Likewise.
11216         * modules/unistr/u16-cpy: Likewise.
11217         * modules/unistr/u16-cpy-alloc: Likewise.
11218         * modules/unistr/u16-endswith: Likewise.
11219         * modules/unistr/u16-mblen: Likewise.
11220         * modules/unistr/u16-mbsnlen: Likewise.
11221         * modules/unistr/u16-mbtouc: Likewise.
11222         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11223         * modules/unistr/u16-mbtoucr: Likewise.
11224         * modules/unistr/u16-move: Likewise.
11225         * modules/unistr/u16-next: Likewise.
11226         * modules/unistr/u16-prev: Likewise.
11227         * modules/unistr/u16-set: Likewise.
11228         * modules/unistr/u16-startswith: Likewise.
11229         * modules/unistr/u16-stpcpy: Likewise.
11230         * modules/unistr/u16-stpncpy: Likewise.
11231         * modules/unistr/u16-strcat: Likewise.
11232         * modules/unistr/u16-strchr: Likewise.
11233         * modules/unistr/u16-strcmp: Likewise.
11234         * modules/unistr/u16-strcoll: Likewise.
11235         * modules/unistr/u16-strcpy: Likewise.
11236         * modules/unistr/u16-strcspn: Likewise.
11237         * modules/unistr/u16-strdup: Likewise.
11238         * modules/unistr/u16-strlen: Likewise.
11239         * modules/unistr/u16-strmblen: Likewise.
11240         * modules/unistr/u16-strmbtouc: Likewise.
11241         * modules/unistr/u16-strncat: Likewise.
11242         * modules/unistr/u16-strncmp: Likewise.
11243         * modules/unistr/u16-strncpy: Likewise.
11244         * modules/unistr/u16-strnlen: Likewise.
11245         * modules/unistr/u16-strpbrk: Likewise.
11246         * modules/unistr/u16-strrchr: Likewise.
11247         * modules/unistr/u16-strspn: Likewise.
11248         * modules/unistr/u16-strstr: Likewise.
11249         * modules/unistr/u16-strtok: Likewise.
11250         * modules/unistr/u16-to-u32: Likewise.
11251         * modules/unistr/u16-to-u8: Likewise.
11252         * modules/unistr/u16-uctomb: Likewise.
11253         * modules/unistr/u32-check: Likewise.
11254         * modules/unistr/u32-chr: Likewise.
11255         * modules/unistr/u32-cmp: Likewise.
11256         * modules/unistr/u32-cmp2: Likewise.
11257         * modules/unistr/u32-cpy: Likewise.
11258         * modules/unistr/u32-cpy-alloc: Likewise.
11259         * modules/unistr/u32-endswith: Likewise.
11260         * modules/unistr/u32-mblen: Likewise.
11261         * modules/unistr/u32-mbsnlen: Likewise.
11262         * modules/unistr/u32-mbtouc: Likewise.
11263         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11264         * modules/unistr/u32-mbtoucr: Likewise.
11265         * modules/unistr/u32-move: Likewise.
11266         * modules/unistr/u32-next: Likewise.
11267         * modules/unistr/u32-prev: Likewise.
11268         * modules/unistr/u32-set: Likewise.
11269         * modules/unistr/u32-startswith: Likewise.
11270         * modules/unistr/u32-stpcpy: Likewise.
11271         * modules/unistr/u32-stpncpy: Likewise.
11272         * modules/unistr/u32-strcat: Likewise.
11273         * modules/unistr/u32-strchr: Likewise.
11274         * modules/unistr/u32-strcmp: Likewise.
11275         * modules/unistr/u32-strcoll: Likewise.
11276         * modules/unistr/u32-strcpy: Likewise.
11277         * modules/unistr/u32-strcspn: Likewise.
11278         * modules/unistr/u32-strdup: Likewise.
11279         * modules/unistr/u32-strlen: Likewise.
11280         * modules/unistr/u32-strmblen: Likewise.
11281         * modules/unistr/u32-strmbtouc: Likewise.
11282         * modules/unistr/u32-strncat: Likewise.
11283         * modules/unistr/u32-strncmp: Likewise.
11284         * modules/unistr/u32-strncpy: Likewise.
11285         * modules/unistr/u32-strnlen: Likewise.
11286         * modules/unistr/u32-strpbrk: Likewise.
11287         * modules/unistr/u32-strrchr: Likewise.
11288         * modules/unistr/u32-strspn: Likewise.
11289         * modules/unistr/u32-strstr: Likewise.
11290         * modules/unistr/u32-strtok: Likewise.
11291         * modules/unistr/u32-to-u16: Likewise.
11292         * modules/unistr/u32-to-u8: Likewise.
11293         * modules/unistr/u32-uctomb: Likewise.
11294         * modules/uniwbrk/u8-wordbreaks: Likewise.
11295         * modules/uniwbrk/u16-wordbreaks: Likewise.
11296         * modules/uniwbrk/u32-wordbreaks: Likewise.
11297         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11298         * modules/uniwbrk/wordbreak-property: Likewise.
11299         * modules/uniwidth/u8-strwidth: Likewise.
11300         * modules/uniwidth/u8-width: Likewise.
11301         * modules/uniwidth/u16-strwidth: Likewise.
11302         * modules/uniwidth/u16-width: Likewise.
11303         * modules/uniwidth/u32-strwidth: Likewise.
11304         * modules/uniwidth/u32-width: Likewise.
11305         * modules/uniwidth/width: Likewise.
11306         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11307         with $(LIBUNISTRING).
11308         * modules/unicase/ignorable-tests: Likewise.
11309         * modules/unicase/locale-language-tests: Likewise.
11310         * modules/unicase/tolower-tests: Likewise.
11311         * modules/unicase/totitle-tests: Likewise.
11312         * modules/unicase/toupper-tests: Likewise.
11313         * modules/unicase/u8-casecmp-tests: Likewise.
11314         * modules/unicase/u8-casecoll-tests: Likewise.
11315         * modules/unicase/u8-casefold-tests: Likewise.
11316         * modules/unicase/u8-is-cased-tests: Likewise.
11317         * modules/unicase/u8-is-casefolded-tests: Likewise.
11318         * modules/unicase/u8-is-lowercase-tests: Likewise.
11319         * modules/unicase/u8-is-titlecase-tests: Likewise.
11320         * modules/unicase/u8-is-uppercase-tests: Likewise.
11321         * modules/unicase/u8-tolower-tests: Likewise.
11322         * modules/unicase/u8-totitle-tests: Likewise.
11323         * modules/unicase/u8-toupper-tests: Likewise.
11324         * modules/unicase/u16-casecmp-tests: Likewise.
11325         * modules/unicase/u16-casecoll-tests: Likewise.
11326         * modules/unicase/u16-casefold-tests: Likewise.
11327         * modules/unicase/u16-is-cased-tests: Likewise.
11328         * modules/unicase/u16-is-casefolded-tests: Likewise.
11329         * modules/unicase/u16-is-lowercase-tests: Likewise.
11330         * modules/unicase/u16-is-titlecase-tests: Likewise.
11331         * modules/unicase/u16-is-uppercase-tests: Likewise.
11332         * modules/unicase/u16-tolower-tests: Likewise.
11333         * modules/unicase/u16-totitle-tests: Likewise.
11334         * modules/unicase/u16-toupper-tests: Likewise.
11335         * modules/unicase/u32-casecmp-tests: Likewise.
11336         * modules/unicase/u32-casecoll-tests: Likewise.
11337         * modules/unicase/u32-casefold-tests: Likewise.
11338         * modules/unicase/u32-is-cased-tests: Likewise.
11339         * modules/unicase/u32-is-casefolded-tests: Likewise.
11340         * modules/unicase/u32-is-lowercase-tests: Likewise.
11341         * modules/unicase/u32-is-titlecase-tests: Likewise.
11342         * modules/unicase/u32-is-uppercase-tests: Likewise.
11343         * modules/unicase/u32-tolower-tests: Likewise.
11344         * modules/unicase/u32-totitle-tests: Likewise.
11345         * modules/unicase/u32-toupper-tests: Likewise.
11346         * modules/unicase/ulc-casecmp-tests: Likewise.
11347         * modules/unicase/ulc-casecoll-tests: Likewise.
11348         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11349         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11350         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
11351         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
11352         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
11353         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11354         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11355         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11356         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11357         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11358         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11359         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11360         * modules/unictype/bidicategory-byname-tests: Likewise.
11361         * modules/unictype/bidicategory-name-tests: Likewise.
11362         * modules/unictype/bidicategory-of-tests: Likewise.
11363         * modules/unictype/bidicategory-test-tests: Likewise.
11364         * modules/unictype/block-list-tests: Likewise.
11365         * modules/unictype/block-of-tests: Likewise.
11366         * modules/unictype/block-test-tests: Likewise.
11367         * modules/unictype/category-C-tests: Likewise.
11368         * modules/unictype/category-Cc-tests: Likewise.
11369         * modules/unictype/category-Cf-tests: Likewise.
11370         * modules/unictype/category-Cn-tests: Likewise.
11371         * modules/unictype/category-Co-tests: Likewise.
11372         * modules/unictype/category-Cs-tests: Likewise.
11373         * modules/unictype/category-L-tests: Likewise.
11374         * modules/unictype/category-Ll-tests: Likewise.
11375         * modules/unictype/category-Lm-tests: Likewise.
11376         * modules/unictype/category-Lo-tests: Likewise.
11377         * modules/unictype/category-Lt-tests: Likewise.
11378         * modules/unictype/category-Lu-tests: Likewise.
11379         * modules/unictype/category-M-tests: Likewise.
11380         * modules/unictype/category-Mc-tests: Likewise.
11381         * modules/unictype/category-Me-tests: Likewise.
11382         * modules/unictype/category-Mn-tests: Likewise.
11383         * modules/unictype/category-N-tests: Likewise.
11384         * modules/unictype/category-Nd-tests: Likewise.
11385         * modules/unictype/category-Nl-tests: Likewise.
11386         * modules/unictype/category-No-tests: Likewise.
11387         * modules/unictype/category-P-tests: Likewise.
11388         * modules/unictype/category-Pc-tests: Likewise.
11389         * modules/unictype/category-Pd-tests: Likewise.
11390         * modules/unictype/category-Pe-tests: Likewise.
11391         * modules/unictype/category-Pf-tests: Likewise.
11392         * modules/unictype/category-Pi-tests: Likewise.
11393         * modules/unictype/category-Po-tests: Likewise.
11394         * modules/unictype/category-Ps-tests: Likewise.
11395         * modules/unictype/category-S-tests: Likewise.
11396         * modules/unictype/category-Sc-tests: Likewise.
11397         * modules/unictype/category-Sk-tests: Likewise.
11398         * modules/unictype/category-Sm-tests: Likewise.
11399         * modules/unictype/category-So-tests: Likewise.
11400         * modules/unictype/category-Z-tests: Likewise.
11401         * modules/unictype/category-Zl-tests: Likewise.
11402         * modules/unictype/category-Zp-tests: Likewise.
11403         * modules/unictype/category-Zs-tests: Likewise.
11404         * modules/unictype/category-and-not-tests: Likewise.
11405         * modules/unictype/category-and-tests: Likewise.
11406         * modules/unictype/category-byname-tests: Likewise.
11407         * modules/unictype/category-name-tests: Likewise.
11408         * modules/unictype/category-none-tests: Likewise.
11409         * modules/unictype/category-of-tests: Likewise.
11410         * modules/unictype/category-or-tests: Likewise.
11411         * modules/unictype/category-test-withtable-tests: Likewise.
11412         * modules/unictype/combining-class-tests: Likewise.
11413         * modules/unictype/ctype-alnum-tests: Likewise.
11414         * modules/unictype/ctype-alpha-tests: Likewise.
11415         * modules/unictype/ctype-blank-tests: Likewise.
11416         * modules/unictype/ctype-cntrl-tests: Likewise.
11417         * modules/unictype/ctype-digit-tests: Likewise.
11418         * modules/unictype/ctype-graph-tests: Likewise.
11419         * modules/unictype/ctype-lower-tests: Likewise.
11420         * modules/unictype/ctype-print-tests: Likewise.
11421         * modules/unictype/ctype-punct-tests: Likewise.
11422         * modules/unictype/ctype-space-tests: Likewise.
11423         * modules/unictype/ctype-upper-tests: Likewise.
11424         * modules/unictype/ctype-xdigit-tests: Likewise.
11425         * modules/unictype/decimal-digit-tests: Likewise.
11426         * modules/unictype/digit-tests: Likewise.
11427         * modules/unictype/mirror-tests: Likewise.
11428         * modules/unictype/numeric-tests: Likewise.
11429         * modules/unictype/property-alphabetic-tests: Likewise.
11430         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
11431         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
11432         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
11433         * modules/unictype/property-bidi-block-separator-tests: Likewise.
11434         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
11435         * modules/unictype/property-bidi-common-separator-tests: Likewise.
11436         * modules/unictype/property-bidi-control-tests: Likewise.
11437         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
11438         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
11439         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
11440         * modules/unictype/property-bidi-european-digit-tests: Likewise.
11441         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
11442         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
11443         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
11444         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
11445         * modules/unictype/property-bidi-pdf-tests: Likewise.
11446         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
11447         * modules/unictype/property-bidi-whitespace-tests: Likewise.
11448         * modules/unictype/property-byname-tests: Likewise.
11449         * modules/unictype/property-combining-tests: Likewise.
11450         * modules/unictype/property-composite-tests: Likewise.
11451         * modules/unictype/property-currency-symbol-tests: Likewise.
11452         * modules/unictype/property-dash-tests: Likewise.
11453         * modules/unictype/property-decimal-digit-tests: Likewise.
11454         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
11455         * modules/unictype/property-deprecated-tests: Likewise.
11456         * modules/unictype/property-diacritic-tests: Likewise.
11457         * modules/unictype/property-extender-tests: Likewise.
11458         * modules/unictype/property-format-control-tests: Likewise.
11459         * modules/unictype/property-grapheme-base-tests: Likewise.
11460         * modules/unictype/property-grapheme-extend-tests: Likewise.
11461         * modules/unictype/property-grapheme-link-tests: Likewise.
11462         * modules/unictype/property-hex-digit-tests: Likewise.
11463         * modules/unictype/property-hyphen-tests: Likewise.
11464         * modules/unictype/property-id-continue-tests: Likewise.
11465         * modules/unictype/property-id-start-tests: Likewise.
11466         * modules/unictype/property-ideographic-tests: Likewise.
11467         * modules/unictype/property-ids-binary-operator-tests: Likewise.
11468         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
11469         * modules/unictype/property-ignorable-control-tests: Likewise.
11470         * modules/unictype/property-iso-control-tests: Likewise.
11471         * modules/unictype/property-join-control-tests: Likewise.
11472         * modules/unictype/property-left-of-pair-tests: Likewise.
11473         * modules/unictype/property-line-separator-tests: Likewise.
11474         * modules/unictype/property-logical-order-exception-tests: Likewise.
11475         * modules/unictype/property-lowercase-tests: Likewise.
11476         * modules/unictype/property-math-tests: Likewise.
11477         * modules/unictype/property-non-break-tests: Likewise.
11478         * modules/unictype/property-not-a-character-tests: Likewise.
11479         * modules/unictype/property-numeric-tests: Likewise.
11480         * modules/unictype/property-other-alphabetic-tests: Likewise.
11481         * modules/unictype/property-other-default-ignorable-code-point-tests:
11482         Likewise.
11483         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
11484         * modules/unictype/property-other-id-continue-tests: Likewise.
11485         * modules/unictype/property-other-id-start-tests: Likewise.
11486         * modules/unictype/property-other-lowercase-tests: Likewise.
11487         * modules/unictype/property-other-math-tests: Likewise.
11488         * modules/unictype/property-other-uppercase-tests: Likewise.
11489         * modules/unictype/property-paired-punctuation-tests: Likewise.
11490         * modules/unictype/property-paragraph-separator-tests: Likewise.
11491         * modules/unictype/property-pattern-syntax-tests: Likewise.
11492         * modules/unictype/property-pattern-white-space-tests: Likewise.
11493         * modules/unictype/property-private-use-tests: Likewise.
11494         * modules/unictype/property-punctuation-tests: Likewise.
11495         * modules/unictype/property-quotation-mark-tests: Likewise.
11496         * modules/unictype/property-radical-tests: Likewise.
11497         * modules/unictype/property-sentence-terminal-tests: Likewise.
11498         * modules/unictype/property-soft-dotted-tests: Likewise.
11499         * modules/unictype/property-space-tests: Likewise.
11500         * modules/unictype/property-terminal-punctuation-tests: Likewise.
11501         * modules/unictype/property-test-tests: Likewise.
11502         * modules/unictype/property-titlecase-tests: Likewise.
11503         * modules/unictype/property-unassigned-code-value-tests: Likewise.
11504         * modules/unictype/property-unified-ideograph-tests: Likewise.
11505         * modules/unictype/property-uppercase-tests: Likewise.
11506         * modules/unictype/property-variation-selector-tests: Likewise.
11507         * modules/unictype/property-white-space-tests: Likewise.
11508         * modules/unictype/property-xid-continue-tests: Likewise.
11509         * modules/unictype/property-xid-start-tests: Likewise.
11510         * modules/unictype/property-zero-width-tests: Likewise.
11511         * modules/unictype/scripts-tests: Likewise.
11512         * modules/unictype/syntax-c-ident-tests: Likewise.
11513         * modules/unictype/syntax-c-whitespace-tests: Likewise.
11514         * modules/unictype/syntax-java-ident-tests: Likewise.
11515         * modules/unictype/syntax-java-whitespace-tests: Likewise.
11516         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
11517         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
11518         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
11519         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
11520         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
11521         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
11522         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
11523         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
11524         * modules/uniname/uniname-tests: Likewise.
11525         * modules/uninorm/canonical-decomposition-tests: Likewise.
11526         * modules/uninorm/compat-decomposition-tests: Likewise.
11527         * modules/uninorm/composition-tests: Likewise.
11528         * modules/uninorm/decomposing-form-tests: Likewise.
11529         * modules/uninorm/decomposition-tests: Likewise.
11530         * modules/uninorm/filter-tests: Likewise.
11531         * modules/uninorm/nfc-tests: Likewise.
11532         * modules/uninorm/nfd-tests: Likewise.
11533         * modules/uninorm/nfkc-tests: Likewise.
11534         * modules/uninorm/nfkd-tests: Likewise.
11535         * modules/uninorm/u8-normcmp-tests: Likewise.
11536         * modules/uninorm/u8-normcoll-tests: Likewise.
11537         * modules/uninorm/u16-normcmp-tests: Likewise.
11538         * modules/uninorm/u16-normcoll-tests: Likewise.
11539         * modules/uninorm/u32-normcmp-tests: Likewise.
11540         * modules/uninorm/u32-normcoll-tests: Likewise.
11541         * modules/unistdio/u8-asnprintf-tests: Likewise.
11542         * modules/unistdio/u8-vasnprintf-tests: Likewise.
11543         * modules/unistdio/u8-vasprintf-tests: Likewise.
11544         * modules/unistdio/u8-vsnprintf-tests: Likewise.
11545         * modules/unistdio/u8-vsprintf-tests: Likewise.
11546         * modules/unistdio/u16-asnprintf-tests: Likewise.
11547         * modules/unistdio/u16-vasnprintf-tests: Likewise.
11548         * modules/unistdio/u16-vasprintf-tests: Likewise.
11549         * modules/unistdio/u16-vsnprintf-tests: Likewise.
11550         * modules/unistdio/u16-vsprintf-tests: Likewise.
11551         * modules/unistdio/u32-asnprintf-tests: Likewise.
11552         * modules/unistdio/u32-vasnprintf-tests: Likewise.
11553         * modules/unistdio/u32-vasprintf-tests: Likewise.
11554         * modules/unistdio/u32-vsnprintf-tests: Likewise.
11555         * modules/unistdio/u32-vsprintf-tests: Likewise.
11556         * modules/unistdio/ulc-asnprintf-tests: Likewise.
11557         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
11558         * modules/unistdio/ulc-vasprintf-tests: Likewise.
11559         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
11560         * modules/unistdio/ulc-vsprintf-tests: Likewise.
11561         * modules/unistr/u8-check-tests: Likewise.
11562         * modules/unistr/u8-chr-tests: Likewise.
11563         * modules/unistr/u8-cmp-tests: Likewise.
11564         * modules/unistr/u8-cmp2-tests: Likewise.
11565         * modules/unistr/u8-cpy-alloc-tests: Likewise.
11566         * modules/unistr/u8-cpy-tests: Likewise.
11567         * modules/unistr/u8-mblen-tests: Likewise.
11568         * modules/unistr/u8-mbsnlen-tests: Likewise.
11569         * modules/unistr/u8-mbtouc-tests: Likewise.
11570         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
11571         * modules/unistr/u8-mbtoucr-tests: Likewise.
11572         * modules/unistr/u8-move-tests: Likewise.
11573         * modules/unistr/u8-next-tests: Likewise.
11574         * modules/unistr/u8-prev-tests: Likewise.
11575         * modules/unistr/u8-set-tests: Likewise.
11576         * modules/unistr/u8-stpcpy-tests: Likewise.
11577         * modules/unistr/u8-stpncpy-tests: Likewise.
11578         * modules/unistr/u8-strcat-tests: Likewise.
11579         * modules/unistr/u8-strcmp-tests: Likewise.
11580         * modules/unistr/u8-strcoll-tests: Likewise.
11581         * modules/unistr/u8-strcpy-tests: Likewise.
11582         * modules/unistr/u8-strdup-tests: Likewise.
11583         * modules/unistr/u8-strlen-tests: Likewise.
11584         * modules/unistr/u8-strmblen-tests: Likewise.
11585         * modules/unistr/u8-strmbtouc-tests: Likewise.
11586         * modules/unistr/u8-strncat-tests: Likewise.
11587         * modules/unistr/u8-strncmp-tests: Likewise.
11588         * modules/unistr/u8-strncpy-tests: Likewise.
11589         * modules/unistr/u8-strnlen-tests: Likewise.
11590         * modules/unistr/u8-to-u16-tests: Likewise.
11591         * modules/unistr/u8-to-u32-tests: Likewise.
11592         * modules/unistr/u8-uctomb-tests: Likewise.
11593         * modules/unistr/u16-check-tests: Likewise.
11594         * modules/unistr/u16-chr-tests: Likewise.
11595         * modules/unistr/u16-cmp-tests: Likewise.
11596         * modules/unistr/u16-cmp2-tests: Likewise.
11597         * modules/unistr/u16-cpy-alloc-tests: Likewise.
11598         * modules/unistr/u16-cpy-tests: Likewise.
11599         * modules/unistr/u16-mblen-tests: Likewise.
11600         * modules/unistr/u16-mbsnlen-tests: Likewise.
11601         * modules/unistr/u16-mbtouc-tests: Likewise.
11602         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
11603         * modules/unistr/u16-mbtoucr-tests: Likewise.
11604         * modules/unistr/u16-move-tests: Likewise.
11605         * modules/unistr/u16-next-tests: Likewise.
11606         * modules/unistr/u16-prev-tests: Likewise.
11607         * modules/unistr/u16-set-tests: Likewise.
11608         * modules/unistr/u16-stpcpy-tests: Likewise.
11609         * modules/unistr/u16-stpncpy-tests: Likewise.
11610         * modules/unistr/u16-strcat-tests: Likewise.
11611         * modules/unistr/u16-strcmp-tests: Likewise.
11612         * modules/unistr/u16-strcoll-tests: Likewise.
11613         * modules/unistr/u16-strcpy-tests: Likewise.
11614         * modules/unistr/u16-strdup-tests: Likewise.
11615         * modules/unistr/u16-strlen-tests: Likewise.
11616         * modules/unistr/u16-strmblen-tests: Likewise.
11617         * modules/unistr/u16-strmbtouc-tests: Likewise.
11618         * modules/unistr/u16-strncat-tests: Likewise.
11619         * modules/unistr/u16-strncmp-tests: Likewise.
11620         * modules/unistr/u16-strncpy-tests: Likewise.
11621         * modules/unistr/u16-strnlen-tests: Likewise.
11622         * modules/unistr/u16-to-u32-tests: Likewise.
11623         * modules/unistr/u16-to-u8-tests: Likewise.
11624         * modules/unistr/u16-uctomb-tests: Likewise.
11625         * modules/unistr/u32-check-tests: Likewise.
11626         * modules/unistr/u32-chr-tests: Likewise.
11627         * modules/unistr/u32-cmp-tests: Likewise.
11628         * modules/unistr/u32-cmp2-tests: Likewise.
11629         * modules/unistr/u32-cpy-alloc-tests: Likewise.
11630         * modules/unistr/u32-cpy-tests: Likewise.
11631         * modules/unistr/u32-mblen-tests: Likewise.
11632         * modules/unistr/u32-mbsnlen-tests: Likewise.
11633         * modules/unistr/u32-mbtouc-tests: Likewise.
11634         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
11635         * modules/unistr/u32-mbtoucr-tests: Likewise.
11636         * modules/unistr/u32-move-tests: Likewise.
11637         * modules/unistr/u32-next-tests: Likewise.
11638         * modules/unistr/u32-prev-tests: Likewise.
11639         * modules/unistr/u32-set-tests: Likewise.
11640         * modules/unistr/u32-stpcpy-tests: Likewise.
11641         * modules/unistr/u32-stpncpy-tests: Likewise.
11642         * modules/unistr/u32-strcat-tests: Likewise.
11643         * modules/unistr/u32-strcmp-tests: Likewise.
11644         * modules/unistr/u32-strcoll-tests: Likewise.
11645         * modules/unistr/u32-strcpy-tests: Likewise.
11646         * modules/unistr/u32-strdup-tests: Likewise.
11647         * modules/unistr/u32-strlen-tests: Likewise.
11648         * modules/unistr/u32-strmblen-tests: Likewise.
11649         * modules/unistr/u32-strmbtouc-tests: Likewise.
11650         * modules/unistr/u32-strncat-tests: Likewise.
11651         * modules/unistr/u32-strncmp-tests: Likewise.
11652         * modules/unistr/u32-strncpy-tests: Likewise.
11653         * modules/unistr/u32-strnlen-tests: Likewise.
11654         * modules/unistr/u32-to-u16-tests: Likewise.
11655         * modules/unistr/u32-to-u8-tests: Likewise.
11656         * modules/unistr/u32-uctomb-tests: Likewise.
11657         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
11658         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
11659         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
11660         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
11661         * modules/uniwidth/u8-strwidth-tests: Likewise.
11662         * modules/uniwidth/u8-width-tests: Likewise.
11663         * modules/uniwidth/u16-strwidth-tests: Likewise.
11664         * modules/uniwidth/u16-width-tests: Likewise.
11665         * modules/uniwidth/u32-strwidth-tests: Likewise.
11666         * modules/uniwidth/u32-width-tests: Likewise.
11667         * modules/uniwidth/width-tests: Likewise.
11668
11669 2010-05-18  Richard Jones  <rjones@redhat.com>
11670
11671         doc: users.txt: list hivex
11672         * users.txt: Add hivex.
11673
11674 2010-05-18  Richard Jones  <rjones@redhat.com>
11675
11676         doc: users.txt: list febootstrap
11677         * users.txt: Add febootstrap.
11678
11679 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
11680
11681         bootstrap: fix an error when gnulib is not used as a git submodule
11682         * build-aux/bootstrap (gnulib_path): If its length is zero then
11683         assign "gnulib" to it.
11684         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
11685
11686 2010-05-16  Bruno Haible  <bruno@clisp.org>
11687
11688         Avoid autoconf warnings about AM_ICONV.
11689         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
11690         2.64.
11691
11692 2010-05-16  Bruno Haible  <bruno@clisp.org>
11693
11694         absolute-header: Make the macro usable in more situations.
11695         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
11696         from gl_ABSOLUTE_HEADER.
11697         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
11698
11699 2010-05-16  James Youngman  <jay@gnu.org>
11700
11701         doc: update users.txt
11702         * users.txt: Add CSSC.
11703
11704 2010-05-16  Jim Meyering  <meyering@redhat.com>
11705
11706         init.sh: fix an error in the previous change; add more comments
11707         * tests/init.sh: Compare exit code in loop against 9, not 2.
11708         Patch by Bruno Haible.
11709         Make the two tests more similar by adding an empty "then" clause.
11710         Add comments.
11711
11712         init.sh: avoid unnecessary shell re-exec
11713         * tests/init.sh: Improve the re-exec-required check to first test the
11714         current shell.  If it passes the test, do not search for a shell that
11715         does pass, and do not re-exec.  This test is particularly contorted to
11716         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
11717         of $(...) evokes a syntax error and causes immediate shell exit with
11718         status 2.  Bruno Haible reported that the re-exec made it impossible
11719         to single-step through any init.sh-using script.
11720
11721 2010-05-16  Bruno Haible  <bruno@clisp.org>
11722
11723         Fix collision between gnulib's and libintl's printf replacements.
11724         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
11725         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
11726         (printf): When using GNU C, map the __printf__ function to rpl_printf
11727         via __asm__. When not using GNU C, define rpl_printf instead of
11728         __printf__.
11729         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
11730         commit.
11731         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
11732         commit.
11733         * m4/asm-underscore.m4: New file.
11734         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
11735         * modules/stdio (Files): Add m4/asm-underscore.m4.
11736         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
11737         Reported by Ben Pfaff.
11738
11739 2010-05-16  Bruno Haible  <bruno@clisp.org>
11740
11741         verify: Avoid skipping the test on openSUSE 11.0.
11742         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
11743
11744 2010-05-13  Bruno Haible  <bruno@clisp.org>
11745
11746         Avoid useless warnings from G++.
11747         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
11748         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
11749         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11750
11751 2010-05-11  Jim Meyering  <meyering@redhat.com>
11752
11753         maint.mk: tweak preceding change
11754         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
11755         regexps tighter by anchoring at EOL, and make the new group "shy"
11756         for slightly decreased overhead.
11757
11758 2010-05-11  Eric Blake  <eblake@redhat.com>
11759
11760         maint.mk: gnulib doesn't guarantee NSIG
11761         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
11762
11763 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11764
11765         test-pwrite.c: Remove unused variable declaration.
11766         * tests/test-pwrite.c (main): Remove read_buf declaration.
11767
11768         Remove useless test-pwrite.sh file.
11769         * tests/test-pwrite.sh: Delete file.
11770         * modules/pwrite-tests: Remove references.
11771         Reported by Bruno Haible.
11772
11773 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11774
11775         init.sh: fix a typo
11776         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
11777
11778 2010-05-10  Jim Meyering  <meyering@redhat.com>
11779
11780         maint.mk: avoid using a temporary file in the always-defined-macros check
11781         * top/maint.mk (.re-defmac): Remove rule.
11782         (gl_trap_): Remove definition.
11783         (sc_prohibit_always-defined_macros): Rewrite not to create and
11784         depend on a temporary file.  Instead, depend on GNU grep's ability
11785         to read a list of regular expressions from stdin when given "-f -".
11786
11787 2010-05-09  Bruno Haible  <bruno@clisp.org>
11788
11789         Update to GNU gettext 0.18, part 1.
11790         * m4/gettext.m4: Update to GNU gettext 0.18.
11791         * m4/intl.m4: Likewise.
11792         * m4/po.m4: Likewise.
11793         * modules/gettext (Files): Add m4/fcntl-o.m4.
11794         (configure.ac): Require gettext infrastructure from version 0.18.
11795
11796 2010-05-09  Jim Meyering  <meyering@redhat.com>
11797
11798         init.sh: enable MALLOC_PERTURB_
11799         * tests/init.sh: Enable glibc's malloc-perturbing option.
11800
11801         maint.mk: improve sc_cross_check_PATH_usage_in_tests
11802         With my recent change in init.sh from the two-line form:
11803             -#   : ${srcdir=.}
11804             -#   . "$srcdir/init.sh"; path_prepend_ .
11805             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
11806         I noticed that using the one-line form would cause this test
11807         to fail with a false-positive, or to stop working altogether,
11808         depending on whether help-version changed or all the tests did.
11809         * top/maint.mk (_hv_regex): Remove this definition.
11810         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
11811         (_hv_regex_strong): Use a stronger regex to check for conformance.
11812         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
11813         Give a separate diagnostic for lack of conforming use.
11814
11815         maint.mk: prohibit definition of symbols defined by gnulib
11816         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
11817         definition of symbols defined by gnulib.
11818
11819 2010-05-09  Bruno Haible  <bruno@clisp.org>
11820
11821         acl: Avoid test failure on Cygwin-hosted mingw.
11822         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
11823
11824 2010-05-09  Bruno Haible  <bruno@clisp.org>
11825
11826         error: Use system's fcntl function.
11827         * lib/error.c (fcntl): Undefine.
11828
11829 2010-05-09  Jim Meyering  <meyering@redhat.com>
11830
11831         verify: adjust formatting to be more consistent
11832         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
11833         argument-list '('s, and after one comma.
11834
11835 2010-05-09  Bruno Haible  <bruno@clisp.org>
11836
11837         error: More reliable output on mingw.
11838         * lib/error.c: Include <windows.h>.
11839         (is_open): New function.
11840         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
11841         defined.
11842
11843 2010-05-09  Bruno Haible  <bruno@clisp.org>
11844
11845         vasnprintf: Fix syntax errors in libintl build on mingw.
11846         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
11847         pad_ourselves and prec_ourselves after use.
11848
11849 2010-05-08  Bruno Haible  <bruno@clisp.org>
11850
11851         * lib/config.charset: Update comments for Cygwin 1.7.
11852         * lib/localcharset.c: Likewise.
11853
11854 2010-05-07  Jim Meyering  <meyering@redhat.com>
11855
11856         init.sh: improve comments
11857         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
11858         . "${srcdir=.}/init.sh"; path_prepend_ .
11859         Add a note about path_prepend_ and the alternative of using
11860         TESTS_ENVIRONMENT.
11861
11862 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11863
11864         exclude: Unescape hashed patterns in wildcard mode.
11865         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
11866         to the hash list.
11867         * tests/test-exclude8.sh: New test case.
11868         * modules/exclude-tests: Add new test.
11869
11870 2010-05-05  Eric Blake  <eblake@redhat.com>
11871
11872         verify: automate tests
11873         * modules/verify-tests: New module.
11874         * tests/test-verify.sh: New file.
11875         * tests/test-verify.c: Guard each negative test with a unique id.
11876         Also avoid warning about unused left hand of comma expressions.
11877
11878 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11879
11880         Further improvements to verify.h, suggested by Eric Blake.
11881         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
11882         the GL_* versions, to avoid collision with OpenGL.
11883         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
11884         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
11885         than testing merely whether it's defined.
11886
11887         Modify verify.h to pacify gcc -Wredundant_decls.
11888         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
11889         These use the prefix "GL_" since they're likely to be useful elsewhere.
11890         We may need to break them out into a different .h file.
11891         (__COUNTER__): Define to 0 if the compiler doesn't support it.
11892         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
11893         of verify_function__.
11894
11895 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11896
11897         Tests for module pwrite.
11898         * modules/pwrite-tests: New file.
11899         * tests/test-pwrite.sh: New file.
11900         * tests/test-pwrite.c: New file.
11901
11902         New module pwrite.
11903         * lib/unistd.in.h (pwrite): New declaration.
11904         * lib/pwrite.c: New file, from glibc with modifications.
11905         * m4/pwrite.m4: New file.
11906         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
11907         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
11908         REPLACE_PWRITE.
11909         * modules/pwrite: New file.
11910         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
11911         REPLACE_PWRITE.
11912         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
11913         * doc/posix-functions/pwrite.texi: Mention the new module.
11914
11915 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11916
11917         pread: Update documentation.
11918         * doc/posix-functions/pread.texi: Mention the 'pread' module.
11919
11920 2010-05-04  Eric Blake  <eblake@redhat.com>
11921
11922         docs: update cygwin progress
11923         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
11924         this bug.
11925         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
11926         Added in cygwin 1.7.2.
11927         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
11928         Likewise.
11929         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
11930         Likewise.
11931         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11932         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11933         * doc/glibc-functions/accept4.texi (accept4): Likewise.
11934         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
11935         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
11936         Mention nproc module.
11937         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
11938         bug in cygwin 1.7.5 addition.
11939         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
11940         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
11941         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
11942         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
11943         1.7.5.
11944         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
11945         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
11946         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
11947         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
11948         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
11949         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
11950         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
11951         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
11952         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
11953         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
11954         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
11955         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
11956         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
11957         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
11958         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
11959         Likewise.
11960         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
11961         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
11962         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
11963         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
11964         Likewise.
11965         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
11966         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
11967         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
11968         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
11969         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
11970         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
11971         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
11972         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
11973         Likewise.
11974         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
11975         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
11976         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
11977         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
11978         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
11979         Likewise.
11980         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
11981         Likewise.
11982         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
11983         Likewise.
11984         * doc/glibc-functions/xdrrec_endofrecord.texi
11985         (xdrrec_endofrecord): Likewise.
11986         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
11987         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
11988         Likewise.
11989         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
11990         Likewise.
11991
11992 2010-05-04  Jim Meyering  <meyering@redhat.com>
11993
11994         gendocs.sh: make its "-s FILE" option more useful
11995         * build-aux/gendocs.sh: When honoring the -s FILE option, update
11996         $PACKAGE to reflect the probably-different basename of "FILE".
11997
11998 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11999
12000         bootstrap: don't ignore download_po_files failure
12001         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12002         failure.
12003
12004 2010-05-03  Jim Meyering  <meyering@redhat.com>
12005
12006         maint.mk: allow to pass options to gendocs.sh
12007         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12008         (gendocs_options_): New overridable variable.
12009
12010         gnu-web-doc-update: don't ignore configure or build failure
12011         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12012
12013         announce-gen: backslash-escape '@'s in --help output
12014         * build-aux/announce-gen: Fix syntax errors.
12015
12016         maint.mk, announce-gen: allow project-specific announcement mail headers
12017         * top/maint.mk (translation_project_): Define default.
12018         (announcement_Cc_, announcement_mail_headers_): Likewise.
12019         (announcement): Invoke announce-gen with new --mail-headers option.
12020         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12021
12022         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12023         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12024         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12025         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12026         line in the "err2" output file when running "make check" in verbose
12027         mode (i.e., with set -x enabled).
12028
12029 2010-05-03  Bruno Haible  <bruno@clisp.org>
12030
12031         wctob: Fix for weird platforms.
12032         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12033         argument value.
12034
12035 2010-05-03  Jim Meyering  <meyering@redhat.com>
12036
12037         maint.mk: prohibit unwarranted use of <strings.h>
12038         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12039         strings.h in a file that does not also use strcasecmp, strncasecmp,
12040         ffs or ffsll.
12041
12042         maint.mk: remove obsolete comments
12043         * top/maint.mk: Remove stale, commented-out rules.
12044
12045 2010-05-02  Bruno Haible  <bruno@clisp.org>
12046
12047         wcwidth: Declare also when it's aliased.
12048         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12049         macro.
12050
12051 2010-05-02  Bruno Haible  <bruno@clisp.org>
12052
12053         Fix regression from 2010-04-25.
12054         * gnulib-tool (func_modules_transitive_closure): Check the status of
12055         all modules, not only of the tests that are of the form foo-tests where
12056         foo is a module.
12057
12058 2010-05-02  Bruno Haible  <bruno@clisp.org>
12059
12060         wctob: Work around nasty Cygwin 1.7.2 bug.
12061         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12062         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12063
12064 2010-05-01  Bruno Haible  <bruno@clisp.org>
12065
12066         fpurge: Sharper test.
12067         * tests/test-fpurge.c (main): Add one more ftell check.
12068         * modules/fpurge-tests (Depends-on): Add ftell.
12069         Suggested by Eric Blake.
12070
12071 2010-05-01  Bruno Haible  <bruno@clisp.org>
12072
12073         ftello: Another test.
12074         * tests/test-ftello3.c: New file.
12075         * modules/ftello-tests (Files): Add it.
12076         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12077         MOSTLYCLEANFILES.
12078
12079         ftell: Another test.
12080         * tests/test-ftell3.c: New file.
12081         * modules/ftell-tests (Files): Add it.
12082         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12083         MOSTLYCLEANFILES.
12084
12085 2010-05-01  Bruno Haible  <bruno@clisp.org>
12086
12087         ftell, ftello: Work around Solaris bug.
12088         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12089         * lib/ftello.c: Include stdio-impl.h.
12090         (ftello): On Solaris, when _IOWRT is set, compute the result without
12091         looking at _IOREAD.
12092         * modules/ftello (Files): Add lib/stdio-impl.h.
12093         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12094         * doc/posix-functions/ftello.texi: Likewise.
12095         Reported by Eric Blake.
12096
12097 2010-05-01  Bruno Haible  <bruno@clisp.org>
12098
12099         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12100         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12101         the _IOWRT flag is also set.
12102
12103 2010-05-01  Bruno Haible  <bruno@clisp.org>
12104
12105         Fix doc about a HP-UX stdio bug.
12106         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12107         * doc/posix-functions/ftello.texi: Likewise.
12108
12109 2010-05-01  Bruno Haible  <bruno@clisp.org>
12110
12111         lseek test: Fix failure on Solaris.
12112         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12113         output.
12114
12115 2010-04-30  Jim Meyering  <meyering@redhat.com>
12116
12117         bootstrap: don't ignore failure to generate po*/Makevars
12118         * build-aux/bootstrap (with_gettext): Don't ignore failure
12119         to create po/Makevars or runtime-po/Makevars.
12120
12121 2010-04-29  Eric Blake  <eblake@redhat.com>
12122
12123         headers: relax license to LGPLv2+
12124         * modules/fcntl-h (License): Relax license.
12125         * modules/getopt-posix (License): Likewise.
12126         * modules/locale (License): Likewise.
12127         * modules/math (License): Likewise.
12128         * modules/pty (License): Likewise.
12129         * modules/sched (License): Likewise.
12130         * modules/search (License): Likewise.
12131         * modules/spawn (License): Likewise.
12132         * modules/stdarg (License): Likewise.
12133         * modules/sysexits (License): Likewise.
12134
12135 2010-04-29  Jim Meyering  <meyering@redhat.com>
12136
12137         inttypes: relax license to LGPLv2+
12138         * modules/inttypes (License): Relax license.
12139
12140 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12141
12142         * top/maint.mk (indent): Run twice to produce idempotent results.
12143
12144 2010-04-28  Bruno Haible  <bruno@clisp.org>
12145
12146         getdate: Generate getdate.c in the source directory.
12147         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12148         MOSTLYCLEANFILES.
12149         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12150
12151 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12152
12153         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12154         is not declared as a const *; avoid warnings in that case.
12155
12156 2010-04-28  Eric Blake  <eblake@redhat.com>
12157
12158         canonicalize-lgpl: avoid compiler warning
12159         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12160         declaration' / 'extraneous semicolon' warning with some compilers.
12161         Reported by Andreas Gruenbacher.
12162
12163 2010-04-28  Jim Meyering  <meyering@redhat.com>
12164
12165         init.sh: ensure a more reliable exit status when exiting via trap
12166         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12167         Inspired by patches from Dmitry V. Levin.
12168         Also trap on signal 3 (SIGQUIT).
12169
12170 2010-04-27  Bruno Haible  <bruno@clisp.org>
12171
12172         Update doc about utimes().
12173         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12174         'utimens' module.
12175         Reported by Andreas Gruenbacher <agruen@suse.de>.
12176
12177 2010-04-27  Eric Blake  <eblake@redhat.com>
12178
12179         full-read, full-write: relax license
12180         * modules/full-read (License): Drop to LGPLv2+.
12181         * modules/full-write (License): Likewise.
12182         * modules/safe-read (License): Likewise.
12183         * modules/safe-write (License): Likewise.
12184
12185         pthread: mention library for linking
12186         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12187
12188 2010-04-27  Jim Meyering  <meyering@redhat.com>
12189
12190         maint.mk: fix a bug introduced in last change
12191         * top/maint.mk (gl_assured_headers_): Now that all names are on
12192         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12193         is not anchored to end of word, it should be adequate.
12194
12195         maint.mk: avoid side-effect in latest syntax-check
12196         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12197         to run commands via $(shell...), and hence to incur cost only when
12198         the new rule is actually run.
12199
12200         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12201         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12202         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12203         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12204         (gl_assured_headers_, az_, AZ_): Define.
12205         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12206
12207 2010-04-26  Jim Meyering  <jim@meyering.net>
12208             Bruno Haible  <bruno@clisp.org>
12209
12210         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12211         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12212         Prompted by an exchange with Gilles Espinasse.
12213
12214 2010-04-26  Jim Meyering  <meyering@redhat.com>
12215
12216         git-version-gen: aesthetic tweak
12217         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12218         so that the command remains on a single line.
12219
12220 2010-04-26  Eric Blake  <eblake@redhat.com>
12221
12222         git-version-gen: allow use on EBCDIC hosts
12223         * build-aux/git-version-gen (dirty): Use literal rather than tying
12224         ourselves to ascii.
12225         Reported by Steve Goetze.
12226
12227 2010-04-25  Bruno Haible  <bruno@clisp.org>
12228
12229         netdb: Add support for GNULIB_POSIXCHECK.
12230         * lib/netdb.in.h: Include warn-on-use.h.
12231         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12232         functions are used when GNULIB_POSIXCHECK is defined and the
12233         getaddrinfo module is not in use.
12234         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12235         freeaddrinfo, gai_strerror, getnameinfo are declared.
12236         * modules/netdb (Depends-on): Add warn-on-use.
12237         (Makefile.am): Include warn-on-use.h in netdb.h.
12238
12239 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12240
12241         build: avoid "make check" failure without .git/ directory
12242         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12243         there is no .git/ directory.
12244
12245 2010-04-25  Bruno Haible  <bruno@clisp.org>
12246
12247         ptsname: Fix misuse of ttyname_r.
12248         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12249         of errno.
12250
12251 2010-04-25  Bruno Haible  <bruno@clisp.org>
12252
12253         ttyname_r: Make it work on Solaris 10.
12254         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12255         if the system function has the POSIX declaration. Test whether the
12256         function fails if the buffer is less than 128 bytes large.
12257         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12258         system's ttyname_r function. Provide a reasonably large buffer.
12259         * modules/ttyname_r (Depends-on): Add extensions.
12260         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12261
12262 2010-04-25  Bruno Haible  <bruno@clisp.org>
12263
12264         Use the 'extensions' module for some more functions on Solaris.
12265         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12266         module.
12267         * doc/posix-functions/ctime_r.texi: Likewise.
12268         * doc/posix-functions/getgrgid_r.texi: Likewise.
12269         * doc/posix-functions/getgrnam_r.texi: Likewise.
12270         * doc/posix-functions/getpwnam_r.texi: Likewise.
12271         * doc/posix-functions/getpwuid_r.texi: Likewise.
12272         * doc/posix-functions/readdir_r.texi: Likewise.
12273         * doc/posix-functions/sigwait.texi: Likewise.
12274         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12275         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12276
12277 2010-04-25  Bruno Haible  <bruno@clisp.org>
12278
12279         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12280         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12281         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12282         * lib/ttyname_r.c: Include <limits.h>.
12283         (ttyname_r): Define using the system's ttyname_r function, if it exists
12284         and not on Solaris.
12285         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12286         set.
12287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12288         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12289         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12290         Reported by Simon Josefsson.
12291
12292 2010-04-25  Bruno Haible  <bruno@clisp.org>
12293
12294         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12295         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12296         * doc/posix-functions/ctime_r.texi: Likewise.
12297         * doc/posix-functions/getgrgid_r.texi: Likewise.
12298         * doc/posix-functions/getgrnam_r.texi: Likewise.
12299         * doc/posix-functions/getlogin_r.texi: Likewise.
12300         * doc/posix-functions/getpwnam_r.texi: Likewise.
12301         * doc/posix-functions/getpwuid_r.texi: Likewise.
12302         * doc/posix-functions/readdir_r.texi: Likewise.
12303         * doc/posix-functions/sigwait.texi: Likewise.
12304         * doc/posix-functions/ttyname_r.texi: Likewise.
12305         Reported by Simon Josefsson.
12306
12307 2010-04-25  Bruno Haible  <bruno@clisp.org>
12308
12309         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12310         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12311         also to --create-testdir.
12312         (func_acceptable): Don't consider the status of *-tests modules here.
12313         (func_modules_transitive_closure): Consider it here, before including a
12314         test module.
12315         (func_import, func_create_testdir): Set inc_all_direct_tests,
12316         inc_all_indirect_tests.
12317         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12318         --create-testdir and --create-megatestdir.
12319
12320 2010-04-25  Bruno Haible  <bruno@clisp.org>
12321
12322         gnulib-tool: Add --without-*-tests options.
12323         * gnulib-tool (func_usage): Document the --without-*-tests options.
12324         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12325         excl_unportable_tests): New variables.
12326         Fail if they are specified with --import or --update.
12327         (func_acceptable): Respect the excl_*_tests variables.
12328         (func_import): Set the excl_*_tests variables to empty.
12329
12330 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12331             Bruno Haible  <bruno@clisp.org>
12332
12333         Work around a MacOS X 10.4 bug with openpty.
12334         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12335         * tests/test-openpty.c (main): Close the master side explicitly.
12336
12337 2010-04-25  Bruno Haible  <bruno@clisp.org>
12338
12339         strnlen: Fix a C++ test error on MacOS X and Solaris.
12340         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12341         the function is not declared.
12342         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12343         Simon Josefsson.
12344
12345 2010-04-24  Bruno Haible  <bruno@clisp.org>
12346
12347         Avoid a gcc warning.
12348         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12349         of correct type for %08lx directive.
12350         Reported by Eric Blake.
12351
12352 2010-04-24  Bruno Haible  <bruno@clisp.org>
12353
12354         vasnprintf: Correct errno value in case of out-of-memory.
12355         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12356         or sprintf. Use the errno value from SNPRINTF or sprintf.
12357         Reported by Ian Beckwith <ianb@erislabs.net>.
12358
12359 2010-04-24  Bruno Haible  <bruno@clisp.org>
12360
12361         ansi-c++-opt: Find correct compiler when cross-compiling.
12362         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12363         AC_CHECK_PROGS.
12364         Reported by Simon Josefsson.
12365
12366 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12367
12368         vc-list-files: Add support for subversion
12369         * build-aux/vc-list-files: Use "svn list" to generate the list of
12370         files controlled by subversion.
12371
12372 2010-04-23  Jim Meyering  <meyering@redhat.com>
12373
12374         vc-list-files tests: convert to use init.sh
12375         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12376         path_prepend_.
12377         Use Exit, not exit.
12378         Use skip_ rather than open coding it.
12379         Remove trap set-up and compare definitions.
12380         * tests/test-vc-list-files-git.sh: Likewise.
12381         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12382
12383 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12384
12385         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12386         backup files.
12387
12388 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12389
12390         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12391
12392 2010-04-20  Eric Blake  <eblake@redhat.com>
12393
12394         tests: be robust to ignored SIGPIPE
12395         * tests/test-select-in.sh: Consume all output.
12396         * tests/test-lseek.sh: Check correct exit status, while avoiding
12397         EPIPE.
12398
12399 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12400             Bruno Haible  <bruno@clisp.org>
12401
12402         visibility: Don't use -fvisibility if it leads to a warning.
12403         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12404         yes, don't pretend that visibility works if it leads to a warning.
12405         Reported by Mike Gran <spk121@yahoo.com>.
12406
12407 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12408
12409         * build-aux/bootstrap: Use "git -h" for testing for supported options
12410         instead of "git --help".  The short-form option only shows a summary,
12411         and doesn't layout the full man page.  Grep for the full option name
12412         in the summary, too.
12413
12414 2010-04-19  Bruno Haible  <bruno@clisp.org>
12415
12416         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
12417         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
12418         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
12419         mention of RELOCATABLE_STRIP.
12420         Reported by Sylvain Beucler <beuc@beuc.net>.
12421
12422 2010-04-19  Bruno Haible  <bruno@clisp.org>
12423
12424         * lib/diffseq.h: Fix typo in comment.
12425         Reported by Eric Blake.
12426
12427 2010-04-19  Bruno Haible  <bruno@clisp.org>
12428
12429         ioctl: Move autoconf macro to a .m4 file.
12430         * m4/ioctl.m4: New file, extracted from modules/ioctl.
12431         * modules/ioctl (Files): Add it.
12432         (configure.ac): Simply invoke gl_FUNC_IOCTL.
12433         Reported by Ian Beckwith <ianb@erislabs.net>.
12434
12435 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
12436             Bruno Haible  <bruno@clisp.org>
12437
12438         diffseq: Accommodate use-case with abstract arrays.
12439         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
12440         is not defined.
12441         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
12442         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
12443
12444 2010-04-18  Bruno Haible  <bruno@clisp.org>
12445
12446         * doc/posix-headers/stdbool.texi: More precise wording.
12447
12448 2010-04-17  Jim Meyering  <meyering@redhat.com>
12449
12450         maint.mk: use gnu-style indentation in an embedded perl script
12451         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
12452         Rename variable: s/two/last_two_bytes/
12453
12454 2010-04-16  Eric Blake  <eblake@redhat.com>
12455
12456         test-stdbool: skip test that fails with Solaris CC
12457         * tests/test-stdbool.c (f): Skip test that causes compilation
12458         error under buggy C++ compiler.
12459         * lib/stdbool.in.h: Document the limitation.
12460         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
12461
12462         setenv: allow compilation with C++
12463         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
12464         register keyword.
12465
12466         stdint: allow test to pass with C++
12467         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
12468
12469         getopt: allow compilation with C++
12470         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
12471         struct.
12472         * lib/getopt.c (_getopt_internal_r): Use correct type.
12473         Reported by Dagobert Michelson, via Joel E. Denny.
12474
12475 2010-04-16  Bruno Haible  <bruno@clisp.org>
12476
12477         Override netdb.h always.
12478         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
12479         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
12480         Reported by Ludovic Courtès <ludo@gnu.org>.
12481
12482 2010-04-15  Bruno Haible  <bruno@clisp.org>
12483
12484         openpty: Fix mistake from 2010-03-21.
12485         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
12486         Reported by Simon Josefsson.
12487
12488 2010-04-15  Eric Blake  <eblake@redhat.com>
12489
12490         test-forkpty: fix expected signature
12491         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
12492         Reported by Simon Josefsson.
12493
12494 2010-04-15  Jim Meyering  <meyering@redhat.com>
12495
12496         maint.mk: texinfo_suffix_re_: correct the default regexp
12497         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
12498
12499         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
12500         make it configurable via texinfo_suffix_re_.
12501
12502 2010-04-14  Eric Blake  <eblake@redhat.com>
12503
12504         strtok_r: relax license to LGPLv2+
12505         * modules/strtok_r (License): Relax license.
12506         Reported by Matthias Bolte.
12507
12508 2010-04-14  Simon Josefsson  <simon@josefsson.org>
12509
12510         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
12511         version 1.4.4 by default instead of requiring the libgcrypt
12512         version used during build.  This makes it possible to use the
12513         application with older but still binary compatible libgcrypt
12514         versions.
12515
12516 2010-04-13  Eric Blake  <eblake@redhat.com>
12517
12518         getopt-gnu: match recent glibc fixes and posix ruling
12519         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
12520         '+' handling, when requesting extensions.
12521         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
12522         'W;' handling.
12523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
12524         * doc/posix-functions/getopt.texi (getopt): Document this.
12525         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12526         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12527         Likewise.
12528
12529         getopt: merge bug fixes from glibc
12530         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
12531         diagnostics.  Honor '+:' correctly.  Reject ';'.
12532
12533         getopt-posix: detect MacOS bug
12534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
12535         optind when missing a required argument.
12536         * doc/posix-functions/getopt.texi (getopt): Document the bug.
12537         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12538         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12539         Likewise.
12540
12541         getopt-posix: avoid spurious failure on Solaris
12542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
12543         an indicator that setting optind=1 is sufficient for reset.
12544
12545         getopt-posix: avoid spurious failure on FreeBSD
12546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
12547         in POSIX mode, since the m4 test uses it.
12548
12549         gnulib-tool: silence warning on BSD sh
12550         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
12551
12552 2010-04-13  Jim Meyering  <meyering@redhat.com>
12553
12554         doc: users.txt: GNU patch now uses gnulib
12555         * users.txt: Add patch.
12556
12557 2010-04-12  Jim Meyering  <meyering@redhat.com>
12558
12559         maint.mk: generate more concise timing data for syntax-check rules
12560         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
12561         " done" from each line that reports a syntax-check test duration.
12562
12563 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
12564
12565         git-version-gen: use "git update-index..." rather than "git status"
12566         * build-aux/git-version-gen: Use git update-index --refresh, not
12567         "git status".  With some versions of git, "git status" would fail
12568         to update the index and result in an unwarranted "-dirty" suffix.
12569
12570 2010-04-11  Jim Meyering  <meyering@redhat.com>
12571
12572         openat: correct formatting (no semantic change)
12573         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
12574         Suggested by Bruno Haible.
12575
12576 2010-04-11  Bruno Haible  <bruno@clisp.org>
12577
12578         Stricter declaration checking in testdirs.
12579         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12580         If for_tests is true, augment AM_CPPFLAGS to define
12581         GNULIB_STRICT_CHECKING.
12582         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
12583         GNULIB_STRICT_CHECKING is defined, verify that the function is
12584         declared.
12585
12586 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
12587             Bruno Haible  <bruno@clisp.org>
12588
12589         libunistring: Improve configure output.
12590         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
12591         Don't say "consider installing GNU libunistring" when checking again
12592         with libiconv.
12593
12594 2010-04-11  Bruno Haible  <bruno@clisp.org>
12595
12596         libunistring: Correct value of $LTLIBUNISTRING.
12597         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
12598         correct the value of $LTLIBUNISTRING.
12599
12600 2010-04-11  Bruno Haible  <bruno@clisp.org>
12601
12602         havelib: Add static libraries to LIBS in the right order.
12603         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
12604         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
12605
12606 2010-04-11  Bruno Haible  <bruno@clisp.org>
12607
12608         libunistring: Detect libunistring also when it depends on libiconv.
12609         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
12610         the second AC_LIB_HAVE_LINKFLAGS invocation.
12611
12612 2010-04-11  James Youngman  <jay@gnu.org>
12613
12614         close-stream: declare local scalars to be "const"
12615         * lib/close-stream.c (close_stream): Make boolean variables const
12616         to document the fact that we set but do not change them.
12617
12618 2010-04-11  Bruno Haible  <bruno@clisp.org>
12619
12620         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
12621
12622 2010-04-11  Jim Meyering  <meyering@redhat.com>
12623
12624         maint.mk: don't include dist-check.mk
12625         * top/maint.mk: Remove bogus include directive.
12626
12627         maint.mk: improve empty-line-at-EOF check
12628         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
12629         solution, rather than tail+Perl-based one.  The latter would read
12630         a few kilobytes from the end of each file, and did not handle empty
12631         files properly.
12632
12633         maint.mk: print the elapsed time for each syntax-check rule
12634         * top/maint.mk (sc_m_rules_): Save start time in a file.
12635         (sc_z_rules_): New rules: remove temp file and print elapsed time.
12636         (local-check): Interpose the .z rules
12637
12638 2010-04-11  Jim Meyering  <meyering@redhat.com>
12639
12640         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
12641         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
12642         empty file with one that ends in an empty line.
12643
12644 2010-04-10  Bruno Haible  <bruno@clisp.org>
12645
12646         mkdir: Make it work on mingw64.
12647         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
12648         * lib/mkdir.c: Update comment.
12649         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
12650
12651 2010-04-10  Bruno Haible  <bruno@clisp.org>
12652
12653         Don't override improved macro from newer autoconf.
12654         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
12655         autoconf >= 2.62.
12656         Reported by Joel E. Denny <jdenny@clemson.edu>.
12657
12658 2010-04-10  Jim Meyering  <meyering@redhat.com>
12659
12660         maint.mk: new syntax-check rule: prohibit empty lines at end of file
12661         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
12662
12663         maint.mk: correct a diagnostic
12664         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
12665         in diagnostic; now use $prohibit.
12666
12667 2010-04-10  Bruno Haible  <address@hidden>
12668
12669         fchownat: Fix a C++ test error on Solaris 8.
12670         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
12671         the function does not exist.
12672
12673 2010-04-10  Bruno Haible  <bruno@clisp.org>
12674
12675         vasnprintf: Add more tests.
12676         * tests/test-vasnprintf-posix.c: Include <errno.h>.
12677         (test_function): Test converting an invalid wide string.
12678
12679         vasnprintf: Correct handling of unconvertible wide string arguments.
12680         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
12681         VASNPRINTF.
12682         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
12683         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
12684         smaller than the expected maximum need for the directive. Set errno to
12685         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
12686         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
12687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
12688         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
12689         * modules/vasnprintf (Files): Add m4/printf.m4.
12690         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12691
12692 2010-04-10  Bruno Haible  <bruno@clisp.org>
12693
12694         vasnprintf: Fix crash in %ls directive.
12695         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
12696         string is passed as argument to %ls, with no precision and no width.
12697         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12698
12699 2010-04-10  Bruno Haible  <bruno@clisp.org>
12700
12701         vasnprintf: Fix multiple test failures on mingw.
12702         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
12703         _snprintf, or snwprintf, not _snwprintf.
12704
12705 2010-04-10  Bruno Haible  <bruno@clisp.org>
12706
12707         write: Fix a C++ test error on mingw.
12708         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
12709
12710 2010-04-10  Bruno Haible  <bruno@clisp.org>
12711
12712         vasnprintf test: Reduce code duplication.
12713         * tests/test-vasnprintf.c (test_function): New function, extracted from
12714         test_vasnprintf.
12715         (test_vasnprintf, test_asnprintf): Invoke it.
12716
12717 2010-04-10  Bruno Haible  <bruno@clisp.org>
12718
12719         strnlen: Fix warning in C++ mode on MacOS X.
12720         * lib/string.in.h (strnlen): Use the modern idiom.
12721         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
12722         defining strnlen as a macro already in <config.h>.
12723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12724         REPLACE_STRNLEN.
12725         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
12726         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12727
12728 2010-04-08  James Youngman  <jay@gnu.org>
12729
12730         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
12731         the example.
12732
12733 2010-04-09  Jim Meyering  <meyering@redhat.com>
12734
12735         maint.mk: print better diagnostic when there is no $(_hv_file)
12736         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
12737         announce that when $(_hv_file) (aka help-version) does not exist.
12738
12739         init.sh: run tr in the "C" locale to avoid multibyte interpretation
12740         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
12741         not try to interpret its random input bytes.  Jarno Rajahalme reported
12742         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
12743         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12744         (mktempd_): Likewise, just in case.
12745
12746         ftruncate: add two years to projected module removal date: 2012
12747         * m4/ftruncate.m4: Adjust comments.
12748
12749         ftruncate: mark module as obsolete; even MinGW provides it, now
12750         * modules/ftruncate (Status): Obsolete.
12751         (Notice): Say that.
12752         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
12753         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
12754
12755 2010-04-08  Bruno Haible  <bruno@clisp.org>
12756
12757         Fix side effects from tests-related modules.
12758         * modules/dprintf-posix (Comment): New section.
12759         * modules/fprintf-posix (Comment): Likewise.
12760         * modules/obstack-printf-posix (Comment): Likewise.
12761         * modules/printf-posix (Comment): Likewise.
12762         * modules/snprintf-posix (Comment): Likewise.
12763         * modules/sprintf-posix (Comment): Likewise.
12764         * modules/vasnprintf-posix (Comment): Likewise.
12765         * modules/vasprintf-posix (Comment): Likewise.
12766         * modules/vdprintf-posix (Comment): Likewise.
12767         * modules/vfprintf-posix (Comment): Likewise.
12768         * modules/vprintf-posix (Comment): Likewise.
12769         * modules/vsnprintf-posix (Comment): Likewise.
12770         * modules/vsprintf-posix (Comment): Likewise.
12771         * modules/xprintf-posix (Comment): Likewise.
12772         * modules/xvasprintf-posix (Comment): Likewise.
12773         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
12774         * modules/floorf-tests (Depends-on): Likewise.
12775         * modules/round-tests (Depends-on): Likewise.
12776         * modules/roundf-tests (Depends-on): Likewise.
12777         * modules/trunc-tests (Depends-on): Likewise.
12778         * modules/truncf-tests (Depends-on): Likewise.
12779         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
12780         'fprintf-posix' module is not present.
12781         * tests/test-floorf2.c (check): Likewise.
12782         * tests/test-trunc2.c (check): Likewise.
12783         * tests/test-truncf2.c (check): Likewise.
12784         * tests/test-round2.c (equal): Likewise.
12785         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12786
12787 2010-04-07  Karl Berry  <karl@gnu.org>
12788
12789         * config/srclist.txt,
12790         * config/srclistvars.sh,
12791         * config/srclist-update: doc fixes.
12792
12793 2010-04-07  Jim Meyering  <meyering@redhat.com>
12794
12795         maint.mk: add a PATH crosschecking syntax-check rule
12796         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
12797         Useful if you use a test like the one in help-version (coreutils,
12798         diffutils, grep, gzip) that ensures $(VERSION) matches what is
12799         printed by prog --version.
12800
12801 2010-04-06  Bruno Haible  <bruno@clisp.org>
12802
12803         Fix link error on mingw.
12804         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
12805         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
12806
12807 2010-04-06  Bruno Haible  <bruno@clisp.org>
12808
12809         Assume rmdir exists.
12810         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
12811
12812 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
12813
12814         doc: update users.txt
12815         * users.txt: Add gcal.
12816
12817 2010-04-06  Jim Meyering  <meyering@redhat.com>
12818
12819         init.sh: simply unset TMPDIR rather than risking env -i
12820         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
12821         although it probably works fine on all Unix-based systems, some
12822         systems (Cygwin?) cannot tolerate a totally cleared environment.
12823         Suggestion from Eric Blake.
12824
12825 2010-04-06  Jim Meyering  <meyering@redhat.com>
12826
12827         init.sh: portability fix: use env's POSIX-specified -i option not -u
12828         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
12829         than unportable env -u.  Solaris 5.11's env lacks support for -u.
12830
12831 2010-04-05  Bruno Haible  <bruno@clisp.org>
12832
12833         btowc: Work around Cygwin 1.7.2 bug.
12834         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
12835         does not map NUL to 0.
12836         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
12837
12838 2010-04-05  Bruno Haible  <bruno@clisp.org>
12839
12840         Make the multithread modules work on Cygwin 1.7.2.
12841         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
12842         imported symbols can be declared weak, so that it returns "no" on
12843         Cygwin 1.7.2.
12844
12845 2010-04-05  Bruno Haible  <bruno@clisp.org>
12846
12847         Use the module 'strncat'.
12848         * modules/unistr/u8-strncat (Depends-on): Add strncat.
12849
12850         Tests for module 'strncat'.
12851         * modules/strncat-tests: New file.
12852         * tests/test-strncat.c: New file.
12853
12854         New module 'strncat'.
12855         * lib/string.in.h (strncat): New declaration.
12856         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
12857         * m4/strncat.m4: New file, based on m4/memchr.m4.
12858         * modules/strncat: New file.
12859         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
12860         is declared.
12861         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
12862         REPLACE_STRNCAT.
12863         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
12864         REPLACE_STRNCAT.
12865         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
12866         module.
12867         * tests/test-string-c++.cc: Check signature of strncat.
12868
12869 2010-04-05  Jim Meyering  <meyering@redhat.com>
12870
12871         xstrtoumax-tests: convert to use init.sh
12872         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
12873         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12874         Use Exit, not exit.
12875         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12876
12877         xstrtoimax-tests: convert to use init.sh
12878         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
12879         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12880         Use Exit, not exit.
12881         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12882
12883 2010-04-05  Bruno Haible  <bruno@clisp.org>
12884
12885         sys_socket: Avoid #define replacements in C++ mode.
12886         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
12887         warning to the function if possible, rather than #defining the symbol
12888         to a dysfunctional alias.
12889
12890 2010-04-05  Bruno Haible  <bruno@clisp.org>
12891
12892         fseeko: Fix C++ test error on mingw.
12893         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
12894         gl_FUNC_FSEEKO.
12895         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
12896         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
12897         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
12898         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
12899
12900 2010-04-05  Bruno Haible  <bruno@clisp.org>
12901
12902         duplocale: Improve test output.
12903         * tests/test-duplocale.c (main): Print reason for skipped test.
12904
12905 2010-04-05  Bruno Haible  <bruno@clisp.org>
12906
12907         Assume rmdir exists.
12908         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
12909         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
12910
12911 2010-04-05  Bruno Haible  <bruno@clisp.org>
12912
12913         Fix link error on Solaris 8 with cc.
12914         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
12915
12916 2010-04-05  Bruno Haible  <bruno@clisp.org>
12917
12918         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12919         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
12920
12921 2010-04-05  Bruno Haible  <bruno@clisp.org>
12922
12923         vasprintf: Update documentation.
12924         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
12925
12926 2010-04-05  Bruno Haible  <bruno@clisp.org>
12927
12928         ptsname: Improve test.
12929         * tests/test-ptsname.c (main): Also try the various master names of BSD
12930         systems.
12931
12932 2010-04-05  Bruno Haible  <bruno@clisp.org>
12933
12934         memchr: Avoid a possible C++ test error.
12935         * lib/string.in.h (memchr): Provide declaration if function is missing.
12936         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
12937         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
12938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
12939         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
12940
12941 2010-04-05  Bruno Haible  <bruno@clisp.org>
12942
12943         strtok_r: Improve idiom.
12944         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
12945         AC_LIBOBJ is used.
12946
12947 2010-04-05  Bruno Haible  <bruno@clisp.org>
12948
12949         strdup: Improve idiom.
12950         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
12951         AC_LIBOBJ is used.
12952         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
12953         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
12954         when AC_LIBOBJ is used.
12955
12956 2010-04-05  Bruno Haible  <bruno@clisp.org>
12957
12958         mbsinit, mbrtowc, wcrtomb: Improve idioms.
12959         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
12960         don't set REPLACE_MBSINIT to 1.
12961         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
12962         don't set REPLACE_MBRTOWC to 1.
12963         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
12964         exist, don't set REPLACE_MBSRTOWCS to 1.
12965         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
12966         exist, don't set REPLACE_MBSNRTOWCS to 1.
12967         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
12968         don't set REPLACE_WCRTOMB to 1.
12969         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
12970         exist, don't set REPLACE_WCSRTOMBS to 1.
12971         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
12972         exist, don't set REPLACE_WCSNRTOMBS to 1.
12973
12974 2010-04-05  Bruno Haible  <bruno@clisp.org>
12975
12976         ldexpl: Improve idiom.
12977         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
12978         make sure to set HAVE_DECL_LDEXPL to 0.
12979
12980 2010-04-05  Jim Meyering  <meyering@redhat.com>
12981
12982         xstrtol-tests: convert to use init.sh
12983         * modules/xstrtol-tests (Files): Add tests/init.sh.
12984         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12985         Use Exit, not exit.
12986         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12987
12988         atexit-tests: convert to use init.sh
12989         * modules/atexit-tests (Files): Add tests/init.sh.
12990         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12991         Use Exit, not exit.
12992         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12993
12994         init.sh: fix typo
12995         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
12996
12997         init.sh: make it easier for a test script to write to the tty, ...
12998         when using automake's parallel-tests mode.
12999         * tests/init.sh (stderr_fileno_): Define overridable variable.
13000         (warn_): New function, to use it.
13001         (fail_, skip_, framework_failure_): Use warn_.
13002
13003 2010-04-04  Bruno Haible  <bruno@clisp.org>
13004
13005         btowc: Avoid warning.
13006         * lib/btowc.c: Include <stdlib.h>.
13007         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13008
13009 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13010             Bruno Haible  <bruno@clisp.org>
13011
13012         wchar: Port to NetBSD 1.5.
13013         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13014         * lib/wctype.in.h (WEOF): Likewise.
13015
13016 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13017             Bruno Haible  <bruno@clisp.org>
13018
13019         Port extended stdio to NetBSD 1.5.
13020         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13021         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13022         older.
13023
13024 2010-04-04  Bruno Haible  <bruno@clisp.org>
13025
13026         string: Remove unused substitution.
13027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13028         HAVE_DECL_STRERROR.
13029         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13030
13031 2010-04-04  Bruno Haible  <bruno@clisp.org>
13032
13033         strtod: Avoid a possible C++ test error.
13034         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13035         set REPLACE_STRTOD.
13036
13037 2010-04-04  Bruno Haible  <bruno@clisp.org>
13038
13039         strerror: Update documentation.
13040         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13041
13042 2010-04-04  Bruno Haible  <bruno@clisp.org>
13043
13044         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13045         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13046         _GL_CXXALIAS_SYS_CAST.
13047
13048 2010-04-04  Bruno Haible  <bruno@clisp.org>
13049
13050         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13051         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13052         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13053         REPLACE_FREXPL to 1.
13054         * doc/posix-functions/frexpl.texi: Update documentation.
13055
13056 2010-04-04  Bruno Haible  <bruno@clisp.org>
13057
13058         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13059         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13060
13061 2010-04-04  Bruno Haible  <bruno@clisp.org>
13062
13063         Implement nanosleep for native Windows.
13064         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13065
13066 2010-04-04  Bruno Haible  <bruno@clisp.org>
13067
13068         math: Fix some C++ test errors on Solaris 8.
13069         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13070
13071 2010-04-04  Bruno Haible  <bruno@clisp.org>
13072
13073         math: Fix some C++ test errors on Cygwin.
13074         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13075         truncl): Provide declaration if the system does not have it.
13076         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13077         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13078         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13079         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13080         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13081         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13082         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13083         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13084         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13085         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13086         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13087         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13088         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13089         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13090         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13091         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13093         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13094         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13095         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13096         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13097         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13098
13099 2010-04-04  Bruno Haible  <bruno@clisp.org>
13100
13101         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13102         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13103         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13104         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13105         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13106         * m4/isinf.m4 (gl_ISINF): Likewise.
13107         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13108
13109 2010-04-04  Bruno Haible  <bruno@clisp.org>
13110
13111         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13112         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13113
13114 2010-04-04  Bruno Haible  <bruno@clisp.org>
13115
13116         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13117         * modules/tmpfile (configure.ac): Update.
13118
13119         tmpfile: Fix C++ test error on mingw.
13120         * lib/stdio.in.h (tmpfile): New declaration.
13121         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13122         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13123         * modules/tmpfile (Depends-on): Add stdio.
13124         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13125         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13126         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13127         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13128         REPLACE_TMPFILE.
13129         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13130
13131 2010-04-04  Bruno Haible  <bruno@clisp.org>
13132
13133         ioctl: Fix C++ test error on mingw.
13134         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13135         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13136         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13137
13138 2010-04-03  Bruno Haible  <bruno@clisp.org>
13139
13140         wcwidth: Fix C++ test error on mingw.
13141         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13143         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13144
13145 2010-04-03  Bruno Haible  <bruno@clisp.org>
13146
13147         nanosleep: Fix C++ test error on mingw.
13148         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13149         * lib/time.in.h (nanosleep): Use modern idiom.
13150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13151         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13152         REPLACE_NANOSLEEP to 1.
13153         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13154         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13155
13156 2010-04-03  Bruno Haible  <bruno@clisp.org>
13157
13158         strptime: Fix C++ test error on mingw.
13159         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13160         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13161         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13162         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13163         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13164         not REPLACE_STRPTIME.
13165         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13166         REPLACE_STRPTIME.
13167
13168 2010-04-03  Bruno Haible  <bruno@clisp.org>
13169
13170         timegm: Fix C++ test error on mingw.
13171         * lib/time.in.h (timegm): Use modern idiom.
13172         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13173         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13174         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13175         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13176
13177 2010-04-03  Bruno Haible  <bruno@clisp.org>
13178
13179         timegm: Assume declaration if function exists.
13180         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13181         if it exists. Don't clobber ac_cv_func_timegm.
13182
13183 2010-04-03  Bruno Haible  <bruno@clisp.org>
13184
13185         time_r: Fix C++ test error on mingw.
13186         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13187         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13188         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13189         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13190         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13191
13192 2010-04-03  Bruno Haible  <bruno@clisp.org>
13193
13194         time_r: Minor updates.
13195         * modules/time_r (Description): Mention the provided functions.
13196         * lib/time_r.c: Don't include <string.h>.
13197         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13198         * doc/posix-functions/localtime_r.texi: Likewise.
13199
13200 2010-04-03  Bruno Haible  <bruno@clisp.org>
13201
13202         time: Fix regression introduced on 2010-03-08.
13203         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13204         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13205
13206 2010-04-03  Jim Meyering  <meyering@redhat.com>
13207
13208         maint.mk: don't silently disable project-specific syntax-check rules
13209         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13210         that they need to convert their project-specific syntax-check rules
13211         to use the new _sc_search_regexp.
13212
13213 2010-04-03  Bruno Haible  <bruno@clisp.org>
13214
13215         fchdir: Fix regression introduced on 2010-03-08.
13216         * lib/unistd.in.h (fchdir): Fix declaration.
13217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13219         REPLACE_FCHDIR.
13220         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13221         REPLACE_FCHDIR.
13222
13223 2010-04-03  Bruno Haible  <bruno@clisp.org>
13224
13225         getpagesize: Fix C++ test error on mingw.
13226         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13227         system does not declare the function.
13228         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13229         declared.
13230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13231         HAVE_DECL_GETPAGESIZE.
13232         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13233
13234 2010-04-03  Bruno Haible  <bruno@clisp.org>
13235
13236         stdio: Make C++ tests work on mingw.
13237         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13238         does not declare the function.
13239
13240 2010-04-03  Bruno Haible  <bruno@clisp.org>
13241
13242         ftello: Fix C++ test error on mingw.
13243         * lib/stdio.in.h (ftello): Use modern idiom.
13244         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13245         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13246         is missing and that it needs to be replaced.
13247         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13249         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13250
13251 2010-04-03  Bruno Haible  <bruno@clisp.org>
13252
13253         fseeko: Fix C++ test error on mingw.
13254         * lib/stdio.in.h (fseeko): Use modern idiom.
13255         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13256         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13257         is missing and that it needs to be replaced.
13258         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13260         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13261
13262 2010-04-03  Bruno Haible  <bruno@clisp.org>
13263
13264         mkstemp: Fix C++ test error on mingw.
13265         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13266         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13267         function is missing and that it needs to be replaced.
13268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13269         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13270
13271 2010-04-03  Bruno Haible  <bruno@clisp.org>
13272
13273         stpncpy: Fix C++ test error on mingw.
13274         * lib/string.in.h (stpncpy): Use modern idiom.
13275         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13276         function is missing and that it needs to be replaced.
13277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13278         REPLACE_STPNCPY.
13279         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13280
13281 2010-04-03  Bruno Haible  <bruno@clisp.org>
13282
13283         sys_stat: Fix C++ test error on mingw.
13284         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13285         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13286
13287 2010-04-03  Bruno Haible  <bruno@clisp.org>
13288
13289         pty: Update doc.
13290         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13291
13292 2010-04-03  Bruno Haible  <bruno@clisp.org>
13293
13294         unistd: Fix C++ test error on mingw.
13295         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13296
13297 2010-04-03  Bruno Haible  <bruno@clisp.org>
13298
13299         Update doc regarding mingw.
13300         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13301         * doc/glibc-functions/login_tty.texi: Likewise.
13302         * doc/glibc-functions/forkpty.texi: Likewise.
13303
13304 2010-04-03  Bruno Haible  <bruno@clisp.org>
13305
13306         stdlib: Avoid compilation failure of c-strtold on mingw.
13307         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13308
13309 2010-04-03  Bruno Haible  <bruno@clisp.org>
13310
13311         locale: Make C++ tests work on Cygwin and mingw.
13312         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13313         cannot provide the function.
13314         Reported by Simon Josefsson.
13315
13316 2010-04-03  Bruno Haible  <bruno@clisp.org>
13317
13318         localename: Port to MacOS X 10.6.
13319         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13320         memory layout of the locales in MacOS X 10.6 as well.
13321         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13322
13323 2010-04-02  Bruno Haible  <bruno@clisp.org>
13324
13325         gnulib-tool: Ensure that long-running tests are executed last.
13326         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13327         running tests after the one for the other tests.
13328
13329 2010-04-02  Bruno Haible  <bruno@clisp.org>
13330
13331         gnulib-tool: Ensure the tests in the main directory are executed first.
13332         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13333         start with the current directory.
13334
13335 2010-04-02  Bruno Haible  <bruno@clisp.org>
13336
13337         Tests for module 'havelib', moved here from GNU gettext.
13338         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13339         modifications.
13340         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13341         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13342         with modifications.
13343         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13344         modifications.
13345         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13346         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13347         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13348         with modifications.
13349         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13350         with modifications.
13351         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
13352         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
13353         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13354         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13355         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13356         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13357         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13358         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13359         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13360         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13361         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13362         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13363         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13364         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13365         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13366         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13367         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13368         with modifications.
13369         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13370         with modifications.
13371         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13372         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13373         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13374         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13375         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13376         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13377         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13378         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13379         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13380         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13381         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13382         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13383         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13384         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13385         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13386         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13387         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13388         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13389         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13390         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13391         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13392         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13393         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13394         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13395         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13396         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13397         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13398         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13399         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13400         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13401         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13402         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13403         * tests/havelib/rpathx/rpathx.c: New file, from
13404         gettext/autoconf-lib-link.
13405         * tests/havelib/rpathx/Makefile.am: New file, from
13406         gettext/autoconf-lib-link.
13407         * tests/havelib/rpathx/configure.ac: New file, from
13408         gettext/autoconf-lib-link with modifications.
13409         * tests/havelib/rpathy/rpathy.c: New file, from
13410         gettext/autoconf-lib-link.
13411         * tests/havelib/rpathy/Makefile.am: New file, from
13412         gettext/autoconf-lib-link.
13413         * tests/havelib/rpathy/configure.ac: New file, from
13414         gettext/autoconf-lib-link with modifications.
13415         * tests/havelib/rpathz/rpathz.c: New file, from
13416         gettext/autoconf-lib-link.
13417         * tests/havelib/rpathz/Makefile.am: New file, from
13418         gettext/autoconf-lib-link.
13419         * tests/havelib/rpathz/configure.ac: New file, from
13420         gettext/autoconf-lib-link with modifications.
13421         * tests/havelib/rpathlx/usex.c: New file, from
13422         gettext/autoconf-lib-link.
13423         * tests/havelib/rpathlx/Makefile.am: New file, from
13424         gettext/autoconf-lib-link.
13425         * tests/havelib/rpathlx/configure.ac: New file, from
13426         gettext/autoconf-lib-link with modifications.
13427         * tests/havelib/rpathly/usey.c: New file, from
13428         gettext/autoconf-lib-link.
13429         * tests/havelib/rpathly/Makefile.am: New file, from
13430         gettext/autoconf-lib-link.
13431         * tests/havelib/rpathly/configure.ac: New file, from
13432         gettext/autoconf-lib-link with modifications.
13433         * tests/havelib/rpathlz/usez.c: New file, from
13434         gettext/autoconf-lib-link.
13435         * tests/havelib/rpathlz/Makefile.am: New file, from
13436         gettext/autoconf-lib-link.
13437         * tests/havelib/rpathlz/configure.ac: New file, from
13438         gettext/autoconf-lib-link with modifications.
13439         * tests/havelib/rpathlyx/usey.c: New file, from
13440         gettext/autoconf-lib-link.
13441         * tests/havelib/rpathlyx/Makefile.am: New file, from
13442         gettext/autoconf-lib-link.
13443         * tests/havelib/rpathlyx/configure.ac: New file, from
13444         gettext/autoconf-lib-link with modifications.
13445         * tests/havelib/rpathlzyx/usez.c: New file, from
13446         gettext/autoconf-lib-link.
13447         * tests/havelib/rpathlzyx/Makefile.am: New file, from
13448         gettext/autoconf-lib-link.
13449         * tests/havelib/rpathlzyx/configure.ac: New file, from
13450         gettext/autoconf-lib-link with modifications.
13451         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
13452         with modifications.
13453
13454 2010-04-02  Bruno Haible  <bruno@clisp.org>
13455
13456         gnulib-tool: Create distributed built sources also for the tests.
13457         * gnulib-tool (func_create_testdir): Also generate distributed built
13458         sources in the tests directory.
13459
13460 2010-04-02  Bruno Haible  <bruno@clisp.org>
13461
13462         gnulib-tool: Obey user's environment variables.
13463         * gnulib-tool (func_create_testdir): When creating built sources,
13464         respect the environment variables for autoconf, automake, etc. given by
13465         the user.
13466
13467 2010-04-02  Bruno Haible  <bruno@clisp.org>
13468
13469         gnulib-tool: Provide the value of --m4-base to modules.
13470         * gnulib-tool (func_import, func_create_testdir): Emit a definition
13471         of gl_m4_base.
13472
13473 2010-04-02  Eric Blake  <eblake@redhat.com>
13474
13475         maint.mk: fix some fallout
13476         * NEWS: Document the incompatible change, and its effect on cfg.mk.
13477         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
13478
13479 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13480
13481         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
13482         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
13483         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
13484         (sc_cast_of_x_alloc_return_value): Likewise.
13485         (sc_cast_of_alloca_return_value): Likewise.
13486         (sc_space_tab): Likewise.
13487         (sc_prohibit_atoi_atof): Likewise.
13488         (sc_prohibit_magic_number_exit): Likewise.
13489         (sc_error_exit_success): Likewise.
13490         (sc_file_system): Likewise.
13491         (sc_prohibit_have_config_h): Likewise.
13492         (sc_require_config_h): Likewise.
13493         (sc_prohibit_HAVE_MBRTOWC): Likewise.
13494         (sc_obsolete_symbols): Likewise.
13495         (sc_changelog): Likewise.
13496         (sc_program_name): Likewise.
13497         (sc_the_the): Likewise.
13498         (sc_trailing_blank): Likewise.
13499         (sc_two_space_separator_in_usage): Likewise.
13500         (sc_useless_cpp_parens): Likewise.
13501         (sc_GPL_version): Likewise.
13502         (sc_GFDL_version): Likewise.
13503         (sc_texinfo_acronym): Likewise.
13504         (sc_prohibit_cvs_keyword): Likewise.
13505         (sc_prohibit_stat_st_blocks): Likewise.
13506         (sc_prohibit_S_IS_definition): Likewise.
13507         (sc_redundant_const): Likewise.
13508         (sc_makefile_TAB_only_indentation): Likewise.
13509         (sc_m4_quote_check): Likewise.
13510         (sc_makefile_path_separator_check): Likewise.
13511         (sc_copyright_check): Likewise.
13512         (sc_Wundef_boolean): Likewise.
13513         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13514
13515         maint.mk: match 0 or more whitespace-before-function-call '('
13516         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
13517         that have zero or two-and-more spaces between the function name
13518         and the open parenthesis.
13519         (sc_error_message_warn_fatal): Likewise.
13520         (sc_error_message_uppercase): Likewise.
13521         (sc_error_message_period): Likewise.
13522
13523 2010-03-31  Eric Blake  <eblake@redhat.com>
13524
13525         maint.mk: check for [ as well as test
13526         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
13527         Based on a libvirt report by Matthias Bolte.
13528
13529         gnumakefile: don't squelch _version output
13530         * top/GNUmakefile (_version): Create one-shot dependency rather
13531         than using $(shell) when version must be regenerated.
13532         (_autoreconf): Run verbosely, by default.
13533
13534         sys_time: avoid compiler warnings
13535         * lib/sys_time.in.h (includes): Ensure gcc pragma is
13536         unconditional, fixing regression from 2010-03-29.
13537         Reported by Simon Josefsson.
13538
13539 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13540
13541         maint.mk: s/_header_without_use/_sc_header_without_use/
13542         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
13543         (sc_prohibit_assert_without_use): Use the new name.
13544         (sc_prohibit_close_stream_without_use): Likewise.
13545         (sc_prohibit_getopt_without_use): Likewise.
13546         (sc_prohibit_quotearg_without_use): Likewise.
13547         (sc_prohibit_quote_without_use): Likewise.
13548         (sc_prohibit_long_options_without_use): Likewise.
13549         (sc_prohibit_inttostr_without_use): Likewise.
13550         (sc_prohibit_ignore_value_without_use): Likewise.
13551         (sc_prohibit_error_without_use): Likewise.
13552         (sc_prohibit_xalloc_without_use): Likewise.
13553         (sc_prohibit_hash_without_use): Likewise.
13554         (sc_prohibit_hash_pjw_without_use): Likewise.
13555         (sc_prohibit_safe_read_without_use): Likewise.
13556         (sc_prohibit_argmatch_without_use): Likewise.
13557         (sc_prohibit_canonicalize_without_use): Likewise.
13558         (sc_prohibit_root_dev_ino_without_use): Likewise.
13559         (sc_prohibit_openat_without_use): Likewise.
13560         (sc_prohibit_c_ctype_without_use): Likewise.
13561         (sc_prohibit_signal_without_use): Likewise.
13562         (sc_prohibit_intprops_without_use): Likewise.
13563
13564 2010-03-30  Eric Blake  <eblake@redhat.com>
13565
13566         maint: improve module indicators
13567         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
13568         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
13569         columns, and avoid extra macro expansion.
13570
13571         fdopendir: work around FreeBSD bug
13572         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13573         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
13574         * modules/dirent (Makefile.am): Substitute it.
13575         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
13576         declaration.
13577         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
13578         fix.
13579         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13580
13581 2010-03-29  Bruno Haible  <bruno@clisp.org>
13582
13583         Emit #pragma system_header after the inclusion guard, not before.
13584         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
13585         guard that spans the entire file, not before. This enables an
13586         optimization in GCC's preprocessor.
13587         * lib/ctype.in.h: Likewise.
13588         * lib/dirent.in.h: Likewise.
13589         * lib/errno.in.h: Likewise.
13590         * lib/float.in.h: Likewise.
13591         * lib/getopt.in.h: Likewise.
13592         * lib/iconv.in.h: Likewise.
13593         * lib/langinfo.in.h: Likewise.
13594         * lib/locale.in.h: Likewise.
13595         * lib/math.in.h: Likewise.
13596         * lib/netdb.in.h: Likewise.
13597         * lib/netinet_in.in.h: Likewise.
13598         * lib/pty.in.h: Likewise.
13599         * lib/sched.in.h: Likewise.
13600         * lib/se-selinux.in.h: Likewise.
13601         * lib/search.in.h: Likewise.
13602         * lib/spawn.in.h: Likewise.
13603         * lib/stdarg.in.h: Likewise.
13604         * lib/stdint.in.h: Likewise.
13605         * lib/string.in.h: Likewise.
13606         * lib/strings.in.h: Likewise.
13607         * lib/sys_file.in.h: Likewise.
13608         * lib/sys_ioctl.in.h: Likewise.
13609         * lib/sys_time.in.h: Likewise.
13610         * lib/sys_times.in.h: Likewise.
13611         * lib/sys_utsname.in.h: Likewise.
13612         * lib/sys_wait.in.h: Likewise.
13613         * lib/sysexits.in.h: Likewise.
13614         * lib/wctype.in.h: Likewise.
13615
13616 2010-03-28  James Youngman  <jay@gnu.org>
13617
13618         save-cwd: don't leak a file descriptor when the caller execs.
13619         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
13620         saved file descriptor.
13621         * modules/save-cwd (Depends-on): Depend on cloexec.
13622
13623 2010-03-29  Bruno Haible  <bruno@clisp.org>
13624
13625         Remove vestiges of fts-lgpl module.
13626         * lib/fts_.h: Assume GNULIB_FTS is 1.
13627         * lib/fts.c: Likewise.
13628         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13629
13630 2010-03-28  Bruno Haible  <bruno@clisp.org>
13631
13632         Fix definition of tests witness macro.
13633         * gnulib-tool (func_import): Fix definition of witness macro.
13634
13635 2010-03-28  Bruno Haible  <bruno@clisp.org>
13636
13637         Fix ioctl's protoype on glibc systems.
13638         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
13639         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
13640         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
13641         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
13642         signature. If not, arrange to replace the ioctl function.
13643         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13644         REPLACE_IOCTL.
13645         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
13646         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
13647         Reported by Ludovic Courtès <ludo@gnu.org>.
13648
13649 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
13650
13651         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
13652         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
13653         made it so grep -r --include=GLOB* ... did not work.
13654
13655 2010-03-26  Jim Meyering  <meyering@redhat.com>
13656             Eric Blake  <eblake@redhat.com>
13657
13658         maint.mk: prohibit use of test's -o and -a operators
13659         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
13660
13661 2010-03-28  Bruno Haible  <bruno@clisp.org>
13662
13663         Remove unused GNULIB_XYZ macro definitions.
13664         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
13665         invocation.
13666
13667 2010-03-28  Bruno Haible  <bruno@clisp.org>
13668
13669         Mark privileged tests modules.
13670         * modules/idpriv-drop-tests (Status): New section.
13671         * modules/idpriv-droptemp-tests (Status): New section.
13672
13673 2010-03-28  Bruno Haible  <bruno@clisp.org>
13674
13675         Split C++ tests into separate tests modules.
13676         * modules/dirent-c++-tests: New file, extracted from
13677         modules/dirent-tests.
13678         * modules/dirent-tests: Depend on it.
13679         * modules/fcntl-h-c++-tests: New file, extracted from
13680         modules/fcntl-h-tests.
13681         * modules/fcntl-h-tests: Depend on it.
13682         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
13683         * modules/glob-tests: Depend on it.
13684         * modules/iconv-h-c++-tests: New file, extracted from
13685         modules/iconv-h-tests.
13686         * modules/iconv-h-tests: Depend on it.
13687         * modules/langinfo-c++-tests: New file, extracted from
13688         modules/langinfo-tests.
13689         * modules/langinfo-tests: Depend on it.
13690         * modules/locale-c++-tests: New file, extracted from
13691         modules/locale-tests.
13692         * modules/locale-tests: Depend on it.
13693         * modules/math-c++-tests: New file, extracted from modules/math-tests.
13694         * modules/math-tests: Depend on it.
13695         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
13696         * modules/pty-tests: Depend on it.
13697         * modules/search-c++-tests: New file, extracted from
13698         modules/search-tests.
13699         * modules/search-tests: Depend on it.
13700         * modules/signal-c++-tests: New file, extracted from
13701         modules/signal-tests.
13702         * modules/signal-tests: Depend on it.
13703         * modules/spawn-c++-tests: New file, extracted from
13704         modules/spawn-tests.
13705         * modules/spawn-tests: Depend on it.
13706         * modules/stdio-c++-tests: New file, extracted from
13707         modules/stdio-tests.
13708         * modules/stdio-tests: Depend on it.
13709         * modules/stdlib-c++-tests: New file, extracted from
13710         modules/stdlib-tests.
13711         * modules/stdlib-tests: Depend on it.
13712         * modules/string-c++-tests: New file, extracted from
13713         modules/string-tests.
13714         * modules/string-tests: Depend on it.
13715         * modules/sys_ioctl-c++-tests: New file, extracted from
13716         modules/sys_ioctl-tests.
13717         * modules/sys_ioctl-tests: Depend on it.
13718         * modules/sys_select-c++-tests: New file, extracted from
13719         modules/sys_select-tests.
13720         * modules/sys_select-tests: Depend on it.
13721         * modules/sys_socket-c++-tests: New file, extracted from
13722         modules/sys_socket-tests.
13723         * modules/sys_socket-tests: Depend on it.
13724         * modules/sys_stat-c++-tests: New file, extracted from
13725         modules/sys_stat-tests.
13726         * modules/sys_stat-tests: Depend on it.
13727         * modules/sys_time-c++-tests: New file, extracted from
13728         modules/sys_time-tests.
13729         * modules/sys_time-tests: Depend on it.
13730         * modules/time-c++-tests: New file, extracted from modules/time-tests.
13731         * modules/time-tests: Depend on it.
13732         * modules/unistd-c++-tests: New file, extracted from
13733         modules/unistd-tests.
13734         * modules/unistd-tests: Depend on it.
13735         * modules/wchar-c++-tests: New file, extracted from
13736         modules/wchar-tests.
13737         * modules/wchar-tests: Depend on it.
13738         * modules/wctype-c++-tests: New file, extracted from
13739         modules/wctype-tests.
13740         * modules/wctype-tests: Depend on it.
13741         Reported by Simon Josefsson.
13742
13743 2010-03-28  Bruno Haible  <bruno@clisp.org>
13744
13745         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
13746         * gnulib-tool (func_exists_module): New function, extracted from
13747         func_verify_module.
13748         (func_verify_module): Use it.
13749         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
13750         'foo' only if 'foo' exists.
13751         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
13752         module.
13753
13754 2010-03-28  Bruno Haible  <bruno@clisp.org>
13755
13756         gnulib-tool: Add support for special categories of tests.
13757         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
13758         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
13759         (func_usage): Document them.
13760         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
13761         inc_unportable_tests, inc_all_tests): New variables.
13762         (func_acceptable): Consider these variables.
13763         (func_modules_transitive_closure): Make it work when the 'Status' field
13764         consists of multiple words.
13765         (func_import): Store and restore the values of inc_cxx_tests,
13766         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
13767         inc_all_tests in gnulib-comp.m4.
13768         (func_create_testdir): Set inc_all_tests to true.
13769         * doc/gnulib.texi (Extra tests modules): New section.
13770         Suggested by Jim Meyering.
13771
13772 2010-03-28  Bruno Haible  <bruno@clisp.org>
13773
13774         ansi-c++-opt: Allow turning off the C++ build by default.
13775         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
13776         gl_CXX_CHOICE_DEFAULT_NO is defined.
13777         Requested by Eric Blake.
13778
13779 2010-03-28  Bruno Haible  <bruno@clisp.org>
13780
13781         unistd: Avoid #define replacements in C++ mode.
13782         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13783         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13784         setsockopt, shutdown, select): In C++, attach a warning to the function
13785         if possible, rather than #defining the symbol to a dysfunctional alias.
13786         Reported by John W. Eaton <jwe@gnu.org>.
13787
13788 2010-03-28  Bruno Haible  <bruno@clisp.org>
13789
13790         Fix link errors on mingw.
13791         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
13792         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
13793         $(LIBSOCKET).
13794         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
13795         $(LIBSOCKET).
13796
13797 2010-03-28  Bruno Haible  <bruno@clisp.org>
13798             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13799
13800         lib-ignore: Determine different options for different compilers.
13801         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
13802         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
13803         Add comments.
13804         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
13805         * NEWS: Mention the change.
13806
13807 2010-03-27  Bruno Haible  <bruno@clisp.org>
13808
13809         Remove unused GNULIB_XYZ macro definitions.
13810         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13811         * modules/fseek (configure.ac): Likewise.
13812         * modules/ioctl (configure.ac): Likewise.
13813         * modules/open (configure.ac): Likewise.
13814         * modules/stdlib-safer (configure.ac): Likewise.
13815
13816 2010-03-27  Bruno Haible  <bruno@clisp.org>
13817
13818         Add a remark about certain modules.
13819         * modules/malloc (Comment): New section.
13820         * modules/realloc (Comment): Likewise.
13821         * modules/sigpipe (Comment): Likewise.
13822
13823 2010-03-27  Bruno Haible  <bruno@clisp.org>
13824
13825         Resolve conflict between the two kinds of module indicators.
13826         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
13827         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
13828         * modules/canonicalize (configure.ac): Invoke
13829         gl_MODULE_INDICATOR_FOR_TESTS.
13830         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
13831         GNULIB_XYZ.
13832         * tests/test-dirent-c++.cc: Likewise.
13833         * tests/test-dirent-safer.c: Likewise.
13834         * tests/test-dup2.c: Likewise.
13835         * tests/test-fchdir.c: Likewise.
13836         * tests/test-fcntl-h-c++.cc: Likewise.
13837         * tests/test-getopt.c: Likewise.
13838         * tests/test-getopt.h: Likewise.
13839         * tests/test-langinfo-c++.cc: Likewise.
13840         * tests/test-locale-c++.cc: Likewise.
13841         * tests/test-math-c++.cc: Likewise.
13842         * tests/test-pty-c++.cc: Likewise.
13843         * tests/test-search-c++.cc: Likewise.
13844         * tests/test-signal-c++.cc: Likewise.
13845         * tests/test-spawn-c++.cc: Likewise.
13846         * tests/test-stdio-c++.cc: Likewise.
13847         * tests/test-stdlib-c++.cc: Likewise.
13848         * tests/test-string-c++.cc: Likewise.
13849         * tests/test-sys_ioctl-c++.cc: Likewise.
13850         * tests/test-sys_select-c++.cc: Likewise.
13851         * tests/test-sys_socket-c++.cc: Likewise.
13852         * tests/test-sys_stat-c++.cc: Likewise.
13853         * tests/test-sys_time-c++.cc: Likewise.
13854         * tests/test-time-c++.cc: Likewise.
13855         * tests/test-unistd-c++.cc: Likewise.
13856         * tests/test-wchar-c++.cc: Likewise.
13857         * tests/uninorm/test-u8-nfc.c: Likewise.
13858         * tests/uninorm/test-u8-nfd.c: Likewise.
13859         * tests/uninorm/test-u8-nfkc.c: Likewise.
13860         * tests/uninorm/test-u8-nfkd.c: Likewise.
13861         * tests/uninorm/test-u16-nfc.c: Likewise.
13862         * tests/uninorm/test-u16-nfd.c: Likewise.
13863         * tests/uninorm/test-u16-nfkc.c: Likewise.
13864         * tests/uninorm/test-u16-nfkd.c: Likewise.
13865         * tests/uninorm/test-u32-nfc.c: Likewise.
13866         * tests/uninorm/test-u32-nfc-big.c: Likewise.
13867         * tests/uninorm/test-u32-nfd.c: Likewise.
13868         * tests/uninorm/test-u32-nfd-big.c: Likewise.
13869         * tests/uninorm/test-u32-nfkc.c: Likewise.
13870         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
13871         * tests/uninorm/test-u32-nfkd.c: Likewise.
13872         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
13873         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13874
13875 2010-03-27  Bruno Haible  <bruno@clisp.org>
13876
13877         Distinguish two kinds of module indicators.
13878         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
13879         gl_MODULE_INDICATOR.
13880         (gl_MODULE_INDICATOR): New macro.
13881         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13882         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
13883         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13884         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13885         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13886         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13887         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13888         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13889         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13890         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13891         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13892         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13893         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13894         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13895         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13896         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13897         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13898         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13899         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13900         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13901         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13902         * modules/cloexec (configure.ac): Likewise.
13903         * modules/getopt-gnu (configure.ac): Likewise.
13904         * modules/uninorm/u8-normalize (configure.ac): Likewise.
13905         * modules/uninorm/u16-normalize (configure.ac): Likewise.
13906         * modules/uninorm/u32-normalize (configure.ac): Likewise.
13907         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
13908
13909 2010-03-27  Bruno Haible  <bruno@clisp.org>
13910
13911         New module description field 'Comment'.
13912         * gnulib-tool: New option --extract-comment.
13913         (func_usage): Document it.
13914         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
13915         (func_get_comment): New function.
13916         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
13917
13918 2010-03-27  Bruno Haible  <bruno@clisp.org>
13919
13920         Addendum to 2010-02-07 commit.
13921         * gnulib-tool (func_usage): Document --extract-applicability option.
13922
13923 2010-03-27  Bruno Haible  <bruno@clisp.org>
13924
13925         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
13926         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
13927         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
13928         rather than link errors.
13929
13930 2010-03-27  Bruno Haible  <bruno@clisp.org>
13931
13932         Avoid side effects from tests-related modules on the compilation of lib.
13933         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
13934         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
13935         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
13936         parameter. Emit into AM_CPPFLAGS a definition of the designated C
13937         macro.
13938         (func_import): Define a witness macro. Assign it a value that depends
13939         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
13940         tests-related modules.
13941         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
13942         Reported by Jim Meyering.
13943
13944 2010-03-27  Bruno Haible  <bruno@clisp.org>
13945
13946         Factorize common .m4 code.
13947         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
13948         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
13949         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
13950         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
13951         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13952         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
13953         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
13954         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13955         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13956         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13957         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
13958         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13959         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13960         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13961         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13962         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
13963         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13964         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13965         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13966         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
13967         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
13968         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13969         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13970         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13971         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13972         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13973         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
13974         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
13975         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
13976         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13977         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13978         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13979
13980 2010-03-27  Bruno Haible  <bruno@clisp.org>
13981
13982         Fix a compilation error on Cygwin with g++ >= 4.3.
13983         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
13984         if it is undefined or if we alias it to chmod.
13985         (lstat): Don't warn about the use of this function if it is undefined
13986         or if we alias it to stat.
13987         Reported by Simon Josefsson.
13988
13989 2010-03-27  Bruno Haible  <bruno@clisp.org>
13990
13991         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
13992         * modules/getlogin (configure.ac): Update.
13993
13994         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
13995         * modules/getlogin_r (configure.ac): Update.
13996
13997         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
13998         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
13999         * modules/inet_ntop (configure.ac): Update.
14000
14001         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14002         * modules/inet_pton (configure.ac): Update.
14003
14004         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14005         * modules/mbslen (configure.ac): Update.
14006
14007         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14008         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14009         * modules/forkpty (configure.ac): Update.
14010         * modules/openpty (configure.ac): Update.
14011
14012 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14013
14014         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14015         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14016
14017 2010-03-25  Eric Blake  <eblake@redhat.com>
14018
14019         maint: use pragma consistently across replacement headers
14020         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14021         * lib/dirent.in.h (system_header): Likewise.
14022         * lib/errno.in.h (system_header): Likewise.
14023         * lib/float.in.h (system_header): Likewise.
14024         * lib/getopt.in.h (system_header): Likewise.
14025         * lib/iconv.in.h (system_header): Likewise.
14026         * lib/inttypes.in.h (system_header): Likewise.
14027         * lib/langinfo.in.h (system_header): Likewise.
14028         * lib/locale.in.h (system_header): Likewise.
14029         * lib/math.in.h (system_header): Likewise.
14030         * lib/netdb.in.h (system_header): Likewise.
14031         * lib/netinet_in.in.h (system_header): Likewise.
14032         * lib/pty.in.h (system_header): Likewise.
14033         * lib/sched.in.h (system_header): Likewise.
14034         * lib/se-selinux.in.h (system_header): Likewise.
14035         * lib/search.in.h (system_header): Likewise.
14036         * lib/spawn.in.h (system_header): Likewise.
14037         * lib/stdarg.in.h (system_header): Likewise.
14038         * lib/stdint.in.h (system_header): Likewise.
14039         * lib/string.in.h (system_header): Likewise.
14040         * lib/strings.in.h (system_header): Likewise.
14041         * lib/sys_file.in.h (system_header): Likewise.
14042         * lib/sys_ioctl.in.h (system_header): Likewise.
14043         * lib/sys_socket.in.h (system_header): Likewise.
14044         * lib/sys_times.in.h (system_header): Likewise.
14045         * lib/sys_utsname.in.h (system_header): Likewise.
14046         * lib/sys_wait.in.h (system_header): Likewise.
14047         * lib/sysexits.in.h (system_header): Likewise.
14048         * lib/unistd.in.h (system_header): Likewise.
14049         * lib/wctype.in.h (system_header): Likewise.
14050
14051         arpa/inet: fix mingw compilation warning
14052         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14053         Reported by Matthew Bolte.
14054
14055 2010-03-25  Bruno Haible  <bruno@clisp.org>
14056
14057         Avoid collision between gnulib wrapper and libintl wrapper.
14058         * lib/printf.c (printf): Don't define if a printf wrapper is already
14059         defined in intl/printf.c.
14060         Reported by Michel Boaventura <michel@michelboaventura.com>.
14061
14062 2010-03-25  Bruno Haible  <bruno@clisp.org>
14063
14064         Use ANSI C.
14065         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14066
14067 2010-03-25  Bruno Haible  <bruno@clisp.org>
14068
14069         Minor formatting changes.
14070         * lib/acosl.c: Insert space before function argument list.
14071         * lib/argz.c: Likewise.
14072         * lib/asinl.c: Likewise.
14073         * lib/expl.c: Likewise.
14074         * lib/gen-uni-tables.c: Likewise.
14075         * lib/gettext.h: Likewise.
14076         * lib/glthread/lock.h: Likewise.
14077         * lib/tanl.c: Likewise.
14078         * lib/uniname/uniname.c: Likewise.
14079         * tests/test-idpriv-drop.c: Likewise.
14080         * tests/test-idpriv-droptemp.c: Likewise.
14081         * tests/test-lock.c: Likewise.
14082         * tests/test-tls.c: Likewise.
14083         * lib/argp-help.c: Insert space before function-like macro argument
14084         list.
14085         * lib/memcmp.c: Likewise.
14086         * tests/test-base64.c: Likewise.
14087         * lib/localename.c: Insert space before sizeof's argument list.
14088         * lib/safe-alloc.h: Likewise.
14089         * lib/file-set.h: Insert space before macro argument list.
14090         * tests/test-argp.c: Likewise.
14091         * lib/argp-namefrob.h: Insert space before function parameter list.
14092         * lib/getaddrinfo.c: Likewise.
14093         * lib/netdb.in.h: Likewise.
14094         * lib/parse-duration.h: Likewise.
14095         * lib/parse-duration.c: Likewise.
14096         * lib/poll.c: Likewise.
14097         * lib/select.c: Likewise.
14098         * lib/trim.h: Likewise.
14099         * tests/test-usleep.c: Likewise.
14100         * lib/ldexpl.c: Insert space before function parameter list and before
14101         function argument list.
14102         * lib/logl.c: Likewise.
14103         * lib/sqrtl.c: Likewise.
14104         * lib/trim.c: Likewise.
14105         * lib/cosl.c: Use GNU style indentation. Insert space before function
14106         argument list.
14107         * lib/sinl.c: Likewise.
14108         * lib/tsearch.c: Insert space after 'for'.
14109         Reported by Jim Meyering.
14110
14111 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14112
14113         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14114         config header before grepping, as it's not present before
14115         autoreconf/configure are run.  Reported by Simon Josefsson.
14116
14117 2010-03-23  Bruno Haible  <bruno@clisp.org>
14118
14119         pt_chown: Make it work with automake < 1.11.
14120         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14121         Reported by Simon Josefsson.
14122
14123 2010-03-23  Bruno Haible  <bruno@clisp.org>
14124
14125         pt_chown: Don't depend on GPLed modules.
14126         * lib/pt_chown.c: Don't include idpriv.h.
14127         (main): Don't drop privileges.
14128         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14129         Reported by Simon Josefsson.
14130
14131 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14132
14133         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14134         suggestions from karl@freefriends.org (Karl Berry).
14135
14136 2010-03-22  Eric Blake  <eblake@redhat.com>
14137
14138         gethostname: further tweaks
14139         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14140         are overriding gethostname.
14141         Suggested by Bruno Haible.
14142
14143 2010-03-21  Bruno Haible  <bruno@clisp.org>
14144
14145         Fix comments.
14146         * lib/forkpty.c (rpl_forkpty): Fix comment.
14147         * lib/openpty.c (rpl_openpty): Likewise.
14148         Reported by Eric Blake.
14149
14150 2010-03-22  Eric Blake  <eblake@redhat.com>
14151
14152         gethostname: fix build on mingw
14153         * lib/unistd.in.h (includes): Work around fact that mingw
14154         <winsock2.h> re-includes <unistd.h>, by avoiding any
14155         redeclarations if we are being included by <winsock2.h>.
14156         Reported by Matthias Bolte.
14157
14158 2010-03-21  Bruno Haible  <bruno@clisp.org>
14159
14160         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14161         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14162         modifications.
14163         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14164         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14165         provide the replacement.
14166         * modules/forkpty (Depends-on): Add openpty, login_tty.
14167         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14168         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14169         * doc/glibc-functions/forkpty.texi: More supported platforms.
14170         * config/srclist.txt: Add forkpty.c (commented).
14171
14172 2010-03-21  Bruno Haible  <bruno@clisp.org>
14173
14174         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14175         (Makefile.am): Verify that PTY_LIB is defined.
14176
14177         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14178
14179 2010-03-21  Bruno Haible  <bruno@clisp.org>
14180
14181         Tests for module 'login_tty'.
14182         * modules/login_tty-tests: New file.
14183         * tests/test-login_tty.c: New file.
14184
14185         New module 'login_tty'.
14186         * lib/login_tty.c: New file.
14187         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14188         * modules/login_tty: New file.
14189         * doc/glibc-functions/login_tty.texi: Mention the new module.
14190
14191 2010-03-21  Bruno Haible  <bruno@clisp.org>
14192
14193         login_tty: Documentation.
14194         * doc/glibc-functions/login_tty.texi: New file.
14195         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14196
14197 2010-03-21  Bruno Haible  <bruno@clisp.org>
14198
14199         pty: Consistent macro naming.
14200         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14201         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14202         * modules/pty (configure.ac): Update.
14203
14204 2010-03-21  Bruno Haible  <bruno@clisp.org>
14205
14206         Tests for openpty: Make stricter.
14207         * tests/test-openpty.c (main): Add test of canonical processing and
14208         erase.
14209         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14210
14211         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14212         * lib/openpty.c (openpty): New replacement function.
14213         * lib/pty.in.h: Include <termios.h>.
14214         (openpty): Update declaration. Add comments.
14215         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14216         is not declared, arrange to provide the replacement. Check for _getpty
14217         and posix_openpt.
14218         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14219         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14220         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14221         * modules/pty-tests (test_pty_c___LDADD): New variable.
14222         * doc/glibc-functions/openpty.texi: More supported platforms.
14223
14224 2010-03-21  Bruno Haible  <bruno@clisp.org>
14225
14226         setenv: Tweaks.
14227         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14228         the test program.
14229         * doc/posix-functions/setenv.texi: Update platforms list.
14230
14231 2010-03-21  Bruno Haible  <bruno@clisp.org>
14232
14233         New module 'unlockpt'.
14234         * lib/unlockpt.c: New file, from glibc with modifications.
14235         * m4/unlockpt.m4: New file.
14236         * modules/unlockpt: New file.
14237         * lib/stdlib.in.h (unlockpt): New declaration.
14238         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14239         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14240         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14241         HAVE_UNLOCKPT.
14242         * doc/posix-functions/unlockpt.texi: Mention the new module.
14243         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14244         * config/srclist.txt: Add unlockpt.c (commented).
14245
14246 2010-03-21  Jim Meyering  <meyering@redhat.com>
14247
14248         maint.mk: prohibit inclusion of "intprops.h" without use
14249         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14250
14251 2010-03-21  Bruno Haible  <bruno@clisp.org>
14252
14253         New module 'grantpt'.
14254         * lib/grantpt.c: New file, from glibc with modifications.
14255         * m4/grantpt.m4: New file.
14256         * modules/grantpt: New file.
14257         * lib/stdlib.in.h (grantpt): New declaration.
14258         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14259         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14260         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14261         HAVE_GRANTPT.
14262         * doc/posix-functions/grantpt.texi: Mention the new module.
14263         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14264         * config/srclist.txt: Add grantpt.c (commented).
14265
14266 2010-03-21  Bruno Haible  <bruno@clisp.org>
14267
14268         New module 'pt_chown'.
14269         * lib/pt_chown.c: New file, from glibc with modifications.
14270         * lib/pty-private.h: New file, from glibc with modifications.
14271         * modules/pt_chown: New file.
14272         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14273
14274 2010-03-21  Bruno Haible  <bruno@clisp.org>
14275
14276         Tests for module 'ptsname'.
14277         * modules/ptsname-tests: New file.
14278         * tests/test-ptsname.c: New file.
14279
14280         New module 'ptsname'.
14281         * lib/ptsname.c: New file, from glibc with modifications.
14282         * m4/ptsname.m4: New file.
14283         * modules/ptsname: New file.
14284         * lib/stdlib.in.h (ptsname): New declaration.
14285         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14286         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14287         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14288         HAVE_PTSNAME.
14289         * doc/posix-functions/ptsname.texi: Mention the new module.
14290         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14291         * config/srclist.txt: Add ptsname.c (commented).
14292
14293 2010-03-21  Bruno Haible  <bruno@clisp.org>
14294
14295         Tests for module 'ttyname_r'.
14296         * modules/ttyname_r-tests: New file.
14297         * tests/test-ttyname_r.c: New file.
14298
14299         New module 'ttyname_r'.
14300         * lib/ttyname_r.c: New file.
14301         * m4/ttyname_r.m4: New file.
14302         * modules/ttyname_r: New file.
14303         * lib/unistd.in.h (ttyname_r): New declaration.
14304         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14305         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14306         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14307         HAVE_TTYNAME_R.
14308         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14309         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14310
14311 2010-03-20  Bruno Haible  <bruno@clisp.org>
14312
14313         signal: Undefine macro definitions in C++ mode.
14314         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14315         sigfillset): Undefine macro definitions from the system header in C++
14316         mode.
14317         Reported by John W. Eaton <jwe@gnu.org>.
14318
14319 2010-03-20  Bruno Haible  <bruno@clisp.org>
14320
14321         Ensure no #include statements inside extern "C" { ... }.
14322         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14323         contain #include statements.
14324         * lib/time.in.h: Likewise.
14325
14326 2010-03-20  Bruno Haible  <bruno@clisp.org>
14327
14328         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14329         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14330         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14331         Reported by John W. Eaton <jwe@gnu.org>.
14332
14333 2010-03-20  Bruno Haible  <bruno@clisp.org>
14334
14335         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14336         Reported by Jim Meyering.
14337
14338 2010-03-20  Bruno Haible  <bruno@clisp.org>
14339
14340         pipe: Set errno upon failure.
14341         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14342         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14343         errno value in error message.
14344
14345 2010-03-20  Bruno Haible  <bruno@clisp.org>
14346             Jim Meyering  <meyering@redhat.com>
14347
14348         lchown: Avoid "unused variable" warning.
14349         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14350
14351 2010-03-20  Bruno Haible  <bruno@clisp.org>
14352
14353         Work around unlink() bug on MacOS X 10.5.6.
14354         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14355         attempting to unlink a parent directory.
14356         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14357         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14358         activate for the replacement function.
14359         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14360
14361 2010-03-20  Bruno Haible  <bruno@clisp.org>
14362
14363         Fix link errors on Solaris 8.
14364         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14365         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14366
14367 2010-03-19  Jim Meyering  <meyering@redhat.com>
14368
14369         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14370         The _LIBC implementation of build_range_exp correctly honors the
14371         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14372         However, the non-_LIBC implementation would ignore that syntax-bit
14373         flag and return REG_ERANGE unconditionally.
14374         This change makes it honor that flag.
14375         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14376         Make two pointer parameters "const".
14377         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14378         (parse_bracket_exp): Update caller.
14379
14380         regex.m4: correct the reversed range endpoint ([b-a]) test
14381         * m4/regex.m4: When requiring that [b-a] evoke failure,
14382         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14383         test pass once again for x86-based systems.
14384
14385 2010-03-19  Bruno Haible  <bruno@clisp.org>
14386
14387         scandir: Fix link error on Solaris 8.
14388         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14389         macros.
14390
14391 2010-03-19  Bruno Haible  <bruno@clisp.org>
14392
14393         getusershell: Fix documentation.
14394         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14395         module.
14396         * doc/glibc-functions/setusershell.texi: Likewise.
14397
14398         getusershell: Provide declaration, missing on Solaris 9.
14399         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14400         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14401         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14402         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14404         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14405         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14406         HAVE_GETUSERSHELL.
14407         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14408
14409 2010-03-19  Bruno Haible  <bruno@clisp.org>
14410
14411         wctype: Provide iswblank function.
14412         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14413         exists and is fine.
14414         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14415         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14416         * tests/test-wctype.c (main): Re-enable the iswblank tests.
14417         * doc/posix-functions/iswblank.texi: Update.
14418
14419 2010-03-19  Bruno Haible  <bruno@clisp.org>
14420
14421         Tests of module 'pty' in C++ mode.
14422         * modules/pty-tests: New file.
14423         * tests/test-pty-c++.cc: New file.
14424         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14425
14426 2010-03-19  Eric Blake  <eblake@redhat.com>
14427
14428         logb: fix documentation
14429         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
14430         1.5 declaration bug.
14431
14432         forkpty, openpty: prefer glibc's const-safe prototype
14433         * lib/forkpty.c (rpl_forkpty): New file.
14434         * lib/openpty.c (rpl_openpty): Likewise.
14435         * modules/forkpty (Files): Distribute it.
14436         * modules/openpty (Files): Likewise.
14437         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
14438         check...
14439         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
14440         replacement for for non-const BSD signature.
14441         * modules/pty (Makefile.am): Substitute witnesses.
14442         * lib/pty.in.h (forkpty, openpty): Declare replacements.
14443         * tests/test-forkpty.c: Update signature check.
14444         * tests/test-openpty.c: Likewise.
14445         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
14446         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14447
14448         forkpty, openpty: split functions into new modules
14449         * modules/pty (Makefile.am): Substitute new witnesses.
14450         (Libraries): Move library detection...
14451         * modules/forkpty: ...into new module.
14452         * modules/openpty: Another new module.
14453         * modules/pty-tests: Rename and split...
14454         * modules/forkpty-tests: ...to this...
14455         * modules/openpty-tests: ...and this.
14456         * tests/test-pty.c: Rename and split...
14457         * tests/test-forkpty.c: ...to this...
14458         * tests/test-openpty.c: ...and this.
14459         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
14460         (gl_PTY): Split library searching...
14461         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
14462         (gl_FORKPTY, gl_OPENPTY): New macros.
14463         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
14464         * NEWS: Mention the split.
14465         * MODULES.html.sh (Misc): Document the modules.
14466         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
14467         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14468
14469         pty: improve replacement header
14470         * lib/pty.in.h: New file.
14471         * modules/pty (Files): Ship it.
14472         (Makefile.am): Always build replacement.
14473         * m4/pty.m4: Rename...
14474         * m4/pty_h.m4: ...to this.
14475         (gl_PTY): Modernize setting of witness macros; update check of
14476         forkpty to take proper advantage of cache.
14477         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
14478
14479         getopt: avoid compiler warning
14480         * lib/getopt.c (attribute_hidden): Remove unused macro.
14481
14482 2010-03-18  Bruno Haible  <bruno@clisp.org>
14483
14484         Fix link errors on Solaris 8.
14485         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
14486         * modules/search-tests (test_search_c___LDADD): Likewise.
14487         * modules/signal-tests (test_signal_c___LDADD): Likewise.
14488         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
14489         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
14490         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
14491         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
14492         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
14493         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
14494
14495 2010-03-18  Bruno Haible  <bruno@clisp.org>
14496
14497         Fix bug introduced on 2010-03-14.
14498         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
14499         (gl_SPAWN_H): Require it.
14500         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
14501         Reported by Simon Josefsson.
14502
14503 2010-03-18  Bruno Haible  <bruno@clisp.org>
14504
14505         Fix typo introduced on 2009-12-31.
14506         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
14507         posix_spawn_file_actions_adddup2.
14508
14509 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
14510         and Eric Blake  <eblake@redhat.com>
14511
14512         test-vc-list-files-git: make more robust
14513         * tests/test-vc-list-files-git.sh: Unset problematic environment
14514         variables.  Chain commands together.
14515
14516 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
14517
14518         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
14519         `AC_CHECK_DECL' invocation.
14520
14521 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
14522
14523         * lib/inttostr.c (inttostr): Make sure the invocation of verify
14524         appears before executable statements. Suggested by Petr Sumbera
14525         <Petr.Sumbera@Sun.COM>.
14526
14527 2010-03-14  Bruno Haible  <bruno@clisp.org>
14528
14529         * tests/test-flock.c (test_exclusive): Comment out a test that causes
14530         portability problems. Instead use a simpler test.
14531         (main): Check that invalid arguments are rejected only on Linux.
14532
14533 2010-03-14  Bruno Haible  <bruno@clisp.org>
14534
14535         Fix bug introduced on 2009-12-31.
14536         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14537         gl_PREREQ_SYS_H_WINSOCK2 always.
14538         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
14539         SYS_SOCKET_H variable.
14540         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
14541         Update comments.
14542         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
14543         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14544         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14545         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14546         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14547
14548 2010-03-14  Bruno Haible  <bruno@clisp.org>
14549
14550         Fix values returned by sinl, cosl.
14551         * lib/trigl.h: Add specification comments.
14552         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
14553         that combines the values from the precomputed table with the values of
14554         the Chebyshev polynomials.
14555
14556 2010-03-14  Bruno Haible  <bruno@clisp.org>
14557
14558         Fix compilation error when modules 'posix_spawn[p]' are not used.
14559         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
14560         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
14561
14562 2010-03-14  Bruno Haible  <bruno@clisp.org>
14563
14564         Fix compilation error on mingw when module 'time_r' is not used.
14565         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
14566         is 1.
14567         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
14568         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14569         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
14570         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
14571
14572 2010-03-14  Bruno Haible  <bruno@clisp.org>
14573
14574         Fix compilation error with Sun C.
14575         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
14576         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
14577         instead of GCC specific ULONG_LONG_MAX.
14578         * lib/xstrtoll.c: Likewise.
14579         * lib/xstrtoull.c: Likewise.
14580
14581 2010-03-13  Bruno Haible  <bruno@clisp.org>
14582
14583         Allow the user to disable C++ code and tests.
14584         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
14585         (gl_PROG_ANSI_CXX): Require it.
14586
14587 2010-03-13  Bruno Haible  <bruno@clisp.org>
14588
14589         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
14590         cases.
14591
14592 2010-03-13  Bruno Haible  <bruno@clisp.org>
14593
14594         Test that gnulib does not break the standard C++ headers.
14595         * tests/test-locale-c++2.cc: New file.
14596         * modules/locale-tests (Files): Add it.
14597         (Makefile.am): Compile it for test-locale-c++.
14598         * tests/test-math-c++2.cc: New file.
14599         * modules/math-tests (Files): Add it.
14600         (Makefile.am): Compile it for test-math-c++.
14601         * tests/test-signal-c++2.cc: New file.
14602         * modules/signal-tests (Files): Add it.
14603         (Makefile.am): Compile it for test-signal-c++.
14604         * tests/test-stdio-c++2.cc: New file.
14605         * modules/stdio-tests (Files): Add it.
14606         (Makefile.am): Compile it for test-stdio-c++.
14607         * tests/test-stdlib-c++2.cc: New file.
14608         * modules/stdlib-tests (Files): Add it.
14609         (Makefile.am): Compile it for test-stdlib-c++.
14610         * tests/test-string-c++2.cc: New file.
14611         * modules/string-tests (Files): Add it.
14612         (Makefile.am): Compile it for test-string-c++.
14613         * tests/test-time-c++2.cc: New file.
14614         * modules/time-tests (Files): Add it.
14615         (Makefile.am): Compile it for test-time-c++.
14616         Reported by John W. Eaton <jwe@gnu.org>.
14617
14618 2010-03-13  Bruno Haible  <bruno@clisp.org>
14619
14620         * gnulib-tool (func_usage): Clarify which options are available for
14621         --create-testdir and --create-megatestdir.
14622
14623 2010-03-13  Bruno Haible  <bruno@clisp.org>
14624
14625         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
14626         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
14627         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
14628         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14629         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
14630         when appropriate.
14631         Reported by Jim Meyering.
14632
14633 2010-03-12  Simon Josefsson  <simon@josefsson.org>
14634
14635         * gnulib-tool (func_import): Explain origin of code.
14636
14637 2010-03-12  Bruno Haible  <bruno@clisp.org>
14638
14639         Fix problem with automake's definition of CXXLINK.
14640         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
14641         Reported by Simon Josefsson and Ludovic Courtès.
14642
14643 2010-03-12  Bruno Haible  <bruno@clisp.org>
14644
14645         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
14646         stable releases.
14647
14648 2010-03-11  Bruno Haible  <bruno@clisp.org>
14649
14650         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
14651         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
14652         whether the system provides one variant or multiple variants of the
14653         function.
14654         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
14655         C++ compilers.
14656         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
14657         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
14658         Reported by Jim Meyering.
14659
14660 2010-03-09  Simon Josefsson  <simon@josefsson.org>
14661
14662         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
14663
14664 2010-03-08  Bruno Haible  <bruno@clisp.org>
14665
14666         gnulib-tool: Add support for --libtool in --create-testdir.
14667         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
14668         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
14669
14670 2010-03-08  Eric Blake  <eblake@redhat.com>
14671
14672         gnulib-tool.texi: mention possibility of git submodule
14673         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
14674         submodules.
14675         * doc/.gitignore: Ignore another generated file.
14676
14677 2010-03-08  Karl Berry  <karl@gnu.org>
14678
14679         * doc/gnulib-tool.texi (VCS Issues): Mention third option
14680         of committing gnulib files while skipping others.
14681
14682 2010-03-07  Bruno Haible  <bruno@clisp.org>
14683
14684         Tests of module 'wctype' in C++ mode.
14685         * tests/test-wctype-c++.cc: New file.
14686         * modules/wctype-tests (Files): Add it and tests/signature.h.
14687         (Depends-on): Add ansi-c++-opt.
14688         (Makefile.am): Arrange to compile and run test-wctype-c++.
14689
14690         Tests of module 'wchar' in C++ mode.
14691         * tests/test-wchar-c++.cc: New file.
14692         * modules/wchar-tests (Files): Add it and tests/signature.h.
14693         (Depends-on): Add ansi-c++-opt.
14694         (Makefile.am): Arrange to compile and run test-wchar-c++.
14695         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
14696         gl_MODULE_INDICATOR.
14697
14698         Tests of module 'unistd' in C++ mode.
14699         * tests/test-unistd-c++.cc: New file.
14700         * modules/unistd-tests (Files): Add it and tests/signature.h.
14701         (Depends-on): Add ansi-c++-opt.
14702         (Makefile.am): Arrange to compile and run test-unistd-c++.
14703         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
14704         gl_MODULE_INDICATOR.
14705
14706         Tests of module 'time' in C++ mode.
14707         * tests/test-time-c++.cc: New file.
14708         * modules/time-tests (Files): Add it and tests/signature.h.
14709         (Depends-on): Add ansi-c++-opt.
14710         (Makefile.am): Arrange to compile and run test-time-c++.
14711         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14712
14713         Tests of module 'sys_time' in C++ mode.
14714         * tests/test-sys_time-c++.cc: New file.
14715         * modules/sys_time-tests (Files): Add it and tests/signature.h.
14716         (Depends-on): Add ansi-c++-opt.
14717         (Makefile.am): Arrange to compile and run test-sys_time-c++.
14718         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
14719         gl_MODULE_INDICATOR.
14720
14721         Tests of module 'sys_stat' in C++ mode.
14722         * tests/test-sys_stat-c++.cc: New file.
14723         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
14724         (Depends-on): Add ansi-c++-opt.
14725         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
14726         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
14727         gl_MODULE_INDICATOR.
14728
14729         Tests of module 'sys_socket' in C++ mode.
14730         * tests/test-sys_socket-c++.cc: New file.
14731         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
14732         (Depends-on): Add ansi-c++-opt.
14733         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
14734         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
14735         gl_MODULE_INDICATOR.
14736
14737         Tests of module 'sys_select' in C++ mode.
14738         * tests/test-sys_select-c++.cc: New file.
14739         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14740         (Depends-on): Add ansi-c++-opt.
14741         (Makefile.am): Arrange to compile and run test-sys_select-c++.
14742         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
14743         gl_MODULE_INDICATOR.
14744
14745         Tests of module 'sys_ioctl' in C++ mode.
14746         * tests/test-sys_ioctl-c++.cc: New file.
14747         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
14748         (Depends-on): Add ansi-c++-opt.
14749         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
14750         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
14751         gl_MODULE_INDICATOR.
14752
14753         Tests of module 'string' in C++ mode.
14754         * tests/test-string-c++.cc: New file.
14755         * modules/string-tests (Files): Add it and tests/signature.h.
14756         (Depends-on): Add ansi-c++-opt.
14757         (Makefile.am): Arrange to compile and run test-string-c++.
14758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
14759         gl_MODULE_INDICATOR.
14760
14761         Tests of module 'stdlib' in C++ mode.
14762         * tests/test-stdlib-c++.cc: New file.
14763         * modules/stdlib-tests (Files): Add it and tests/signature.h.
14764         (Depends-on): Add ansi-c++-opt.
14765         (Makefile.am): Arrange to compile and run test-stdlib-c++.
14766         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
14767         gl_MODULE_INDICATOR.
14768
14769         Tests of module 'stdio' in C++ mode.
14770         * tests/test-stdio-c++.cc: New file.
14771         * modules/stdio-tests (Files): Add it and tests/signature.h.
14772         (Depends-on): Add ansi-c++-opt.
14773         (Makefile.am): Arrange to compile and run test-stdio-c++.
14774         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
14775         gl_MODULE_INDICATOR.
14776
14777         Tests of module 'spawn' in C++ mode.
14778         * tests/test-spawn-c++.cc: New file.
14779         * modules/spawn-tests (Files): Add it and tests/signature.h.
14780         (Depends-on): Add ansi-c++-opt.
14781         (Makefile.am): Arrange to compile and run test-spawn-c++.
14782         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
14783         gl_MODULE_INDICATOR.
14784
14785         Tests of module 'signal' in C++ mode.
14786         * tests/test-signal-c++.cc: New file.
14787         * modules/signal-tests (Files): Add it and tests/signature.h.
14788         (Depends-on): Add ansi-c++-opt.
14789         (Makefile.am): Arrange to compile and run test-signal-c++.
14790         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
14791         gl_MODULE_INDICATOR.
14792
14793         Tests of module 'search' in C++ mode.
14794         * tests/test-search-c++.cc: New file.
14795         * modules/search-tests (Files): Add it and tests/signature.h.
14796         (Depends-on): Add ansi-c++-opt.
14797         (Makefile.am): Arrange to compile and run test-search-c++.
14798         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
14799         gl_MODULE_INDICATOR.
14800
14801         Tests of module 'math' in C++ mode.
14802         * tests/test-math-c++.cc: New file.
14803         * modules/math-tests (Files): Add it and tests/signature.h.
14804         (Depends-on): Add ansi-c++-opt.
14805         (Makefile.am): Arrange to compile and run test-math-c++.
14806         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14807
14808         Tests of module 'locale' in C++ mode.
14809         * tests/test-locale-c++.cc: New file.
14810         * modules/locale-tests (Files): Add it and tests/signature.h.
14811         (Depends-on): Add ansi-c++-opt.
14812         (Makefile.am): Arrange to compile and run test-locale-c++.
14813         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
14814         gl_MODULE_INDICATOR.
14815
14816         Tests of module 'langinfo' in C++ mode.
14817         * tests/test-langinfo-c++.cc: New file.
14818         * modules/langinfo-tests (Files): Add it and tests/signature.h.
14819         (Depends-on): Add ansi-c++-opt.
14820         (Makefile.am): Arrange to compile and run test-langinfo-c++.
14821         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
14822         gl_MODULE_INDICATOR.
14823
14824         Tests of module 'iconv-h' in C++ mode.
14825         * tests/test-iconv-h-c++.cc: New file.
14826         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
14827         (Depends-on): Add ansi-c++-opt.
14828         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
14829
14830         Tests of module 'glob' in C++ mode.
14831         * tests/test-glob-c++.cc: New file.
14832         * modules/glob-tests (Files): Add it.
14833         (Depends-on): Add ansi-c++-opt.
14834         (Makefile.am): Arrange to compile and run test-glob-c++.
14835
14836         Tests of module 'fcntl-h' in C++ mode.
14837         * tests/test-fcntl-h-c++.cc: New file.
14838         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
14839         (Depends-on): Add ansi-c++-opt.
14840         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
14841         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
14842         gl_MODULE_INDICATOR.
14843
14844         Tests of module 'dirent' in C++ mode.
14845         * tests/test-dirent-c++.cc: New file.
14846         * modules/dirent-tests (Files): Add it and tests/signature.h.
14847         (Depends-on): Add ansi-c++-opt.
14848         (Makefile.am): Arrange to compile and run test-dirent-c++.
14849         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14850         gl_MODULE_INDICATOR.
14851
14852         New module 'ansi-c++-opt'.
14853         * modules/ansi-c++-opt: New file.
14854         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
14855
14856         Document C++ namespace mode.
14857         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
14858
14859         wctype: Avoid #define replacements in C++ mode.
14860         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
14861         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
14862         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
14863         In C++, define a namespaced alias symbol.
14864         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
14865         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
14866         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
14867         rule.
14868
14869         wchar: Avoid #define replacements in C++ mode.
14870         * lib/wchar.in.h: Include c++defs.h.
14871         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
14872         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
14873         symbol.
14874         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
14875         * modules/wchar (Depends-on): Add c++defs.
14876         (Makefile.am): Update wchar.h rule.
14877
14878         unistd: Avoid #define replacements in C++ mode.
14879         * lib/unistd.in.h: Include c++defs.h.
14880         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
14881         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
14882         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
14883         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
14884         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
14885         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
14886         symbol.
14887         (environ): Update.
14888         * modules/unistd (Depends-on): Add c++defs.
14889         (Makefile.am): Update unistd.h rule.
14890
14891         time: Avoid #define replacements in C++ mode.
14892         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
14893         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
14894         define a namespaced alias symbol.
14895         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
14896         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
14897         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
14898         * modules/time (Depends-on): Add c++defs, warn-on-use.
14899         (Makefile.am): Update time.h rule.
14900         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14901         * modules/nanosleep (configure.ac): Likewise.
14902         * modules/strptime (configure.ac): Likewise.
14903         * modules/timegm (configure.ac): Likewise.
14904
14905         sys_time: Avoid #define replacements in C++ mode.
14906         * lib/sys_time.in.h: Include c++defs.h.
14907         (gettimeofday): In C++, define a namespaced alias symbol.
14908         * modules/sys_time (Depends-on): Add c++defs.
14909         (Makefile.am): Update sys/time.h rule.
14910
14911         sys_stat: Avoid #define replacements in C++ mode.
14912         * lib/sys_stat.in.h: Include c++defs.h.
14913         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
14914         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
14915         namespaced alias symbol.
14916         In C++, define a namespaced alias symbol.
14917         * modules/sys_stat (Depends-on): Add c++defs.
14918         (Makefile.am): Update sys/stat.h rule.
14919
14920         sys_socket: Avoid #define replacements in C++ mode.
14921         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
14922         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
14923         definitions also when the system has a <sys/socket.h>.
14924         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14925         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
14926         In C++, define a namespaced alias symbol.
14927         * modules/sys_socket (Depends-on): Add c++defs.
14928         (Makefile.am): Update sys/socket.h rule.
14929
14930         sys_select: Avoid #define replacements in C++ mode.
14931         * lib/sys_select.in.h: Include c++defs.h. Enable the function
14932         definitions also when the system has a <sys/select.h>.
14933         (select): In C++, define a namespaced alias symbol.
14934         * modules/sys_select (Depends-on): Add c++defs.
14935         (Makefile.am): Update sys/select.h rule.
14936
14937         sys_ioctl: Avoid #define replacements in C++ mode.
14938         * lib/sys_ioctl.in.h: Include c++defs.h.
14939         (ioctl): In C++, define a namespaced alias symbol.
14940         * modules/sys_ioctl (Depends-on): Add c++defs.
14941         (Makefile.am): Update sys/ioctl.h rule.
14942
14943         string: Avoid #define replacements in C++ mode.
14944         * lib/string.in.h: Include c++defs.h.
14945         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
14946         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14947         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14948         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
14949         strsignal, strverscmp): In C++, define a namespaced alias symbol.
14950         * modules/string (Depends-on): Add c++defs.
14951         (Makefile.am): Update string.h rule.
14952
14953         stdlib: Avoid #define replacements in C++ mode.
14954         * lib/stdlib.in.h: Include c++defs.h.
14955         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
14956         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
14957         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
14958         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
14959         symbol.
14960         * modules/stdlib (Depends-on): Add c++defs.
14961         (Makefile.am): Update stdlib.h rule.
14962
14963         stdio: Avoid #define replacements in C++ mode.
14964         * lib/stdio.in.h: Include c++defs.h.
14965         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
14966         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
14967         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
14968         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
14969         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
14970         namespaced alias symbol.
14971         * modules/stdio (Depends-on): Add c++defs.
14972         (Makefile.am): Update stdio.h rule.
14973
14974         spawn: Avoid #define replacements in C++ mode.
14975         * lib/spawn.in.h: Include c++defs.h.
14976         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14977         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14978         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14979         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14980         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14981         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14982         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14983         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14984         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14985         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14986         In C++, define a namespaced alias symbol.
14987         * modules/spawn (Depends-on): Add c++defs.
14988         (Makefile.am): Update spawn.h rule.
14989
14990         signal: Avoid #define replacements in C++ mode.
14991         * lib/signal.in.h: Include c++defs.h.
14992         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14993         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
14994         namespaced alias symbol.
14995         * modules/signal (Depends-on): Add c++defs.
14996         (Makefile.am): Update signal.h rule.
14997
14998         search: Avoid #define replacements in C++ mode.
14999         * lib/search.in.h: Include c++defs.h.
15000         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15001         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15002         symbol.
15003         * modules/search (Depends-on): Add c++defs.
15004         (Makefile.am): Update search.h rule.
15005
15006         math: Avoid #define replacements in C++ mode.
15007         * lib/math.in.h: Include c++defs.h.
15008         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15009         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15010         trunc, truncl): In C++, define a namespaced alias symbol.
15011         * modules/math (Depends-on): Add c++defs.
15012         (Makefile.am): Update math.h rule.
15013
15014         locale: Avoid #define replacements in C++ mode.
15015         * lib/locale.in.h: Include c++defs.h.
15016         (duplocale): In C++, define a namespaced alias symbol.
15017         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15018         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15019         * modules/locale (Depends-on): Add c++defs.
15020         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15021
15022         langinfo: Avoid #define replacements in C++ mode.
15023         * lib/langinfo.in.h: Include c++defs.h.
15024         (nl_langinfo): In C++, define a namespaced alias symbol.
15025         * modules/langinfo (Depends-on): Add c++defs.
15026         (Makefile.am): Update langinfo.h rule.
15027
15028         iconv-h: Avoid #define replacements in C++ mode.
15029         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15030         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15031         symbol.
15032         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15033         whenever iconv is present.
15034         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15035         (Makefile.am): Update iconv.h rule.
15036
15037         glob: Avoid #define replacements in C++ mode.
15038         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15039         (_gl_glob_errfunc_fn): New type.
15040         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15041         symbol.
15042         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15043         (Makefile.am): Update glob.h rule.
15044
15045         fcntl-h: Avoid #define replacements in C++ mode.
15046         * lib/fcntl.in.h: Include c++defs.h.
15047         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15048         * modules/fcntl-h (Depends-on): Add c++defs.
15049         (Makefile.am): Update fcntl.h rule.
15050
15051         dirent: Avoid #define replacements in C++ mode.
15052         * lib/dirent.in.h: Include c++defs.h.
15053         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15054         namespaced alias symbol.
15055         (dirfd): Update declaration.
15056         * modules/dirent (Depends-on): Add c++defs.
15057         (Makefile.am): Update dirent.h rule.
15058
15059         ctype: Make it usable in C++ code.
15060         * lib/ctype.in.h: Include c++defs.h.
15061         (isblank): Declare as extern "C".
15062         * modules/ctype (Depends-on): Add c++defs.
15063         (Makefile.am): Update ctype.h rule.
15064
15065         New module 'c++defs'.
15066         * modules/c++defs: New file.
15067         * build-aux/c++defs.h: New file.
15068         Reported by John W. Eaton <jwe@gnu.org>.
15069
15070 2010-03-07  Bruno Haible  <bruno@clisp.org>
15071
15072         logb: Provide missing declaration for Cygwin.
15073         * lib/math.in.h (logb): New declaration.
15074         * m4/logb.m4: New file.
15075         * modules/logb (Files): Add m4/logb.m4.
15076         (Depends-on): Add math.
15077         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15078         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15080         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15081         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15082
15083 2010-03-07  Bruno Haible  <bruno@clisp.org>
15084
15085         Fix test-cond link error.
15086         * tests/test-cond.c: Include <stdio.h>.
15087
15088 2010-03-07  Bruno Haible  <bruno@clisp.org>
15089
15090         Fix test-dirent-safer link error.
15091         * modules/dirent-safer-tests (Makefile.am): Define
15092         test_dirent_safer_LDADD.
15093
15094 2010-03-07  Bruno Haible  <bruno@clisp.org>
15095
15096         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15097         among default module list.
15098
15099 2010-03-07  Bruno Haible  <bruno@clisp.org>
15100
15101         Fix link error on platforms with GNU libiconv.
15102         * modules/unistr/u8-strcoll-tests (Makefile): Define
15103         test_u8_strcoll_LDADD.
15104         * modules/unistr/u16-strcoll-tests (Makefile): Define
15105         test_u16_strcoll_LDADD.
15106         * modules/unistr/u32-strcoll-tests (Makefile): Define
15107         test_u32_strcoll_LDADD.
15108
15109 2010-03-07  Bruno Haible  <bruno@clisp.org>
15110
15111         Use POSIX declarations for socket functions.
15112         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15113         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15114         rpl_sendto): Change declaration to match POSIX.
15115         * lib/connect.c (rpl_connect): Likewise.
15116         * lib/accept.c (rpl_accept): Likewise.
15117         * lib/bind.c (rpl_bind): Likewise.
15118         * lib/getpeername.c (rpl_getpeername): Likewise.
15119         * lib/getsockname.c (rpl_getsockname): Likewise.
15120         * lib/recv.c (rpl_recv): Likewise.
15121         * lib/send.c (rpl_send): Likewise.
15122         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15123         * lib/sendto.c (rpl_sendto): Likewise.
15124
15125 2010-03-06  Bruno Haible  <bruno@clisp.org>
15126
15127         Clarify access, euidaccess, faccessat.
15128         * doc/posix-functions/faccessat.texi: Mention security problem under
15129         "Other problems", not "Portability problems".
15130         * doc/posix-functions/access.texi: Likewise. Mention a related security
15131         problem.
15132         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15133         * lib/euidaccess.c: Add comments about platforms.
15134         * lib/unistd.in.h (access, euidaccess): Add warnings.
15135
15136 2010-03-07  Bruno Haible  <bruno@clisp.org>
15137
15138         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15139         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15140         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15141         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15142         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15143         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15144         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15145         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15146         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15147         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15148         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15149         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15150         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15151         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15152         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15153         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15154         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15155         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15156         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15157         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15158         Likewise.
15159         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15160         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15161         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15162         Likewise.
15163         * tests/test-spawn.c (main): Make it work when
15164         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15165
15166 2010-03-07  Bruno Haible  <bruno@clisp.org>
15167
15168         Fix incorrect Makefile.am generation in German locale.
15169         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15170         Execute sed command with character range in C locale.
15171
15172 2010-03-06  Bruno Haible  <bruno@clisp.org>
15173
15174         Tests for module 'iconv-h'.
15175         * modules/iconv-h-tests: New file.
15176         * tests/test-iconv-h.c: New file.
15177
15178         New module 'iconv-h'.
15179         * modules/iconv-h: New file.
15180         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15181         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15182         (configure.ac): Remove gl_ICONV_H.
15183         (Makefile.am): Remove rule for iconv.h.
15184
15185 2010-03-06  Bruno Haible  <bruno@clisp.org>
15186
15187         More consistent naming of *.m4 files.
15188         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15189         * modules/wctype (Files): Update.
15190
15191         More consistent naming of *.m4 files.
15192         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15193         * modules/wchar (Files): Update.
15194
15195 2010-03-06  Jim Meyering  <meyering@redhat.com>
15196
15197         euidaccess: relax license to LGPLv2+
15198         * modules/euidaccess (License): Relax to LGPLv2+.
15199
15200 2010-03-06  Bruno Haible  <bruno@clisp.org>
15201
15202         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15203         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15204         (Makefile.am): Augment lib_SOURCES instead.
15205
15206 2010-03-04  Jim Meyering  <meyering@redhat.com>
15207
15208         utime: remove obsolete module
15209         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15210         unnecessary for years, and has been marked as obsolete for 10 months.
15211         * modules/utime: Remove file.
15212         * lib/utime.c: Remove file.
15213         * m4/utime.m4: Remove file.
15214         * m4/utimes-null.m4: Remove file.
15215         * doc/posix-functions/utime.texi (utime): Remove reference to
15216         the module.  Move the sole "fixed by gnulib" item into the
15217         "problems not fixed by Gnulib" list.
15218         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15219
15220 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15221
15222         * modules/exit (License): Relax license to LGPLv2+.
15223         (Status): Mark as obsolete.
15224         * NEWS: Mention deprecated 'exit' module.
15225         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15226         of now obsolete 'exit'.
15227
15228 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15229
15230         fts-lgpl: remove unused module
15231         * modules/fts-lgpl: Remove.
15232         * MODULES.html.sh (func_all_modules): Adjust.
15233         * check-module (find_included_lib_files): Adjust.
15234         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15235
15236 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15237
15238         copy-acl: enhance Solaris ACL error handling
15239         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15240         * lib/set-mode-acl.c (qset_acl): Likewise.
15241
15242 2010-03-02  Bruno Haible  <bruno@clisp.org>
15243
15244         spawn: Don't override the system defined values on FreeBSD 8.
15245         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15246         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15247         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15248         if HAVE_POSIX_SPAWN is 1.
15249         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15250
15251 2010-03-01  Bruno Haible  <bruno@clisp.org>
15252
15253         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15254         regarding Automake.
15255
15256 2010-02-25  Bruno Haible  <bruno@clisp.org>
15257
15258         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15259         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15260         setting, not afterwards.
15261         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15262
15263 2010-02-24  Eric Blake  <eblake@redhat.com>
15264
15265         bootstrap, git-version-gen: use timestamp
15266         * build-aux/git-version-gen (scriptversion): Force UTC.
15267         * build-aux/bootstrap (scriptversion): New variable.
15268
15269         bootstrap: allow older git
15270         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15271         older than 1.6.4.  Requested by the libvirt project.
15272
15273 2010-02-23  Eric Blake  <eblake@redhat.com>
15274
15275         warn-on-use: work with old autoconf
15276         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15277         AS_VAR semantics of autoconf 2.60.
15278         Reported by Bruno Haible.
15279
15280         bootstrap: improve some comments
15281         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15282         clarification comments.
15283
15284         gettimeofday: provide correct function
15285         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15286         when replacement is declared, otherwise provide gettimeofday.
15287         Reported by Michael Goffioul.
15288
15289 2010-02-23  Jim Meyering  <meyering@redhat.com>
15290
15291         lib-ignore: relax license to "unlimited", not LGPLv2+
15292         * modules/lib-ignore (License): Relax to "unlimited".
15293
15294 2010-02-23  Jim Meyering  <meyering@redhat.com>
15295
15296         lib-ignore: relax license to LGPLv2+
15297         * modules/lib-ignore (License): Relax to LGPLv2+.
15298
15299 2010-02-22  Eric Blake  <eblake@redhat.com>
15300
15301         lseek: avoid bash 3.2 broken pipe bug
15302         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15303         warning from bash 3.2.
15304         Reported by Ben Pfaff, with analysis from Bruno Haible.
15305
15306         bootstrap: support non-FSF copyright holder
15307         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15308         bootstrap.conf override of COPYRIGHT_HOLDER.
15309         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15310
15311         bootstrap: interoperate with gettext 0.14.1
15312         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15313
15314         bootstrap: allow for alternate submodule location
15315         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15316         hardcoding submodule location.
15317         (gnulib_mk): Allow direct use of Makefile.am.
15318
15319         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15320         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15321         rather than reconfiguring where the submodule points.
15322
15323         gettimeofday: restore support for platforms that lack function
15324         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15325         replacement if function is missing.
15326         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15327         * modules/sys_time (Makefile.am): Substitute it.
15328         * lib/sys_time.in.h (gettimeofday): Check it.
15329         Reported by Michael Goffioul.
15330
15331 2010-02-21  Bruno Haible  <bruno@clisp.org>
15332
15333         * lib/stdio.in.h (obstack_printf): Fix typo.
15334
15335 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15336
15337         vc-list-files: use bzr ls's -R option
15338         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15339         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15340
15341 2010-02-21  Jim Meyering  <meyering@redhat.com>
15342
15343         init.sh: fix EXEEXT shims to work also for names like test-prog
15344         * tests/init.sh: Re-exec a better shell, when needed.
15345         If the current shell lacks support for posix $(...), an init.sh-using
15346         test will now try to find a shell that supports that.  If EXEEXT is
15347         nonempty, we also require support for hyphen-in-alias-name and shell
15348         substitutions like ${var#glob}.  Failure to find such a shell results
15349         in a skipped test.
15350
15351 2010-02-21  Bruno Haible  <bruno@clisp.org>
15352
15353         Really work around around "broken pipe" error message from bash 3.2.
15354         * gnulib-tool (func_reset_sigpipe): Remove function.
15355         (echo): In bash 3.2, define to a function that uses printf.
15356         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15357
15358 2010-02-20  Bruno Haible  <bruno@clisp.org>
15359
15360         Restore support for automake 1.9.6 with autoconf 2.61.
15361         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15362         Reported by James Youngman <jay@gnu.org>.
15363
15364 2010-02-20  Bruno Haible  <bruno@clisp.org>
15365
15366         Improve *printf warning condition.
15367         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15368         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15369         and the function is overridden due to SIGPIPE emulation.
15370
15371 2010-02-20  Bruno Haible  <bruno@clisp.org>
15372
15373         * lib/stdio.in.h: Tweak comments.
15374
15375 2010-02-19  Bruno Haible  <bruno@clisp.org>
15376
15377         Make it easier to find modules. New gnulib-tool option '--find'.
15378         * gnulib-tool: New option --find.
15379         (func_usage): Document it.
15380         (func_sanitize_modulelist): New function, extracted from
15381         func_all_modules.
15382         (func_all_modules): Invoke it.
15383         * doc/gnulib-tool.texi (Which modules?): New node.
15384
15385 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15386
15387         * lib/sys_select.in.h: Provide select replacement even if
15388         sys/select.h exists on a system, for Interix.
15389
15390 2010-02-18  Jim Meyering  <meyering@redhat.com>
15391
15392         init.sh: don't use $(...) just yet
15393         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15394         to accommodate e.g., Solaris' /bin/sh.
15395
15396 2010-02-17  Bruno Haible  <bruno@clisp.org>
15397
15398         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15399         Reported by Ludovic Courtès <ludo@gnu.org>.
15400
15401 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15402
15403         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15404         linking with -lintl.
15405
15406 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15407
15408         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15409         if not provided by the system's netdb.h.  Reported by
15410         ludo@gnu.org (Ludovic Courtès).
15411
15412 2010-02-15  Jim Meyering  <meyering@redhat.com>
15413
15414         init.sh: improve portability and efficiency
15415         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15416         "dummy" in a for loop.
15417         Use '!', not '^' to select the complement of a character set used
15418         in a "case" statement.
15419         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
15420         Suggestions from Eric Blake.
15421
15422         init.sh: automatically accommodate programs with the .exe suffix
15423         Automatically arrange for an invocation of "prog" to execute the
15424         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
15425         may use the simpler "prog", yet still work when built on a system
15426         that requires specifying the added suffix.
15427         Do this by constructing a function named "prog" that invokes
15428         "prog.exe" for each .exe file in selected directories.
15429         * tests/init.sh (find_exe_basenames_): New function.
15430         (create_exe_shim_functions_): New function.
15431         (path_prepend_): Use it.
15432
15433         maint.mk: mark syntax-check sc_*.m rules as .PHONY
15434         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
15435         "make -t syntax-check" doesn't create a ton of sc_*.m files.
15436
15437 2010-02-14  Jim Meyering  <meyering@redhat.com>
15438
15439         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
15440         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
15441         (sc_prohibit_hash_pjw_without_use): New rule.
15442
15443         maint.mk: allow the default upload destination dir to be overridden
15444         * top/maint.mk (upload_dest_dir_): Define with a default that
15445         preserves the status quo.
15446         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
15447         Reported by Peter Simons.
15448
15449         maint.mk: prohibit inclusion of "hash.h" without_use
15450         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
15451
15452 2010-02-10  Jim Meyering  <meyering@redhat.com>
15453
15454         maint.mk: prohibit inclusion of "ignore-value.h" without_use
15455         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
15456
15457 2010-02-09  Eric Blake  <ebb9@byu.net>
15458         and Bruno Haible  <bruno@clisp.org>
15459
15460         obstack-printf-posix: ensure declaration
15461         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
15462         extracted from gl_FUNC_OBSTACK_PRINTF.
15463         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
15464         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
15465         Likewise.
15466         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
15467         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
15468         0.
15469
15470 2010-02-08  Bruno Haible  <bruno@clisp.org>
15471
15472         gnulib-tool: Fix typo in 2010-02-07 commit.
15473         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
15474         Reported by Eric Blake.
15475
15476 2010-02-07  Bruno Haible  <bruno@clisp.org>
15477
15478         gnulib-tool: Fix up caching patches.
15479         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
15480         option --no-cache. Use associative arrays when supported by the shell.
15481         (sed_comments): New variable.
15482         (modcache): Renamed from do_cache.
15483         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
15484         abbreviate unnecessarily.
15485         (have_associative): New variable.
15486         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
15487         way also for ksh and zsh.
15488         (func_init_sed_convert_to_cache_statements): New function, extracted
15489         from func_cache_lookup_module. Add support for associative arrays.
15490         Don't set the c_MODULE_cached variable here. Ignore all lines before
15491         the first field header. Remove only the final newline, not all trailing
15492         newlines. Support empty fields correctly. Limit the use of 'eval' to
15493         assignments.
15494         (func_get_description, func_get_status, func_get_notice,
15495         func_get_applicability, func_get_filelist, func_get_dependencies,
15496         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
15497         func_get_automake_snippet, func_get_include_directive,
15498         func_get_link_directive, func_get_license, func_get_maintainer):
15499         Update documentation. List the unoptimized code first. Add support for
15500         associative arrays. Limit the use of 'eval' to assignments.
15501         (func_get_applicability): Undo stylistic pessimisations.
15502         (func_get_automake_snippet, func_get_include_directive): Reduce code
15503         duplication.
15504         (func_modules_transitive_closure, func_modules_add_dummy,
15505         func_modules_notice, func_modules_to_filelist, func_add_file,
15506         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
15507         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
15508         func_create_testdir, func_create_megatestdir): Update documentation.
15509
15510 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15511
15512         * gnulib-tool (func_cache_lookup_module): Store the module name
15513         belonging to the cache variable; error out if two different
15514         module names map to the same cache variable name.
15515
15516 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15517
15518         gnulib-tool: Make caching optional.
15519         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
15520         Update matching short versions of --no-changelog.
15521         (func_usage): Update.
15522         (sed_extract_cache_prog): Renamed from ...
15523         (sed_extract_prog): ... this; revert to old extraction script.
15524         (func_get_description, func_get_status)
15525         (func_get_notice, func_get_applicability, func_get_filelist)
15526         (func_get_dependencies, func_get_autoconf_early_snippet)
15527         (func_get_autoconf_snippet, func_get_automake_snippet)
15528         (func_get_include_directive, func_get_link_directive)
15529         (func_get_license, func_get_maintainer): If $do_cache is false,
15530         use old, non-caching extraction scripts.
15531         Suggestion by Bruno Haible.
15532
15533 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15534
15535         gnulib-tool: cache module metainformation.
15536         * gnulib-tool (sed_extract_prog): Match newline before each
15537         header, and rewrite header to a shell variable suffix.
15538         (func_cache_var, func_cache_lookup_module): New functions,
15539         to turn a module name into a cache variable prefix, and to
15540         look up and cache module metainformation.
15541         (func_get_description, func_get_status)
15542         (func_get_notice, func_get_applicability, func_get_filelist)
15543         (func_get_dependencies, func_get_autoconf_early_snippet)
15544         (func_get_autoconf_snippet, func_get_automake_snippet)
15545         (func_get_include_directive, func_get_link_directive)
15546         (func_get_license, func_get_maintainer): Use
15547         func_cache_lookup_module.
15548
15549 2010-02-07  Bruno Haible  <bruno@clisp.org>
15550
15551         fnctl: Fix missing dependency.
15552         * modules/fcntl (Depends-on): Add getdtablesize.
15553         Reported by John W. Eaton <jwe@gnu.org>.
15554
15555 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15556
15557         Argp: fix recognition of short alias options.
15558
15559         * lib/argp-parse.c (convert_options): Fix improper use of
15560         `|' between character values.
15561         * tests/test-argp.c (group1_option): New alias option
15562         --read (-r).
15563         (group1_parser): Special handling for 'r'.
15564         (test15): New test case.
15565         (test_fun): Add test15.
15566         * tests/test-argp-2.sh: Update expected --help and --usage
15567         outputs.
15568
15569 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15570
15571         * tests/test-argp.c: Fix indentation.
15572
15573 2010-02-04  Eric Blake  <ebb9@byu.net>
15574
15575         gettimeofday: expose type of second argument
15576         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
15577         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
15578         * tests/test-gettimeofday.c: Use it to silence warning.
15579         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
15580         the issue.
15581
15582 2010-02-03  Jim Meyering  <meyering@redhat.com>
15583
15584         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
15585         * lib/regcomp.c (TYPE_SIGNED): Define.
15586         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
15587
15588         regcomp.c: avoid a new -Wshadow warning
15589         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
15590
15591 2010-02-01  Jim Meyering  <meyering@redhat.com>
15592
15593         removing useless parentheses in cpp #define directives
15594         For motivation, see commit c0221df4, "define STREQ(a,b)
15595         consistently, removing useless parentheses"
15596         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
15597         * lib/mountlist.c (MNT_IGNORE): Likewise.
15598         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
15599
15600 2010-02-01  Eric Blake  <ebb9@byu.net>
15601
15602         sys_time: use link-warning
15603         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
15604         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
15605         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
15606         * modules/sys_time (Depends-on): Add warn-on-use.
15607         (Makefile.am): Always build replacement.
15608         (configure.ac): Update substitutions.
15609         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
15610         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
15611         bother with SYS_TIME_H.
15612         * modules/gettimeofday (configure.ac): Declare indicator.
15613         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
15614         in use.
15615
15616         closein-tests: silence compiler warning
15617         * tests/test-closein.c (main): Ignore fread result.
15618         * modules/closein-tests (Depends-on): Add ignore-value.
15619
15620         tests: silence warning about system return
15621         * tests/test-areadlink-with-size.c (main): Ignore system result.
15622         * tests/test-areadlink.c (main): Likewise.
15623         * tests/test-areadlinkat-with-size.c (main): Likewise.
15624         * tests/test-areadlinkat.c (main): Likewise.
15625         * tests/test-canonicalize-lgpl.c (main): Likewise.
15626         * tests/test-canonicalize.c (main): Likewise.
15627         * tests/test-chown.c (main): Likewise.
15628         * tests/test-fchownat.c (main): Likewise.
15629         * tests/test-fdutimensat.c (main): Likewise.
15630         * tests/test-fstatat.c (main): Likewise.
15631         * tests/test-futimens.c (main): Likewise.
15632         * tests/test-lchown.c (main): Likewise.
15633         * tests/test-link.c (main): Likewise.
15634         * tests/test-linkat.c (main): Likewise.
15635         * tests/test-lstat.c (main): Likewise.
15636         * tests/test-mkdir.c (main): Likewise.
15637         * tests/test-mkdirat.c (main): Likewise.
15638         * tests/test-mkfifo.c (main): Likewise.
15639         * tests/test-mkfifoat.c (main): Likewise.
15640         * tests/test-mknod.c (main): Likewise.
15641         * tests/test-readlink.c (main): Likewise.
15642         * tests/test-remove.c (main): Likewise.
15643         * tests/test-rename.c (main): Likewise.
15644         * tests/test-renameat.c (main): Likewise.
15645         * tests/test-rmdir.c (main): Likewise.
15646         * tests/test-symlink.c (main): Likewise.
15647         * tests/test-symlinkat.c (main): Likewise.
15648         * tests/test-unlink.c (main): Likewise.
15649         * tests/test-unlinkat.c (main): Likewise.
15650         * tests/test-utimens.c (main): Likewise.
15651         * tests/test-utimensat.c (main): Likewise.
15652         * modules/areadlink-tests (Depends-on): Add ignore-value.
15653         * modules/areadlink-with-size-tests (Depends-on): Likewise.
15654         * modules/areadlinkat-tests (Depends-on): Likewise.
15655         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
15656         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15657         * modules/canonicalize-tests (Depends-on): Likewise.
15658         * modules/chown-tests (Depends-on): Likewise.
15659         * modules/fdutimensat-tests (Depends-on): Likewise.
15660         * modules/futimens-tests (Depends-on): Likewise.
15661         * modules/lchown-tests (Depends-on): Likewise.
15662         * modules/link-tests (Depends-on): Likewise.
15663         * modules/linkat-tests (Depends-on): Likewise.
15664         * modules/lstat-tests (Depends-on): Likewise.
15665         * modules/mkdir-tests (Depends-on): Likewise.
15666         * modules/mkfifo-tests (Depends-on): Likewise.
15667         * modules/mkfifoat-tests (Depends-on): Likewise.
15668         * modules/mknod-tests (Depends-on): Likewise.
15669         * modules/openat-tests (Depends-on): Likewise.
15670         * modules/readlink-tests (Depends-on): Likewise.
15671         * modules/remove-tests (Depends-on): Likewise.
15672         * modules/rename-tests (Depends-on): Likewise.
15673         * modules/renameat-tests (Depends-on): Likewise.
15674         * modules/rmdir-tests (Depends-on): Likewise.
15675         * modules/symlink-tests (Depends-on): Likewise.
15676         * modules/symlinkat-tests (Depends-on): Likewise.
15677         * modules/unlink-tests (Depends-on): Likewise.
15678         * modules/utimens-tests (Depends-on): Likewise.
15679         * modules/utimensat-tests (Depends-on): Likewise.
15680
15681 2010-01-31  Bruno Haible  <bruno@clisp.org>
15682
15683         Perform the same test for many <math.h> functions.
15684         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
15685         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
15686         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
15687         of gl_MATHFUNC.
15688         * modules/acos (configure.ac): Likewise.
15689         * modules/asin (configure.ac): Likewise.
15690         * modules/atan (configure.ac): Likewise.
15691         * modules/atan2 (configure.ac): Likewise.
15692         * modules/cbrt (configure.ac): Likewise.
15693         * modules/copysign (configure.ac): Likewise.
15694         * modules/cos (configure.ac): Likewise.
15695         * modules/cosh (configure.ac): Likewise.
15696         * modules/erf (configure.ac): Likewise.
15697         * modules/erfc (configure.ac): Likewise.
15698         * modules/exp (configure.ac): Likewise.
15699         * modules/fmod (configure.ac): Likewise.
15700         * modules/hypot (configure.ac): Likewise.
15701         * modules/j0 (configure.ac): Likewise.
15702         * modules/j1 (configure.ac): Likewise.
15703         * modules/jn (configure.ac): Likewise.
15704         * modules/lgamma (configure.ac): Likewise.
15705         * modules/log (configure.ac): Likewise.
15706         * modules/log10 (configure.ac): Likewise.
15707         * modules/log1p (configure.ac): Likewise.
15708         * modules/pow (configure.ac): Likewise.
15709         * modules/remainder (configure.ac): Likewise.
15710         * modules/sin (configure.ac): Likewise.
15711         * modules/sinh (configure.ac): Likewise.
15712         * modules/tan (configure.ac): Likewise.
15713         * modules/tanh (configure.ac): Likewise.
15714         * modules/y0 (configure.ac): Likewise.
15715         * modules/y1 (configure.ac): Likewise.
15716         * modules/yn (configure.ac): Likewise.
15717         Suggested by Paolo Bonzini.
15718
15719 2010-01-31  Bruno Haible  <bruno@clisp.org>
15720
15721         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
15722
15723 2010-01-31  Bruno Haible  <bruno@clisp.org>
15724
15725         Work around getdelim() bug on FreeBSD 8.0.
15726         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
15727         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
15728         not work.
15729         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
15730         is 1.
15731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
15732         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
15733         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
15734         a non-zero size.
15735         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
15736
15737 2010-01-31  Bruno Haible  <bruno@clisp.org>
15738
15739         Work around getline() bug on FreeBSD 8.0.
15740         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
15741         and a non-zero size.
15742         * tests/test-getline.c (main): Likewise.
15743         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
15744         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
15745
15746 2010-01-28  Eric Blake  <ebb9@byu.net>
15747
15748         regex: fix build failure
15749         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
15750         platforms.
15751
15752 2010-01-28  Jim Meyering  <meyering@redhat.com>
15753
15754         regex: do not ignore memory allocation failure
15755         * lib/regex_internal.c (create_cd_newstate): Detect
15756         re_node_set_init_copy failure.   Extracted from glibc commit
15757         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15758
15759         regex: sync more white-space changes from libc
15760         * lib/regex_internal.c: White-space only changes.
15761         * lib/regexec.c: Likewise.
15762
15763         regex: add many uses of __attribute_warn_unused_result__
15764         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
15765         * lib/regexec.c: Likewise.
15766         Extracted from a messy glibc commit.
15767
15768         regcomp.c: spelling and merge-artifact from glibc
15769         * lib/regcomp.c: Merge remainder of glibc's
15770         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15771
15772         regcomp.c: sync white-space changes from glibc
15773         * lib/regcomp.c: Merge to accommodate white space
15774         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15775
15776         regcomp.c: do not ignore internal return values
15777         * lib/regcomp.c: Do not ignore internal return values.
15778         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
15779         but without its white-space changes and spelling fixes.
15780
15781         regex_internal.h: define __attribute_warn_unused_result__
15782         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
15783
15784         maint: add a syntax-check rule to check for vulnerable Makefile.in
15785         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
15786
15787 2010-01-27  Jim Meyering  <meyering@redhat.com>
15788
15789         ncftpput-ftp: clean up spaces
15790         * build-aux/ncftpput-ftp: Make Copyright line consistent.
15791         Remove trailing blanks.
15792
15793 2010-01-27  Simon Josefsson  <simon@josefsson.org>
15794
15795         * build-aux/git-version-gen: Fix copyright statement.
15796         * build-aux/gnupload: Likewise.
15797         * tests/test-arcfour.c: Likewise.
15798         * tests/test-arctwo.c: Likewise.
15799         * tests/test-count-one-bits.c: Likewise.
15800         * tests/test-crc.c: Likewise.
15801         * tests/test-des.c: Likewise.
15802         * tests/test-gc-arcfour.c: Likewise.
15803         * tests/test-gc-arctwo.c: Likewise.
15804         * tests/test-gc-des.c: Likewise.
15805         * tests/test-gc-hmac-md5.c: Likewise.
15806         * tests/test-gc-hmac-sha1.c: Likewise.
15807         * tests/test-gc-md2.c: Likewise.
15808         * tests/test-gc-md4.c: Likewise.
15809         * tests/test-gc-md5.c: Likewise.
15810         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15811         * tests/test-gc-rijndael.c: Likewise.
15812         * tests/test-gc-sha1.c: Likewise.
15813         * tests/test-gc.c: Likewise.
15814         * tests/test-gethostname.c: Likewise.
15815         * tests/test-gettimeofday.c: Likewise.
15816         * tests/test-hash.c: Likewise.
15817         * tests/test-hmac-md5.c: Likewise.
15818         * tests/test-hmac-sha1.c: Likewise.
15819         * tests/test-md2.c: Likewise.
15820         * tests/test-md4.c: Likewise.
15821         * tests/test-md5.c: Likewise.
15822         * tests/test-memchr.c: Likewise.
15823         * tests/test-memchr2.c: Likewise.
15824         * tests/test-memcmp.c: Likewise.
15825         * tests/test-memmem.c: Likewise.
15826         * tests/test-memrchr.c: Likewise.
15827         * tests/test-rawmemchr.c: Likewise.
15828         * tests/test-read-file.c: Likewise.
15829         * tests/test-rijndael.c: Likewise.
15830         * tests/test-sockets.c: Likewise.
15831         * tests/test-strchrnul.c: Likewise.
15832         * tests/test-strstr.c: Likewise.
15833         * tests/test-strtod.c: Likewise.
15834         * build-aux/ncftpput-ftp: Likewise.
15835
15836 2010-01-26  Eric Blake  <ebb9@byu.net>
15837
15838         ignore-value: update recommended header name
15839         * modules/ignore-value (Include): Only use <> for headers that
15840         exist in glibc.
15841
15842 2010-01-26  Jim Meyering  <meyering@redhat.com>
15843
15844         test-userspec.c: avoid compiler warnings
15845         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
15846         and "initialization discards qualifiers..." warnings.
15847         Put the first "uid" in its own scope, and make char* members "const".
15848
15849 2010-01-25  Bruno Haible  <bruno@clisp.org>
15850
15851         gnulib-tool: Make warning diagnostics consistent.
15852         * gnulib-tool (func_warning): New function.
15853         Use it everywhere where gnulib-tool produces output to stderr and it is
15854         not a fatal error.
15855
15856 2010-01-25  Bruno Haible  <bruno@clisp.org>
15857
15858         Fix test dependencies.
15859         * modules/xstrtol-tests (Depends-on): Add inttypes.
15860         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
15861
15862 2010-01-25 Pádraig Brady <P@draigBrady.com>
15863
15864         syntax-check: detect incorrect boolean macro values in config.h
15865         * modules/maintainer-makefile (configure.ac): Parameterize the location
15866         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
15867         The logic is from Eric Blake and the location indicated by Jim Meyering.
15868         Note the more natural CONFIG_HEADER name is prohibited by automake
15869         for backwards compatibility reasons.
15870         * top/maint.mk (sc_Wundef_boolean): New rule.
15871
15872 2010-01-25  Jim Meyering  <meyering@redhat.com>
15873
15874         bootstrap: detect MacOS 10.6's shasum, too
15875         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
15876         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
15877
15878 2010-01-23  Jim Meyering  <meyering@redhat.com>
15879
15880         xstrtoll: new module
15881         * modules/xstrtoll: New file.
15882         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
15883         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
15884         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
15885         ./configure fails if you use this module and lack "long long".
15886         * modules/xstrtoll-tests: New module.
15887         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
15888         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
15889         new init.sh-based test framework.
15890
15891 2010-01-24  Bruno Haible  <bruno@clisp.org>
15892
15893         Tests for module 'yn'.
15894         * modules/yn-tests: New file.
15895         * tests/test-yn.c: New file.
15896
15897         Tests for module 'y1'.
15898         * modules/y1-tests: New file.
15899         * tests/test-y1.c: New file.
15900
15901         Tests for module 'y0'.
15902         * modules/y0-tests: New file.
15903         * tests/test-y0.c: New file.
15904
15905         Tests for module 'tanh'.
15906         * modules/tanh-tests: New file.
15907         * tests/test-tanh.c: New file.
15908
15909         Tests for module 'tan'.
15910         * modules/tan-tests: New file.
15911         * tests/test-tan.c: New file.
15912
15913         Tests for module 'sqrt'.
15914         * modules/sqrt-tests: New file.
15915         * tests/test-sqrt.c: New file.
15916
15917         Tests for module 'sinh'.
15918         * modules/sinh-tests: New file.
15919         * tests/test-sinh.c: New file.
15920
15921         Tests for module 'sin'.
15922         * modules/sin-tests: New file.
15923         * tests/test-sin.c: New file.
15924
15925         Tests for module 'rint'.
15926         * modules/rint-tests: New file.
15927         * tests/test-rint.c: New file.
15928
15929         Tests for module 'remainder'.
15930         * modules/remainder-tests: New file.
15931         * tests/test-remainder.c: New file.
15932
15933         Tests for module 'pow'.
15934         * modules/pow-tests: New file.
15935         * tests/test-pow.c: New file.
15936
15937         Tests for module 'nextafter'.
15938         * modules/nextafter-tests: New file.
15939         * tests/test-nextafter.c: New file.
15940
15941         Tests for module 'modf'.
15942         * modules/modf-tests: New file.
15943         * tests/test-modf.c: New file.
15944
15945         Tests for module 'logb'.
15946         * modules/logb-tests: New file.
15947         * tests/test-logb.c: New file.
15948
15949         Tests for module 'log1p'.
15950         * modules/log1p-tests: New file.
15951         * tests/test-log1p.c: New file.
15952
15953         Tests for module 'log10'.
15954         * modules/log10-tests: New file.
15955         * tests/test-log10.c: New file.
15956
15957         Tests for module 'log'.
15958         * modules/log-tests: New file.
15959         * tests/test-log.c: New file.
15960
15961         Tests for module 'lgamma'.
15962         * modules/lgamma-tests: New file.
15963         * tests/test-lgamma.c: New file.
15964
15965         Tests for module 'ldexp'.
15966         * modules/ldexp-tests: New file.
15967         * tests/test-ldexp.c: New file.
15968
15969         Tests for module 'jn'.
15970         * modules/jn-tests: New file.
15971         * tests/test-jn.c: New file.
15972
15973         Tests for module 'j1'.
15974         * modules/j1-tests: New file.
15975         * tests/test-j1.c: New file.
15976
15977         Tests for module 'j0'.
15978         * modules/j0-tests: New file.
15979         * tests/test-j0.c: New file.
15980
15981         Tests for module 'hypot'.
15982         * modules/hypot-tests: New file.
15983         * tests/test-hypot.c: New file.
15984
15985         Tests for module 'fmod'.
15986         * modules/fmod-tests: New file.
15987         * tests/test-fmod.c: New file.
15988
15989         Tests for module 'fabs'.
15990         * modules/fabs-tests: New file.
15991         * tests/test-fabs.c: New file.
15992
15993         Tests for module 'exp'.
15994         * modules/exp-tests: New file.
15995         * tests/test-exp.c: New file.
15996
15997         Tests for module 'erfc'.
15998         * modules/erfc-tests: New file.
15999         * tests/test-erfc.c: New file.
16000
16001         Tests for module 'erf'.
16002         * modules/erf-tests: New file.
16003         * tests/test-erf.c: New file.
16004
16005         Tests for module 'cosh'.
16006         * modules/cosh-tests: New file.
16007         * tests/test-cosh.c: New file.
16008
16009         Tests for module 'cos'.
16010         * modules/cos-tests: New file.
16011         * tests/test-cos.c: New file.
16012
16013         Tests for module 'copysign'.
16014         * modules/copysign-tests: New file.
16015         * tests/test-copysign.c: New file.
16016
16017         Tests for module 'cbrt'.
16018         * modules/cbrt-tests: New file.
16019         * tests/test-cbrt.c: New file.
16020
16021         Tests for module 'atan2'.
16022         * modules/atan2-tests: New file.
16023         * tests/test-atan2.c: New file.
16024
16025         Tests for module 'atan'.
16026         * modules/atan-tests: New file.
16027         * tests/test-atan.c: New file.
16028
16029         Tests for module 'asin'.
16030         * modules/asin-tests: New file.
16031         * tests/test-asin.c: New file.
16032
16033         Tests for module 'acos'.
16034         * modules/acos-tests: New file.
16035         * tests/test-acos.c: New file.
16036
16037 2010-01-24  Bruno Haible  <bruno@clisp.org>
16038
16039         Fix tests for common <math.h> functions.
16040         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16041         code snippet that references the function pointer, rather than merely
16042         calling the function. Substitute the FUNC_LIBM variable.
16043         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16044         * modules/acos (configure.ac): Likewise.
16045         * modules/asin (configure.ac): Likewise.
16046         * modules/atan (configure.ac): Likewise.
16047         * modules/atan2 (configure.ac): Likewise.
16048         * modules/cbrt (configure.ac): Likewise.
16049         * modules/copysign (configure.ac): Likewise.
16050         * modules/cos (configure.ac): Likewise.
16051         * modules/cosh (configure.ac): Likewise.
16052         * modules/erf (configure.ac): Likewise.
16053         * modules/erfc (configure.ac): Likewise.
16054         * modules/exp (configure.ac): Likewise.
16055         * modules/fabs (configure.ac): Likewise.
16056         * modules/fmod (configure.ac): Likewise.
16057         * modules/hypot (configure.ac): Likewise.
16058         * modules/j0 (configure.ac): Likewise.
16059         * modules/j1 (configure.ac): Likewise.
16060         * modules/jn (configure.ac): Likewise.
16061         * modules/ldexp (configure.ac): Likewise.
16062         * modules/lgamma (configure.ac): Likewise.
16063         * modules/log (configure.ac): Likewise.
16064         * modules/log10 (configure.ac): Likewise.
16065         * modules/log1p (configure.ac): Likewise.
16066         * modules/logb (configure.ac): Likewise.
16067         * modules/modf (configure.ac): Likewise.
16068         * modules/nextafter (configure.ac): Likewise.
16069         * modules/pow (configure.ac): Likewise.
16070         * modules/remainder (configure.ac): Likewise.
16071         * modules/rint (configure.ac): Likewise.
16072         * modules/sin (configure.ac): Likewise.
16073         * modules/sinh (configure.ac): Likewise.
16074         * modules/tan (configure.ac): Likewise.
16075         * modules/tanh (configure.ac): Likewise.
16076         * modules/y0 (configure.ac): Likewise.
16077         * modules/y1 (configure.ac): Likewise.
16078         * modules/yn (configure.ac): Likewise.
16079
16080 2010-01-24  Bruno Haible  <bruno@clisp.org>
16081
16082         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16083         * tests/test-acosl.c (x): New variable.
16084         (main): Store argument in x and fetch it from x.
16085         * tests/test-asinl.c (x): New variable.
16086         (main): Store argument in x and fetch it from x.
16087         * tests/test-atanl.c (x): New variable.
16088         (main): Store argument in x and fetch it from x.
16089         * tests/test-cosl.c (x): New variable.
16090         (main): Store argument in x and fetch it from x.
16091         * tests/test-expl.c (x): New variable.
16092         (main): Store argument in x and fetch it from x.
16093         * tests/test-logl.c (x): New variable.
16094         (main): Store argument in x and fetch it from x.
16095         * tests/test-sinl.c (x): New variable.
16096         (main): Store argument in x and fetch it from x.
16097         * tests/test-sqrtl.c (x): New variable.
16098         (main): Store argument in x and fetch it from x.
16099         * tests/test-tanl.c (x): New variable.
16100         (main): Store argument in x and fetch it from x.
16101
16102 2010-01-24  Bruno Haible  <bruno@clisp.org>
16103
16104         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16105         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16106         assignments to the initial TESTS_ENVIRONMENT.
16107         * doc/gnulib.texi (Unit test modules): Document it.
16108         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16109         TESTS_ENVIRONMENT.
16110         * modules/btowc-tests (Makefile.am): Likewise.
16111         * modules/c-stack-tests (Makefile.am): Likewise.
16112         * modules/c-strcase-tests (Makefile.am): Likewise.
16113         * modules/copy-file-tests (Makefile.am): Likewise.
16114         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16115         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16116         * modules/mbrtowc-tests (Makefile.am): Likewise.
16117         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16118         * modules/mbscasestr-tests (Makefile.am): Likewise.
16119         * modules/mbschr-tests (Makefile.am): Likewise.
16120         * modules/mbscspn-tests (Makefile.am): Likewise.
16121         * modules/mbsinit-tests (Makefile.am): Likewise.
16122         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16123         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16124         * modules/mbspbrk-tests (Makefile.am): Likewise.
16125         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16126         * modules/mbsrchr-tests (Makefile.am): Likewise.
16127         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16128         * modules/mbsspn-tests (Makefile.am): Likewise.
16129         * modules/mbsstr-tests (Makefile.am): Likewise.
16130         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16131         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16132         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16133         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16134         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16135         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16136         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16137         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16138         * modules/wcrtomb-tests (Makefile.am): Likewise.
16139         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16140         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16141         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16142         assignments from TESTS_ENVIRONMENT.
16143         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16144         augmentation.
16145         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16146         * modules/atexit-tests (Makefile.am): Likewise.
16147         * modules/binary-io-tests (Makefile.am): Likewise.
16148         * modules/closein-tests (Makefile.am): Likewise.
16149         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16150         * modules/exclude-tests (Makefile.am): Likewise.
16151         * modules/fflush-tests (Makefile.am): Likewise.
16152         * modules/fpending-tests (Makefile.am): Likewise.
16153         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16154         * modules/freadahead-tests (Makefile.am): Likewise.
16155         * modules/freadptr-tests (Makefile.am): Likewise.
16156         * modules/freadseek-tests (Makefile.am): Likewise.
16157         * modules/fseek-tests (Makefile.am): Likewise.
16158         * modules/fseeko-tests (Makefile.am): Likewise.
16159         * modules/ftell-tests (Makefile.am): Likewise.
16160         * modules/ftello-tests (Makefile.am): Likewise.
16161         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16162         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16163         * modules/lseek-tests (Makefile.am): Likewise.
16164         * modules/parse-duration-tests (Makefile.am): Likewise.
16165         * modules/perror-tests (Makefile.am): Likewise.
16166         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16167         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16168         * modules/pipe-tests (Makefile.am): Likewise.
16169         * modules/pread-tests (Makefile.am): Likewise.
16170         * modules/printf-posix-tests (Makefile.am): Likewise.
16171         * modules/select-tests (Makefile.am): Likewise.
16172         * modules/sigpipe-tests (Makefile.am): Likewise.
16173         * modules/tsearch-tests (Makefile.am): Likewise.
16174         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16175         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16176         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16177         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16178         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16179         * modules/version-etc-tests (Makefile.am): Likewise.
16180         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16181         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16182         * modules/xalloc-die-tests (Makefile.am): Likewise.
16183         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16184         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16185         * modules/xstrtol-tests (Makefile.am): Likewise.
16186         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16187         * modules/yesno-tests (Makefile.am): Likewise.
16188         Suggested by Jim Meyering.
16189
16190 2010-01-24  Bruno Haible  <bruno@clisp.org>
16191
16192         More documentation.
16193         * doc/gnulib.texi (Writing modules): New chapter.
16194         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16195         the new chapter.
16196
16197 2010-01-24  Jim Meyering  <meyering@redhat.com>
16198
16199         maint.mk: do not prepend "./" after filtering
16200         * top/maint.mk (_prepend_srcdir_prefix): New variable
16201         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16202         "./" when $(srcdir) is ".".
16203
16204         define STREQ(a,b) consistently, removing useless parentheses
16205         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16206         since the only risk is that "a" or "b" contains an unparenthesized
16207         comma, but if either did that, STREQ would have 3 or more arguments.
16208         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16209         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16210         * lib/hash-triple.c (STREQ): Likewise.
16211         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16212         * lib/getugroups.c (STREQ): Likewise.
16213
16214 2010-01-23  Jim Meyering  <meyering@redhat.com>
16215
16216         maint.mk: fix syntax-check in a non-srcdir build directory
16217         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16218         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16219
16220 2010-01-22  Jim Meyering  <meyering@redhat.com>
16221
16222         userspec: add unit tests
16223         * tests/test-userspec.c: New file.
16224         * modules/userspec-tests: Likewise.
16225
16226 2010-01-21  Jim Meyering  <meyering@redhat.com>
16227
16228         maint.mk: handle source file names containing "." robustly
16229         * top/maint.mk (_dot_escaped_srcdir): Define.
16230         (VC_LIST): Use it in LHS of sed substitution.
16231
16232 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16233
16234         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16235         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16236         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16237         from a non-srcdir build.
16238
16239 2010-01-20  Eric Blake  <ebb9@byu.net>
16240
16241         warn-on-use: use instead of link-warning
16242         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16243         * modules/unistd (Depends-on, Makefile.am): Likewise.
16244         * modules/arpa_inet (Depends-on): Replace link-warning with
16245         warn-on-use.
16246         (Makefile.am): Update rules accordingly.
16247         * modules/ctype (Depends-on, Makefile.am): Likewise.
16248         * modules/dirent (Depends-on, Makefile.am): Likewise.
16249         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16250         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16251         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16252         * modules/locale (Depends-on, Makefile.am): Likewise.
16253         * modules/math (Depends-on, Makefile.am): Likewise.
16254         * modules/search (Depends-on, Makefile.am): Likewise.
16255         * modules/signal (Depends-on, Makefile.am): Likewise.
16256         * modules/spawn (Depends-on, Makefile.am): Likewise.
16257         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16258         * modules/string (Depends-on, Makefile.am): Likewise.
16259         * modules/strings (Depends-on, Makefile.am): Likewise.
16260         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16261         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16262         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16263         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16264         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16265         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16266         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16267         * modules/wchar (Depends-on, Makefile.am): Likewise.
16268         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16269         should be poisoned.
16270         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16271         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16272         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16273         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16274         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16275         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16276         * m4/math_h.m4 (gl_MATH_H): Likewise.
16277         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16278         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16279         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16280         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16281         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16282         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16283         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16284         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16285         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16286         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16287         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16288         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16289         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16290         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16291         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16292         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16293         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16294         GL_LINK_WARNING.
16295         * lib/ctype.in.h: Likewise.
16296         * lib/dirent.in.h: Likewise.
16297         * lib/fcntl.in.h: Likewise.
16298         * lib/inttypes.in.h: Likewise.
16299         * lib/langinfo.in.h: Likewise.
16300         * lib/locale.in.h: Likewise.
16301         * lib/math.in.h: Likewise.
16302         * lib/search.in.h: Likewise.
16303         * lib/signal.in.h: Likewise.
16304         * lib/spawn.in.h: Likewise.
16305         * lib/stdio.in.h: Likewise.
16306         * lib/stdlib.in.h: Likewise.
16307         * lib/string.in.h: Likewise.
16308         * lib/strings.in.h: Likewise.
16309         * lib/sys_file.in.h: Likewise.
16310         * lib/sys_ioctl.in.h: Likewise.
16311         * lib/sys_select.in.h: Likewise.
16312         * lib/sys_socket.in.h: Likewise.
16313         * lib/sys_stat.in.h: Likewise.
16314         * lib/sys_times.in.h: Likewise.
16315         * lib/sys_utsname.in.h: Likewise.
16316         * lib/unistd.in.h: Likewise.
16317         * lib/wchar.in.h: Likewise.
16318
16319 2010-01-20  Bruno Haible  <bruno@clisp.org>
16320
16321         Avoid duplicate -lm.
16322         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16323         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16324         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16325         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16326         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16327         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16328         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16329         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16330         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16331         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16332         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16333         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16334         Reported by Paolo Bonzini.
16335
16336 2010-01-19  Bruno Haible  <bruno@clisp.org>
16337
16338         langinfo, nl_langinfo: Relicense under LGPLv2+.
16339         * modules/langinfo (License): Change to LGPLv2+.
16340         * modules/nl_langinfo (License): Likewise.
16341         Patch by David Lutterkort <lutter@redhat.com>.
16342
16343 2010-01-19  Bruno Haible  <bruno@clisp.org>
16344
16345         Avoid compilation error with cc on OSF/1 5.1.
16346         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16347         statement, not before.
16348         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16349
16350 2010-01-18  Bruno Haible  <bruno@clisp.org>
16351
16352         Avoid a link error due to the __printf__ symbol.
16353         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16354         and 2.6.x.
16355         (__format__, __printf__): Remove definitions.
16356         * lib/argp-fmtstream.h: Likewise.
16357         * lib/argp.h: Likewise.
16358         * lib/error.h: Likewise.
16359         * lib/vasnprintf.h: Likewise.
16360         * lib/xprintf.h: Likewise.
16361         * lib/xvasprintf.h: Likewise.
16362         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16363
16364 2010-01-18  Bruno Haible  <bruno@clisp.org>
16365
16366         Tests for module 'tanl'.
16367         * modules/tanl-tests: New file.
16368         * tests/test-tanl.c: New file.
16369
16370         Tests for module 'sqrtl'.
16371         * modules/sqrtl-tests: New file.
16372         * tests/test-sqrtl.c: New file.
16373
16374         Tests for module 'sinl'.
16375         * modules/sinl-tests: New file.
16376         * tests/test-sinl.c: New file.
16377
16378         Tests for module 'logl'.
16379         * modules/logl-tests: New file.
16380         * tests/test-logl.c: New file.
16381
16382         Tests for module 'expl'.
16383         * modules/expl-tests: New file.
16384         * tests/test-expl.c: New file.
16385
16386         Tests for module 'cosl'.
16387         * modules/cosl-tests: New file.
16388         * tests/test-cosl.c: New file.
16389
16390         Tests for module 'atanl'.
16391         * modules/atanl-tests: New file.
16392         * tests/test-atanl.c: New file.
16393
16394         Tests for module 'asinl'.
16395         * modules/asinl-tests: New file.
16396         * tests/test-asinl.c: New file.
16397
16398         Tests for module 'acosl'.
16399         * modules/acosl-tests: New file.
16400         * tests/test-acosl.c: New file.
16401
16402         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16403         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16404         tanl): Use the standard gnulib idiom.
16405         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16406         * lib/sinl.c: Likewise.
16407         * lib/tanl.c: Don't include trigl.c.
16408         (kernel_tanl): Make static.
16409         * lib/sincosl.c: Include trigl.h first.
16410         * lib/trigl.c: Likewise.
16411         * m4/acosl.m4: New file.
16412         * m4/asinl.m4: New file.
16413         * m4/atanl.m4: New file.
16414         * m4/cosl.m4: New file.
16415         * m4/expl.m4: New file.
16416         * m4/logl.m4: New file.
16417         * m4/sinl.m4: New file.
16418         * m4/sqrtl.m4: New file.
16419         * m4/tanl.m4: New file.
16420         * m4/mathl.m4: Remove file.
16421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
16422         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16423         Don't initialize GNULIB_MATHL.
16424         * modules/acosl: New file.
16425         * modules/asinl: New file.
16426         * modules/atanl: New file.
16427         * modules/cosl: New file.
16428         * modules/expl: New file.
16429         * modules/logl: New file.
16430         * modules/sinl: New file.
16431         * modules/sqrtl: New file.
16432         * modules/tanl: New file.
16433         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
16434         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
16435         substitute GNULIB_MATHL.
16436         * modules/mathl: Rewritten.
16437         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
16438         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
16439         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
16440         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
16441         * doc/posix-functions/expl.texi: Mention the 'expl' module.
16442         * doc/posix-functions/logl.texi: Mention the 'logl' module.
16443         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
16444         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
16445         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
16446
16447 2010-01-18  Bruno Haible  <bruno@clisp.org>
16448
16449         sqrt: Make gl_FUNC_SQRT requirable.
16450         * m4/sqrt.m4: New file.
16451         * modules/sqrt (Files): Add it.
16452         (configure.ac): Invoke gl_FUNC_SQRT.
16453
16454 2010-01-18  Bruno Haible  <bruno@clisp.org>
16455
16456         New modules for common <math.h> functions.
16457         * m4/mathfunc.m4: New file.
16458         * modules/acos: New file.
16459         * modules/asin: New file.
16460         * modules/atan: New file.
16461         * modules/atan2: New file.
16462         * modules/cbrt: New file.
16463         * modules/copysign: New file.
16464         * modules/cos: New file.
16465         * modules/cosh: New file.
16466         * modules/erf: New file.
16467         * modules/erfc: New file.
16468         * modules/exp: New file.
16469         * modules/fabs: New file.
16470         * modules/fmod: New file.
16471         * modules/hypot: New file.
16472         * modules/j0: New file.
16473         * modules/j1: New file.
16474         * modules/jn: New file.
16475         * modules/ldexp: New file.
16476         * modules/lgamma: New file.
16477         * modules/log: New file.
16478         * modules/log10: New file.
16479         * modules/log1p: New file.
16480         * modules/logb: New file.
16481         * modules/modf: New file.
16482         * modules/nextafter: New file.
16483         * modules/pow: New file.
16484         * modules/remainder: New file.
16485         * modules/rint: New file.
16486         * modules/sin: New file.
16487         * modules/sinh: New file.
16488         * modules/sqrt: New file.
16489         * modules/tan: New file.
16490         * modules/tanh: New file.
16491         * modules/y0: New file.
16492         * modules/y1: New file.
16493         * modules/yn: New file.
16494         * doc/posix-functions/acos.texi: Mention the 'acos' module.
16495         * doc/posix-functions/asin.texi: Mention the 'asin' module.
16496         * doc/posix-functions/atan.texi: Mention the 'atan' module.
16497         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
16498         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
16499         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
16500         * doc/posix-functions/cos.texi: Mention the 'cos' module.
16501         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
16502         * doc/posix-functions/erf.texi: Mention the 'erf' module.
16503         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
16504         * doc/posix-functions/exp.texi: Mention the 'exp' module.
16505         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
16506         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
16507         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
16508         * doc/posix-functions/j0.texi: Mention the 'j0' module.
16509         * doc/posix-functions/j1.texi: Mention the 'j1' module.
16510         * doc/posix-functions/jn.texi: Mention the 'jn' module.
16511         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
16512         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
16513         * doc/posix-functions/log.texi: Mention the 'log' module.
16514         * doc/posix-functions/log10.texi: Mention the 'log10' module.
16515         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
16516         * doc/posix-functions/logb.texi: Mention the 'logb' module.
16517         * doc/posix-functions/modf.texi: Mention the 'modf' module.
16518         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
16519         * doc/posix-functions/pow.texi: Mention the 'pow' module.
16520         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
16521         * doc/posix-functions/rint.texi: Mention the 'rint' module.
16522         * doc/posix-functions/sin.texi: Mention the 'sin' module.
16523         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
16524         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
16525         * doc/posix-functions/tan.texi: Mention the 'tan' module.
16526         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
16527         * doc/posix-functions/y0.texi: Mention the 'y0' module.
16528         * doc/posix-functions/y1.texi: Mention the 'y1' module.
16529         * doc/posix-functions/yn.texi: Mention the 'yn' module.
16530
16531 2010-01-18  Jim Meyering  <meyering@redhat.com>
16532
16533         ignore-value: relax license to LGPLv2+
16534         * modules/ignore-value (License): Relax to LGPLv2+.
16535
16536         getdate: don't leak when TZ contains two or more '"'s
16537         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
16538         double quote in TZ after the first one.
16539
16540         readtokens: do not leak internal token_lengths buffer
16541         * lib/readtokens.c (readtokens): Free the local, lengths,
16542         when the supplied "token_lengths" parameter is NULL.
16543
16544 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16545
16546         Fix a couple of missing LIBTHREAD link failures on AIX.
16547         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
16548         $(LIBTHREAD).
16549         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
16550
16551         Link test-poll against INET_PTON_LIB.
16552         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
16553         for inet_pton on Solaris 10.
16554
16555 2010-01-17  Bruno Haible  <bruno@clisp.org>
16556
16557         unistdio/*-sprintf: Fix typo in module description.
16558         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
16559         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
16560         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
16561         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
16562         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
16563         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
16564         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
16565         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16566
16567 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16568
16569         gnulib-tool: fix filelist for AIX, HP-UX ksh.
16570         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
16571         variables in shell case patterns, for AIX and HP-UX ksh.
16572
16573         Split large sed scripts, for HP-UX sed.
16574         * modules/stdio: Split sed scripts around 50 sed commands,
16575         to avoid HP-UX limit of 99 commands, in the near future.
16576         * modules/string: Likewise.
16577         * modules/unistd: Likewise.
16578
16579         gnulib-tool: avoid writing in the current directory.
16580         * gnulib-tool (func_emit_lib_Makefile_am)
16581         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
16582         not in the current directory, so concurrent gnulib-tool
16583         instances do not interfere.
16584
16585 2010-01-16  Jim Meyering  <meyering@redhat.com>
16586
16587         doc: update users.txt
16588         * users.txt: Add grep.
16589         (diffutils, gzip): Update URLs.
16590
16591 2010-01-12  Bruno Haible  <bruno@clisp.org>
16592
16593         posix_spawn: Avoid test failure on Cygwin.
16594         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
16595         characters.
16596         Reported by Simon Josefsson.
16597
16598 2010-01-12  Bruno Haible  <bruno@clisp.org>
16599
16600         * tests/test-cond.c (main): When skipping the test, show the reason.
16601
16602 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16603
16604         * lib/striconv.c (str_cd_iconv): Avoid if before free.
16605
16606 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16607
16608         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
16609         VC_LIST_ALWAYS_EXCLUDE_REGEX.
16610
16611 2010-01-12  Eric Blake  <ebb9@byu.net>
16612
16613         build: guarantee AS_VAR_IF
16614         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
16615         (gl_AS_VAR_IF): Move...
16616         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
16617         Reported by Simon Josefsson.
16618
16619 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16620
16621         * lib/stdio.in.h: Fix typo.
16622
16623 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16624
16625         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
16626         libgpg-error.
16627
16628 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16629
16630         * tests/test-xalloc-die.sh: Use $EXEEXT.
16631
16632 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16633             Bruno Haible  <bruno@clisp.org>
16634
16635         getlogin, getlogin_r: Avoid test failure.
16636         * tests/test-getlogin.c: Include <stdio.h>.
16637         (main): Skip the test when the function fails because stdin is not a
16638         tty.
16639         * tests/test-getlogin_r.c: Include <stdio.h>.
16640         (main): Skip the test when the function fails because stdin is not a
16641         tty.
16642
16643 2010-01-11  Eric Blake  <ebb9@byu.net>
16644
16645         tests: avoid more large file warnings
16646         * tests/test-fflush.c: Avoid warning about ftell use.
16647         * tests/test-fseek.c: Avoid warning about fseek use.
16648
16649 2010-01-10  Bruno Haible  <bruno@clisp.org>
16650
16651         nproc: Work better on Linux when /proc and /sys are not mounted.
16652         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
16653         as lower bound when, on glibc/Linux systems,
16654         sysconf (_SC_NPROCESSORS_CONF) returns 1.
16655         Suggested by Pádraig Brady <P@draigbrady.com>.
16656         Reported by Dmitry V. Levin <ldv@altlinux.org>.
16657
16658         nproc: Refactor.
16659         * lib/nproc.c (num_processors_via_affinity_mask): New function,
16660         extracted from num_processors.
16661         (num_processors): Call it.
16662
16663 2010-01-11  Jim Meyering  <meyering@redhat.com>
16664
16665         utimecmp: avoid new warning from upcoming gcc-4.5.0
16666         * lib/utimecmp.c (BILLION): Define using #define rather than an
16667         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
16668
16669 2010-01-11  Eric Blake  <ebb9@byu.net>
16670
16671         math: add portability warnings for classification macros
16672         * modules/math (Depends-on): Add warn-on-use.
16673         (Makefile.am): Provide new substitutions.
16674         * m4/math_h.m4 (gl_MATH_H): Require inline.
16675         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
16676         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
16677         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
16678         implement warnings.
16679
16680         unistd: warn on use of environ without module
16681         * modules/unistd (Depends-on): Add warn-on-use.
16682         (Makefile.am): Provide new substitutions.
16683         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
16684         * lib/unistd.in.h (environ): Wrap with a warning helper function.
16685
16686         stdio: warn on suspicious uses
16687         * modules/stdio (Depends-on): Add warn-on-use.
16688         (Makefile.am): Provide new substitutions.
16689         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
16690         fseeko.
16691         * lib/stdio.in.h (gets): Always warn on use.
16692         (fseek, ftell): Adjust when warnings are issued, and honor
16693         _GL_NO_LARGE_FILES as a way to silence the warning.
16694         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
16695         any warning about large file offsets.
16696         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
16697         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
16698         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
16699         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
16700         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
16701         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
16702         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
16703         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
16704
16705         warn-on-use: new module
16706         * modules/warn-on-use: New file.
16707         * build-aux/warn-on-use.h: Likewise.
16708         * m4/warn-on-use.m4: Likewise.
16709         * MODULES.html.sh (Support for building): Mention it.
16710
16711 2010-01-10  Bruno Haible  <bruno@clisp.org>
16712
16713         Tests for module 'unistr/u32-strdup'.
16714         * modules/unistr/u32-strdup-tests: New file.
16715         * tests/unistr/test-u32-strdup.c: New file.
16716
16717         Tests for module 'unistr/u16-strdup'.
16718         * modules/unistr/u16-strdup-tests: New file.
16719         * tests/unistr/test-u16-strdup.c: New file.
16720
16721         Tests for module 'unistr/u8-strdup'.
16722         * modules/unistr/u8-strdup-tests: New file.
16723         * tests/unistr/test-u8-strdup.c: New file.
16724         * tests/unistr/test-strdup.h: New file.
16725
16726         Tests for module 'unistr/u32-strncmp'.
16727         * modules/unistr/u32-strncmp-tests: New file.
16728         * tests/unistr/test-u32-strncmp.c: New file.
16729
16730         Tests for module 'unistr/u16-strncmp'.
16731         * modules/unistr/u16-strncmp-tests: New file.
16732         * tests/unistr/test-u16-strncmp.c: New file.
16733
16734         Tests for module 'unistr/u8-strncmp'.
16735         * modules/unistr/u8-strncmp-tests: New file.
16736         * tests/unistr/test-u8-strncmp.c: New file.
16737         * tests/unistr/test-strncmp.h: New file.
16738
16739         Tests for module 'unistr/u32-strcoll'.
16740         * modules/unistr/u32-strcoll-tests: New file.
16741         * tests/unistr/test-u32-strcoll.c: New file.
16742
16743         Tests for module 'unistr/u16-strcoll'.
16744         * modules/unistr/u16-strcoll-tests: New file.
16745         * tests/unistr/test-u16-strcoll.c: New file.
16746
16747         Tests for module 'unistr/u8-strcoll'.
16748         * modules/unistr/u8-strcoll-tests: New file.
16749         * tests/unistr/test-u8-strcoll.c: New file.
16750
16751         Tests for module 'unistr/u32-strcmp'.
16752         * modules/unistr/u32-strcmp-tests: New file.
16753         * tests/unistr/test-u32-strcmp.c: New file.
16754         * tests/unistr/test-u32-strcmp.h: New file.
16755
16756         Tests for module 'unistr/u16-strcmp'.
16757         * modules/unistr/u16-strcmp-tests: New file.
16758         * tests/unistr/test-u16-strcmp.c: New file.
16759         * tests/unistr/test-u16-strcmp.h: New file.
16760
16761         Tests for module 'unistr/u8-strcmp'.
16762         * modules/unistr/u8-strcmp-tests: New file.
16763         * tests/unistr/test-u8-strcmp.c: New file.
16764         * tests/unistr/test-u8-strcmp.h: New file.
16765         * tests/unistr/test-strcmp.h: New file.
16766
16767         Tests for module 'unistr/u32-strncat'.
16768         * modules/unistr/u32-strncat-tests: New file.
16769         * tests/unistr/test-u32-strncat.c: New file.
16770
16771         Tests for module 'unistr/u16-strncat'.
16772         * modules/unistr/u16-strncat-tests: New file.
16773         * tests/unistr/test-u16-strncat.c: New file.
16774
16775         Tests for module 'unistr/u8-strncat'.
16776         * modules/unistr/u8-strncat-tests: New file.
16777         * tests/unistr/test-u8-strncat.c: New file.
16778         * tests/unistr/test-strncat.h: New file.
16779
16780         Tests for module 'unistr/u32-strcat'.
16781         * modules/unistr/u32-strcat-tests: New file.
16782         * tests/unistr/test-u32-strcat.c: New file.
16783
16784         Tests for module 'unistr/u16-strcat'.
16785         * modules/unistr/u16-strcat-tests: New file.
16786         * tests/unistr/test-u16-strcat.c: New file.
16787
16788         Tests for module 'unistr/u8-strcat'.
16789         * modules/unistr/u8-strcat-tests: New file.
16790         * tests/unistr/test-u8-strcat.c: New file.
16791         * tests/unistr/test-strcat.h: New file.
16792
16793         Tests for module 'unistr/u32-stpncpy'.
16794         * modules/unistr/u32-stpncpy-tests: New file.
16795         * tests/unistr/test-u32-stpncpy.c: New file.
16796
16797         Tests for module 'unistr/u16-stpncpy'.
16798         * modules/unistr/u16-stpncpy-tests: New file.
16799         * tests/unistr/test-u16-stpncpy.c: New file.
16800
16801         Tests for module 'unistr/u8-stpncpy'.
16802         * modules/unistr/u8-stpncpy-tests: New file.
16803         * tests/unistr/test-u8-stpncpy.c: New file.
16804         * tests/unistr/test-stpncpy.h: New file.
16805
16806         Tests for module 'unistr/u32-strncpy'.
16807         * modules/unistr/u32-strncpy-tests: New file.
16808         * tests/unistr/test-u32-strncpy.c: New file.
16809
16810         Tests for module 'unistr/u16-strncpy'.
16811         * modules/unistr/u16-strncpy-tests: New file.
16812         * tests/unistr/test-u16-strncpy.c: New file.
16813
16814         Tests for module 'unistr/u8-strncpy'.
16815         * modules/unistr/u8-strncpy-tests: New file.
16816         * tests/unistr/test-u8-strncpy.c: New file.
16817         * tests/unistr/test-strncpy.h: New file.
16818
16819         Tests for module 'unistr/u32-stpcpy'.
16820         * modules/unistr/u32-stpcpy-tests: New file.
16821         * tests/unistr/test-u32-stpcpy.c: New file.
16822
16823         Tests for module 'unistr/u16-stpcpy'.
16824         * modules/unistr/u16-stpcpy-tests: New file.
16825         * tests/unistr/test-u16-stpcpy.c: New file.
16826
16827         Tests for module 'unistr/u8-stpcpy'.
16828         * modules/unistr/u8-stpcpy-tests: New file.
16829         * tests/unistr/test-u8-stpcpy.c: New file.
16830         * tests/unistr/test-stpcpy.h: New file.
16831
16832         Tests for module 'unistr/u32-strcpy'.
16833         * modules/unistr/u32-strcpy-tests: New file.
16834         * tests/unistr/test-u32-strcpy.c: New file.
16835
16836         Tests for module 'unistr/u16-strcpy'.
16837         * modules/unistr/u16-strcpy-tests: New file.
16838         * tests/unistr/test-u16-strcpy.c: New file.
16839
16840         Tests for module 'unistr/u8-strcpy'.
16841         * modules/unistr/u8-strcpy-tests: New file.
16842         * tests/unistr/test-u8-strcpy.c: New file.
16843         * tests/unistr/test-strcpy.h: New file.
16844
16845         Tests for module 'unistr/u32-strnlen'.
16846         * modules/unistr/u32-strnlen-tests: New file.
16847         * tests/unistr/test-u32-strnlen.c: New file.
16848
16849         Tests for module 'unistr/u16-strnlen'.
16850         * modules/unistr/u16-strnlen-tests: New file.
16851         * tests/unistr/test-u16-strnlen.c: New file.
16852
16853         Tests for module 'unistr/u8-strnlen'.
16854         * modules/unistr/u8-strnlen-tests: New file.
16855         * tests/unistr/test-u8-strnlen.c: New file.
16856         * tests/unistr/test-strnlen.h: New file.
16857
16858         Tests for module 'unistr/u32-strlen'.
16859         * modules/unistr/u32-strlen-tests: New file.
16860         * tests/unistr/test-u32-strlen.c: New file.
16861
16862         Tests for module 'unistr/u16-strlen'.
16863         * modules/unistr/u16-strlen-tests: New file.
16864         * tests/unistr/test-u16-strlen.c: New file.
16865
16866         Tests for module 'unistr/u8-strlen'.
16867         * modules/unistr/u8-strlen-tests: New file.
16868         * tests/unistr/test-u8-strlen.c: New file.
16869
16870         Tests for module 'unistr/u32-prev'.
16871         * modules/unistr/u32-prev-tests: New file.
16872         * tests/unistr/test-u32-prev.c: New file.
16873
16874         Tests for module 'unistr/u16-prev'.
16875         * modules/unistr/u16-prev-tests: New file.
16876         * tests/unistr/test-u16-prev.c: New file.
16877
16878         Tests for module 'unistr/u8-prev'.
16879         * modules/unistr/u8-prev-tests: New file.
16880         * tests/unistr/test-u8-prev.c: New file.
16881
16882         Tests for module 'unistr/u32-next'.
16883         * modules/unistr/u32-next-tests: New file.
16884         * tests/unistr/test-u32-next.c: New file.
16885
16886         Tests for module 'unistr/u16-next'.
16887         * modules/unistr/u16-next-tests: New file.
16888         * tests/unistr/test-u16-next.c: New file.
16889
16890         Tests for module 'unistr/u8-next'.
16891         * modules/unistr/u8-next-tests: New file.
16892         * tests/unistr/test-u8-next.c: New file.
16893
16894         Tests for module 'unistr/u32-strmbtouc'.
16895         * modules/unistr/u32-strmbtouc-tests: New file.
16896         * tests/unistr/test-u32-strmbtouc.c: New file.
16897
16898         Tests for module 'unistr/u16-strmbtouc'.
16899         * modules/unistr/u16-strmbtouc-tests: New file.
16900         * tests/unistr/test-u16-strmbtouc.c: New file.
16901
16902         Tests for module 'unistr/u8-strmbtouc'.
16903         * modules/unistr/u8-strmbtouc-tests: New file.
16904         * tests/unistr/test-u8-strmbtouc.c: New file.
16905
16906         Tests for module 'unistr/u32-strmblen'.
16907         * modules/unistr/u32-strmblen-tests: New file.
16908         * tests/unistr/test-u32-strmblen.c: New file.
16909
16910         Tests for module 'unistr/u16-strmblen'.
16911         * modules/unistr/u16-strmblen-tests: New file.
16912         * tests/unistr/test-u16-strmblen.c: New file.
16913
16914         Tests for module 'unistr/u8-strmblen'.
16915         * modules/unistr/u8-strmblen-tests: New file.
16916         * tests/unistr/test-u8-strmblen.c: New file.
16917
16918         Tests for module 'unistr/u32-cpy-alloc'.
16919         * modules/unistr/u32-cpy-alloc-tests: New file.
16920         * tests/unistr/test-u32-cpy-alloc.c: New file.
16921
16922         Tests for module 'unistr/u16-cpy-alloc'.
16923         * modules/unistr/u16-cpy-alloc-tests: New file.
16924         * tests/unistr/test-u16-cpy-alloc.c: New file.
16925
16926         Tests for module 'unistr/u8-cpy-alloc'.
16927         * modules/unistr/u8-cpy-alloc-tests: New file.
16928         * tests/unistr/test-u8-cpy-alloc.c: New file.
16929         * tests/unistr/test-cpy-alloc.h: New file.
16930
16931         Tests for module 'unistr/u32-mbsnlen'.
16932         * modules/unistr/u32-mbsnlen-tests: New file.
16933         * tests/unistr/test-u32-mbsnlen.c: New file.
16934
16935         Tests for module 'unistr/u16-mbsnlen'.
16936         * modules/unistr/u16-mbsnlen-tests: New file.
16937         * tests/unistr/test-u16-mbsnlen.c: New file.
16938
16939         Tests for module 'unistr/u8-mbsnlen'.
16940         * modules/unistr/u8-mbsnlen-tests: New file.
16941         * tests/unistr/test-u8-mbsnlen.c: New file.
16942
16943         Tests for module 'unistr/u32-chr'.
16944         * modules/unistr/u32-chr-tests: New file.
16945         * tests/unistr/test-u32-chr.c: New file.
16946
16947         Tests for module 'unistr/u16-chr'.
16948         * modules/unistr/u16-chr-tests: New file.
16949         * tests/unistr/test-u16-chr.c: New file.
16950
16951         Tests for module 'unistr/u8-chr'.
16952         * modules/unistr/u8-chr-tests: New file.
16953         * tests/unistr/test-u8-chr.c: New file.
16954         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
16955
16956         Tests for module 'unistr/u32-cmp2'.
16957         * modules/unistr/u32-cmp2-tests: New file.
16958         * tests/unistr/test-u32-cmp2.c: New file.
16959
16960         Tests for module 'unistr/u16-cmp2'.
16961         * modules/unistr/u16-cmp2-tests: New file.
16962         * tests/unistr/test-u16-cmp2.c: New file.
16963
16964         Tests for module 'unistr/u8-cmp2'.
16965         * modules/unistr/u8-cmp2-tests: New file.
16966         * tests/unistr/test-u8-cmp2.c: New file.
16967         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
16968
16969         Tests for module 'unistr/u32-cmp'.
16970         * modules/unistr/u32-cmp-tests: New file.
16971         * tests/unistr/test-u32-cmp.c: New file.
16972
16973         Tests for module 'unistr/u16-cmp'.
16974         * modules/unistr/u16-cmp-tests: New file.
16975         * tests/unistr/test-u16-cmp.c: New file.
16976
16977         Tests for module 'unistr/u8-cmp'.
16978         * modules/unistr/u8-cmp-tests: New file.
16979         * tests/unistr/test-u8-cmp.c: New file.
16980         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
16981
16982         Tests for module 'unistr/u32-set'.
16983         * modules/unistr/u32-set-tests: New file.
16984         * tests/unistr/test-u32-set.c: New file.
16985
16986         Tests for module 'unistr/u16-set'.
16987         * modules/unistr/u16-set-tests: New file.
16988         * tests/unistr/test-u16-set.c: New file.
16989
16990         Tests for module 'unistr/u8-set'.
16991         * modules/unistr/u8-set-tests: New file.
16992         * tests/unistr/test-u8-set.c: New file.
16993         * tests/unistr/test-set.h: New file.
16994
16995         Tests for module 'unistr/u32-move'.
16996         * modules/unistr/u32-move-tests: New file.
16997         * tests/unistr/test-u32-move.c: New file.
16998
16999         Tests for module 'unistr/u16-move'.
17000         * modules/unistr/u16-move-tests: New file.
17001         * tests/unistr/test-u16-move.c: New file.
17002
17003         Tests for module 'unistr/u8-move'.
17004         * modules/unistr/u8-move-tests: New file.
17005         * tests/unistr/test-u8-move.c: New file.
17006         * tests/unistr/test-move.h: New file.
17007
17008         Tests for module 'unistr/u32-cpy'.
17009         * modules/unistr/u32-cpy-tests: New file.
17010         * tests/unistr/test-u32-cpy.c: New file.
17011
17012         Tests for module 'unistr/u16-cpy'.
17013         * modules/unistr/u16-cpy-tests: New file.
17014         * tests/unistr/test-u16-cpy.c: New file.
17015
17016         Tests for module 'unistr/u8-cpy'.
17017         * modules/unistr/u8-cpy-tests: New file.
17018         * tests/unistr/test-u8-cpy.c: New file.
17019         * tests/unistr/test-cpy.h: New file.
17020
17021 2010-01-09  Bruno Haible  <bruno@clisp.org>
17022
17023         Tests for module 'unistr/u32-uctomb'.
17024         * modules/unistr/u32-uctomb-tests: New file.
17025         * tests/unistr/test-u32-uctomb.c: New file.
17026
17027         Tests for module 'unistr/u16-uctomb'.
17028         * modules/unistr/u16-uctomb-tests: New file.
17029         * tests/unistr/test-u16-uctomb.c: New file.
17030
17031         Tests for module 'unistr/u8-uctomb'.
17032         * modules/unistr/u8-uctomb-tests: New file.
17033         * tests/unistr/test-u8-uctomb.c: New file.
17034
17035         Tests for module 'unistr/u32-mbtoucr'.
17036         * modules/unistr/u32-mbtoucr-tests: New file.
17037         * tests/unistr/test-u32-mbtoucr.c: New file.
17038
17039         Tests for module 'unistr/u16-mbtoucr'.
17040         * modules/unistr/u16-mbtoucr-tests: New file.
17041         * tests/unistr/test-u16-mbtoucr.c: New file.
17042
17043         Tests for module 'unistr/u8-mbtoucr'.
17044         * modules/unistr/u8-mbtoucr-tests: New file.
17045         * tests/unistr/test-u8-mbtoucr.c: New file.
17046
17047         Tests for module 'unistr/u32-mbtouc'.
17048         * modules/unistr/u32-mbtouc-tests: New file.
17049         * tests/unistr/test-u32-mbtouc.c: New file.
17050
17051         Tests for module 'unistr/u16-mbtouc'.
17052         * modules/unistr/u16-mbtouc-tests: New file.
17053         * tests/unistr/test-u16-mbtouc.c: New file.
17054
17055         Tests for module 'unistr/u8-mbtouc'.
17056         * modules/unistr/u8-mbtouc-tests: New file.
17057         * tests/unistr/test-u8-mbtouc.c: New file.
17058
17059         Tests for module 'unistr/u32-mbtouc-unsafe'.
17060         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17061         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17062         * tests/unistr/test-u32-mbtouc.h: New file.
17063
17064         Tests for module 'unistr/u16-mbtouc-unsafe'.
17065         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17066         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17067         * tests/unistr/test-u16-mbtouc.h: New file.
17068
17069         Tests for module 'unistr/u8-mbtouc-unsafe'.
17070         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17071         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17072         * tests/unistr/test-u8-mbtouc.h: New file.
17073
17074         Tests for module 'unistr/u32-mblen'.
17075         * modules/unistr/u32-mblen-tests: New file.
17076         * tests/unistr/test-u32-mblen.c: New file.
17077
17078         Tests for module 'unistr/u16-mblen'.
17079         * modules/unistr/u16-mblen-tests: New file.
17080         * tests/unistr/test-u16-mblen.c: New file.
17081
17082         Tests for module 'unistr/u8-mblen'.
17083         * modules/unistr/u8-mblen-tests: New file.
17084         * tests/unistr/test-u8-mblen.c: New file.
17085
17086         Tests for module 'unistr/u32-to-u16'.
17087         * modules/unistr/u32-to-u16-tests: New file.
17088         * tests/unistr/test-u32-to-u16.c: New file.
17089
17090         Tests for module 'unistr/u32-to-u8'.
17091         * modules/unistr/u32-to-u8-tests: New file.
17092         * tests/unistr/test-u32-to-u8.c: New file.
17093
17094         Tests for module 'unistr/u16-to-u32'.
17095         * modules/unistr/u16-to-u32-tests: New file.
17096         * tests/unistr/test-u16-to-u32.c: New file.
17097
17098         Tests for module 'unistr/u16-to-u8'.
17099         * modules/unistr/u16-to-u8-tests: New file.
17100         * tests/unistr/test-u16-to-u8.c: New file.
17101
17102         Tests for module 'unistr/u8-to-u32'.
17103         * modules/unistr/u8-to-u32-tests: New file.
17104         * tests/unistr/test-u8-to-u32.c: New file.
17105
17106         Tests for module 'unistr/u8-to-u16'.
17107         * modules/unistr/u8-to-u16-tests: New file.
17108         * tests/unistr/test-u8-to-u16.c: New file.
17109
17110         Tests for module 'unistr/u32-check'.
17111         * modules/unistr/u32-check-tests: New file.
17112         * tests/unistr/test-u32-check.c: New file.
17113
17114         Tests for module 'unistr/u16-check'.
17115         * modules/unistr/u16-check-tests: New file.
17116         * tests/unistr/test-u16-check.c: New file.
17117
17118         Tests for module 'unistr/u8-check'.
17119         * modules/unistr/u8-check-tests: New file.
17120         * tests/unistr/test-u8-check.c: New file.
17121
17122         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17123         (category_equals): New function.
17124         (main): Add more tests.
17125         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17126
17127         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17128
17129 2010-01-10  Bruno Haible  <bruno@clisp.org>
17130
17131         unistr/u*-strcoll: Try harder to distinguish different strings.
17132         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17133         compare s1 and s2 to see if they are different.
17134
17135 2010-01-10  Bruno Haible  <bruno@clisp.org>
17136
17137         unistr/u*-stpncpy: Fix the return value.
17138         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17139         description of the return value consistent with stpncpy in glibc.
17140         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17141         written non-NUL unit.
17142
17143 2010-01-10  Bruno Haible  <bruno@clisp.org>
17144
17145         unistr/u*-next: Add missing dependencies.
17146         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17147         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17148         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17149
17150 2010-01-10  Bruno Haible  <bruno@clisp.org>
17151
17152         unistr/u8-mbsnlen: Fix return value for incomplete character.
17153         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17154         u8_mblen.
17155         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17156         Remove unistr/u8-mblen.
17157         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17158         u16_mblen.
17159         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17160         Remove unistr/u16-mblen.
17161
17162 2010-01-10  Bruno Haible  <bruno@clisp.org>
17163
17164         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17165         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17166         Reported by Brian Gough <bjg@gnu.org> and
17167         Chris Clayton <chris2553@googlemail.com> via
17168         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17169
17170 2010-01-09  Bruno Haible  <bruno@clisp.org>
17171
17172         unistr/u16-to-u32: Reject invalid input.
17173         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17174         u16_mbtouc.
17175         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17176         Remove unistr/u16-mbtouc.
17177
17178         unistr/u16-to-u8: Reject invalid input.
17179         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17180         u16_mbtouc.
17181         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17182         Remove unistr/u16-mbtouc.
17183
17184         unistr/u8-to-u32: Reject invalid input.
17185         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17186         u8_mbtouc.
17187         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17188         Remove unistr/u8-mbtouc.
17189
17190         unistr/u8-to-u16: Reject invalid input.
17191         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17192         u8_mbtouc.
17193         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17194         Remove unistr/u8-mbtouc.
17195
17196 2010-01-09  Bruno Haible  <bruno@clisp.org>
17197
17198         Tests for module 'getlogin'.
17199         * modules/getlogin-tests: New file.
17200         * tests/test-getlogin.c: New file.
17201
17202         New module 'getlogin'.
17203         * lib/unistd.in.h (getlogin): New declaration.
17204         * lib/getlogin.c: New file.
17205         * m4/getlogin.m4: New file.
17206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17207         HAVE_GETLOGIN.
17208         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17209         HAVE_GETLOGIN.
17210         * modules/getlogin: New file.
17211         * doc/posix-functions/getlogin.texi: Mention the new module.
17212         Reported by John W. Eaton <jwe@gnu.org>.
17213
17214 2010-01-09  Bruno Haible  <bruno@clisp.org>
17215
17216         getlogin_r: Support for native Windows.
17217         * lib/getlogin_r.c: Include <windows.h>
17218         (getlogin_r): Implement for native Windows.
17219         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17220         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17221         via John W. Eaton <jwe@gnu.org>.
17222
17223 2010-01-09  Bruno Haible  <bruno@clisp.org>
17224
17225         getlogin_r: Small fixes.
17226         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17227         succeeds.
17228         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17229         before testing whether getlogin_r is declared. No need to set
17230         HAVE_DECL_GETLOGIN_R to 1.
17231         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17232
17233 2010-01-09  Bruno Haible  <bruno@clisp.org>
17234
17235         * lib/unistd.in.h (getlogin_r): Add comment.
17236
17237 2010-01-09  Bruno Haible  <bruno@clisp.org>
17238
17239         Tests for module 'getlogin_r'.
17240         * modules/getlogin_r-tests: New file.
17241         * tests/test-getlogin_r.c: New file.
17242
17243 2010-01-09  Jim Meyering  <meyering@redhat.com>
17244
17245         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17246         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17247         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17248
17249 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17250
17251         * lib/dup2.c (rpl_dup2): Improve comment.
17252
17253 2010-01-08  Eric Blake  <ebb9@byu.net>
17254
17255         maint.mk: allow packages to add makefile @@ exceptions
17256         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17257         (sc_makefile_check): Rename...
17258         (sc_makefile_at_at_check): ...to this, and use hook.
17259
17260         dup2: work around mingw bug
17261         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17262         Reported by Simon Josefsson.
17263
17264 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17265
17266         glob: Fix C++ compilation.
17267         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17268         C++.
17269
17270 2010-01-07  Bruno Haible  <bruno@clisp.org>
17271
17272         Fix indentation of wctype.in.h, broken since 2007-01-06.
17273         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17274
17275 2010-01-07  Bruno Haible  <bruno@clisp.org>
17276
17277         mbslen: Avoid collision with system function.
17278         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17279         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17280         * m4/mbslen.m4: New file.
17281         * modules/mbslen (Files): Add it.
17282         (configure.ac): Invoke gl_MBSLEN.
17283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17284         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17285         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17286         via Ian Beckwith <ianb@erislabs.net>.
17287
17288 2010-01-07  Bruno Haible  <bruno@clisp.org>
17289
17290         dirent: Document the last fix.
17291         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17292
17293 2010-01-07  Bruno Haible  <bruno@clisp.org>
17294
17295         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17296         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17297         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17298         va_list are defined.
17299         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17300         Reported by Eric Blake.
17301
17302 2010-01-07  Bruno Haible  <bruno@clisp.org>
17303
17304         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17305         * modules/xlist (Depends-on): Add 'list',
17306         * modules/xoset (Depends-on): Add 'oset'.
17307         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17308
17309 2010-01-07  Bruno Haible  <bruno@clisp.org>
17310
17311         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17312         * doc/posix-functions/strncasecmp.texi: Likewise.
17313
17314 2010-01-07  Bruno Haible  <bruno@clisp.org>
17315
17316         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17317
17318 2010-01-07  John W. Eaton  <jwe@octave.org>
17319
17320         wctype: allow C++ use
17321         * lib/wctype.in.h: Add extern "C" block for C++.
17322
17323 2010-01-06  Eric Blake  <ebb9@byu.net>
17324
17325         maint.mk: detect incorrect GFDL usage
17326         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17327
17328 2010-01-06  Jim Meyering  <meyering@redhat.com>
17329         and Eric Blake  <ebb9@byu.net>
17330
17331         maint.mk: ignore multi-line copyright in NEWS
17332         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17333
17334 2010-01-06  Eric Blake  <ebb9@byu.net>
17335
17336         select: add missing dependency
17337         * modules/select-tests (Depends-on): Move sockets dependency...
17338         * modules/select (Depends-on): ...here.
17339         Reported by Ian Beckwith.
17340
17341         doc: regenerate INSTALL
17342         * doc/INSTALL: Reflect recent autoconf update.
17343         * doc/INSTALL.ISO: Likewise.
17344         * doc/INSTALL.UTF-8: Likewise.
17345
17346         pread: fix compilation on glibc
17347         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17348         Reported by Ralf Wildenhues.
17349
17350         dirent: fix test failure
17351         * lib/dirent.in.h (includes): Guarantee ino_t.
17352         Reported by Ralf Wildenhues.
17353
17354 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17355
17356         linkat, renameat: avoid bad free
17357         * lib/at-func2.c (at_func2): Fix typo.
17358         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17359
17360 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17361
17362         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17363         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17364         to avoid failure of symlink test later.
17365
17366 2010-01-06  Eric Blake  <ebb9@byu.net>
17367
17368         stdio, unistd: guarantee ssize_t
17369         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17370         2008 are exposed when needed.
17371         * lib/stdio.in.h (includes): Likewise.
17372         Reported by Ralf Wildenhues.
17373
17374 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17375
17376         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17377         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17378         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17379
17380 2010-01-06  Jim Meyering  <meyering@redhat.com>
17381
17382         readtokens: this module *does* require xalloc.h
17383         It uses only functions that were omitted by the old syntax-check rule.
17384         * lib/readtokens.c: Include "xalloc.h" once again.
17385         * modules/readtokens (Depends-on): Add xalloc.
17386         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17387
17388 2010-01-05  Eric Blake  <ebb9@byu.net>
17389
17390         maint: support 'make announcement' from a VPATH build
17391         * top/maint.mk (announcement): Look for correct NEWS file.
17392
17393 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17394
17395         utimens (fdutimens): ignore a negative FD, per contract
17396         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17397         when we have a valid file descriptor.  Otherwise, using a brand
17398         new glibc (with just-patched futimens that now fails with EBADF)
17399         would cause this function to fail with ENOSYS.
17400         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17401         See also http://bugzilla.redhat.com/552320.
17402
17403 2010-01-05  Eric Blake  <ebb9@byu.net>
17404
17405         strcase: document what it provides
17406         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17407         gnulib module.
17408         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17409         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17410
17411 2010-01-05  Jim Meyering  <meyering@redhat.com>
17412
17413         maint: remove useless inclusions of "xalloc.h"
17414         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17415         * lib/readtokens.c: Likewise.
17416         * lib/same.c: Likewise.
17417         * modules/getloadavg (Depends-on): Remove xalloc.
17418         * modules/readtokens: Likewise.
17419         * modules/same: Likewise.
17420
17421         maint.mk: include 4 more function names in alloca.h-checking regexp
17422         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
17423         regexp.  Before, we would give a false-positive (saying alloca.h
17424         is included unnecessarily) when the only uses involved omitted symbols.
17425
17426         xalloc.h: use consistent formatting
17427         * lib/xalloc.h: Move declarations to start in the first column.
17428
17429 2010-01-05  Eric Blake  <ebb9@byu.net>
17430
17431         mkdir: avoid xalloc
17432         * lib/mkdir.c (includes): Drop unused header.
17433         Reported by John W. Eaton.
17434
17435 2010-01-04  Jim Meyering  <meyering@redhat.com>
17436
17437         nl_langinfo: avoid configure-time syntax error
17438         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
17439         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
17440         the empty string.  Don't let that provoke a shell syntax error.
17441
17442         regcomp, regexec, fnmatch: avoid array bounds read error
17443         * lib/regcomp.c (build_equiv_class): From glibc:
17444         Use only the low 24 bits of a findidx return value as an index
17445         into the weights array.  Patch by Ulrich Drepper:
17446         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
17447         * lib/regexec.c (check_node_accept_bytes): Likewise.
17448         * lib/fnmatch_loop.c (FCT): Likewise.
17449
17450         regcomp: skip collseq lookup when there are no rules
17451         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
17452         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
17453
17454         regcomp: recognize ill-formed { } expressions
17455         * lib/regcomp.c (parse_dup_op): From glibc:
17456         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
17457
17458         regcomp: fix typo in comment
17459         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
17460         s/satisfy/satisfies/.
17461
17462         regcomp: sync from glibc: remove dead store
17463         * lib/regcomp.c (duplicate_node_closure): Remove useless
17464         search_duplicated_node call and dead store.
17465
17466         regcomp: sync from glibc; always use nl_langinfo
17467         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
17468         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
17469         * modules/regex (Depends-on): Add nl_langinfo.
17470
17471 2010-01-04  Eric Blake  <ebb9@byu.net>
17472
17473         fdopendir: fix configure test
17474         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
17475
17476 2010-01-01  Bruno Haible  <bruno@clisp.org>
17477
17478         wchar: Remove unused configure check.
17479         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
17480
17481 2010-01-01  Eric Blake  <ebb9@byu.net>
17482
17483         headers: make check of system header explicit
17484         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
17485         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
17486         ourselves.
17487         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17488         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17489         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
17490         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
17491         internals.
17492         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
17493         missing.
17494         Suggested by Bruno Haible.
17495
17496 2010-01-01  Jim Meyering  <meyering@redhat.com>
17497
17498         ChangeLog: tweak to eliminate unnecessary copyright line
17499         * ChangeLog: Remove a copyright line that was mistakenly updated
17500         by today's update-copyright run.  Reported by Eric Blake.
17501
17502         test-update-copyright: don't let envvar setting cause test failure
17503         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17504
17505 2010-01-01  Bruno Haible  <bruno@clisp.org>
17506
17507         localename: Avoid gcc warning.
17508         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
17509         function if it is not used.
17510
17511 2010-01-01  Jim Meyering  <meyering@redhat.com>
17512
17513         update nearly all FSF copyright year lists to include 2010
17514         Use the same procedure as for 2009, outlined in
17515         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
17516
17517         version-etc: set COPYRIGHT_YEAR to 2010
17518         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
17519
17520 2009-12-31  Eric Blake  <ebb9@byu.net>
17521
17522         doc: correct availability of cygwin 1.5.x getopt
17523         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
17524         variables.
17525         * doc/posix-functions/opterr.texi (opterr): Likewise.
17526         * doc/posix-functions/optind.texi (optind): Likewise.
17527         * doc/posix-functions/optopt.texi (optopt): Likewise.
17528         * doc/posix-functions/tzname.texi (tzname): Likewise.
17529
17530         openat: update maintainer
17531         * modules/openat (Maintainer): Add myself.
17532
17533         utimens: avoid shadowing warning
17534         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
17535         buffers into one, to avoid shadowing, as well as avoiding a
17536         redundant stat.
17537         Reported by Jim Meyering.
17538
17539         test-dup2: avoid compiler warning
17540         * tests/test-dup2.c (is_inheritable): Only define if used.
17541
17542 2010-01-01  Bruno Haible  <bruno@clisp.org>
17543
17544         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
17545         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
17546         defined, use wctomb instead of wcrtomb.
17547
17548 2010-01-01  Bruno Haible  <bruno@clisp.org>
17549
17550         iconv: Reject native Solaris iconv.
17551         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
17552         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
17553
17554 2009-12-31  Bruno Haible  <bruno@clisp.org>
17555
17556         * tests/test-signal.c (main): Remove test of 'SIG'.
17557
17558 2009-12-31  Bruno Haible  <bruno@clisp.org>
17559
17560         spawn: Fix incomplete fix.
17561         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17562         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17563         warnings for GNULIB_POSIXCHECK again.
17564         Reported by Eric Blake.
17565
17566 2009-12-31  Bruno Haible  <bruno@clisp.org>
17567
17568         Avoid namespace pollution on glibc systems.
17569         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
17570         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
17571         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
17572         glibc systems.
17573
17574 2009-12-31  Bruno Haible  <bruno@clisp.org>
17575
17576         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
17577         (gl_REPLACE_WCHAR_H): Turn into a no-op.
17578         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
17579         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17580         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17581         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17582         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17583
17584 2009-12-31  Bruno Haible  <bruno@clisp.org>
17585
17586         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17587         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
17588         afterwards.
17589
17590 2009-12-31  Bruno Haible  <bruno@clisp.org>
17591
17592         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
17593         SYS_UTSNAME_H.
17594
17595 2009-12-31  Bruno Haible  <bruno@clisp.org>
17596
17597         spawn: Fix misapplied patch.
17598         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17599         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17600         warnings for GNULIB_POSIXCHECK.
17601
17602 2009-12-31  Bruno Haible  <bruno@clisp.org>
17603
17604         times: Update after sys_times changed.
17605         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
17606         * modules/times (Files): Add it.
17607         (configure.ac): Invoke gl_FUNC_TIMES.
17608
17609 2009-12-31  Bruno Haible  <bruno@clisp.org>
17610
17611         Use AC_C_INLINE where necessary.
17612         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
17613         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17614         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17615         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17616         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17617         * m4/mbiter.m4 (gl_MBITER): Likewise.
17618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17619         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17620         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
17621         * modules/u64 (configure.ac): Likewise.
17622
17623 2009-12-31  Bruno Haible  <bruno@clisp.org>
17624
17625         Use AC_C_INLINE instead of module 'inline' where possible.
17626         * modules/inline (Description): Clarify purpose.
17627         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
17628         * modules/count-one-bits (Depends-on): Remove inline.
17629         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
17630         * modules/openat (Depends-on): Remove inline.
17631         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
17632         instead of depending on module 'inline'.
17633         * modules/filevercmp (Depends-on, configure.ac): Likewise.
17634         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
17635         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
17636         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
17637         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
17638         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
17639         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
17640         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
17641         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
17642         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
17643         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
17644         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
17645         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
17646         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
17647         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
17648         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
17649         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
17650         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
17651         Likewise.
17652         * modules/unictype/property-ascii-hex-digit (Depends-on,
17653         configure.ac): Likewise.
17654         * modules/unictype/property-bidi-arabic-digit (Depends-on,
17655         configure.ac): Likewise.
17656         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
17657         configure.ac): Likewise.
17658         * modules/unictype/property-bidi-block-separator (Depends-on,
17659         configure.ac): Likewise.
17660         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
17661         configure.ac): Likewise.
17662         * modules/unictype/property-bidi-common-separator (Depends-on,
17663         configure.ac): Likewise.
17664         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
17665         Likewise.
17666         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
17667         configure.ac): Likewise.
17668         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
17669         configure.ac): Likewise.
17670         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
17671         configure.ac): Likewise.
17672         * modules/unictype/property-bidi-european-digit (Depends-on,
17673         configure.ac): Likewise.
17674         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
17675         configure.ac): Likewise.
17676         * modules/unictype/property-bidi-left-to-right (Depends-on,
17677         configure.ac): Likewise.
17678         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
17679         configure.ac): Likewise.
17680         * modules/unictype/property-bidi-other-neutral (Depends-on,
17681         configure.ac): Likewise.
17682         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
17683         Likewise.
17684         * modules/unictype/property-bidi-segment-separator (Depends-on,
17685         configure.ac): Likewise.
17686         * modules/unictype/property-bidi-whitespace (Depends-on,
17687         configure.ac): Likewise.
17688         * modules/unictype/property-combining (Depends-on, configure.ac):
17689         Likewise.
17690         * modules/unictype/property-composite (Depends-on, configure.ac):
17691         Likewise.
17692         * modules/unictype/property-currency-symbol (Depends-on,
17693         configure.ac): Likewise.
17694         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
17695         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
17696         Likewise.
17697         * modules/unictype/property-default-ignorable-code-point (Depends-on,
17698         configure.ac): Likewise.
17699         * modules/unictype/property-deprecated (Depends-on, configure.ac):
17700         Likewise.
17701         * modules/unictype/property-diacritic (Depends-on, configure.ac):
17702         Likewise.
17703         * modules/unictype/property-extender (Depends-on, configure.ac):
17704         Likewise.
17705         * modules/unictype/property-format-control (Depends-on, configure.ac):
17706         Likewise.
17707         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
17708         Likewise.
17709         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
17710         Likewise.
17711         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
17712         Likewise.
17713         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
17714         Likewise.
17715         * modules/unictype/property-hyphen (Depends-on, configure.ac):
17716         Likewise.
17717         * modules/unictype/property-id-continue (Depends-on, configure.ac):
17718         Likewise.
17719         * modules/unictype/property-id-start (Depends-on, configure.ac):
17720         Likewise.
17721         * modules/unictype/property-ideographic (Depends-on, configure.ac):
17722         Likewise.
17723         * modules/unictype/property-ids-binary-operator (Depends-on,
17724         configure.ac): Likewise.
17725         * modules/unictype/property-ids-trinary-operator (Depends-on,
17726         configure.ac): Likewise.
17727         * modules/unictype/property-ignorable-control (Depends-on,
17728         configure.ac): Likewise.
17729         * modules/unictype/property-iso-control (Depends-on, configure.ac):
17730         Likewise.
17731         * modules/unictype/property-join-control (Depends-on, configure.ac):
17732         Likewise.
17733         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
17734         Likewise.
17735         * modules/unictype/property-line-separator (Depends-on, configure.ac):
17736         Likewise.
17737         * modules/unictype/property-logical-order-exception (Depends-on,
17738         configure.ac): Likewise.
17739         * modules/unictype/property-lowercase (Depends-on, configure.ac):
17740         Likewise.
17741         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
17742         * modules/unictype/property-non-break (Depends-on, configure.ac):
17743         Likewise.
17744         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
17745         Likewise.
17746         * modules/unictype/property-numeric (Depends-on, configure.ac):
17747         Likewise.
17748         * modules/unictype/property-other-alphabetic (Depends-on,
17749         configure.ac): Likewise.
17750         * modules/unictype/property-other-default-ignorable-code-point
17751         (Depends-on, configure.ac): Likewise.
17752         * modules/unictype/property-other-grapheme-extend (Depends-on,
17753         configure.ac): Likewise.
17754         * modules/unictype/property-other-id-continue (Depends-on,
17755         configure.ac): Likewise.
17756         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
17757         Likewise.
17758         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
17759         Likewise.
17760         * modules/unictype/property-other-math (Depends-on, configure.ac):
17761         Likewise.
17762         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
17763         Likewise.
17764         * modules/unictype/property-paired-punctuation (Depends-on,
17765         configure.ac): Likewise.
17766         * modules/unictype/property-paragraph-separator (Depends-on,
17767         configure.ac): Likewise.
17768         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
17769         Likewise.
17770         * modules/unictype/property-pattern-white-space (Depends-on,
17771         configure.ac): Likewise.
17772         * modules/unictype/property-private-use (Depends-on, configure.ac):
17773         Likewise.
17774         * modules/unictype/property-punctuation (Depends-on, configure.ac):
17775         Likewise.
17776         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
17777         Likewise.
17778         * modules/unictype/property-radical (Depends-on, configure.ac):
17779         Likewise.
17780         * modules/unictype/property-sentence-terminal (Depends-on,
17781         configure.ac): Likewise.
17782         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
17783         Likewise.
17784         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
17785         * modules/unictype/property-terminal-punctuation (Depends-on,
17786         configure.ac): Likewise.
17787         * modules/unictype/property-titlecase (Depends-on, configure.ac):
17788         Likewise.
17789         * modules/unictype/property-unassigned-code-value (Depends-on,
17790         configure.ac): Likewise.
17791         * modules/unictype/property-unified-ideograph (Depends-on,
17792         configure.ac): Likewise.
17793         * modules/unictype/property-uppercase (Depends-on, configure.ac):
17794         Likewise.
17795         * modules/unictype/property-variation-selector (Depends-on,
17796         configure.ac): Likewise.
17797         * modules/unictype/property-white-space (Depends-on, configure.ac):
17798         Likewise.
17799         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
17800         Likewise.
17801         * modules/unictype/property-xid-start (Depends-on, configure.ac):
17802         Likewise.
17803         * modules/unictype/property-zero-width (Depends-on, configure.ac):
17804         Likewise.
17805         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
17806         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
17807         Likewise.
17808
17809 2009-12-31  Bruno Haible  <bruno@clisp.org>
17810
17811         Remove unnecessary AC_C_INLINE invocation.
17812         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
17813         since 2009-08-21.
17814
17815 2009-12-31  Jim Meyering  <meyering@redhat.com>
17816
17817         maint.mk: don't require explicit gpg_key_ID in cfg.mk
17818         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
17819         With this change, we can all remove the gpg_key_ID = ... definition
17820         from our respective cfg.mk files.
17821
17822         maint.mk: create announcement template in ~/, not in /tmp
17823         * top/maint.mk (emit_upload_commands): Adjust.
17824         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
17825         Remove temporary file, .ci-msg.
17826
17827 2009-12-31  Eric Blake  <ebb9@byu.net>
17828
17829         link-warning: always build headers with link warnings
17830         * modules/arpa_inet (Makefile.am): Always build replacement
17831         header.
17832         * modules/ctype (Makefile.am): Likewise.
17833         * modules/dirent (Makefile.am): Likewise.
17834         * modules/inttypes (Makefile.am): Likewise.
17835         * modules/langinfo (Makefile.am): Likewise.
17836         * modules/locale (Makefile.am): Likewise.
17837         * modules/spawn (Makefile.am): Likewise.
17838         * modules/sys_file (Makefile.am): Likewise.
17839         * modules/sys_ioctl (Makefile.am): Likewise.
17840         * modules/sys_select (Makefile.am): Likewise.
17841         * modules/sys_socket (Makefile.am): Likewise.
17842         * modules/sys_times (Makefile.am): Likewise.
17843         * modules/sys_utsname (Makefile.am): Likewise.
17844         * modules/sys_wait (Makefile.am): Likewise.
17845         * modules/wchar (Makefile.am): Likewise.
17846         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
17847         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
17848         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
17849         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
17850         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
17851         Likewise.
17852         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17853         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17854         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
17855         Likewise.
17856         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
17857         Likewise.
17858         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17859         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
17860         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
17861         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17862         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17863         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17864         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17865         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
17866         (gl_WCHAR_H_DEFAULTS): Likewise.
17867
17868 2009-12-31  Eric Blake  <ebb9@byu.net>
17869
17870         signal, spawn: use link warnings
17871         * lib/signal.in.h (sigset_t): Make unconditional.
17872         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
17873         (sigpending, sigprocmask, sigaction): Add link warnings.
17874         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
17875         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
17876         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
17877         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
17878         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
17879         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
17880         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
17881         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
17882         (posix_spawn_file_actions_destroy)
17883         (posix_spawn_file_actions_addopen)
17884         (posix_spawn_file_actions_addclose)
17885         (posix_spawn_file_actions_adddup2): Likewise.
17886         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
17887         * tests/test-signal.c (main): Enhance test.
17888
17889         spawn: improve wrapper support
17890         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
17891         (gl_SPAWN_H_DEFAULTS): New defaults.
17892         * modules/spawn (Makefile.am): Substitute them.
17893         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
17894         Only declare if missing or broken.
17895
17896         sys_times, sys_utsname: use include_next
17897         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
17898         header.
17899         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
17900         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17901         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17902         * modules/sys_times (Depends-on): Add include_next.
17903         (Makefile.am): Substitute additional values.
17904         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17905         * lib/sys_times.in.h (includes): Include native header, if
17906         available.
17907         * lib/sys_utsname.in.h (includes): Likewise.
17908         * tests/test-sys_times.c (main): Enhance test.
17909
17910         fdutimensat: revert prior patch
17911         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
17912         utimens.h.
17913         Reported by Bruno Haible.
17914
17915 2009-12-30  Eric Blake  <ebb9@byu.net>
17916
17917         sys_wait: drop link-warning dependency
17918         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
17919         link-warning efforts.
17920         * lib/sys_wait.in.h: Likewise.
17921
17922         fdutimensat: remove bogus dependency
17923         * modules/fdutimensat (Depends-on): Drop inline.
17924
17925         unistd: fix typo
17926         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
17927
17928 2009-12-30  Bruno Haible  <bruno@clisp.org>
17929
17930         Fix compilation error with Solaris cc.
17931         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
17932         * lib/unicase/u16-is-invariant.c: Likewise.
17933         * lib/unicase/u32-is-invariant.c: Likewise.
17934         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17935
17936 2009-12-30  Bruno Haible  <bruno@clisp.org>
17937
17938         Fix test crash.
17939         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
17940         locales.
17941         Reported by Simon Josefsson <simon@josefsson.org>.
17942
17943 2009-12-30  Bruno Haible  <bruno@clisp.org>
17944
17945         Fix compilation error on most platforms.
17946         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
17947         Reported by Simon Josefsson <simon@josefsson.org>
17948         and Nelson H. F. Beebe <beebe@math.utah.edu>.
17949
17950 2009-12-30  Eric Blake  <ebb9@byu.net>
17951
17952         futimens, utimensat: work around ntfs-3g bug
17953         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
17954         a ctime bug is present, and expand workaround to cover ntfs-3g.
17955         * lib/utimens.c (fdutimens, lutimens): Likewise.
17956         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
17957         (validate_timespec): Adjust return value.
17958         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
17959         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17960         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
17961
17962 2009-12-29  Eric Blake  <ebb9@byu.net>
17963
17964         link-warning: make usage consistent
17965         * modules/ctype (Depends-on): Add link-warning.
17966         (Makefile.am): Update rules accordingly.
17967         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17968         * modules/locale (Depends-on, Makefile.am): Likewise.
17969         * modules/sys_file (Makefile.am): Likewise.
17970         * modules/getopt-posix (Makefile.am): Delete unused link warning
17971         efforts.
17972         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
17973         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
17974         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
17975         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
17976
17977         stdio: remove unused variables
17978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
17979         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
17980         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17981
17982         tests: test more substitute headers
17983         * modules/ctype-tests: New file.
17984         * modules/dirent-tests: Likewise.
17985         * modules/spawn-tests: Likewise.
17986         * modules/sys_file-tests: Likewise.
17987         * modules/sys_ioctl-tests: Likewise.
17988         * modules/sys_wait-tests: Likewise.
17989         * tests/test-ctype.c: Likewise.
17990         * tests/test-dirent.c: Likewise.
17991         * tests/test-spawn.c: Likewise.
17992         * tests/test-sys_file.c: Likewise.
17993         * tests/test-sys_ioctl.c: Likewise.
17994         * tests/test-sys_wait.c: Likewise.
17995         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
17996         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
17997         whether or not flock is in use.
17998
17999         tests: remove License section from module
18000         * modules/arpa_inet-tests: Remove unneeded section.
18001         * modules/byteswap-tests: Likewise.
18002         * modules/ceilf-tests: Likewise.
18003         * modules/ceill-tests: Likewise.
18004         * modules/crypto/des-tests: Likewise.
18005         * modules/crypto/gc-arcfour-tests: Likewise.
18006         * modules/crypto/gc-arctwo-tests: Likewise.
18007         * modules/crypto/gc-des-tests: Likewise.
18008         * modules/crypto/gc-hmac-md5-tests: Likewise.
18009         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18010         * modules/crypto/gc-md2-tests: Likewise.
18011         * modules/crypto/gc-md4-tests: Likewise.
18012         * modules/crypto/gc-md5-tests: Likewise.
18013         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18014         * modules/crypto/gc-rijndael-tests: Likewise.
18015         * modules/crypto/gc-sha1-tests: Likewise.
18016         * modules/crypto/gc-tests: Likewise.
18017         * modules/crypto/md2-tests: Likewise.
18018         * modules/crypto/md4-tests: Likewise.
18019         * modules/fcntl-h-tests: Likewise.
18020         * modules/floorf-tests: Likewise.
18021         * modules/floorl-tests: Likewise.
18022         * modules/frexp-nolibm-tests: Likewise.
18023         * modules/frexp-tests: Likewise.
18024         * modules/frexpl-nolibm-tests: Likewise.
18025         * modules/frexpl-tests: Likewise.
18026         * modules/getaddrinfo-tests: Likewise.
18027         * modules/inttypes-tests: Likewise.
18028         * modules/isfinite-tests: Likewise.
18029         * modules/isinf-tests: Likewise.
18030         * modules/ldexpl-tests: Likewise.
18031         * modules/locale-tests: Likewise.
18032         * modules/math-tests: Likewise.
18033         * modules/netdb-tests: Likewise.
18034         * modules/netinet_in-tests: Likewise.
18035         * modules/printf-frexp-tests: Likewise.
18036         * modules/printf-frexpl-tests: Likewise.
18037         * modules/priv-set-tests: Likewise.
18038         * modules/random_r-tests: Likewise.
18039         * modules/round-tests: Likewise.
18040         * modules/roundf-tests: Likewise.
18041         * modules/roundl-tests: Likewise.
18042         * modules/search-tests: Likewise.
18043         * modules/select-tests: Likewise.
18044         * modules/signal-tests: Likewise.
18045         * modules/stdbool-tests: Likewise.
18046         * modules/stddef-tests: Likewise.
18047         * modules/stdint-tests: Likewise.
18048         * modules/stdio-tests: Likewise.
18049         * modules/stdlib-tests: Likewise.
18050         * modules/string-tests: Likewise.
18051         * modules/strings-tests: Likewise.
18052         * modules/sys_select-tests: Likewise.
18053         * modules/sys_socket-tests: Likewise.
18054         * modules/sys_stat-tests: Likewise.
18055         * modules/sys_time-tests: Likewise.
18056         * modules/sys_utsname-tests: Likewise.
18057         * modules/sysexits-tests: Likewise.
18058         * modules/time-tests: Likewise.
18059         * modules/trunc-tests: Likewise.
18060         * modules/truncf-tests: Likewise.
18061         * modules/truncl-tests: Likewise.
18062         * modules/tsearch-tests: Likewise.
18063         * modules/unistd-tests: Likewise.
18064         * modules/wchar-tests: Likewise.
18065         * modules/wctype-tests: Likewise.
18066
18067         tests: fix license on several tests
18068         * tests/test-des.c: Update to GPLv3+.
18069         * tests/test-flock.c: Likewise.
18070         * tests/test-fsync.c: Likewise.
18071         * tests/test-futimens.h: Likewise.
18072         * tests/test-gc-arcfour.c: Likewise.
18073         * tests/test-gc-arctwo.c: Likewise.
18074         * tests/test-gc-des.c: Likewise.
18075         * tests/test-gc-hmac-md5.c: Likewise.
18076         * tests/test-gc-hmac-sha1.c: Likewise.
18077         * tests/test-gc-md2.c: Likewise.
18078         * tests/test-gc-md4.c: Likewise.
18079         * tests/test-gc-md5.c: Likewise.
18080         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18081         * tests/test-gc-rijndael.c: Likewise.
18082         * tests/test-gc-sha1.c: Likewise.
18083         * tests/test-gc.c: Likewise.
18084         * tests/test-getcwd.c: Likewise.
18085         * tests/test-link.c: Likewise.
18086         * tests/test-link.h: Likewise.
18087         * tests/test-lutimens.h: Likewise.
18088         * tests/test-md2.c: Likewise.
18089         * tests/test-md4.c: Likewise.
18090         * tests/test-mkdir.h: Likewise.
18091         * tests/test-rename.c: Likewise.
18092         * tests/test-rename.h: Likewise.
18093         * tests/test-safe-alloc.c: Likewise.
18094         * tests/test-utimens-common.h: Likewise.
18095         * tests/test-utimens.h: Likewise.
18096
18097         maint: sync license texts
18098         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18099         * doc/gpl-3.0.texi: Revert copyright year update.
18100         * doc/lgpl-3.0.texi: Likewise.
18101
18102 2009-12-29  Jim Meyering  <meyering@redhat.com>
18103
18104         update nearly all FSF copyright year lists to include 2009
18105         The files named by the following are exempted:
18106             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18107               test -f "$dst" && { echo "$dst"; continue; }
18108               test -d "$dst" || continue
18109               echo "$dst"/$(basename "$src")
18110             done > exempt
18111             git ls-files tests/unictype >> exempt
18112         In the remaining files, convert to all-interval notation if
18113         - there is already at least one year interval like 2000-2003
18114         - the file is maintained by me
18115         - the file is in lib/uni*/, where that style already prevails
18116         Otherwise, use update-copyright's default.
18117
18118 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18119         and Eric Blake  <ebb9@byu.net>
18120
18121         tests: don't require debug system() to pass
18122         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18123         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18124         * tests/test-unlink.h (test_unlink_func): Likewise.
18125         * tests/test-fstatat.c (main): ...into callers.
18126         * tests/test-lstat.c (main): Likewise.
18127         * tests/test-rmdir.c (main): Likewise.
18128         * tests/test-unlink.c (main): Likewise.
18129         * tests/test-unlinkat.c (main): Likewise.
18130         * tests/test-areadlink-with-size.c (main): Don't require a
18131         debug-only system call to pass, aiding cross-testing to mingw.
18132         * tests/test-areadlink.c (main): Likewise.
18133         * tests/test-areadlinkat-with-size.c (main): Likewise.
18134         * tests/test-areadlinkat.c (main): Likewise.
18135         * tests/test-canonicalize-lgpl.c (main): Likewise.
18136         * tests/test-canonicalize.c (main): Likewise.
18137         * tests/test-chown.c (main): Likewise.
18138         * tests/test-fchownat.c (main): Likewise.
18139         * tests/test-lchown.c (main): Likewise.
18140         * tests/test-fdutimensat.c (main): Likewise.
18141         * tests/test-futimens.c (main): Likewise.
18142         * tests/test-link.c (main): Likewise.
18143         * tests/test-linkat.c (main): Likewise.
18144         * tests/test-mkdir.c (main): Likewise.
18145         * tests/test-mkdirat.c (main): Likewise.
18146         * tests/test-mkfifo.c (main): Likewise.
18147         * tests/test-mkfifoat.c (main): Likewise.
18148         * tests/test-mknod.c (main): Likewise.
18149         * tests/test-readlink.c (main): Likewise.
18150         * tests/test-remove.c (main): Likewise.
18151         * tests/test-rename.c (main): Likewise.
18152         * tests/test-renameat.c (main): Likewise.
18153         * tests/test-symlink.c (main): Likewise.
18154         * tests/test-symlinkat.c (main): Likewise.
18155         * tests/test-utimens.c (main): Likewise.
18156         * tests/test-utimensat.c (main): Likewise.
18157
18158 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18159
18160         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18161         on $(UNUSED_PARAMETER_H) to avoid build failure.
18162
18163 2009-12-28  Jim Meyering  <meyering@redhat.com>
18164
18165         update-copyright: you may specify a max. line length other than 72
18166         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18167
18168         maint: use consistent FSF copyright line syntax
18169         * lib/posixtm.c: Add missing comma in FSF copyright line.
18170         * lib/posixtm.h: Likewise.
18171         * lib/getugroups.c: Add missing ", Inc.".
18172
18173         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18174         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18175         FSF copyright line.  Remove trailing blanks.
18176
18177 2009-12-28  Eric Blake  <ebb9@byu.net>
18178
18179         test-dup2: reduce dependencies
18180         * modules/cloexec (Configure.ac): Set witness.
18181         * modules/dup2-tests (Depends-on): Drop cloexec.
18182         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18183         not present.
18184         Suggested by Bruno Haible.
18185
18186 2009-12-26  Bruno Haible  <bruno@clisp.org>
18187
18188         Remove an unneeded dependency.
18189         * modules/fseterr (Depends-on): Remove dup2.
18190
18191 2009-12-26  Eric Blake  <ebb9@byu.net>
18192
18193         tests: use macros.h in more places
18194         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18195         (ASSERT_STREAM): Provide default of stderr.
18196         * tests/test-dirent-safer.c: Include macros.h, using alternate
18197         stream for assertions.
18198         * tests/test-dup-safer.c: Likewise.
18199         * tests/test-freopen-safer.c: Likewise.
18200         * tests/test-getopt.c: Likewise.
18201         * tests/test-openat-safer.c: Likewise.
18202         * tests/test-pipe.c: Likewise.
18203         * tests/test-popen-safer.c: Likewise.
18204         * modules/dirent-safer-tests (Files): Include macros.h.
18205         * modules/unistd-safer-tests (Files): Likewise.
18206         * modules/freopen-safer-tests (Files): Likewise.
18207         * modules/getopt-posix-tests (Files): Likewise.
18208         * modules/openat-safer-tests (Files): Likewise.
18209         * modules/pipe-tests (Files): Likewise.
18210
18211 2009-12-26  Bruno Haible  <bruno@clisp.org>
18212
18213         javacomp: Portability fix.
18214         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18215         that it also works on Solaris.
18216
18217 2009-12-26  Bruno Haible  <bruno@clisp.org>
18218
18219         localename: Fix storage allocation of gl_locale_name_thread's result.
18220         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18221         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18222         all platforms that have 'uselocale'.
18223         (gl_locale_name_thread_unsafe): New function, extracted from
18224         gl_locale_name_thread.
18225         (gl_locale_name_thread): Call struniq on all platforms that have
18226         'uselocale'.
18227         * tests/test-localename.c (test_locale_name_thread): Check that the
18228         resulting strings are permanently allocated.
18229         * modules/localename-tests (Depends-on): Add strdup.
18230
18231 2009-12-26  Bruno Haible  <bruno@clisp.org>
18232
18233         * tests/test-localename.c (categories): Fill in the strings.
18234
18235 2009-12-26  Jim Meyering  <meyering@redhat.com>
18236
18237         isdir: complete the removal of m4/isdir.m4
18238         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18239
18240         isdir: clean up, since at least grep still uses it
18241         * lib/isdir.c: Include "isdir.h".
18242         (S_ISDIR): Remove now-unneeded definition.
18243         * modules/isdir (Files): Add lib/isdir.h.
18244         * lib/isdir.h: New file, with declaration.
18245         * m4/isdir.m4: Remove file -- unneeded.
18246
18247 2009-12-25  Bruno Haible  <bruno@clisp.org>
18248
18249         selinux-h: Make generated .h files standalone.
18250         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18251         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18252         * lib/se-selinux.in.h: Likewise.
18253         * modules/selinux-h (Depends-on): Add unused-parameter.
18254         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18255         selinux/selinux.h and selinux/context.h.
18256         Suggested by Eric Blake.
18257
18258 2009-12-25  Bruno Haible  <bruno@clisp.org>
18259
18260         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18261         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18262         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18263         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18264         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18265
18266 2009-12-24  Bruno Haible  <bruno@clisp.org>
18267
18268         openat: Fix warning.
18269         * lib/openat-proc.c: Include <unistd.h>.
18270
18271 2009-12-24  Bruno Haible  <bruno@clisp.org>
18272
18273         New module 'unused-parameter'.
18274         * build-aux/unused-parameter.h: New file, extracted from earlier
18275         gnulib-common.m4.
18276         * modules/unused-parameter: New file.
18277         * lib/unistr.h: Include unused-parameter.h.
18278         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18279         _GL_UNUSED.
18280         * modules/unistr/base (Depends-on): Add unused-parameter.
18281
18282 2009-12-24  Bruno Haible  <bruno@clisp.org>
18283
18284         Add missing dependencies to 'extensions' module.
18285         * m4/extensions.m4: Add comment.
18286         * modules/accept4 (Depends-on): Add extensions.
18287         * modules/dup3 (Depends-on): Likewise.
18288         * modules/fcntl (Depends-on): Likewise.
18289         * modules/futimens (Depends-on): Likewise.
18290         * modules/mknod (Depends-on): Likewise.
18291         * modules/pipe2 (Depends-on): Likewise.
18292         * modules/stat-time (Depends-on): Likewise.
18293         * modules/strcasestr-simple (Depends-on): Likewise.
18294         * modules/strsignal (Depends-on): Likewise.
18295         * modules/utimensat (Depends-on): Likewise.
18296         * modules/localcharset (Depends-on): Likewise. Needed because of
18297         gl_FCNTL_O_FLAGS.
18298         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18299         AC_TYPE_MBSTATE_T.
18300         * modules/wcsnrtombs (Depends-on): Likewise.
18301         * modules/wcsrtombs (Depends-on): Likewise.
18302
18303 2009-12-24  Bruno Haible  <bruno@clisp.org>
18304
18305         binary-io: Avoid gcc warning due to SET_BINARY.
18306         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18307         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18308
18309 2009-12-24  Bruno Haible  <bruno@clisp.org>
18310
18311         Avoid future namespace pollution on glibc systems.
18312         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18313         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18314         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18315         glibc systems.
18316
18317 2009-12-24  Bruno Haible  <bruno@clisp.org>
18318
18319         Refactor common macros used in tests.
18320         * tests/macros.h: New file.
18321         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18322         and/or <stdlib.h>, if appropriate.
18323         (ASSERT, SIZEOF): Remove macros.
18324         * tests/test-areadlink-with-size.c: Likewise.
18325         * tests/test-areadlinkat.c: Likewise.
18326         * tests/test-areadlinkat-with-size.c: Likewise.
18327         * tests/test-argmatch.c: Likewise.
18328         * tests/test-argv-iter.c: Likewise.
18329         * tests/test-array-mergesort.c: Likewise.
18330         * tests/test-array_list.c: Likewise.
18331         * tests/test-array_oset.c: Likewise.
18332         * tests/test-avltree_list.c: Likewise.
18333         * tests/test-avltree_oset.c: Likewise.
18334         * tests/test-avltreehash_list.c: Likewise.
18335         * tests/test-base64.c: Likewise.
18336         * tests/test-binary-io.c: Likewise.
18337         * tests/test-bitrotate.c: Likewise.
18338         * tests/test-btowc.c: Likewise.
18339         * tests/test-byteswap.c: Likewise.
18340         * tests/test-c-ctype.c: Likewise.
18341         * tests/test-c-stack.c: Likewise.
18342         * tests/test-c-strcasecmp.c: Likewise.
18343         * tests/test-c-strcasestr.c: Likewise.
18344         * tests/test-c-strncasecmp.c: Likewise.
18345         * tests/test-c-strstr.c: Likewise.
18346         * tests/test-canonicalize-lgpl.c: Likewise.
18347         * tests/test-canonicalize.c: Likewise.
18348         * tests/test-carray_list.c: Likewise.
18349         * tests/test-ceilf1.c: Likewise.
18350         * tests/test-ceilf2.c: Likewise.
18351         * tests/test-ceill.c: Likewise.
18352         * tests/test-chown.c: Likewise.
18353         * tests/test-cloexec.c: Likewise.
18354         * tests/test-copy-acl.c: Likewise.
18355         * tests/test-copy-file.c: Likewise.
18356         * tests/test-count-one-bits.c: Likewise.
18357         * tests/test-dprintf-posix.c: Likewise.
18358         * tests/test-dup2.c: Likewise.
18359         * tests/test-dup3.c: Likewise.
18360         * tests/test-duplocale.c: Likewise.
18361         * tests/test-fbufmode.c: Likewise.
18362         * tests/test-fchdir.c: Likewise.
18363         * tests/test-fchownat.c: Likewise.
18364         * tests/test-fcntl-safer.c: Likewise.
18365         * tests/test-fcntl.c: Likewise.
18366         * tests/test-fdopendir.c: Likewise.
18367         * tests/test-fdutimensat.c: Likewise.
18368         * tests/test-fflush2.c: Likewise.
18369         * tests/test-file-has-acl.c: Likewise.
18370         * tests/test-filevercmp.c: Likewise.
18371         * tests/test-flock.c: Likewise.
18372         * tests/test-floorf1.c: Likewise.
18373         * tests/test-floorf2.c: Likewise.
18374         * tests/test-floorl.c: Likewise.
18375         * tests/test-fnmatch.c: Likewise.
18376         * tests/test-fopen.h: Likewise.
18377         * tests/test-fpending.c: Likewise.
18378         * tests/test-fprintf-posix.c: Likewise.
18379         * tests/test-fpurge.c: Likewise.
18380         * tests/test-freadable.c: Likewise.
18381         * tests/test-freadahead.c: Likewise.
18382         * tests/test-freading.c: Likewise.
18383         * tests/test-freadptr.c: Likewise.
18384         * tests/test-freadptr2.c: Likewise.
18385         * tests/test-freadseek.c: Likewise.
18386         * tests/test-freopen.c: Likewise.
18387         * tests/test-frexp.c: Likewise.
18388         * tests/test-frexpl.c: Likewise.
18389         * tests/test-fseek.c: Likewise.
18390         * tests/test-fseeko.c: Likewise.
18391         * tests/test-fstatat.c: Likewise.
18392         * tests/test-fstrcmp.c: Likewise.
18393         * tests/test-fsync.c: Likewise.
18394         * tests/test-ftell.c: Likewise.
18395         * tests/test-ftello.c: Likewise.
18396         * tests/test-func.c: Likewise.
18397         * tests/test-futimens.c: Likewise.
18398         * tests/test-fwritable.c: Likewise.
18399         * tests/test-fwriting.c: Likewise.
18400         * tests/test-getcwd.c: Likewise.
18401         * tests/test-getdate.c: Likewise.
18402         * tests/test-getdelim.c: Likewise.
18403         * tests/test-getdtablesize.c: Likewise.
18404         * tests/test-getgroups.c: Likewise.
18405         * tests/test-getline.c: Likewise.
18406         * tests/test-getndelim2.c: Likewise.
18407         * tests/test-glob.c: Likewise.
18408         * tests/test-hash.c: Likewise.
18409         * tests/test-i-ring.c: Likewise.
18410         * tests/test-iconv-utf.c: Likewise.
18411         * tests/test-iconv.c: Likewise.
18412         * tests/test-idpriv-drop.c: Likewise.
18413         * tests/test-idpriv-droptemp.c: Likewise.
18414         * tests/test-inet_ntop.c: Likewise.
18415         * tests/test-inet_pton.c: Likewise.
18416         * tests/test-isblank.c: Likewise.
18417         * tests/test-isfinite.c: Likewise.
18418         * tests/test-isinf.c: Likewise.
18419         * tests/test-isnan.c: Likewise.
18420         * tests/test-isnand.h: Likewise.
18421         * tests/test-isnanf.h: Likewise.
18422         * tests/test-isnanl.h: Likewise.
18423         * tests/test-lchown.c: Likewise.
18424         * tests/test-ldexpl.c: Likewise.
18425         * tests/test-link.c: Likewise.
18426         * tests/test-linkat.c: Likewise.
18427         * tests/test-linked_list.c: Likewise.
18428         * tests/test-linkedhash_list.c: Likewise.
18429         * tests/test-localename.c: Likewise.
18430         * tests/test-lseek.c: Likewise.
18431         * tests/test-lstat.c: Likewise.
18432         * tests/test-mbmemcasecmp.c: Likewise.
18433         * tests/test-mbmemcasecoll.c: Likewise.
18434         * tests/test-mbrtowc.c: Likewise.
18435         * tests/test-mbscasecmp.c: Likewise.
18436         * tests/test-mbscasestr1.c: Likewise.
18437         * tests/test-mbscasestr2.c: Likewise.
18438         * tests/test-mbscasestr3.c: Likewise.
18439         * tests/test-mbscasestr4.c: Likewise.
18440         * tests/test-mbschr.c: Likewise.
18441         * tests/test-mbscspn.c: Likewise.
18442         * tests/test-mbsinit.c: Likewise.
18443         * tests/test-mbsncasecmp.c: Likewise.
18444         * tests/test-mbsnrtowcs.c: Likewise.
18445         * tests/test-mbspbrk.c: Likewise.
18446         * tests/test-mbspcasecmp.c: Likewise.
18447         * tests/test-mbsrchr.c: Likewise.
18448         * tests/test-mbsrtowcs.c: Likewise.
18449         * tests/test-mbsspn.c: Likewise.
18450         * tests/test-mbsstr1.c: Likewise.
18451         * tests/test-mbsstr2.c: Likewise.
18452         * tests/test-mbsstr3.c: Likewise.
18453         * tests/test-memchr.c: Likewise.
18454         * tests/test-memchr2.c: Likewise.
18455         * tests/test-memcmp.c: Likewise.
18456         * tests/test-memmem.c: Likewise.
18457         * tests/test-memrchr.c: Likewise.
18458         * tests/test-mkdir.c: Likewise.
18459         * tests/test-mkdirat.c: Likewise.
18460         * tests/test-mkfifo.c: Likewise.
18461         * tests/test-mkfifoat.c: Likewise.
18462         * tests/test-mknod.c: Likewise.
18463         * tests/test-nanosleep.c: Likewise.
18464         * tests/test-nl_langinfo.c: Likewise.
18465         * tests/test-obstack-printf.c: Likewise.
18466         * tests/test-open.c: Likewise.
18467         * tests/test-openat.c: Likewise.
18468         * tests/test-pipe-filter-gi1.c: Likewise.
18469         * tests/test-pipe-filter-gi2-main.c: Likewise.
18470         * tests/test-pipe-filter-ii1.c: Likewise.
18471         * tests/test-pipe-filter-ii2-main.c: Likewise.
18472         * tests/test-pipe2.c: Likewise.
18473         * tests/test-popen.h: Likewise.
18474         * tests/test-posixtm.c: Likewise.
18475         * tests/test-pread.c: Likewise.
18476         * tests/test-printf-frexp.c: Likewise.
18477         * tests/test-printf-frexpl.c: Likewise.
18478         * tests/test-printf-posix.c: Likewise.
18479         * tests/test-priv-set.c: Likewise.
18480         * tests/test-quotearg.c: Likewise.
18481         * tests/test-random_r.c: Likewise.
18482         * tests/test-rawmemchr.c: Likewise.
18483         * tests/test-rbtree_list.c: Likewise.
18484         * tests/test-rbtree_oset.c: Likewise.
18485         * tests/test-rbtreehash_list.c: Likewise.
18486         * tests/test-readlink.c: Likewise.
18487         * tests/test-remove.c: Likewise.
18488         * tests/test-rename.c: Likewise.
18489         * tests/test-renameat.c: Likewise.
18490         * tests/test-rmdir.c: Likewise.
18491         * tests/test-round1.c: Likewise.
18492         * tests/test-roundf1.c: Likewise.
18493         * tests/test-roundl.c: Likewise.
18494         * tests/test-safe-alloc.c: Likewise.
18495         * tests/test-sameacls.c: Likewise.
18496         * tests/test-set-mode-acl.c: Likewise.
18497         * tests/test-setenv.c: Likewise.
18498         * tests/test-sigaction.c: Likewise.
18499         * tests/test-signbit.c: Likewise.
18500         * tests/test-sleep.c: Likewise.
18501         * tests/test-snprintf-posix.c: Likewise.
18502         * tests/test-snprintf.c: Likewise.
18503         * tests/test-sprintf-posix.c: Likewise.
18504         * tests/test-stat-time.c: Likewise.
18505         * tests/test-stat.c: Likewise.
18506         * tests/test-strcasestr.c: Likewise.
18507         * tests/test-strchrnul.c: Likewise.
18508         * tests/test-strerror.c: Likewise.
18509         * tests/test-striconv.c: Likewise.
18510         * tests/test-striconveh.c: Likewise.
18511         * tests/test-striconveha.c: Likewise.
18512         * tests/test-strsignal.c: Likewise.
18513         * tests/test-strstr.c: Likewise.
18514         * tests/test-strtod.c: Likewise.
18515         * tests/test-strverscmp.c: Likewise.
18516         * tests/test-symlink.c: Likewise.
18517         * tests/test-symlinkat.c: Likewise.
18518         * tests/test-trunc1.c: Likewise.
18519         * tests/test-trunc2.c: Likewise.
18520         * tests/test-truncf1.c: Likewise.
18521         * tests/test-truncf2.c: Likewise.
18522         * tests/test-truncl.c: Likewise.
18523         * tests/test-uname.c: Likewise.
18524         * tests/test-unlink.c: Likewise.
18525         * tests/test-unlinkat.c: Likewise.
18526         * tests/test-unsetenv.c: Likewise.
18527         * tests/test-usleep.c: Likewise.
18528         * tests/test-utimens.c: Likewise.
18529         * tests/test-utimensat.c: Likewise.
18530         * tests/test-vasnprintf-posix.c: Likewise.
18531         * tests/test-vasnprintf-posix2.c: Likewise.
18532         * tests/test-vasnprintf.c: Likewise.
18533         * tests/test-vasprintf-posix.c: Likewise.
18534         * tests/test-vasprintf.c: Likewise.
18535         * tests/test-vdprintf-posix.c: Likewise.
18536         * tests/test-vfprintf-posix.c: Likewise.
18537         * tests/test-vprintf-posix.c: Likewise.
18538         * tests/test-vsnprintf-posix.c: Likewise.
18539         * tests/test-vsnprintf.c: Likewise.
18540         * tests/test-vsprintf-posix.c: Likewise.
18541         * tests/test-wcrtomb.c: Likewise.
18542         * tests/test-wcsnrtombs.c: Likewise.
18543         * tests/test-wcsrtombs.c: Likewise.
18544         * tests/test-wctype.c: Likewise.
18545         * tests/test-wcwidth.c: Likewise.
18546         * tests/test-xfprintf-posix.c: Likewise.
18547         * tests/test-xmemdup0.c: Likewise.
18548         * tests/test-xprintf-posix.c: Likewise.
18549         * tests/test-xvasprintf.c: Likewise.
18550         * tests/unicase/test-locale-language.c: Likewise.
18551         * tests/unicase/test-mapping-part1.h: Likewise.
18552         * tests/unicase/test-predicate-part1.h: Likewise.
18553         * tests/unicase/test-u8-casecmp.c: Likewise.
18554         * tests/unicase/test-u8-casecoll.c: Likewise.
18555         * tests/unicase/test-u8-casefold.c: Likewise.
18556         * tests/unicase/test-u8-is-cased.c: Likewise.
18557         * tests/unicase/test-u8-is-casefolded.c: Likewise.
18558         * tests/unicase/test-u8-is-lowercase.c: Likewise.
18559         * tests/unicase/test-u8-is-titlecase.c: Likewise.
18560         * tests/unicase/test-u8-is-uppercase.c: Likewise.
18561         * tests/unicase/test-u8-tolower.c: Likewise.
18562         * tests/unicase/test-u8-totitle.c: Likewise.
18563         * tests/unicase/test-u8-toupper.c: Likewise.
18564         * tests/unicase/test-u16-casecmp.c: Likewise.
18565         * tests/unicase/test-u16-casecoll.c: Likewise.
18566         * tests/unicase/test-u16-casefold.c: Likewise.
18567         * tests/unicase/test-u16-is-cased.c: Likewise.
18568         * tests/unicase/test-u16-is-casefolded.c: Likewise.
18569         * tests/unicase/test-u16-is-lowercase.c: Likewise.
18570         * tests/unicase/test-u16-is-titlecase.c: Likewise.
18571         * tests/unicase/test-u16-is-uppercase.c: Likewise.
18572         * tests/unicase/test-u16-tolower.c: Likewise.
18573         * tests/unicase/test-u16-totitle.c: Likewise.
18574         * tests/unicase/test-u16-toupper.c: Likewise.
18575         * tests/unicase/test-u32-casecmp.c: Likewise.
18576         * tests/unicase/test-u32-casecoll.c: Likewise.
18577         * tests/unicase/test-u32-casefold.c: Likewise.
18578         * tests/unicase/test-u32-is-cased.c: Likewise.
18579         * tests/unicase/test-u32-is-casefolded.c: Likewise.
18580         * tests/unicase/test-u32-is-lowercase.c: Likewise.
18581         * tests/unicase/test-u32-is-titlecase.c: Likewise.
18582         * tests/unicase/test-u32-is-uppercase.c: Likewise.
18583         * tests/unicase/test-u32-tolower.c: Likewise.
18584         * tests/unicase/test-u32-totitle.c: Likewise.
18585         * tests/unicase/test-u32-toupper.c: Likewise.
18586         * tests/unicase/test-ulc-casecmp.c: Likewise.
18587         * tests/unicase/test-ulc-casecoll.c: Likewise.
18588         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18589         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18590         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18591         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18592         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18593         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18594         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18595         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18596         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18597         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18598         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18599         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18600         * tests/unictype/test-bidi_byname.c: Likewise.
18601         * tests/unictype/test-bidi_name.c: Likewise.
18602         * tests/unictype/test-bidi_of.c: Likewise.
18603         * tests/unictype/test-bidi_test.c: Likewise.
18604         * tests/unictype/test-block_list.c: Likewise.
18605         * tests/unictype/test-block_of.c: Likewise.
18606         * tests/unictype/test-block_test.c: Likewise.
18607         * tests/unictype/test-categ_and.c: Likewise.
18608         * tests/unictype/test-categ_and_not.c: Likewise.
18609         * tests/unictype/test-categ_byname.c: Likewise.
18610         * tests/unictype/test-categ_name.c: Likewise.
18611         * tests/unictype/test-categ_none.c: Likewise.
18612         * tests/unictype/test-categ_of.c: Likewise.
18613         * tests/unictype/test-categ_or.c: Likewise.
18614         * tests/unictype/test-categ_test_withtable.c: Likewise.
18615         * tests/unictype/test-combining.c: Likewise.
18616         * tests/unictype/test-decdigit.c: Likewise.
18617         * tests/unictype/test-digit.c: Likewise.
18618         * tests/unictype/test-mirror.c: Likewise.
18619         * tests/unictype/test-numeric.c: Likewise.
18620         * tests/unictype/test-pr_byname.c: Likewise.
18621         * tests/unictype/test-pr_test.c: Likewise.
18622         * tests/unictype/test-predicate-part1.h: Likewise.
18623         * tests/unictype/test-scripts.c: Likewise.
18624         * tests/unictype/test-sy_c_ident.c: Likewise.
18625         * tests/unictype/test-sy_java_ident.c: Likewise.
18626         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
18627         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
18628         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
18629         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
18630         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
18631         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
18632         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
18633         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
18634         * tests/uninorm/test-canonical-decomposition.c: Likewise.
18635         * tests/uninorm/test-compat-decomposition.c: Likewise.
18636         * tests/uninorm/test-composition.c: Likewise.
18637         * tests/uninorm/test-decomposing-form.c: Likewise.
18638         * tests/uninorm/test-decomposition.c: Likewise.
18639         * tests/uninorm/test-u8-nfc.c: Likewise.
18640         * tests/uninorm/test-u8-nfd.c: Likewise.
18641         * tests/uninorm/test-u8-nfkc.c: Likewise.
18642         * tests/uninorm/test-u8-nfkd.c: Likewise.
18643         * tests/uninorm/test-u8-normcmp.c: Likewise.
18644         * tests/uninorm/test-u8-normcoll.c: Likewise.
18645         * tests/uninorm/test-u16-nfc.c: Likewise.
18646         * tests/uninorm/test-u16-nfd.c: Likewise.
18647         * tests/uninorm/test-u16-nfkc.c: Likewise.
18648         * tests/uninorm/test-u16-nfkd.c: Likewise.
18649         * tests/uninorm/test-u16-normcmp.c: Likewise.
18650         * tests/uninorm/test-u16-normcoll.c: Likewise.
18651         * tests/uninorm/test-u32-nfc.c: Likewise.
18652         * tests/uninorm/test-u32-nfd.c: Likewise.
18653         * tests/uninorm/test-u32-nfkc.c: Likewise.
18654         * tests/uninorm/test-u32-nfkd.c: Likewise.
18655         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18656         * tests/uninorm/test-u32-normcmp.c: Likewise.
18657         * tests/uninorm/test-u32-normcoll.c: Likewise.
18658         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
18659         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18660         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18661         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18662         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18663         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18664         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18665         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18666         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18667         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18668         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18669         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18670         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18671         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18672         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18673         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18674         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18675         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18676         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18677         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18678         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18679         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18680         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18681         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18682         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18683         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18684         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18685         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18686         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18687         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
18688         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
18689         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
18690         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
18691         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18692         * tests/uniwidth/test-u8-width.c: Likewise.
18693         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18694         * tests/uniwidth/test-u16-width.c: Likewise.
18695         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18696         * tests/uniwidth/test-u32-width.c: Likewise.
18697         * tests/uniwidth/test-uc_width.c: Likewise.
18698         * tests/uniwidth/test-uc_width2.c: Likewise.
18699         * modules/acl-tests (Files): Add tests/macros.h.
18700         * modules/areadlink-tests (Files): Likewise.
18701         * modules/areadlink-with-size-tests (Files): Likewise.
18702         * modules/areadlinkat-tests (Files): Likewise.
18703         * modules/areadlinkat-with-size-tests (Files): Likewise.
18704         * modules/argmatch-tests (Files): Likewise.
18705         * modules/argv-iter-tests (Files): Likewise.
18706         * modules/array-list-tests (Files): Likewise.
18707         * modules/array-mergesort-tests (Files): Likewise.
18708         * modules/array-oset-tests (Files): Likewise.
18709         * modules/avltree-list-tests (Files): Likewise.
18710         * modules/avltree-oset-tests (Files): Likewise.
18711         * modules/avltreehash-list-tests (Files): Likewise.
18712         * modules/base64-tests (Files): Likewise.
18713         * modules/binary-io-tests (Files): Likewise.
18714         * modules/bitrotate-tests (Files): Likewise.
18715         * modules/btowc-tests (Files): Likewise.
18716         * modules/byteswap-tests (Files): Likewise.
18717         * modules/c-ctype-tests (Files): Likewise.
18718         * modules/c-stack-tests (Files): Likewise.
18719         * modules/c-strcase-tests (Files): Likewise.
18720         * modules/c-strcasestr-tests (Files): Likewise.
18721         * modules/c-strstr-tests (Files): Likewise.
18722         * modules/canonicalize-lgpl-tests (Files): Likewise.
18723         * modules/canonicalize-tests (Files): Likewise.
18724         * modules/carray-list-tests (Files): Likewise.
18725         * modules/ceilf-tests (Files): Likewise.
18726         * modules/ceill-tests (Files): Likewise.
18727         * modules/chown-tests (Files): Likewise.
18728         * modules/cloexec-tests (Files): Likewise.
18729         * modules/copy-file-tests (Files): Likewise.
18730         * modules/count-one-bits-tests (Files): Likewise.
18731         * modules/dprintf-posix-tests (Files): Likewise.
18732         * modules/dup2-tests (Files): Likewise.
18733         * modules/dup3-tests (Files): Likewise.
18734         * modules/duplocale-tests (Files): Likewise.
18735         * modules/fbufmode-tests (Files): Likewise.
18736         * modules/fchdir-tests (Files): Likewise.
18737         * modules/fcntl-safer-tests (Files): Likewise.
18738         * modules/fcntl-tests (Files): Likewise.
18739         * modules/fdopendir-tests (Files): Likewise.
18740         * modules/fdutimensat-tests (Files): Likewise.
18741         * modules/fflush-tests (Files): Likewise.
18742         * modules/filevercmp-tests (Files): Likewise.
18743         * modules/flock-tests (Files): Likewise.
18744         * modules/floorf-tests (Files): Likewise.
18745         * modules/floorl-tests (Files): Likewise.
18746         * modules/fnmatch-tests (Files): Likewise.
18747         * modules/fopen-safer-tests (Files): Likewise.
18748         * modules/fopen-tests (Files): Likewise.
18749         * modules/fpending-tests (Files): Likewise.
18750         * modules/fprintf-posix-tests (Files): Likewise.
18751         * modules/fpurge-tests (Files): Likewise.
18752         * modules/freadable-tests (Files): Likewise.
18753         * modules/freadahead-tests (Files): Likewise.
18754         * modules/freading-tests (Files): Likewise.
18755         * modules/freadptr-tests (Files): Likewise.
18756         * modules/freadseek-tests (Files): Likewise.
18757         * modules/freopen-tests (Files): Likewise.
18758         * modules/frexp-nolibm-tests (Files): Likewise.
18759         * modules/frexp-tests (Files): Likewise.
18760         * modules/frexpl-nolibm-tests (Files): Likewise.
18761         * modules/frexpl-tests (Files): Likewise.
18762         * modules/fseek-tests (Files): Likewise.
18763         * modules/fseeko-tests (Files): Likewise.
18764         * modules/fstrcmp-tests (Files): Likewise.
18765         * modules/fsync-tests (Files): Likewise.
18766         * modules/ftell-tests (Files): Likewise.
18767         * modules/ftello-tests (Files): Likewise.
18768         * modules/func-tests (Files): Likewise.
18769         * modules/futimens-tests (Files): Likewise.
18770         * modules/fwritable-tests (Files): Likewise.
18771         * modules/fwriting-tests (Files): Likewise.
18772         * modules/getcwd-tests (Files): Likewise.
18773         * modules/getdate-tests (Files): Likewise.
18774         * modules/getdelim-tests (Files): Likewise.
18775         * modules/getdtablesize-tests (Files): Likewise.
18776         * modules/getgroups-tests (Files): Likewise.
18777         * modules/getline-tests (Files): Likewise.
18778         * modules/getndelim2-tests (Files): Likewise.
18779         * modules/glob-tests (Files): Likewise.
18780         * modules/hash-tests (Files): Likewise.
18781         * modules/i-ring-tests (Files): Likewise.
18782         * modules/iconv-tests (Files): Likewise.
18783         * modules/iconv_open-utf-tests (Files): Likewise.
18784         * modules/idpriv-drop-tests (Files): Likewise.
18785         * modules/idpriv-droptemp-tests (Files): Likewise.
18786         * modules/inet_ntop-tests (Files): Likewise.
18787         * modules/inet_pton-tests (Files): Likewise.
18788         * modules/isblank-tests (Files): Likewise.
18789         * modules/isfinite-tests (Files): Likewise.
18790         * modules/isinf-tests (Files): Likewise.
18791         * modules/isnan-tests (Files): Likewise.
18792         * modules/isnand-nolibm-tests (Files): Likewise.
18793         * modules/isnand-tests (Files): Likewise.
18794         * modules/isnanf-nolibm-tests (Files): Likewise.
18795         * modules/isnanf-tests (Files): Likewise.
18796         * modules/isnanl-nolibm-tests (Files): Likewise.
18797         * modules/isnanl-tests (Files): Likewise.
18798         * modules/lchown-tests (Files): Likewise.
18799         * modules/ldexpl-tests (Files): Likewise.
18800         * modules/link-tests (Files): Likewise.
18801         * modules/linkat-tests (Files): Likewise.
18802         * modules/linked-list-tests (Files): Likewise.
18803         * modules/linkedhash-list-tests (Files): Likewise.
18804         * modules/localename-tests (Files): Likewise.
18805         * modules/lseek-tests (Files): Likewise.
18806         * modules/lstat-tests (Files): Likewise.
18807         * modules/mbmemcasecmp-tests (Files): Likewise.
18808         * modules/mbmemcasecoll-tests (Files): Likewise.
18809         * modules/mbrtowc-tests (Files): Likewise.
18810         * modules/mbscasecmp-tests (Files): Likewise.
18811         * modules/mbscasestr-tests (Files): Likewise.
18812         * modules/mbschr-tests (Files): Likewise.
18813         * modules/mbscspn-tests (Files): Likewise.
18814         * modules/mbsinit-tests (Files): Likewise.
18815         * modules/mbsncasecmp-tests (Files): Likewise.
18816         * modules/mbsnrtowcs-tests (Files): Likewise.
18817         * modules/mbspbrk-tests (Files): Likewise.
18818         * modules/mbspcasecmp-tests (Files): Likewise.
18819         * modules/mbsrchr-tests (Files): Likewise.
18820         * modules/mbsrtowcs-tests (Files): Likewise.
18821         * modules/mbsspn-tests (Files): Likewise.
18822         * modules/mbsstr-tests (Files): Likewise.
18823         * modules/memchr-tests (Files): Likewise.
18824         * modules/memchr2-tests (Files): Likewise.
18825         * modules/memcmp-tests (Files): Likewise.
18826         * modules/memmem-tests (Files): Likewise.
18827         * modules/memrchr-tests (Files): Likewise.
18828         * modules/mkdir-tests (Files): Likewise.
18829         * modules/mkfifo-tests (Files): Likewise.
18830         * modules/mkfifoat-tests (Files): Likewise.
18831         * modules/mknod-tests (Files): Likewise.
18832         * modules/nanosleep-tests (Files): Likewise.
18833         * modules/nl_langinfo-tests (Files): Likewise.
18834         * modules/obstack-printf-tests (Files): Likewise.
18835         * modules/open-tests (Files): Likewise.
18836         * modules/openat-tests (Files): Likewise.
18837         * modules/pipe-filter-gi-tests (Files): Likewise.
18838         * modules/pipe-filter-ii-tests (Files): Likewise.
18839         * modules/pipe2-tests (Files): Likewise.
18840         * modules/popen-safer-tests (Files): Likewise.
18841         * modules/popen-tests (Files): Likewise.
18842         * modules/posixtm-tests (Files): Likewise.
18843         * modules/pread-tests (Files): Likewise.
18844         * modules/printf-frexp-tests (Files): Likewise.
18845         * modules/printf-frexpl-tests (Files): Likewise.
18846         * modules/printf-posix-tests (Files): Likewise.
18847         * modules/priv-set-tests (Files): Likewise.
18848         * modules/quotearg-tests (Files): Likewise.
18849         * modules/random_r-tests (Files): Likewise.
18850         * modules/rawmemchr-tests (Files): Likewise.
18851         * modules/rbtree-list-tests (Files): Likewise.
18852         * modules/rbtree-oset-tests (Files): Likewise.
18853         * modules/rbtreehash-list-tests (Files): Likewise.
18854         * modules/readlink-tests (Files): Likewise.
18855         * modules/remove-tests (Files): Likewise.
18856         * modules/rename-tests (Files): Likewise.
18857         * modules/renameat-tests (Files): Likewise.
18858         * modules/rmdir-tests (Files): Likewise.
18859         * modules/round-tests (Files): Likewise.
18860         * modules/roundf-tests (Files): Likewise.
18861         * modules/roundl-tests (Files): Likewise.
18862         * modules/safe-alloc-tests (Files): Likewise.
18863         * modules/setenv-tests (Files): Likewise.
18864         * modules/sigaction-tests (Files): Likewise.
18865         * modules/signbit-tests (Files): Likewise.
18866         * modules/sleep-tests (Files): Likewise.
18867         * modules/snprintf-posix-tests (Files): Likewise.
18868         * modules/snprintf-tests (Files): Likewise.
18869         * modules/sprintf-posix-tests (Files): Likewise.
18870         * modules/stat-tests (Files): Likewise.
18871         * modules/stat-time-tests (Files): Likewise.
18872         * modules/strcasestr-tests (Files): Likewise.
18873         * modules/strchrnul-tests (Files): Likewise.
18874         * modules/strerror-tests (Files): Likewise.
18875         * modules/striconv-tests (Files): Likewise.
18876         * modules/striconveh-tests (Files): Likewise.
18877         * modules/striconveha-tests (Files): Likewise.
18878         * modules/strsignal-tests (Files): Likewise.
18879         * modules/strstr-tests (Files): Likewise.
18880         * modules/strtod-tests (Files): Likewise.
18881         * modules/strverscmp-tests (Files): Likewise.
18882         * modules/symlink-tests (Files): Likewise.
18883         * modules/symlinkat-tests (Files): Likewise.
18884         * modules/trunc-tests (Files): Likewise.
18885         * modules/truncf-tests (Files): Likewise.
18886         * modules/truncl-tests (Files): Likewise.
18887         * modules/uname-tests (Files): Likewise.
18888         * modules/unicase/cased-tests (Files): Likewise.
18889         * modules/unicase/ignorable-tests (Files): Likewise.
18890         * modules/unicase/locale-language-tests (Files): Likewise.
18891         * modules/unicase/tolower-tests (Files): Likewise.
18892         * modules/unicase/totitle-tests (Files): Likewise.
18893         * modules/unicase/toupper-tests (Files): Likewise.
18894         * modules/unicase/u8-casecmp-tests (Files): Likewise.
18895         * modules/unicase/u8-casecoll-tests (Files): Likewise.
18896         * modules/unicase/u8-casefold-tests (Files): Likewise.
18897         * modules/unicase/u8-is-cased-tests (Files): Likewise.
18898         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
18899         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
18900         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
18901         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
18902         * modules/unicase/u8-tolower-tests (Files): Likewise.
18903         * modules/unicase/u8-totitle-tests (Files): Likewise.
18904         * modules/unicase/u8-toupper-tests (Files): Likewise.
18905         * modules/unicase/u16-casecmp-tests (Files): Likewise.
18906         * modules/unicase/u16-casecoll-tests (Files): Likewise.
18907         * modules/unicase/u16-casefold-tests (Files): Likewise.
18908         * modules/unicase/u16-is-cased-tests (Files): Likewise.
18909         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
18910         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
18911         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
18912         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
18913         * modules/unicase/u16-tolower-tests (Files): Likewise.
18914         * modules/unicase/u16-totitle-tests (Files): Likewise.
18915         * modules/unicase/u16-toupper-tests (Files): Likewise.
18916         * modules/unicase/u32-casecmp-tests (Files): Likewise.
18917         * modules/unicase/u32-casecoll-tests (Files): Likewise.
18918         * modules/unicase/u32-casefold-tests (Files): Likewise.
18919         * modules/unicase/u32-is-cased-tests (Files): Likewise.
18920         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
18921         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
18922         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
18923         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
18924         * modules/unicase/u32-tolower-tests (Files): Likewise.
18925         * modules/unicase/u32-totitle-tests (Files): Likewise.
18926         * modules/unicase/u32-toupper-tests (Files): Likewise.
18927         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
18928         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
18929         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
18930         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
18931         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
18932         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
18933         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
18934         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
18935         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
18936         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
18937         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
18938         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
18939         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
18940         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
18941         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
18942         * modules/unictype/bidicategory-name-tests (Files): Likewise.
18943         * modules/unictype/bidicategory-of-tests (Files): Likewise.
18944         * modules/unictype/bidicategory-test-tests (Files): Likewise.
18945         * modules/unictype/block-list-tests (Files): Likewise.
18946         * modules/unictype/block-of-tests (Files): Likewise.
18947         * modules/unictype/block-test-tests (Files): Likewise.
18948         * modules/unictype/category-C-tests (Files): Likewise.
18949         * modules/unictype/category-Cc-tests (Files): Likewise.
18950         * modules/unictype/category-Cf-tests (Files): Likewise.
18951         * modules/unictype/category-Cn-tests (Files): Likewise.
18952         * modules/unictype/category-Co-tests (Files): Likewise.
18953         * modules/unictype/category-Cs-tests (Files): Likewise.
18954         * modules/unictype/category-L-tests (Files): Likewise.
18955         * modules/unictype/category-Ll-tests (Files): Likewise.
18956         * modules/unictype/category-Lm-tests (Files): Likewise.
18957         * modules/unictype/category-Lo-tests (Files): Likewise.
18958         * modules/unictype/category-Lt-tests (Files): Likewise.
18959         * modules/unictype/category-Lu-tests (Files): Likewise.
18960         * modules/unictype/category-M-tests (Files): Likewise.
18961         * modules/unictype/category-Mc-tests (Files): Likewise.
18962         * modules/unictype/category-Me-tests (Files): Likewise.
18963         * modules/unictype/category-Mn-tests (Files): Likewise.
18964         * modules/unictype/category-N-tests (Files): Likewise.
18965         * modules/unictype/category-Nd-tests (Files): Likewise.
18966         * modules/unictype/category-Nl-tests (Files): Likewise.
18967         * modules/unictype/category-No-tests (Files): Likewise.
18968         * modules/unictype/category-P-tests (Files): Likewise.
18969         * modules/unictype/category-Pc-tests (Files): Likewise.
18970         * modules/unictype/category-Pd-tests (Files): Likewise.
18971         * modules/unictype/category-Pe-tests (Files): Likewise.
18972         * modules/unictype/category-Pf-tests (Files): Likewise.
18973         * modules/unictype/category-Pi-tests (Files): Likewise.
18974         * modules/unictype/category-Po-tests (Files): Likewise.
18975         * modules/unictype/category-Ps-tests (Files): Likewise.
18976         * modules/unictype/category-S-tests (Files): Likewise.
18977         * modules/unictype/category-Sc-tests (Files): Likewise.
18978         * modules/unictype/category-Sk-tests (Files): Likewise.
18979         * modules/unictype/category-Sm-tests (Files): Likewise.
18980         * modules/unictype/category-So-tests (Files): Likewise.
18981         * modules/unictype/category-Z-tests (Files): Likewise.
18982         * modules/unictype/category-Zl-tests (Files): Likewise.
18983         * modules/unictype/category-Zp-tests (Files): Likewise.
18984         * modules/unictype/category-Zs-tests (Files): Likewise.
18985         * modules/unictype/category-and-not-tests (Files): Likewise.
18986         * modules/unictype/category-and-tests (Files): Likewise.
18987         * modules/unictype/category-byname-tests (Files): Likewise.
18988         * modules/unictype/category-name-tests (Files): Likewise.
18989         * modules/unictype/category-none-tests (Files): Likewise.
18990         * modules/unictype/category-of-tests (Files): Likewise.
18991         * modules/unictype/category-or-tests (Files): Likewise.
18992         * modules/unictype/category-test-withtable-tests (Files): Likewise.
18993         * modules/unictype/combining-class-tests (Files): Likewise.
18994         * modules/unictype/ctype-alnum-tests (Files): Likewise.
18995         * modules/unictype/ctype-alpha-tests (Files): Likewise.
18996         * modules/unictype/ctype-blank-tests (Files): Likewise.
18997         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
18998         * modules/unictype/ctype-digit-tests (Files): Likewise.
18999         * modules/unictype/ctype-graph-tests (Files): Likewise.
19000         * modules/unictype/ctype-lower-tests (Files): Likewise.
19001         * modules/unictype/ctype-print-tests (Files): Likewise.
19002         * modules/unictype/ctype-punct-tests (Files): Likewise.
19003         * modules/unictype/ctype-space-tests (Files): Likewise.
19004         * modules/unictype/ctype-upper-tests (Files): Likewise.
19005         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19006         * modules/unictype/decimal-digit-tests (Files): Likewise.
19007         * modules/unictype/digit-tests (Files): Likewise.
19008         * modules/unictype/mirror-tests (Files): Likewise.
19009         * modules/unictype/numeric-tests (Files): Likewise.
19010         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19011         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19012         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19013         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19014         Likewise.
19015         * modules/unictype/property-bidi-block-separator-tests (Files):
19016         Likewise.
19017         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19018         Likewise.
19019         * modules/unictype/property-bidi-common-separator-tests (Files):
19020         Likewise.
19021         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19022         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19023         Likewise.
19024         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19025         Likewise.
19026         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19027         Likewise.
19028         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19029         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19030         Likewise.
19031         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19032         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19033         Likewise.
19034         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19035         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19036         * modules/unictype/property-bidi-segment-separator-tests (Files):
19037         Likewise.
19038         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19039         * modules/unictype/property-byname-tests (Files): Likewise.
19040         * modules/unictype/property-combining-tests (Files): Likewise.
19041         * modules/unictype/property-composite-tests (Files): Likewise.
19042         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19043         * modules/unictype/property-dash-tests (Files): Likewise.
19044         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19045         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19046         Likewise.
19047         * modules/unictype/property-deprecated-tests (Files): Likewise.
19048         * modules/unictype/property-diacritic-tests (Files): Likewise.
19049         * modules/unictype/property-extender-tests (Files): Likewise.
19050         * modules/unictype/property-format-control-tests (Files): Likewise.
19051         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19052         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19053         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19054         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19055         * modules/unictype/property-hyphen-tests (Files): Likewise.
19056         * modules/unictype/property-id-continue-tests (Files): Likewise.
19057         * modules/unictype/property-id-start-tests (Files): Likewise.
19058         * modules/unictype/property-ideographic-tests (Files): Likewise.
19059         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19060         * modules/unictype/property-ids-trinary-operator-tests (Files):
19061         Likewise.
19062         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19063         * modules/unictype/property-iso-control-tests (Files): Likewise.
19064         * modules/unictype/property-join-control-tests (Files): Likewise.
19065         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19066         * modules/unictype/property-line-separator-tests (Files): Likewise.
19067         * modules/unictype/property-logical-order-exception-tests (Files):
19068         Likewise.
19069         * modules/unictype/property-lowercase-tests (Files): Likewise.
19070         * modules/unictype/property-math-tests (Files): Likewise.
19071         * modules/unictype/property-non-break-tests (Files): Likewise.
19072         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19073         * modules/unictype/property-numeric-tests (Files): Likewise.
19074         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19075         * modules/unictype/property-other-default-ignorable-code-point-tests
19076         (Files): Likewise.
19077         * modules/unictype/property-other-grapheme-extend-tests (Files):
19078         Likewise.
19079         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19080         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19081         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19082         * modules/unictype/property-other-math-tests (Files): Likewise.
19083         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19084         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19085         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19086         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19087         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19088         * modules/unictype/property-private-use-tests (Files): Likewise.
19089         * modules/unictype/property-punctuation-tests (Files): Likewise.
19090         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19091         * modules/unictype/property-radical-tests (Files): Likewise.
19092         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19093         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19094         * modules/unictype/property-space-tests (Files): Likewise.
19095         * modules/unictype/property-terminal-punctuation-tests (Files):
19096         Likewise.
19097         * modules/unictype/property-test-tests (Files): Likewise.
19098         * modules/unictype/property-titlecase-tests (Files): Likewise.
19099         * modules/unictype/property-unassigned-code-value-tests (Files):
19100         Likewise.
19101         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19102         * modules/unictype/property-uppercase-tests (Files): Likewise.
19103         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19104         * modules/unictype/property-white-space-tests (Files): Likewise.
19105         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19106         * modules/unictype/property-xid-start-tests (Files): Likewise.
19107         * modules/unictype/property-zero-width-tests (Files): Likewise.
19108         * modules/unictype/scripts-tests (Files): Likewise.
19109         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19110         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19111         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19112         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19113         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19114         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19115         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19116         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19117         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19118         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19119         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19120         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19121         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19122         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19123         * modules/uninorm/composition-tests (Files): Likewise.
19124         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19125         * modules/uninorm/decomposition-tests (Files): Likewise.
19126         * modules/uninorm/filter-tests (Files): Likewise.
19127         * modules/uninorm/nfc-tests (Files): Likewise.
19128         * modules/uninorm/nfd-tests (Files): Likewise.
19129         * modules/uninorm/nfkc-tests (Files): Likewise.
19130         * modules/uninorm/nfkd-tests (Files): Likewise.
19131         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19132         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19133         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19134         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19135         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19136         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19137         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19138         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19139         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19140         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19141         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19142         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19143         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19144         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19145         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19146         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19147         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19148         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19149         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19150         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19151         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19152         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19153         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19154         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19155         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19156         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19157         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19158         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19159         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19160         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19161         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19162         * modules/uniwidth/u8-width-tests (Files): Likewise.
19163         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19164         * modules/uniwidth/u16-width-tests (Files): Likewise.
19165         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19166         * modules/uniwidth/u32-width-tests (Files): Likewise.
19167         * modules/uniwidth/width-tests (Files): Likewise.
19168         * modules/unlink-tests (Files): Likewise.
19169         * modules/unsetenv-tests (Files): Likewise.
19170         * modules/usleep-tests (Files): Likewise.
19171         * modules/utimens-tests (Files): Likewise.
19172         * modules/utimensat-tests (Files): Likewise.
19173         * modules/vasnprintf-posix-tests (Files): Likewise.
19174         * modules/vasnprintf-tests (Files): Likewise.
19175         * modules/vasprintf-posix-tests (Files): Likewise.
19176         * modules/vasprintf-tests (Files): Likewise.
19177         * modules/vdprintf-posix-tests (Files): Likewise.
19178         * modules/vfprintf-posix-tests (Files): Likewise.
19179         * modules/vprintf-posix-tests (Files): Likewise.
19180         * modules/vsnprintf-posix-tests (Files): Likewise.
19181         * modules/vsnprintf-tests (Files): Likewise.
19182         * modules/vsprintf-posix-tests (Files): Likewise.
19183         * modules/wcrtomb-tests (Files): Likewise.
19184         * modules/wcsnrtombs-tests (Files): Likewise.
19185         * modules/wcsrtombs-tests (Files): Likewise.
19186         * modules/wctype-tests (Files): Likewise.
19187         * modules/wcwidth-tests (Files): Likewise.
19188         * modules/xmemdup0-tests (Files): Likewise.
19189         * modules/xprintf-posix-tests (Files): Likewise.
19190         * modules/xvasprintf-tests (Files): Likewise.
19191
19192 2009-12-24  Eric Blake  <ebb9@byu.net>
19193
19194         test-nanosleep: fix typo
19195         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19196         patch.
19197         Reported by Bruno Haible.
19198
19199 2009-12-24  Bruno Haible  <bruno@clisp.org>
19200
19201         Reduce namespace pollution on glibc systems.
19202         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19203         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19204         systems.
19205         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19206         <getopt.h> on glibc systems.
19207         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19208         systems.
19209         * lib/fcntl.c: Include <unistd.h> here instead.
19210
19211 2009-12-24  Bruno Haible  <bruno@clisp.org>
19212
19213         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19214
19215 2009-12-24  Eric Blake  <ebb9@byu.net>
19216
19217         tests: add signature checks
19218         * tests/signature.h (SIGNATURE_CHECK): New file.
19219         * modules/atexit-tests (Files): Use it.
19220         * modules/btowc-tests (Files): Likewise.
19221         * modules/canonicalize-lgpl-tests (Files): Likewise.
19222         * modules/ceilf-tests (Files): Likewise.
19223         * modules/ceill-tests (Files): Likewise.
19224         * modules/chown-tests (Files): Likewise.
19225         * modules/dprintf-posix-tests (Files): Likewise.
19226         * modules/dup2-tests (Files): Likewise.
19227         * modules/dup3-tests (Files): Likewise.
19228         * modules/duplocale-tests (Files): Likewise.
19229         * modules/fchdir-tests (Files): Likewise.
19230         * modules/fcntl-tests (Files): Likewise.
19231         * modules/fdopendir-tests (Files): Likewise.
19232         * modules/fflush-tests (Files): Likewise.
19233         * modules/flock-tests (Files): Likewise.
19234         * modules/floorf-tests (Files): Likewise.
19235         * modules/floorl-tests (Files): Likewise.
19236         * modules/fnmatch-tests (Files): Likewise.
19237         * modules/fopen-tests (Files): Likewise.
19238         * modules/fprintf-posix-tests (Files): Likewise.
19239         * modules/freopen-tests (Files): Likewise.
19240         * modules/frexp-nolibm-tests (Files): Likewise.
19241         * modules/frexp-tests (Files): Likewise.
19242         * modules/frexpl-nolibm-tests (Files): Likewise.
19243         * modules/frexpl-tests (Files): Likewise.
19244         * modules/fseek-tests (Files): Likewise.
19245         * modules/fseeko-tests (Files): Likewise.
19246         * modules/fsync-tests (Files): Likewise.
19247         * modules/ftell-tests (Files): Likewise.
19248         * modules/ftello-tests (Files): Likewise.
19249         * modules/futimens-tests (Files): Likewise.
19250         * modules/getaddrinfo-tests (Files): Likewise.
19251         * modules/getcwd-tests (Files): Likewise.
19252         * modules/getdelim-tests (Files): Likewise.
19253         * modules/getdtablesize-tests (Files): Likewise.
19254         * modules/getgroups-tests (Files): Likewise.
19255         * modules/gethostname-tests (Files): Likewise.
19256         * modules/getline-tests (Files): Likewise.
19257         * modules/getopt-posix-tests (Files): Likewise.
19258         * modules/gettimeofday-tests (Files): Likewise.
19259         * modules/glob-tests (Files): Likewise.
19260         * modules/iconv-tests (Files): Likewise.
19261         * modules/inet_ntop-tests (Files): Likewise.
19262         * modules/inet_pton-tests (Files): Likewise.
19263         * modules/isblank-tests (Files): Likewise.
19264         * modules/lchown-tests (Files): Likewise.
19265         * modules/ldexpl-tests (Files): Likewise.
19266         * modules/link-tests (Files): Likewise.
19267         * modules/linkat-tests (Files): Likewise.
19268         * modules/lseek-tests (Files): Likewise.
19269         * modules/lstat-tests (Files): Likewise.
19270         * modules/mbrtowc-tests (Files): Likewise.
19271         * modules/mbsinit-tests (Files): Likewise.
19272         * modules/mbsnrtowcs-tests (Files): Likewise.
19273         * modules/mbsrtowcs-tests (Files): Likewise.
19274         * modules/memchr-tests (Files): Likewise.
19275         * modules/memcmp-tests (Files): Likewise.
19276         * modules/memmem-tests (Files): Likewise.
19277         * modules/memrchr-tests (Files): Likewise.
19278         * modules/mkdir-tests (Files): Likewise.
19279         * modules/mkfifo-tests (Files): Likewise.
19280         * modules/mkfifoat-tests (Files): Likewise.
19281         * modules/mknod-tests (Files): Likewise.
19282         * modules/nanosleep-tests (Files): Likewise.
19283         * modules/nl_langinfo-tests (Files): Likewise.
19284         * modules/obstack-printf-tests (Files): Likewise.
19285         * modules/open-tests (Files): Likewise.
19286         * modules/openat-tests (Files): Likewise.
19287         * modules/perror-tests (Files): Likewise.
19288         * modules/pipe2-tests (Files): Likewise.
19289         * modules/poll-tests (Files): Likewise.
19290         * modules/popen-tests (Files): Likewise.
19291         * modules/posix_spawn-tests (Files): Likewise.
19292         * modules/posix_spawnp-tests (Files): Likewise.
19293         * modules/pread-tests (Files): Likewise.
19294         * modules/printf-posix-tests (Files): Likewise.
19295         * modules/pty-tests (Files): Likewise.
19296         * modules/random_r-tests (Files): Likewise.
19297         * modules/rawmemchr-tests (Files): Likewise.
19298         * modules/readlink-tests (Files): Likewise.
19299         * modules/remove-tests (Files): Likewise.
19300         * modules/rename-tests (Files): Likewise.
19301         * modules/renameat-tests (Files): Likewise.
19302         * modules/rmdir-tests (Files): Likewise.
19303         * modules/round-tests (Files): Likewise.
19304         * modules/roundf-tests (Files): Likewise.
19305         * modules/roundl-tests (Files): Likewise.
19306         * modules/select-tests (Files): Likewise.
19307         * modules/setenv-tests (Files): Likewise.
19308         * modules/sigaction-tests (Files): Likewise.
19309         * modules/sleep-tests (Files): Likewise.
19310         * modules/snprintf-posix-tests (Files): Likewise.
19311         * modules/snprintf-tests (Files): Likewise.
19312         * modules/sprintf-posix-tests (Files): Likewise.
19313         * modules/stat-tests (Files): Likewise.
19314         * modules/strcasestr-tests (Files): Likewise.
19315         * modules/strchrnul-tests (Files): Likewise.
19316         * modules/strerror-tests (Files): Likewise.
19317         * modules/strsignal-tests (Files): Likewise.
19318         * modules/strstr-tests (Files): Likewise.
19319         * modules/strtod-tests (Files): Likewise.
19320         * modules/strverscmp-tests (Files): Likewise.
19321         * modules/symlink-tests (Files): Likewise.
19322         * modules/symlinkat-tests (Files): Likewise.
19323         * modules/times-tests (Files): Likewise.
19324         * modules/trunc-tests (Files): Likewise.
19325         * modules/truncf-tests (Files): Likewise.
19326         * modules/truncl-tests (Files): Likewise.
19327         * modules/tsearch-tests (Files): Likewise.
19328         * modules/uname-tests (Files): Likewise.
19329         * modules/unlink-tests (Files): Likewise.
19330         * modules/unsetenv-tests (Files): Likewise.
19331         * modules/usleep-tests (Files): Likewise.
19332         * modules/utimensat-tests (Files): Likewise.
19333         * modules/vasprintf-tests (Files): Likewise.
19334         * modules/vdprintf-posix-tests (Files): Likewise.
19335         * modules/vfprintf-posix-tests (Files): Likewise.
19336         * modules/vprintf-posix-tests (Files): Likewise.
19337         * modules/vsnprintf-posix-tests (Files): Likewise.
19338         * modules/vsnprintf-tests (Files): Likewise.
19339         * modules/vsprintf-posix-tests (Files): Likewise.
19340         * modules/wcrtomb-tests (Files): Likewise.
19341         * modules/wcsnrtombs-tests (Files): Likewise.
19342         * modules/wcsrtombs-tests (Files): Likewise.
19343         * modules/wcwidth-tests (Files): Likewise.
19344         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19345         * tests/test-isinf.c (isinf): Likewise.
19346         * tests/test-isnan.c (isnan): Likewise.
19347         * tests/test-signbit.c (signbit): Likewise.
19348         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19349         declaration, either as macro or with correct signature.
19350         (select): Ensure function under test is declared with correct
19351         signature in correct header.
19352         * tests/test-atexit.c (atexit): Likewise.
19353         * tests/test-btowc.c (btowc): Likewise.
19354         * tests/test-canonicalize-lgpl.c (realpath)
19355         (canonicalize_file_name): Likewise.
19356         * tests/test-ceilf1.c (ceilf): Likewise.
19357         * tests/test-ceill.c (ceill): Likewise.
19358         * tests/test-chown.c (chown): Likewise.
19359         * tests/test-dprintf-posix.c (dprintf): Likewise.
19360         * tests/test-dup2.c (dup2): Likewise.
19361         * tests/test-dup3.c (dup3): Likewise.
19362         * tests/test-duplocale.c (duplocale): Likewise.
19363         * tests/test-fchdir.c (fchdir): Likewise.
19364         * tests/test-fchownat.c (fchownat): Likewise.
19365         * tests/test-fcntl.c (fcntl): Likewise.
19366         * tests/test-fdopendir.c (fdopendir): Likewise.
19367         * tests/test-fflush.c (fflush): Likewise.
19368         * tests/test-flock.c (flock): Likewise.
19369         * tests/test-floorf1.c (floorf): Likewise.
19370         * tests/test-floorl.c (floorl): Likewise.
19371         * tests/test-fnmatch.c (fnmatch): Likewise.
19372         * tests/test-fopen.c (fopen): Likewise.
19373         * tests/test-fprintf-posix.c (fprintf): Likewise.
19374         * tests/test-freopen.c (freopen): Likewise.
19375         * tests/test-frexp.c (frexp): Likewise.
19376         * tests/test-frexpl.c (frexpl): Likewise.
19377         * tests/test-fseek.c (fseek): Likewise.
19378         * tests/test-fseeko.c (fseeko): Likewise.
19379         * tests/test-fstatat.c (fstatat): Likewise.
19380         * tests/test-fsync.c (fsync): Likewise.
19381         * tests/test-ftell.c (ftell): Likewise.
19382         * tests/test-ftello.c (ftello): Likewise.
19383         * tests/test-futimens.c (futimens): Likewise.
19384         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19385         (gai_strerror): Likewise.
19386         * tests/test-getcwd.c (getcwd): Likewise.
19387         * tests/test-getdelim.c (getdelim): Likewise.
19388         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19389         * tests/test-getgroups.c (getgroups): Likewise.
19390         * tests/test-gethostname.c (gethostname): Likewise.
19391         * tests/test-getline.c (getline): Likewise.
19392         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19393         Likewise.
19394         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19395         * tests/test-glob.c (glob, globfree): Likewise.
19396         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19397         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19398         * tests/test-inet_pton.c (inet_pton): Likewise.
19399         * tests/test-isblank.c (isblank): Likewise.
19400         * tests/test-lchown.c (lchown): Likewise.
19401         * tests/test-ldexpl.c (ldexpl): Likewise.
19402         * tests/test-link.c (link): Likewise.
19403         * tests/test-linkat.c (linkat): Likewise.
19404         * tests/test-lseek.c (lseek): Likewise.
19405         * tests/test-lstat.c (lstat): Likewise.
19406         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19407         * tests/test-mbsinit.c (mbsinit): Likewise.
19408         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19409         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19410         * tests/test-memchr.c (memchr): Likewise.
19411         * tests/test-memcmp.c (memcmp): Likewise.
19412         * tests/test-memmem.c (memmem): Likewise.
19413         * tests/test-memrchr.c (memrchr): Likewise.
19414         * tests/test-mkdir.c (mkdir): Likewise.
19415         * tests/test-mkdirat.c (mkdirat): Likewise.
19416         * tests/test-mkfifo.c (mkfifo): Likewise.
19417         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
19418         * tests/test-mknod.c (mknod): Likewise.
19419         * tests/test-nanosleep.c (nanosleep): Likewise.
19420         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
19421         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
19422         Likewise.
19423         * tests/test-open.c (open): Likewise.
19424         * tests/test-openat.c (openat): Likewise.
19425         * tests/test-perror.c (perror): Likewise.
19426         * tests/test-pipe2.c (pipe2): Likewise.
19427         * tests/test-poll.c (poll): Likewise.
19428         * tests/test-popen.c (popen, pclose): Likewise.
19429         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
19430         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
19431         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
19432         (posix_spawn_file_actions_destroy)
19433         (posix_spawn_file_actions_addclose)
19434         (posix_spawn_file_actions_addopen)
19435         (posix_spawn_file_actions_adddup2): Likewise.
19436         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
19437         * tests/test-pread.c (pread): Likewise.
19438         * tests/test-printf-posix.c (printf): Likewise.
19439         * tests/test-pty.c (openpty, forkpty): Likewise.
19440         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
19441         (random_r): Likewise.
19442         * tests/test-rawmemchr.c (rawmemchr): Likewise.
19443         * tests/test-readlink.c (readlink): Likewise.
19444         * tests/test-remove.c (remove): Likewise.
19445         * tests/test-rename.c (rename): Likewise.
19446         * tests/test-renameat.c (renameat): Likewise.
19447         * tests/test-rmdir.c (rmdir): Likewise.
19448         * tests/test-round1.c (round): Likewise.
19449         * tests/test-roundf1.c (roundf): Likewise.
19450         * tests/test-roundl.c (roundl): Likewise.
19451         * tests/test-setenv.c (setenv): Likewise.
19452         * tests/test-sigaction.c (sigaction): Likewise.
19453         * tests/test-sleep.c (sleep): Likewise.
19454         * tests/test-snprintf.c (snprintf): Likewise.
19455         * tests/test-sprintf-posix.c (sprintf): Likewise.
19456         * tests/test-stat.c (stat): Likewise.
19457         * tests/test-stpncpy.c (stpncpy): Likewise.
19458         * tests/test-strcasestr.c (strcasestr): Likewise.
19459         * tests/test-strchrnul.c (strchrnul): Likewise.
19460         * tests/test-strerror.c (strerror): Likewise.
19461         * tests/test-strsignal.c (strsignal): Likewise.
19462         * tests/test-strstr.c (strstr): Likewise.
19463         * tests/test-strtod.c (strtod): Likewise.
19464         * tests/test-strverscmp.c (strverscmp): Likewise.
19465         * tests/test-symlink.c (symlink): Likewise.
19466         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
19467         * tests/test-times.c (times): Likewise.
19468         * tests/test-trunc1.c (trunc): Likewise.
19469         * tests/test-truncf1.c (truncf): Likewise.
19470         * tests/test-truncl.c (truncl): Likewise.
19471         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
19472         Likewise.
19473         * tests/test-uname.c (uname): Likewise.
19474         * tests/test-unlink.c (unlink): Likewise.
19475         * tests/test-unlinkat.c (unlinkat): Likewise.
19476         * tests/test-unsetenv.c (unsetenv): Likewise.
19477         * tests/test-usleep.c (usleep): Likewise.
19478         * tests/test-utimensat.c (utimensat): Likewise.
19479         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
19480         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
19481         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
19482         * tests/test-vprintf-posix.c (vprintf): Likewise.
19483         * tests/test-vsnprintf.c (vsnprintf): Likewise.
19484         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
19485         * tests/test-wcrtomb.c (wcrtomb): Likewise.
19486         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
19487         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
19488         * tests/test-wcwidth.c (wcwidth): Likewise.
19489
19490         build: pull in conditional headers during GNULIB_POSIXCHECK
19491         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
19492         definitions from any conditionally-included headers.
19493         * lib/stdlib.in.h (includes): Likewise.
19494         * lib/unistd.in.h (includes): Likewise.
19495
19496 2009-12-24  Bruno Haible  <bruno@clisp.org>
19497
19498         * tests/test-argv-iter.c: Include header file being tested immediately
19499         after config.h.
19500         * tests/test-base64.c: Likewise.
19501         * tests/test-flock.c: Likewise.
19502         * tests/test-fsync.c: Likewise.
19503         * tests/test-getdate.c: Likewise.
19504         * tests/test-getndelim2.c: Likewise.
19505         * tests/test-isfinite.c: Likewise.
19506         * tests/test-isinf.c: Likewise.
19507         * tests/test-strerror.c: Likewise.
19508         * tests/test-strsignal.c: Likewise.
19509
19510 2009-12-23  Eric Blake  <ebb9@byu.net>
19511
19512         unistd: work around cygwin bug
19513         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
19514         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
19515         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19516
19517 2009-12-23  Bruno Haible  <bruno@clisp.org>
19518
19519         localename: More tests.
19520         * tests/test-localename.c (SIZEOF): New macro.
19521         (categories): New variable.
19522         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
19523         test_locale_name_default): Add test w.r.t. thread locale.
19524         (test_locale_name_thread): New function.
19525         (main): Invoke it.
19526
19527         localename: Make aware of thread locale.
19528         * lib/localename.h (gl_locale_name_thread): New declaration.
19529         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
19530         behaviour with respect to thread locale.
19531         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
19532         <langinfo.h>, glthread/lock.h.
19533         (SIZE_BITS): New macro.
19534         (string_hash): New function.
19535         (struct hash_node): New type.
19536         (HASH_TABLE_SIZE): New macro.
19537         (struniq_hash_table, struniq_lock): New variables.
19538         (struniq): New function.
19539         (gl_locale_name_thread): New function.
19540         (gl_locale_name): Invoke it.
19541         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
19542         * modules/localename (Depends-on): Add lock.
19543         Reported by Mike Gran <spk121@yahoo.com>.
19544
19545 2009-12-23  Eric Blake  <ebb9@byu.net>
19546
19547         va-args: new module
19548         * modules/va-args: New file.
19549         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
19550         * MODULES.html.sh (Core language properties): Mention it.
19551
19552         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
19553         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
19554         named alias for __attribute__((__unused__)).
19555         * lib/chown.c: Update client.
19556         * lib/fchmodat.c: Likewise.
19557         * lib/fts.c: Likewise.
19558         * lib/getdate.y: Likewise.
19559         * lib/getgroups.c: Likewise.
19560         * lib/getopt.c: Likewise.
19561         * lib/getugroups.c: Likewise.
19562         * lib/mkdir.c: Likewise.
19563         * lib/mkfifo.c: Likewise.
19564         * lib/mkfifoat.c: Likewise.
19565         * lib/mknod.c: Likewise.
19566         * lib/mknodat.c: Likewise.
19567         * lib/readlink.c: Likewise.
19568         * lib/se-context.in.h: Likewise.
19569         * lib/se-selinux.in.h: Likewise.
19570         * lib/sockets.c: Likewise.
19571         * lib/symlink.c: Likewise.
19572         * lib/symlinkat.c: Likewise.
19573         * lib/unicodeio.c: Likewise.
19574         * lib/unistr.h: Likewise.
19575         * tests/test-areadlink.c: Likewise.
19576         * tests/test-areadlinkat.c: Likewise.
19577         * tests/test-filenamecat.c: Likewise.
19578         * tests/test-fseeko.c: Likewise.
19579         * tests/test-ftello.c: Likewise.
19580         * tests/test-getdate.c: Likewise.
19581         * tests/test-getgroups.c: Likewise.
19582         * tests/test-gethostname.c: Likewise.
19583         * tests/test-quotearg.c: Likewise.
19584         * tests/test-version-etc.c: Likewise.
19585         * tests/test-xalloc-die.c: Likewise.
19586         * tests/test-xfprintf-posix.c: Likewise.
19587         * tests/test-xprintf-posix.c: Likewise.
19588         * tests/test-xvasprintf.c: Likewise.
19589
19590         tests: avoid compiler warnings
19591         * tests/test-fcntl.c (main): Delete unused parameters.
19592         * tests/test-freopen-safer.c (main): Likewise.
19593         * tests/test-xalloc-die.c (main): Mark unused parameters.
19594         * tests/test-fseeko.c (main): Likewise.
19595         * tests/test-ftello.c (main): Likewise.
19596         * tests/test-nanosleep.c (main): Avoid declaration warning.
19597         * tests/test-sleep.c (main): Likewise.
19598         * tests/test-unsetenv.c (main): Silence warning about string
19599         literal.
19600         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19601
19602 2009-12-23  Bruno Haible  <bruno@clisp.org>
19603
19604         * tests/test-localename.c (test_locale_name): New function, extracted
19605         from main. Also test mixed situations.
19606         (test_locale_name_posix, test_locale_name_environ,
19607         test_locale_name_default): New functions.
19608         (main): Invoke them all.
19609         * modules/localename-tests (configure.ac): Test for newlocale.
19610
19611 2009-12-23  Bruno Haible  <bruno@clisp.org>
19612
19613         unistd: Ensure getcwd gets declared before being overridden.
19614         * lib/unistd.in.h: Conditionally include <io.h>.
19615
19616 2009-12-22  Bruno Haible  <bruno@clisp.org>
19617
19618         wchar: Diagnose broken combination of glibc and gcc versions and flags.
19619         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
19620         (gl_WCHAR_H): Invoke it.
19621         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
19622         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
19623         Reported by Karl Berry <karl@freefriends.org>.
19624
19625 2009-12-22  Eric Blake  <ebb9@byu.net>
19626
19627         math, unistd: avoid redundant includes
19628         * lib/math.in.h (isnan): No need to re-include <math.h>.
19629         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
19630
19631         getsubopt: work around cygwin bug
19632         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
19633         avoid conflicting with system getsubopt.
19634         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
19635         bug.
19636
19637         getopt: synchronize from glibc
19638         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
19639         parameter order.  Adjust all callers.
19640         (_getopt_internal_r, main): Adjust quoting in error messages.
19641         Drop considerations for outdated POSIX 1003.2 error message.
19642         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
19643         callers.
19644         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
19645
19646         test-getopt: test stderr behavior
19647         * modules/getopt-posix-tests (Depends-on): Add dup2.
19648         * tests/test-getopt.c (ASSERT): Avoid stderr.
19649         (main): Move stderr to a temporary file.
19650         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
19651         Instead, add parameter to inform caller if output occurred.
19652         (test_getopt): Adjust all existing tests to expect silence, and
19653         add new tests of leading ":".
19654         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19655         glibc shortcomings with leading "-:" or "+:" in optstring.
19656         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19657         Likewise.
19658         * doc/posix-functions/getopt.texi (getopt): Likewise.
19659
19660         test-getopt: enhance test
19661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
19662         supports optind=0.
19663         * tests/test-getopt.c (OPTIND_MIN): Move...
19664         * tests/test-getopt.h (OPTIND_MIN): ...here.
19665         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
19666         Require that optind=0 works, since modern BSD supports it in
19667         addition to optreset, and since coreutils expects it.
19668         (test_getopt_long_only): New test.
19669         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19670         glibc shortcomings with 'W;', and enforcement of optind=0.
19671         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19672         Likewise.
19673
19674 2009-12-21  Bruno Haible  <bruno@clisp.org>
19675
19676         localename: Improvements for MacOS X and Cygwin.
19677         * lib/localename.h (gl_locale_name_environ): New declaration.
19678         * lib/localename.c (gl_locale_name_environ): New function, extracted from
19679         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
19680         (gl_locale_name_posix): Invoke it.
19681         (gl_locale_name_default): Add comments. Use Windows native API also on
19682         Cygwin.
19683
19684 2009-12-21  Bruno Haible  <bruno@clisp.org>
19685
19686         Update list of Win32 locale ids.
19687         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
19688         (LANG_SAMI): Renamed from LANG_SAAMI.
19689         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
19690         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
19691         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
19692         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
19693         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
19694         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
19695         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
19696         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
19697         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
19698         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
19699         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
19700         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
19701         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
19702         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
19703         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
19704         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
19705         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
19706         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
19707         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
19708         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
19709         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
19710         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
19711         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
19712         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
19713         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
19714         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
19715         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
19716         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
19717         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
19718         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
19719         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
19720         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
19721         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
19722         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
19723         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
19724         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
19725         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
19726         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
19727         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
19728         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
19729         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
19730         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
19731         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
19732         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
19733         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
19734         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
19735         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
19736         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
19737         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
19738         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
19739         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
19740         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
19741         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
19742         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
19743         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
19744         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
19745         Add more languages and countries for Sami, Sorbian. Add more countries
19746         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
19747         for Pashto. Change country for Syriac, Tswana.
19748
19749 2009-12-21  Eric Blake  <ebb9@byu.net>
19750
19751         test-utimens: avoid spurious failure
19752         * tests/test-chown.h (nap): Factor...
19753         * tests/nap.h: ...into new file.
19754         * tests/test-lchown.h (nap): Avoid duplication.
19755         * tests/test-utimens-common.h (nap): Use shared implementation,
19756         necessary on file systems with 1-second resolution.
19757         * modules/chown-tests (Files): Include new file.
19758         * modules/fdutimensat-tests (Files): Likewise.
19759         * modules/futimens-tests (Files): Likewise.
19760         * modules/lchown-tests (Files): Likewise.
19761         * modules/openat-tests (Files): Likewise.
19762         * modules/utimens-tests (Files): Likewise.
19763         * modules/utimensat-tests (Files): Likewise.
19764
19765 2009-12-19  Eric Blake  <ebb9@byu.net>
19766
19767         futimens, utimensat: work around Linux bug
19768         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
19769         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19770         * lib/utimensat.c (rpl_utimensat): Work around it.
19771         * lib/futimens.c (rpl_futimens): Adjust comment.
19772
19773         utimens: work around Linux ctime bug
19774         * lib/utimens.c (detect_ctime_bug): New helper function.
19775         (update_timespec): Differentiate between workaround needed for
19776         this bug vs. what is needed for systems that lack utimensat.
19777         (fdutimens, lutimens): Work around bug.
19778
19779         utimens: check for ctime update
19780         * tests/test-utimens-common.h (check_ctime): Define.
19781         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
19782         * tests/test-futimens.h (test_futimens): Likewise.
19783         * tests/test-lutimens.h (test_lutimens): Likewise.
19784         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19785         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19786
19787 2009-12-19  Bruno Haible  <bruno@clisp.org>
19788
19789         dprintf-posix: Check against memory leak fixed on 2009-12-15.
19790         * tests/test-dprintf-posix2.sh: New file.
19791         * tests/test-dprintf-posix2.c: New file.
19792         * modules/dprintf-posix-tests (Files): Add them.
19793         (configure.ac): Check for getrlimit and setrlimit.
19794         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19795
19796 2009-12-19  Bruno Haible  <bruno@clisp.org>
19797
19798         fprintf-posix: Check against memory leak fixed on 2009-12-15.
19799         * tests/test-fprintf-posix3.sh: New file.
19800         * tests/test-fprintf-posix3.c: New file.
19801         * modules/fprintf-posix-tests (Files): Add them.
19802         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19803
19804 2009-12-19  Eric Blake  <ebb9@byu.net>
19805
19806         dirfd: fix prototype
19807         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
19808         * lib/dirfd.c (dirfd): Likewise.
19809
19810         canonicalize: reduce memory usage
19811         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
19812         allocation to size.
19813         Reported by Solar Designer <solar@openwall.com>.
19814
19815 2009-12-19  Bruno Haible  <bruno@clisp.org>
19816
19817         New module attribute 'Applicability'.
19818         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
19819         * gnulib-tool: New option --extract-applicability.
19820         (func_usage): Document it.
19821         (sed_extract_prog): Recognize it.
19822         (func_get_applicability): New function.
19823         (func_import): Generalize handling of 'link-warning' module.
19824         * modules/link-warning (Applicability): New section.
19825         * modules/arg-nonnull (Applicability): New section.
19826         Repoted by Simon Josefsson <simon@josefsson.org>.
19827
19828 2009-12-19  Bruno Haible  <bruno@clisp.org>
19829
19830         fflush: tweak
19831         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
19832         * lib/fseeko.c (rpl_fseeko): Likewise.
19833
19834 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
19835
19836         * lib/gl_list.h: Fix typo in comment.
19837
19838 2009-12-16  Eric Blake  <ebb9@byu.net>
19839
19840         fcntl: use to simplify other modules
19841         * modules/cloexec (Depends-on): Add fcntl.
19842         * modules/fchdir (Depends-on): Likewise.
19843         * modules/fd-safer-flag (Depends-on): Likewise.
19844         * modules/unistd-safer (Depends-on): Likewise.
19845         * modules/dup3 (configure.ac): Set module indicator.
19846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
19847         missing.
19848         * lib/fchdir.c (_gl_register_dup): Fix comment.
19849         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
19850         * lib/dup-safer.c (dup_safer): Likewise.
19851         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
19852         * lib/dup3.c (dup3): Likewise.
19853         * tests/test-fchdir.c (main): Enhance test.
19854         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
19855
19856         fcntl: port portions of fcntl to mingw
19857         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
19858         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
19859         replacement for mingw.
19860         * modules/fcntl (Description): Update.
19861         (Depends-on): Add dup2.
19862         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
19863         * modules/fcntl-h (Makefile.am): Substitute it.
19864         * lib/fcntl.in.h (fcntl): Update declaration.
19865         (F_DUPFD, F_GETFD): New macros, when needed.
19866         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19867         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
19868         * tests/test-fcntl.c (check_flags, main): Enhance test for items
19869         we now guarantee.
19870
19871         fcntl: work around cygwin bug in F_DUPFD
19872         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
19873         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
19874         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
19875         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
19876         * doc/posix-functions/fcntl.texi (fcntl): Document it.
19877
19878         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
19879         * modules/fcntl (Files): List new files.
19880         (configure.ac): Run a test.
19881         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
19882         * lib/fcntl.c (rpl_fcntl): Likewise.
19883         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
19884         (gl_FCNTL_H): Always replace fcntl.h.
19885         * modules/fcntl-h (Makefile.am): Substitute witnesses.
19886         * lib/fcntl.in.h (fcntl): Declare replacement.
19887         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
19888         needed, plus a witness.
19889         * doc/posix-functions/fcntl.texi (fcntl): Document this.
19890         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19891         * tests/test-fcntl.c: New file.
19892         * modules/fcntl-tests: Likewise.
19893
19894         binary-io: avoid potential compilation warning
19895         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
19896         directives.
19897
19898         fflush: avoid compilation error on NetBSD
19899         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
19900         between off_t and fpos_t, since the latter is sometimes a struct.
19901         * lib/fseeko.c (rpl_fseeko): Likewise.
19902         Reported by Alexander Nasonov <alnsn@yandex.ru>.
19903
19904 2009-12-15  Eric Blake  <ebb9@byu.net>
19905
19906         fcntl-h, stdio, sys_ioctl: fix declarations
19907         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
19908         function must not take arguments.
19909         * lib/sys_ioctl.in.h (ioctl): Likewise.
19910         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
19911         (open): Add a link warning.
19912
19913 2009-12-15  Jim Meyering  <meyering@redhat.com>
19914
19915         areadlink, areadlink-with-size: relax license to LGPLv2+
19916         * modules/areadlink (License): Relax to LGPLv2+.
19917         * modules/areadlink-with-size (License): Likewise.
19918
19919 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
19920             Bruno Haible  <bruno@clisp.org>
19921
19922         *printf: Fix memory leak.
19923         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
19924         * lib/vfprintf.c (vfprintf): Likewise.
19925         * lib/dprintf.c (dprintf): Likewise.
19926         * lib/vdprintf.c (vdprintf): Likewise.
19927
19928 2009-12-14  Eric Blake  <ebb9@byu.net>
19929
19930         accept4: adjust module dependencies
19931         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
19932
19933         utimens: one more try at avoiding compiler warning
19934         * lib/utimens.c (lutimens): Lower scope of result.
19935
19936 2009-12-13  Bruno Haible  <bruno@clisp.org>
19937
19938         Move the malloc checking from module 'list' to new module 'xlist'.
19939         * modules/xlist: New file.
19940         * lib/gl_xlist.h: New file.
19941         * lib/gl_xlist.c: New file.
19942         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
19943         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
19944         gl_list_add_last, gl_list_add_before, gl_list_add_after,
19945         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
19946         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
19947         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
19948         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
19949         gl_sortedlist_nx_add): New declarations.
19950         (struct gl_list_implementation): Rename and change methods accordingly.
19951         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
19952         (gl_list_nx_create): Renamed from gl_list_create.
19953         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19954         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19955         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19956         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19957         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19958         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19959         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19960         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19961         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
19962         gl_list_create_empty.
19963         (gl_list_nx_create): Renamed from gl_list_create.
19964         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19965         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19966         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19967         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19968         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19969         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19970         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19971         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19972         * lib/gl_array_list.c: Don't include xalloc.h.
19973         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
19974         NULL upon out-of-memory.
19975         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
19976         out-of-memory.
19977         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
19978         Change return type to 'int'.
19979         (gl_array_nx_set_at): Renamed from gl_array_set_at.
19980         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19981         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
19982         upon out-of-memory.
19983         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
19984         upon out-of-memory.
19985         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
19986         upon out-of-memory.
19987         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
19988         upon out-of-memory.
19989         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
19990         out-of-memory.
19991         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
19992         Update.
19993         (gl_array_list_implementation): Update.
19994         * lib/gl_carray_list.c: Don't include xalloc.h.
19995         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
19996         Return NULL upon out-of-memory.
19997         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
19998         out-of-memory.
19999         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20000         Change return type to 'int'.
20001         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20002         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20003         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20004         upon out-of-memory.
20005         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20006         upon out-of-memory.
20007         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20008         out-of-memory.
20009         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20010         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20011         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20012         Update.
20013         (gl_carray_list_implementation): Update.
20014         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20015         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20016         gl_linked_create_empty. Return NULL upon out-of-memory.
20017         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20018         out-of-memory.
20019         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20020         Change return type to 'int'. Return -1 upon out-of-memory.
20021         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20022         out-of-memory.
20023         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20024         upon out-of-memory.
20025         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20026         upon out-of-memory.
20027         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20028         NULL upon out-of-memory.
20029         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20030         upon out-of-memory.
20031         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20032         out-of-memory.
20033         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20034         Update.
20035         * lib/gl_linked_list.c: Don't include xalloc.h.
20036         (gl_linked_list_implementation): Update.
20037         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20038         (add_to_bucket): Change return type to 'int'.
20039         (gl_linkedhash_list_implementation): Update.
20040         * lib/gl_anytree_list1.h (free_subtree): New function.
20041         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20042         gl_tree_create_empty. Return NULL upon out-of-memory.
20043         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20044         Change return type to 'int'. Return -1 upon out-of-memory.
20045         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20046         out-of-memory.
20047         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20048         (gl_tree_remove_node): New function, moved here from
20049         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20050         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20051         Update.
20052         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20053         malloc, not xmalloc. Return NULL upon out-of-memory.
20054         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20055         out-of-memory.
20056         (gl_tree_remove_node_from_tree): New function, extracted from
20057         gl_tree_remove_node.
20058         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20059         upon out-of-memory.
20060         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20061         out-of-memory.
20062         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20063         upon out-of-memory.
20064         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20065         upon out-of-memory.
20066         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20067         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20068         not xmalloc. Return NULL upon out-of-memory.
20069         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20070         out-of-memory.
20071         (gl_tree_remove_node_from_tree): New function, extracted from
20072         gl_tree_remove_node.
20073         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20074         upon out-of-memory.
20075         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20076         out-of-memory.
20077         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20078         upon out-of-memory.
20079         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20080         upon out-of-memory.
20081         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20082         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20083         gl_anytree_list1.h before gl_anyavltree_list2.h.
20084         (gl_avltree_list_implementation): Update.
20085         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20086         gl_anytree_list1.h before gl_anyavltree_list2.h.
20087         (gl_rbtree_list_implementation): Update.
20088         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20089         Change return type to 'int'. Return -1 upon out-of-memory. Use
20090         __builtin_expect.
20091         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20092         (gl_avltreehash_list_implementation): Update.
20093         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20094         (gl_rbtreehash_list_implementation): Update.
20095         * modules/array-list (Depends-on): Remove xalloc.
20096         * modules/carray-list (Depends-on): Likewise.
20097         * modules/linked-list (Depends-on): Likewise.
20098         * modules/linkedhash-list (Depends-on): Likewise.
20099         * modules/avltree-list (Depends-on): Likewise.
20100         * modules/rbtree-list (Depends-on): Likewise.
20101         * modules/avltreehash-list (Depends-on): Likewise.
20102         * modules/rbtreehash-list (Depends-on): Likewise.
20103
20104         * modules/xsublist: New file.
20105         * lib/gl_xsublist.h: New file.
20106         * lib/gl_xsublist.c: New file.
20107         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20108         (gl_sublist_nx_create): New declaration.
20109         * lib/gl_sublist.c: Don't include xalloc.h.
20110         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20111         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20112         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20113         Change return type to 'int'. Return -1 upon out-of-memory.
20114         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20115         upon out-of-memory.
20116         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20117         NULL upon out-of-memory.
20118         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20119         upon out-of-memory.
20120         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20121         NULL upon out-of-memory.
20122         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20123         NULL upon out-of-memory.
20124         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20125         upon out-of-memory.
20126         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20127         (gl_sublist_list_implementation): Update.
20128         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20129         upon out-of-memory.
20130         * modules/sublist (Depends-on): Remove xalloc.
20131
20132         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20133         * tests/test-carray_list.c: Likewise.
20134         * tests/test-linked_list.c: Likewise.
20135         * tests/test-linkedhash_list.c: Likewise.
20136         * tests/test-avltree_list.c: Likewise.
20137         * tests/test-rbtree_list.c: Likewise.
20138         * tests/test-avltreehash_list.c: Likewise.
20139         * tests/test-rbtreehash_list.c: Likewise.
20140         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20141         * modules/carray-list-tests (Makefile.am): Likewise.
20142         * modules/linked-list-tests (Makefile.am): Likewise.
20143         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20144         * modules/avltree-list-tests (Makefile.am): Likewise.
20145         * modules/rbtree-list-tests (Makefile.am): Likewise.
20146         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20147         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20148
20149         * NEWS: Mention the changes.
20150
20151         * lib/clean-temp.c: Include gl_xlist.h.
20152         * modules/clean-temp (Depends-on): Add xlist.
20153
20154         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20155         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20156
20157         * tests/test-array_oset.c: Include gl_xlist.h.
20158         * modules/array-oset-tests (Depends-on): Add xlist.
20159
20160         Reported by José E. Marchesi <jemarch@gnu.org>.
20161
20162 2009-12-13  Bruno Haible  <bruno@clisp.org>
20163
20164         Move the malloc checking from module 'oset' to new module 'xoset'.
20165         * modules/xoset: New file.
20166         * lib/gl_xoset.h: New file.
20167         * lib/gl_xoset.c: New file.
20168         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20169         declarations.
20170         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20171         (struct gl_oset_implementation): Rename and change methods accordingly.
20172         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20173         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20174         'int'. Mark as __warn_unused_result__.
20175         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20176         gl_oset_create_empty.
20177         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20178         'int'.
20179         * lib/gl_array_oset.c: Don't include xalloc.h.
20180         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20181         malloc, not xmalloc.
20182         (grow): Change return type to 'int'. Don't call xalloc_die.
20183         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20184         to 'int'.
20185         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20186         'int'.
20187         (gl_array_oset_implementation): Update.
20188         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20189         gl_tree_create_empty.
20190         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20191         'int'.
20192         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20193         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20194         xmalloc.
20195         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20196         not xmalloc.
20197         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20198         xmalloc.
20199         (gl_avltree_oset_implementation): Update.
20200         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20201         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20202         xmalloc.
20203         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20204         not xmalloc.
20205         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20206         xmalloc.
20207         (gl_rbtree_oset_implementation): Update.
20208         * modules/array-oset (Depends-on): Remove xalloc.
20209         * modules/avltree-oset (Depends-on): Likewise.
20210         * modules/rbtree-oset (Depends-on): Likewise.
20211         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20212         * tests/test-avltree_oset.c: Likewise.
20213         * tests/test-rbtree_oset.c: Likewise.
20214         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20215         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20216         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20217         * NEWS: Mention the change.
20218
20219 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20220
20221         maint.mk: allow a project to override release-prep commands
20222         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20223         commands into a new rule.
20224         (release-prep): New rule.
20225         (release-prep-hook): New overridable variable.
20226
20227 2009-12-13  Bruno Haible  <bruno@clisp.org>
20228
20229         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20230
20231 2009-12-13  Jim Meyering  <meyering@redhat.com>
20232
20233         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20234         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20235
20236 2009-12-12  Bruno Haible  <bruno@clisp.org>
20237
20238         duplocale: Tweak.
20239         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20240
20241 2009-12-12  Karl Berry  <karl@gnu.org>
20242
20243         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20244
20245 2009-12-12  Bruno Haible  <bruno@clisp.org>
20246
20247         * m4/po.m4: Undo incorrect untabification.
20248
20249 2009-12-12  Bruno Haible  <bruno@clisp.org>
20250
20251         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20252         * modules/c-strtod (Depends-on): Add locale.
20253         * modules/c-strtold (Depends-on): Likewise.
20254
20255 2009-12-12  Bruno Haible  <bruno@clisp.org>
20256
20257         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20258
20259 2009-12-11  Eric Blake  <ebb9@byu.net>
20260
20261         setenv: relax requirement in light of POSIX ruling
20262         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20263         not NULL.
20264         * tests/test-setenv.c (main): Relax test.
20265         * tests/test-unsetenv.c (main): Likewise.
20266         * doc/posix-functions/setenv.texi (setenv): Document this.
20267         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20268
20269 2009-12-11  Bruno Haible  <bruno@clisp.org>
20270
20271         New module 'fd-safer-flag'.
20272         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20273         * lib/dup-safer.c (dup_safer_flag): Remove function.
20274         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20275         * lib/fd-safer.c (fd_safer_flag): Remove function.
20276         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20277         * modules/cloexec (configure.ac): Drop indicator macro.
20278         * modules/fd-safer-flag: New file.
20279         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20280         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20281         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20282
20283 2009-12-11  Bruno Haible  <bruno@clisp.org>
20284
20285         Tests for module 'nl_langinfo'.
20286         * modules/nl_langinfo-tests: New file.
20287         * tests/test-nl_langinfo.sh: New file.
20288         * tests/test-nl_langinfo.c: New file.
20289
20290         New module 'nl_langinfo'.
20291         * lib/nl_langinfo.c: New file.
20292         * m4/nl_langinfo.m4: New file.
20293         * modules/nl_langinfo: New file.
20294         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20295
20296 2009-12-11  Bruno Haible  <bruno@clisp.org>
20297
20298         Tests for module 'langinfo'.
20299         * modules/langinfo-tests: New file.
20300         * tests/test-langinfo.c: New file.
20301
20302         New module 'langinfo'.
20303         * lib/langinfo.in.h: New file.
20304         * m4/langinfo_h.m4: New file.
20305         * modules/langinfo: New file.
20306         * doc/posix-headers/langinfo.texi: Mention the new module.
20307
20308 2009-12-11  Bruno Haible  <bruno@clisp.org>
20309
20310         * lib/config.charset: Untabify.
20311
20312 2009-12-11  Bruno Haible  <bruno@clisp.org>
20313
20314         * modules/unistd-safer (configure.ac): Drop indicator macro.
20315
20316 2009-12-11  Bruno Haible  <bruno@clisp.org>
20317
20318         Move pipe2-safer code to its own file.
20319         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20320         * lib/pipe-safer.c (pipe2_safer): Remove function.
20321         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20322         (Makefile.am): Add it to lib_SOURCES.
20323
20324 2009-12-10  Bruno Haible  <bruno@clisp.org>
20325
20326         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20327
20328 2009-12-10  Bruno Haible  <bruno@clisp.org>
20329
20330         Declare which arguments expect non-NULL values, for GCC and clang.
20331         * build-aux/arg-nonnull.h: New file.
20332         * modules/arg-nonnull: New file.
20333         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20334         (inet_ntop, inet_pton): Use it.
20335         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20336         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20337         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20338         (open, openat): Use it.
20339         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20340         (fnmatch): Use it.
20341         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20342         (getopt, getopt_long, getopt_long_only): Use it.
20343         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20344         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20345         Use it.
20346         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20347         (iconv_open): Use it.
20348         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20349         (strtoimax, strtoumax): Use it.
20350         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
20351         (duplocale): Use it.
20352         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
20353         (frexp, frexpl): Use it.
20354         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20355         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20356         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20357         (tsearch, tfind, tdelete, twalk): Use it.
20358         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20359         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20360         sigpending): Use it.
20361         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20362         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20363         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20364         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20365         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20366         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20367         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20368         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20369         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20370         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20371         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20372         Use it.
20373         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20374         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20375         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20376         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20377         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20378         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20379         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20380         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20381         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20382         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20383         strtoull, unsetenv): Use it.
20384         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20385         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20386         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20387         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20388         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20389         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20390         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20391         (strcasecmp, strncasecmp): Use it.
20392         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20393         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20394         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20395         rpl_setsockopt): Use it.
20396         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20397         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20398         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20399         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20400         (gettimeofday): Use it.
20401         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20402         (times): Use it.
20403         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20404         (uname): Use it.
20405         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20406         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20407         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20408         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20409         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20410         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20411         unlinkat, write): Use it.
20412         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20413         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20414         * lib/argv-iter.h: Include arg-nonnull.h.
20415         (_ATTRIBUTE_NONNULL_): Remove macro.
20416         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
20417         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
20418         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
20419         optimization.
20420         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
20421         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
20422         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
20423         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
20424         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
20425         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
20426         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
20427         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
20428         * modules/arpa_inet (Depends-on): Add arg-nonnull.
20429         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
20430         * modules/dirent (Depends-on): Add arg-nonnull.
20431         (Makefile.am): Insert arg-nonnull.h into dirent.h.
20432         * modules/fcntl-h (Depends-on): Add arg-nonnull.
20433         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
20434         * modules/fnmatch (Depends-on): Add arg-nonnull.
20435         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
20436         * modules/getopt-posix (Depends-on): Add arg-nonnull.
20437         (Makefile.am): Insert arg-nonnull.h into getopt.h.
20438         * modules/glob (Depends-on): Add arg-nonnull.
20439         (Makefile.am): Insert arg-nonnull.h into glob.h.
20440         * modules/iconv_open (Depends-on): Add arg-nonnull.
20441         (Makefile.am): Insert arg-nonnull.h into iconv.h.
20442         * modules/inttypes (Depends-on): Add arg-nonnull.
20443         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
20444         * modules/locale (Depends-on): Add arg-nonnull.
20445         (Makefile.am): Insert arg-nonnull.h into locale.h.
20446         * modules/math (Depends-on): Add arg-nonnull.
20447         (Makefile.am): Insert arg-nonnull.h into math.h.
20448         * modules/netdb (Depends-on): Add arg-nonnull.
20449         (Makefile.am): Insert arg-nonnull.h into netdb.h.
20450         * modules/search (Depends-on): Add arg-nonnull.
20451         (Makefile.am): Insert arg-nonnull.h into search.h.
20452         * modules/signal (Depends-on): Add arg-nonnull.
20453         (Makefile.am): Insert arg-nonnull.h into signal.h.
20454         * modules/spawn (Depends-on): Add arg-nonnull.
20455         (Makefile.am): Insert arg-nonnull.h into spawn.h.
20456         * modules/stdio (Depends-on): Add arg-nonnull.
20457         (Makefile.am): Insert arg-nonnull.h into stdio.h.
20458         * modules/stdlib (Depends-on): Add arg-nonnull.
20459         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
20460         * modules/string (Depends-on): Add arg-nonnull.
20461         (Makefile.am): Insert arg-nonnull.h into string.h.
20462         * modules/strings (Depends-on): Add arg-nonnull.
20463         (Makefile.am): Insert arg-nonnull.h into strings.h.
20464         * modules/sys_socket (Depends-on): Add arg-nonnull.
20465         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
20466         * modules/sys_stat (Depends-on): Add arg-nonnull.
20467         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
20468         * modules/sys_time (Depends-on): Add arg-nonnull.
20469         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
20470         * modules/sys_times (Depends-on): Add arg-nonnull.
20471         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
20472         * modules/sys_utsname (Depends-on): Add arg-nonnull.
20473         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
20474         * modules/time (Depends-on): Add arg-nonnull.
20475         (Makefile.am): Insert arg-nonnull.h into time.h.
20476         * modules/unistd (Depends-on): Add arg-nonnull.
20477         (Makefile.am): Insert arg-nonnull.h into unistd.h.
20478         * modules/wchar (Depends-on): Add arg-nonnull.
20479         (Makefile.am): Insert arg-nonnull.h into wchar.h.
20480         * modules/argv-iter (Depends-on): Add arg-nonnull.
20481         * tests/test-canonicalize.c (null_ptr): New function.
20482         (main): Use it.
20483         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
20484         (main): Use it.
20485         * tests/test-memmem.c (null_ptr): New function.
20486         (main): Use it.
20487         Reported by Jim Meyering.
20488
20489 2009-12-10  Bruno Haible  <bruno@clisp.org>
20490
20491         Use spaces for indentation, not tabs.
20492         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20493         * m4/*.m4: Untabify.
20494         * build-aux/*.h: Untabify.
20495         * tests/**/*.[hc]: Untabify.
20496         * README: New section "Indent with spaces, not TABs", based on
20497         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
20498         * NEWS: Mention the change.
20499
20500 2009-12-10  Bruno Haible  <bruno@clisp.org>
20501
20502         pty test: Fix link error.
20503         * modules/pty-tests (Makefile.am): Add the default LDADD value to
20504         test_pty_LDADD.
20505
20506 2009-12-07  Simon Josefsson  <simon@josefsson.org>
20507
20508         * modules/pty: New file.
20509         * modules/pty-tests: New file.
20510         * m4/pty.m4: New file.
20511         * tests/test-pty.c: New file.
20512         * doc/glibc-headers/pty.texi: Modified.
20513         * doc/glibc-functions/forkpty.texi: Modified.
20514         * doc/glibc-functions/openpty.texi: Modified.
20515
20516 2009-12-10  Bruno Haible  <bruno@clisp.org>
20517
20518         Avoid syntax error in C++ mode.
20519         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
20520
20521 2009-12-10  Bruno Haible  <bruno@clisp.org>
20522
20523         Use sed with option -e.
20524         * gnulib-tool (func_version, func_emit_copyright_notice,
20525         func_emit_initmacro_end, func_import, func_create_testdir): Pass
20526         option -e to sed.
20527         * modules/link-warning (Makefile.am): Likewise.
20528
20529 2009-12-10  Jim Meyering  <meyering@redhat.com>
20530
20531         mgetgroups: do not write bytes beyond end of malloc'd buffer
20532         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
20533         username, we call getgroups with a one-element-shorter buffer,
20534         but still told it the length was original, max_n_groups.
20535
20536 2009-12-09  Eric Blake  <ebb9@byu.net>
20537
20538         cloexec: relax license
20539         * modules/cloexec (Maintainer): Add myself.
20540         (License): Use LGPL, not GPL.
20541
20542         link-warning: optimize generation
20543         * modules/link-warning (Makefile.am): Reduce process usage.
20544
20545 2009-12-09  Bruno Haible  <bruno@clisp.org>
20546
20547         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
20548         workaround was added on 2009-11-17.
20549
20550 2009-12-09  Jim Meyering  <meyering@redhat.com>
20551             Bruno Haible  <bruno@clisp.org>
20552
20553         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
20554         * modules/link-warning (Makefile.am): Make the comment-removing sed
20555         command more robust in the face of bootstrap-prepended comment lines.
20556
20557 2009-12-09  Bruno Haible  <bruno@clisp.org>
20558
20559         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
20560         most one group.
20561
20562 2009-12-09  Simon Josefsson <simon@josefsson.org>
20563             Bruno Haible  <bruno@clisp.org>
20564
20565         * build-aux/link-warning.h: Add copyright notice.
20566         * modules/link-warning (Makefile.am): Generate link-warning.h from
20567         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
20568         * NEWS: Mention change in link-warning module.
20569         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
20570         * modules/dirent (Makefile.am): Add dependency to dirent.h.
20571         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
20572         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
20573         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
20574         * modules/math (Makefile.am): Add dependency to math.h.
20575         * modules/search (Makefile.am): Add dependency to search.h.
20576         * modules/signal (Makefile.am): Add dependency to signal.h.
20577         * modules/spawn (Makefile.am): Add dependency to spawn.h.
20578         * modules/stdio (Makefile.am): Add dependency to stdio.h.
20579         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
20580         * modules/string (Makefile.am): Add dependency to string.h.
20581         * modules/strings (Makefile.am): Add dependency to strings.h.
20582         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
20583         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
20584         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
20585         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
20586         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
20587         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
20588         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
20589         * modules/unistd (Makefile.am): Add dependency to unistd.h.
20590         * modules/wchar (Makefile.am): Add dependency to wchar.h.
20591
20592 2009-12-09  Bruno Haible  <bruno@clisp.org>
20593
20594         fchdir: Optimize away rpl_fstat when possible.
20595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
20596         REPLACE_OPEN_DIRECTORY.
20597         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
20598
20599 2009-12-09  Bruno Haible  <bruno@clisp.org>
20600
20601         * lib/fchdir.c: Update comment.
20602
20603 2009-12-09  Bruno Haible  <bruno@clisp.org>
20604
20605         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
20606
20607 2009-12-08  Eric Blake  <ebb9@byu.net>
20608
20609         fchdir: avoid memory leak on re-registration.
20610         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
20611
20612 2009-12-08  Jim Meyering  <meyering@redhat.com>
20613
20614         init.sh: avoid Solaris 10 /bin/sh portability problem
20615         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
20616         sourced script:
20617           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
20618           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
20619           bar
20620         tests/init.sh relied on that, accepting a --set-path=DIR argument,
20621         and two tests used that idiom.
20622         * tests/init.sh: Update suggested usage comments.
20623         (path_prepend_): New function, to be used in place
20624         of the --src-path=DIR option.
20625         (setup_): Move PATH-prepending code into path_prepend_.
20626         * tests/test-pread.sh: Adapt to new usage.
20627         * tests/test-xalloc-die.sh: Likewise.
20628
20629 2009-12-08  Simon Josefsson  <simon@josefsson.org>
20630
20631         * doc/gnulib.texi (Glibc pty.h): Add.
20632         * doc/glibc-functions/forkpty.texi: Add.
20633         * doc/glibc-functions/openpty.texi: Add.
20634         Suggested by Bruno Haible.
20635
20636 2009-12-08  Eric Blake  <ebb9@byu.net>
20637
20638         fchdir: fix logic bugs
20639         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
20640         * tests/test-fchdir.c (main): Enhance test.
20641         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
20642         is in use.
20643
20644         dup2: fix logic bugs
20645         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
20646         REPLACE_DUP2 to decide when rpl_dup2 is needed.
20647         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
20648         exists.
20649         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
20650
20651 2009-12-07  Eric Blake  <ebb9@byu.net>
20652
20653         unlink: fix m4 detection
20654         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
20655
20656         unistd-safer: add unit test
20657         * modules/unistd-safer-tests: New file.
20658         * tests/test-dup-safer.c: Likewise.
20659         * tests/test-cloexec.c (setmode): Avoid compiler warning.
20660         * tests/test-dup2.c (setmode): Likewise.
20661         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
20662
20663         cloexec: preserve text vs. binary across dup_cloexec
20664         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
20665         mode.
20666         * modules/dup2-tests (Depends-on): Add binary-io.
20667         * modules/cloexec-tests (Depends-on): Likewise.
20668         * tests/test-dup2.c (setmode, is_mode): New helpers.
20669         (main): Add tests that translation mode is preserved.
20670         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
20671         Reported by Bruno Haible.
20672
20673         mgetgroups: reduce duplicate listings
20674         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
20675         resulting array.
20676         * tests/test-chown.h (test_chown): Simplify client.
20677         * tests/test-lchown.h (test_lchown): Likewise.
20678
20679 2009-12-06  Bruno Haible  <bruno@clisp.org>
20680
20681         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
20682         value.
20683
20684 2009-12-06  Bruno Haible  <bruno@clisp.org>
20685
20686         * lib/progname.c: Include stdio.h, stdlib.h.
20687         (set_program_name): Reject a NULL argument.
20688
20689 2009-12-05  Eric Blake  <ebb9@byu.net>
20690
20691         pipe2-safer: new module
20692         * modules/pipe2-safer: New file.
20693         * lib/unistd-safer.h (pipe2_safer): New prototype.
20694         * lib/unistd--.h (pipe2): New wrapper.
20695         * lib/pipe-safer.c (pipe2_safer): New function.
20696         * modules/pipe (Depends-on): Add pipe2-safer.
20697         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
20698
20699         stdlib-safer: preserve cloexec flag for mkostemp[s]
20700         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
20701         fd_safer_flag.
20702
20703         unistd-safer: allow preservation of cloexec status via flag
20704         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
20705         prototypes.
20706         * lib/dup-safer.c (dup_safer_flag): New function.
20707         * lib/fd-safer.c (fd_safer_flag): Likewise.
20708         * modules/cloexec (configure.ac): Set witness.
20709
20710         test-dup2: enhance test
20711         * modules/dup2-tests (Depends-on): Add cloexec.
20712         * tests/test-dup2.c (main): Enhance test.
20713
20714         cloexec: add dup_cloexec
20715         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
20716         header and comments.
20717         * lib/cloexec.c (set_cloexec_flag): Add comments.
20718         (dup_cloexec): New function, with mingw implementation borrowed
20719         from...
20720         * lib/w32spawn.h (dup_noinherit): ...here.
20721         * modules/execute (Depends-on): Add cloexec.
20722         * modules/pipe (Depends-on): Likewise.
20723         * modules/cloexec (Depends-on): Add dup2.
20724         * modules/cloexec-tests (Files): New file.
20725         * tests/test-cloexec.c: Likewise.
20726
20727         test-xalloc-die: fix test for mingw
20728         * modules/xalloc-die-tests (Files): Add tests/init.sh.
20729         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
20730         directory and .exe suffix off argv[0] output.
20731
20732         test-fseeko: fix test for mingw
20733         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
20734         than undefining fseek, so test will pass on mingw.
20735
20736 2009-12-05  Bruno Haible  <bruno@clisp.org>
20737
20738         * lib/progname.h (set_program_name): Clarify specification.
20739         * lib/progname.c (set_program_name): Likewise.
20740         Reported by Jim Meyering.
20741
20742 2009-12-05  Jim Meyering  <meyering@redhat.com>
20743
20744         maint.mk: backslash-escape parens in default regexp
20745         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
20746         backslash-escape the literal parentheses.
20747
20748         maint.mk: news-date-check: use grep -E
20749         * top/maint.mk (today): Define a Make variable, not a...
20750         (news-date-check): ...shell variable.
20751         (news-date-regexp): Use the Make variable.
20752         Use grep's -E option.  Change the failing diagnostic to mention
20753         the variable, $(news-date-regexp).
20754
20755 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
20756
20757         maintainer-makefile: allow customization of NEWS entry format
20758         * top/maint.mk (news-date-regexp): New overridable variable.
20759         (news-date-check): Use it.
20760
20761 2009-12-04  Eric Blake  <ebb9@byu.net>
20762
20763         mgetgroups: add xgetgroups, and avoid ENOSYS failures
20764         * lib/mgetgroups.h (xgetgroups): New prototype.
20765         * lib/mgetgroups.c (xgetgroups): New wrapper.
20766         (mgetgroups): Handle ENOSYS.
20767         * modules/mgetgroups (Depends-on): Add realloc.
20768         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
20769
20770         mgetgroups: avoid argument promotion issues with -1
20771         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
20772         for invalid gid_t.
20773         * tests/test-chown.h (getegid, test_chown): Likewise.
20774         * tests/test-lchown.h (getegid, test_lchown): Likewise.
20775
20776 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
20777
20778         exclude: Fix header file problems.
20779         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
20780
20781 2009-12-01  Jim Meyering  <meyering@redhat.com>
20782
20783         fts: fts_open: do not let an empty string cause immediate failure
20784         This is required in support of GNU rm, for which the command
20785         "rm A '' B" must process and remove both A and B, in spite of
20786         the empty string argument.
20787         * lib/fts.c (fts_open): Do not let the presence of an empty string
20788         cause fts_open to fail immediately.  Most fts-using tools must be
20789         able to process all arguments, in order, and can be expected to
20790         diagnose such arguments themselves.
20791
20792 2009-11-30  Eric Blake  <ebb9@byu.net>
20793
20794         utimens: fix compilation error
20795         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
20796         Declare variable at right scope.
20797
20798 2009-11-29  Jim Meyering  <meyering@redhat.com>
20799
20800         bootstrap: handle perl-5.11's changed --version output
20801         * build-aux/bootstrap (get_version): Handle perl separately,
20802         since perl-5.11's --version output is different.
20803
20804 2009-11-28  Jim Meyering  <meyering@redhat.com>
20805
20806         userspec: depend on the inttostr module, too
20807         * modules/userspec (Depends-on): Add inttostr.
20808
20809         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
20810         * lib/userspec.c (parse_with_separator): Do not accept a user ID
20811         number of MAXUID when it evaluates to (uid_t) -1.
20812         Likewise for group ID.  Reported by Matt McCutchen in
20813         <http://savannah.gnu.org/bugs/?28113>
20814
20815         userspec: reformat to use spaces, not TABs
20816         * lib/userspec.c: Expand TABs to spaces.
20817         Add Emacs' "indent-tabs-mode: nil" hint.
20818
20819 2009-11-27  Eric Blake  <ebb9@byu.net>
20820
20821         getopt-gnu: flush out another BSD bug
20822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
20823         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
20824         flush out BSD bug.
20825         * tests/test-getopt.h (test_getopt): End lists with NULL.
20826         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20827         (test_getopt_long_posix): Enhance test.
20828         * modules/getopt-posix-tests (Depends-on): Add stdbool.
20829         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
20830         getopt-gnu.
20831         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20832         Likewise.
20833
20834 2009-11-27  Simon Josefsson  <simon@josefsson.org>
20835
20836         * modules/idpriv-droptemp-tests (Notice): Fix text.
20837
20838 2009-11-27  Jim Meyering  <meyering@redhat.com>
20839
20840         test-xalloc-die: avoid spurious failure due to libtool argv difference
20841         In a libtool-enabled project, this test would fail due to a difference
20842         in the emitted program name, e.g.,
20843         -test-xalloc-die: memory exhausted
20844         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
20845         Use program to avoid that.
20846         * modules/xalloc-die-tests (Depends-on): Add progname.
20847         * tests/test-xalloc-die.c: Include progname.h".
20848         (program_name): Remove decl.
20849         (main): Call set_program_name.
20850         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
20851
20852 2009-11-26  Richard Jones  <rjones@redhat.com>
20853
20854         w32sock: leave win32 error in place.
20855         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
20856
20857 2009-11-26  Eric Blake  <ebb9@byu.net>
20858
20859         init.sh: suggest to use skip_ and fail_ functions in comments
20860         * tests/init.sh: Add a sentence.
20861
20862 2009-11-25  Bruno Haible  <bruno@clisp.org>
20863
20864         init.sh: add documentation in comments
20865         * tests/init.sh: Add some developer and user documentation.
20866
20867 2009-11-26  Jim Meyering  <meyering@redhat.com>
20868
20869         init.sh: accommodate even those who specify bogus srcdir manually
20870         * tests/init.sh: Normally, srcdir is guaranteed by automake and
20871         configure-time tests to be sanitized, so that there is no need to
20872         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
20873         (with no double quotes) suffices.  However, since tests may be
20874         invoked manually, and since you may explicitly set srcdir to the
20875         name of a directory containing spaces, do quote its uses here.
20876         * tests/test-pread.sh: Likewise.
20877         Suggested by Bruno Haible.
20878
20879         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
20880         * tests/test-pread.sh: Write no data into the pipe, because
20881         test-pread actually reads none.  This avoids a diagnostic,
20882         "bash: echo: write error: Broken pipe", that arises in the unusual
20883         event something is ignoring SIGPIPE, and might be interpreted
20884         as some sort of failure.  Reported by Bruno Haible.
20885
20886 2009-11-25  Jim Meyering  <meyering@redhat.com>
20887
20888         test-pread: cover failure with ESPIPE and EINVAL
20889         * tests/test-pread.c (main): Test for failure, too.
20890         * tests/test-pread.sh: Invoke with stdin on a pipe.
20891         Suggested by Eric Blake.
20892
20893         pread: improvement and fix
20894         * modules/pread (Depends-on): Depend on lseek, for portability to
20895         e.g., mingw.  Suggested by Eric Blake.
20896         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
20897
20898         unistd.in.h: correct declaration of pread
20899         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
20900         Reported by Richard W.M. Jones.
20901
20902         test-pread.sh: distribute the test script
20903         * modules/pread-tests (Files): Include test-pread.sh.
20904
20905         test-pread.sh: clean up
20906         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
20907         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
20908         That is unnecessary, since it's always ".".
20909         Suggestion from Eric Blake.
20910
20911         test-pread.sh: make executable
20912         * tests/test-pread.sh: Set executable bit.
20913         Reported by Eric Blake.
20914
20915         correct typo in test-pread.sh
20916         * tests/test-pread.sh: Add #! line.
20917
20918         test pread
20919         * tests/test-pread.c: New file.
20920         * tests/test-pread.sh: Likewise.
20921         * modules/pread-tests: Likewise.
20922
20923         pread: new module
20924         * modules/pread: New file.
20925         * lib/unistd.in.h (pread): Define/declare.
20926         * lib/pread.c (pread): New file.
20927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
20928         * modules/unistd (Makefile.am): Substitute witnesses.
20929         * doc/posix-functions/pread.texi (pread): Update.
20930         * MODULES.html.sh: Add pread.
20931
20932 2009-11-25  Jim Meyering  <meyering@redhat.com>
20933
20934         tests/init.sh: new file to be used via most *.sh tests
20935         * tests/init.sh: New file.
20936
20937 2009-11-25  Eric Blake  <ebb9@byu.net>
20938
20939         utimens: work around older Linux failure with symlinks
20940         * lib/utimens.c (lutimensat_works_really): New variable.
20941         (fdutimens, lutimens): Use it to manage kernels that support
20942         nanosecond times on files, but not on symlinks.
20943         Reported by OndÅ™ej Vašík.
20944
20945         utimes: fix configure grammar
20946         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
20947
20948 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
20949
20950         regex: Fix fastmap for multibyte character ranges.
20951         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
20952         characters when a multibyte character range is included.
20953
20954 2009-11-22  Andy Wingo  <wingo@pobox.com>
20955
20956         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
20957         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
20958
20959 2009-11-24  Bruno Haible  <bruno@clisp.org>
20960
20961         doc: Most *_l functions exist in MacOS X 10.5.
20962         * doc/posix-functions/duplocale.texi: Update platforms list.
20963         * doc/posix-functions/freelocale.texi: Likewise.
20964         * doc/posix-functions/newlocale.texi: Likewise.
20965         * doc/posix-functions/uselocale.texi: Likewise.
20966         * doc/posix-functions/isalnum_l.texi: Likewise.
20967         * doc/posix-functions/isalpha_l.texi: Likewise.
20968         * doc/posix-functions/isblank_l.texi: Likewise.
20969         * doc/posix-functions/iscntrl_l.texi: Likewise.
20970         * doc/posix-functions/isdigit_l.texi: Likewise.
20971         * doc/posix-functions/isgraph_l.texi: Likewise.
20972         * doc/posix-functions/islower_l.texi: Likewise.
20973         * doc/posix-functions/isprint_l.texi: Likewise.
20974         * doc/posix-functions/ispunct_l.texi: Likewise.
20975         * doc/posix-functions/isspace_l.texi: Likewise.
20976         * doc/posix-functions/isupper_l.texi: Likewise.
20977         * doc/posix-functions/iswalnum_l.texi: Likewise.
20978         * doc/posix-functions/iswalpha_l.texi: Likewise.
20979         * doc/posix-functions/iswblank_l.texi: Likewise.
20980         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20981         * doc/posix-functions/iswctype_l.texi: Likewise.
20982         * doc/posix-functions/iswdigit_l.texi: Likewise.
20983         * doc/posix-functions/iswgraph_l.texi: Likewise.
20984         * doc/posix-functions/iswlower_l.texi: Likewise.
20985         * doc/posix-functions/iswprint_l.texi: Likewise.
20986         * doc/posix-functions/iswpunct_l.texi: Likewise.
20987         * doc/posix-functions/iswspace_l.texi: Likewise.
20988         * doc/posix-functions/iswupper_l.texi: Likewise.
20989         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20990         * doc/posix-functions/isxdigit_l.texi: Likewise.
20991         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
20992         * doc/posix-functions/strcasecmp_l.texi: Likewise.
20993         * doc/posix-functions/strcoll_l.texi: Likewise.
20994         * doc/posix-functions/strfmon_l.texi: Likewise.
20995         * doc/posix-functions/strftime_l.texi: Likewise.
20996         * doc/posix-functions/strncasecmp_l.texi: Likewise.
20997         * doc/posix-functions/strxfrm_l.texi: Likewise.
20998         * doc/posix-functions/tolower_l.texi: Likewise.
20999         * doc/posix-functions/toupper_l.texi: Likewise.
21000         * doc/posix-functions/towctrans_l.texi: Likewise.
21001         * doc/posix-functions/towlower_l.texi: Likewise.
21002         * doc/posix-functions/towupper_l.texi: Likewise.
21003         * doc/posix-functions/wcscoll_l.texi: Likewise.
21004         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21005         * doc/posix-functions/wctrans_l.texi: Likewise.
21006         * doc/posix-functions/wctype_l.texi: Likewise.
21007         * doc/glibc-functions/strptime_l.texi: Likewise.
21008         * doc/glibc-functions/strtod_l.texi: Likewise.
21009         * doc/glibc-functions/strtof_l.texi: Likewise.
21010         * doc/glibc-functions/strtol_l.texi: Likewise.
21011         * doc/glibc-functions/strtold_l.texi: Likewise.
21012         * doc/glibc-functions/strtoll_l.texi: Likewise.
21013         * doc/glibc-functions/strtoul_l.texi: Likewise.
21014         * doc/glibc-functions/strtoull_l.texi: Likewise.
21015         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21016         * doc/glibc-functions/wcstod_l.texi: Likewise.
21017         * doc/glibc-functions/wcstof_l.texi: Likewise.
21018         * doc/glibc-functions/wcstol_l.texi: Likewise.
21019         * doc/glibc-functions/wcstold_l.texi: Likewise.
21020         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21021         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21022         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21023
21024 2009-11-24  Bruno Haible  <bruno@clisp.org>
21025
21026         duplocale: Fix logic bug.
21027         * lib/duplocale.c: Don't include <langinfo.h>.
21028         (_NL_LOCALE_NAME): Remove macro.
21029         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21030         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21031
21032 2009-11-23  Jim Meyering  <meyering@redhat.com>
21033
21034         test-update-copyright: don't hard-code /usr/bin/perl
21035         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21036         perl to print the current year.  Gilles Espinasse reported that
21037         the replaced use of perl was hard-coded as /usr/bin/perl.
21038
21039 2009-11-23  Bruno Haible  <bruno@clisp.org>
21040
21041         duplocale: Add support for glibc 2.3.x.
21042         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21043
21044 2009-11-22  Bruno Haible  <bruno@clisp.org>
21045
21046         vasnprintf: Tiny optimization.
21047         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21048         MacOS X.
21049
21050 2009-11-22  Bruno Haible  <bruno@clisp.org>
21051
21052         Tests for module 'duplocale'.
21053         * modules/duplocale-tests: New file.
21054         * tests/test-duplocale.c: New file.
21055
21056         New module 'duplocale'.
21057         * m4/duplocale.m4: New file.
21058         * lib/locale.in.h (duplocale): New declaration.
21059         * lib/duplocale.c: New file.
21060         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21061         gl_LOCALE_H_DEFAULTS): New macros.
21062         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21063         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21064         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21065         REPLACE_DUPLOCALE.
21066         * modules/duplocale: New file.
21067         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21068
21069 2009-11-22  Bruno Haible  <bruno@clisp.org>
21070
21071         * modules/locale-tests (configure.ac): Test for newlocale function.
21072         * tests/test-locale.c: When the system has extended locale functions,
21073         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21074
21075         locale: Make locale_t available when possible.
21076         * lib/locale.in.h: Include <xlocale.h> when it exists.
21077         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21078         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21079         * modules/locale (Depends-on): Add extensions.
21080         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21081         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21082
21083 2009-11-22  Bruno Haible  <bruno@clisp.org>
21084
21085         Add comments.
21086         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21087         invocation.
21088         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21089         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21090         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21091
21092 2009-11-22  Bruno Haible  <bruno@clisp.org>
21093
21094         error: account for the possibility of freopen (stdout).
21095         * lib/error.c: Include <unistd.h>.
21096         (flush_stdout): New function, extracted from error and error_at_line.
21097         Determine stdout's fd dynamically.
21098         (error, error_at_line): Invoke flush_stdout.
21099         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21100         * modules/error (Depends-on): Add unistd.
21101
21102 2009-11-22  Bruno Haible  <bruno@clisp.org>
21103
21104         diffseq: Add comment.
21105         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21106
21107 2009-11-22  Jim Meyering  <meyering@redhat.com>
21108
21109         c-stack: avoid defining an unused static function
21110         * lib/c-stack.c (find_stack_direction): Do not define this function
21111         when it will not be used.
21112
21113         diffseq: avoid spurious gcc warnings
21114         * lib/diffseq.h (IF_LINT2): Define.
21115         (compareseq): Use it to initialize two members of "part".
21116         This avoids two used-uninitialized warnings.
21117
21118 2009-11-21  Jim Meyering  <meyering@redhat.com>
21119
21120         c-stack: avoid "ignoring return value of `write'" warning
21121         * lib/c-stack.c: Include "ignore-value.h".
21122         (die): Explicitly ignore each write return value.
21123         * modules/c-stack (Depends-on): Add ignore-value.
21124
21125 2009-11-21  Bruno Haible  <bruno@clisp.org>
21126
21127         diffseq: reduce scope of variable 'best'.
21128         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21129         variable, earlier used for two different purposes.
21130
21131 2009-11-21  Jim Meyering  <meyering@redhat.com>
21132
21133         diffseq: remove useless assignment to "best"
21134         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21135         assignment.  At that point "best" is already guaranteed to be zero.
21136
21137 2009-11-20  Eric Blake  <ebb9@byu.net>
21138
21139         build: mention ftp redirector in release announcements
21140         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21141         values that used to come from cfg.mk; mention FTP redirect URL.
21142         * build-aux/announce-gen: Mention the mirror list.
21143         Suggested by Karl Berry.
21144
21145         nanosleep: improve port to mingw
21146         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21148         LIB_NANOSLEEP, but only when needed.
21149         * modules/select (Link): Document LIBSOCKET.
21150         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21151         enough.
21152
21153         nanosleep: work around cygwin bug
21154         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21155         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21156         bug.
21157         (getnow): Delete, not needed.
21158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21159         LIB_CLOCK_GETTIME.
21160         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21161         clock-time, gettime.
21162         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21163         bug.
21164         * modules/nanosleep-tests: New test.
21165         * tests/test-nanosleep.c: New file.
21166
21167         sleep: work around cygwin bug
21168         * lib/sleep.c (rpl_sleep): Work around the bug.
21169         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21170         (gl_PREREQ_SLEEP): Delete unused macro.
21171         * modules/sleep (Depends-on): Add verify.
21172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21173         * modules/unistd (Makefile.am): Substitute witness.
21174         * lib/unistd.in.h (sleep): Update prototype.
21175         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21176         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21177         * modules/sleep-tests (Depends-on): Check for alarm.
21178
21179 2009-11-20  Jim Meyering  <meyering@redhat.com>
21180
21181         maint.mk: improve sc_prohibit_magic_number_exit
21182         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21183         so it does not match uses like System.exit(1).
21184         Add comments showing how to correct all offenders.
21185
21186 2009-11-19  Eric Blake  <ebb9@byu.net>
21187
21188         xalloc-die-tests: add missing library
21189         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21190
21191         test-xvasprintf: silence compiler warnings
21192         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21193         empty string from gcc.
21194
21195 2009-11-19  Jim Meyering  <meyering@redhat.com>
21196
21197         xfreopen: new module, from coreutils
21198         * modules/xfreopen: New module.
21199         * lib/xfreopen.c: New file.
21200         * lib/xfreopen.h: New file.
21201         * MODULES.html.sh (File stream based Input/Output"): Add it.
21202
21203 2009-11-19  Eric Blake  <ebb9@byu.net>
21204
21205         manywarnings: depend on warnings
21206         * modules/manywarnings (Depends-on): Add warnings.
21207
21208         build: avoid compiler warnings
21209         * lib/select.c (rpl_select): Delete unused variable.
21210         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21211
21212 2009-11-18  Eric Blake  <ebb9@byu.net>
21213
21214         tests: avoid false negative with --with-packager
21215         * tests/test-version-etc.sh: Discard packager information.
21216         * tests/test-argp-version-etc-1.sh: Likewise.
21217         Reported by Mike Frysinger.
21218
21219         utimens: fix regression on Solaris
21220         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21221         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21222         can only change fd timestamps via futimesat.  Instead, use an
21223         additional witness macro to avoid BSD bug.
21224         Reported by Jim Meyering.
21225
21226 2009-11-17  Eric Blake  <ebb9@byu.net>
21227
21228         usleep: use it to simplify tests
21229         * modules/stat-time-tests (Depends-on): Add usleep.
21230         (configure.ac): Drop usleep check.
21231         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21232         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21233         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21234         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21235         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21236         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21237         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21238         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21239         Likewise.
21240         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21241         * tests/test-lchown.h (nap): Likewise.
21242         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21243         * tests/test-stat-time.c (nap): Likewise.
21244         * tests/test-utimens-common.h (nap): Update comments.
21245
21246         usleep: new module
21247         * modules/usleep: New file.
21248         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21249         * lib/usleep.c (usleep): Likewise.
21250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21251         * modules/unistd (Makefile.am): Substitute witnesses.
21252         * lib/unistd.in.h (usleep): Add declaration.
21253         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21254         * MODULES.html.sh (Date and time): Likewise.
21255         * modules/usleep-tests (Depends-on): New test.
21256         * tests/test-usleep.c: New file.
21257
21258         chown: work around OpenBSD bug
21259         * lib/chown.c (rpl_chown): Work around the bug.
21260         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21261         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21262         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21263         * modules/chown (Depends-on): Add stdbool.
21264         * modules/lchown (Depends-on): Likewise.
21265         * doc/posix-functions/chown.texi (chown): Document the bug.
21266         * doc/posix-functions/lchown.texi (lchown): Likewise.
21267         * tests/test-lchown.h (test_chown): Relax test.
21268
21269         mkstemp: avoid conflict with C++ keyword template
21270         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21271         * lib/mkostemp.c (mkostemp): Likewise.
21272         * lib/mkostemps.c (mkostemps): Likewise.
21273         * lib/mkstemp.c (mkstemp): Likewise.
21274         * lib/mkstemps.c (mkstemps): Likewise.
21275
21276         xalloc-die-tests: optimize
21277         * tests/test-xalloc-die.sh: Reduce number of processes.
21278
21279 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21280
21281         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21282         patch from ludo@gnu.org (Ludovic Courtès).
21283
21284 2009-11-17  Jim Meyering  <meyering@redhat.com>
21285
21286         version-etc: use proper license string
21287         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21288         * modules/version-etc-fsf: Likewise.
21289
21290 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21291
21292         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21293         printed to stdout.  Deal with EOL differences.
21294
21295 2009-11-17  Eric Blake  <ebb9@byu.net>
21296
21297         unsetenv: work around Solaris bug
21298         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21299         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21300         Reported by Jim Meyering.
21301
21302         vasnprintf: avoid compiler warnings
21303         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21304         variables.
21305         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21306
21307 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21308
21309         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21310         settings since xalloc-die is no longer the self test,
21311         xalloc-die.sh is.
21312
21313 2009-11-17  Jim Meyering  <meyering@redhat.com>
21314
21315         test-xalloc-die.sh: make the code agree with the commit log
21316         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21317         at the end, just in case you happen to have a test-xalloc-die
21318         program in some other PATH directory.
21319
21320         test-xalloc-die.sh: fix a portability bug
21321         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21322         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21323         Otherwise, argv[0] (as often seen in diagnostics) would be too
21324         system-dependent, sometimes with, and sometimes without the leading "./".
21325
21326         version-etc-fsf: relax license to LGPLv3+
21327         * modules/version-etc-fsf (License): Relax license.
21328
21329 2009-11-16  Eric Blake  <ebb9@byu.net>
21330
21331         xalloc-die-tests: avoid printing null pointer
21332         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21333         shell script.
21334         * tests/test-xalloc-die.c (program_name): Declare.
21335         * tests/test-xalloc-die.sh (tmpfiles): New file.
21336
21337         setenv, unsetenv: work around various bugs
21338         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21339         (setenv) [HAVE_SETENV]: Work around bugs.
21340         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21341         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21342         for bugs.
21343         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21344         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21346         * modules/stdlib (Makefile.am): Update substitutions.
21347         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21348         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21349         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21350         * modules/setenv-tests: New test.
21351         * modules/unsetenv-tests: Likewise.
21352         * tests/test-setenv.c: New file.
21353         * tests/test-unsetenv.c: Likewise.
21354
21355 2009-11-16  Jim Meyering  <meyering@redhat.com>
21356
21357         version-etc: relax license to LGPLv3+
21358         * modules/version-etc (License): Relax license.
21359
21360         better AC_REQUIRE expanded-before-required-warning avoidance
21361         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21362         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21363         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21364         which is no longer needed.
21365
21366 2009-11-16  Eric Blake  <ebb9@byu.net>
21367
21368         test-freading: clean up temporary file
21369         * tests/test-freading.c (main): Remove file on success, and use
21370         ASSERT more liberally.
21371         Reported by Jim Meyering.
21372
21373 2009-11-16  Jim Meyering  <meyering@redhat.com>
21374
21375         avoid new AC_REQUIRE expanded-before-required warnings
21376         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21377         merely using it.
21378         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21379         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21380
21381 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21382
21383         * tests/test-xalloc-die.c: New file.
21384         * modules/xalloc-die-tests: New file.
21385         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21386         XFAIL_TESTS so it can be appended by modules.
21387
21388 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21389
21390         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21391         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21392
21393 2009-11-14  Eric Blake  <ebb9@byu.net>
21394
21395         fnmatch: avoid compiler warning
21396         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21397         to silence compiler warning about mismatch signedness in ?:.
21398         Reported by Robert Millan.
21399
21400         intprops: add double-inclusion guard
21401         * lib/intprops.h: Allow idempotent includes.
21402         Suggested by Bruce Korb.
21403
21404         openat: detect Solaris fchownat bug
21405         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21406         penalizing glibc chownat when only lchownat is broken.
21407         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21408         trailing slash bugs.
21409         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21410         * modules/openat-tests (Files): Include more files.
21411         (Depends-on): Add mgetgroups, sleep, stat-time.
21412         (configure.ac): Add additional checks.
21413         (Makefile.am): Build new test.
21414         * tests/test-fchownat.c: New file.
21415
21416         lchown: detect Solaris and FreeBSD bug
21417         * lib/lchown.c (rpl_lchown): Work around bug.
21418         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
21419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21420         * modules/unistd (Makefile.am): Populate it.
21421         * lib/unistd.in.h (lchown): Update declaration.
21422         * doc/posix-functions/lchown.texi (lchown): Document the bug.
21423         * modules/lchown-tests: New file.
21424         * tests/test-lchown.h (test_lchown): Likewise.
21425         * tests/test-lchown.c (main): Likewise.
21426
21427         chown: detect Solaris and FreeBSD bug
21428         * lib/chown.c (rpl_chown): Work around bug.
21429         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
21430         (gl_PREREQ_CHOWN): Delete.
21431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21432         * modules/unistd (Makefile.am): Populate it.
21433         * lib/unistd.in.h (chown): Update declaration.
21434         * lib/lchown.c (chown): Update client.
21435         * modules/lchown (Depends-on): Add lstat.
21436         * doc/posix-functions/chown.texi (chown): Document the bug.
21437         * doc/posix-functions/getgroups.texi (getgroups): Document
21438         getgroups pitfall.
21439         * modules/chown-tests: New file.
21440         * tests/test-chown.h (test_chown): Likewise.
21441         * tests/test-chown.c (main): Likewise.
21442
21443 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
21444
21445         gnulib-tool: correctly detect absence of m4 directories
21446         * gnulib-tool: Avoid extra newline on data passed to wc -l.
21447
21448 2009-11-14  Jim Meyering  <meyering@redhat.com>
21449
21450         maint.mk: Prohibit inclusion of "xalloc.h" without use.
21451         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21452
21453 2009-11-14  John W. Eaton  <jwe@gnu.org>
21454
21455         strftime.h: wrap funtion declaration in extern "C" block
21456         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
21457
21458 2009-11-13  Eric Blake  <ebb9@byu.net>
21459
21460         getgroups: avoid compiler warning
21461         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
21462
21463         getgroups: work around FreeBSD bug
21464         * lib/getgroups.c (rpl_getgroups): Work around the bug.
21465         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
21466         * doc/posix-functions/getgroups.texi (getgroups): Document it.
21467         * tests/test-getgroups.c (main): Fix buffer overrun.
21468
21469         getgroups: avoid compilation failure
21470         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
21471         * modules/getgroups (Depends-on): Add stdint.
21472
21473 2009-11-13  Jim Meyering  <meyering@redhat.com>
21474
21475         test-getgroups: avoid compilation failure
21476         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
21477
21478 2009-11-13  Eric Blake  <ebb9@byu.net>
21479
21480         mgetgroups: new module, taken from coreutils
21481         * modules/mgetgroups: New file.
21482         * lib/mgetgroups.h: Likewise.
21483         * lib/mgetgroups.c (mgetgroups): Likewise.
21484         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
21485         * MODULES.html.sh (Users and groups): Mention it.
21486
21487         getgroups: don't expose GETGROUPS_T to user
21488         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
21489         an element at a time if GETGROUPS_T is wrong size.
21490         * lib/getugroups.h (getugroups): Change signature.
21491         * lib/unistd.in.h (getgroups): Likewise.
21492         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
21493         signature needs fixing.
21494         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
21495         AC_TYPE_GETGROUPS.
21496         * modules/group-member (Depends-on): Add getgroups.
21497         * lib/group-member.c (group_info, get_group_info): Use gid_t.
21498         (group_member): Rely on getgroups replacement.
21499         * lib/getugroups.c (getugroups): Use gid_t.
21500         * tests/test-getgroups.c (main): Likewise.
21501         * NEWS: Mention the signature change.
21502         * doc/posix-functions/getgroups.texi (getgroups): Mention the
21503         problem with signature.
21504         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
21505         GETGROUPS_T is still useful for setgroups.
21506
21507         getgroups, getugroups: provide stubs for mingw
21508         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
21509         * lib/getugroups.c (getugroups): Likewise.
21510         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
21511         function.  Modernize replacement scheme.
21512         (gl_PREREQ_GETGROUPS): Delete.
21513         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
21514         * modules/getgroups (configure.ac): Declare witness.
21515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21516         * modules/unistd (Depends-on): Substitute witness.
21517         * lib/unistd.in.h (getgroups): Declare replacement.
21518
21519         getgroups: avoid calling exit
21520         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
21521         drop xalloc.
21522         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
21523         dependencies.
21524         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
21525         exiting, in the rare case of malloc failure.
21526
21527         getgroups: fix logic error
21528         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
21529         has more than 20 groups.
21530         * modules/getgroups-tests: New test.
21531         * tests/test-getgroups.c: New file.
21532
21533 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21534
21535         * tests/test-base64.c: Improve.
21536
21537 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21538
21539         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
21540         Blake <ebb9@byu.net>.
21541
21542 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21543
21544         * tests/test-xvasprintf.c: Add %s%s related checks.
21545
21546 2009-11-12  Eric Blake  <ebb9@byu.net>
21547
21548         version-etc: match standards.texi style
21549         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
21550         and use <> only for URLs.
21551
21552 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
21553
21554         fts: do not fail on a submount during traversal
21555         * lib/fts.c (fts_build): Read the stat info again after opening
21556         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
21557         Original report at http://bugzilla.redhat.com/501848.
21558
21559 2009-11-12  Jim Meyering  <meyering@redhat.com>
21560
21561         bootstrap: sync from coreutils
21562         * build-aux/bootstrap (bootstrap_epilogue): New function.
21563         Use git_modules_config in one more place.  This make bootstrap's
21564         --gnulib-srcdir option more useful for testing.
21565
21566         bootstrap: generalize autoheader check
21567         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
21568         AC_CONFIG_HEADERS.
21569
21570 2009-11-11  Eric Blake  <ebb9@byu.net>
21571
21572         mkfifoat: use new modules for Solaris and BSD bugs
21573         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
21574         * lib/mkfifoat.c (mknodat): Split...
21575         * lib/mknodat.c (mknodat): ...into new file.
21576         * modules/mkfifoat (Files): Ship new file.
21577         (Depends-on): Add mkfifo, mknod.
21578         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
21579         (Depends-on): Add symlink.
21580         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
21581         redundant with test_mkfifo.h.
21582         (do_mkfifoat, do_mknodat): New helpers.
21583
21584         mknod: new module
21585         * modules/mknod: New file.
21586         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
21587         * lib/mknod.c (mknod): Likewise.
21588         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21589         defaults.
21590         * modules/sys_stat (Makefile.am): Substitute them.
21591         * lib/sys_stat.in.h (mknod): Declare replacement.
21592         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21593         Document it.
21594         * doc/posix-functions/mknod.texi (mknod): Likewise.
21595         * modules/mknod-tests: New test.
21596         * tests/test-mknod.c: Likewise.
21597
21598         mkfifo: new module
21599         * modules/mkfifo: New file.
21600         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21601         * lib/mkfifo.c (mkfifo): Likewise.
21602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21603         defaults.
21604         * modules/sys_stat (Makefile.am): Substitute them.
21605         * lib/sys_stat.in.h (mkfifo): Declare replacement.
21606         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21607         Document it.
21608         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
21609         * modules/mkfifo-tests: New test.
21610         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
21611         from test-mkfifoat.c.
21612         * tests/test-mkfifo.c: New file.
21613
21614         readlink: detect FreeBSD bug
21615         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
21616         slash on symlink.
21617         * doc/posix-functions/readlink.texi (readlink): Document the bug.
21618         * tests/test-readlink.h (test_readlink): Enhance test.
21619
21620         symlink: detect FreeBSD bug
21621         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
21622         slash on symlink.
21623         * doc/posix-functions/symlink.texi (symlink): Document the bug.
21624         * tests/test-symlink.h (test_symlink): Enhance test.
21625
21626 2009-11-10  Eric Blake  <ebb9@byu.net>
21627
21628         link: detect FreeBSD bug
21629         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
21630         symlink.
21631         * doc/posix-functions/link.texi (link): Document the bug.
21632         * tests/test-link.h (test_link): Enhance test.
21633         * tests/test-linkat.c (main): Update caller.
21634
21635         unlink, remove: detect FreeBSD bug
21636         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
21637         slash on symlink.
21638         * doc/posix-functions/unlink.texi (unlink): Document the bug.
21639         * doc/posix-functions/remove.texi (remove): Likewise.
21640         * tests/test-unlink.h (test_unlink): Enhance test.
21641         * tests/test-remove.c (main): Likewise.
21642
21643 2009-11-09  Eric Blake  <ebb9@byu.net>
21644
21645         rename: detect FreeBSD bug
21646         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
21647         slash on symlink.
21648         * modules/renameat-tests (Depends-on): Add filenamecat.
21649         * tests/test-rename.h (test_rename): Allow one more errno.
21650         * tests/test-renameat.c (main): Likewise.
21651         * doc/posix-functions/rename.texi (rename): Document the bug.
21652
21653         open: detect FreeBSD bug
21654         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
21655         symlink.
21656         * doc/posix-functions/open.texi (open): Document the bug.
21657         * doc/posix-functions/utimes.texi (utimes): Likewise.
21658         * tests/test-open.h (test_open): Add parameters, and test symlink
21659         handling.
21660         * tests/test-open.c (main): Adjust caller.
21661         * tests/test-fcntl-safer.c (main): Likewise.
21662         * modules/open-tests (Depends-on): Add stdbool, symlink.
21663         * modules/fcntl-safer-tests (Depends-on): Likewise.
21664         * tests/test-openat.c (main): Add test-open tests.
21665
21666         stat: detect FreeBSD bug
21667         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
21668         symlink.
21669         * doc/posix-functions/stat.texi (stat): Document the bug.
21670         * tests/test-stat.h (test_stat_func): Add argument.
21671         * tests/test-stat.c (main): Adjust caller.
21672         * tests/test-fstatat.c (main): Likewise.
21673         * modules/stat-tests (Depends-on): Add stdbool, symlink.
21674         Reported by Jim Meyering.
21675
21676 2009-11-09  James Youngman  <jay@gnu.org>
21677
21678         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
21679         * lib/strftime.c: Correct placement of #include "ignore-value.h".
21680
21681 2009-11-08  Jim Meyering  <meyering@redhat.com>
21682
21683         utimens: remove invalid futimesat call
21684         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
21685         It used the file descriptor of the target file as the DIR_FD
21686         parameter and NULL as the file name.  That caused failure with
21687         errno == EFAULT on FreeBSD-8.0-rc2
21688
21689 2009-11-07  Eric Blake  <ebb9@byu.net>
21690
21691         fflush, freadseek: use fseeko, not fseek
21692         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21693         (clear_ungetc_buffer): Avoid potential problems on large files.
21694         * lib/freadseek.c (freadseek): Likewise.
21695         * modules/freadseek (Depends-on): Add fseeko.
21696         * modules/fseek (configure.ac): Set a witness.
21697         * tests/test-fflush.c (main): Use fseeko.
21698         * tests/test-fpurge.c (fseek): Disable link warning.
21699         * tests/test-freadable.c (fseek): Likewise.
21700         * tests/test-freading.c (fseek): Likewise.
21701         * tests/test-fseeko.c (fseek): Likewise.
21702         * tests/test-ftell.c (fseek): Likewise.
21703         * tests/test-ftello.c (fseek): Likewise.
21704         * tests/test-fwritable.c (fseek): Likewise.
21705         * tests/test-fwriting.c (fseek): Likewise.
21706
21707 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21708
21709         * modules/memchr (Depends-on): Drop getpagesize dependency.
21710
21711 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21712
21713         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
21714         Reported by Ludovic Courtès.
21715         * build-aux/pmccabe2html: Improve example usage.
21716         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
21717
21718 2009-11-06  Jim Meyering  <meyering@redhat.com>
21719
21720         do-release-commit-and-tag: New module.
21721         Automate the release-commit and tag process.
21722         * build-aux/do-release-commit-and-tag: New script, from coreutils.
21723         * modules/do-release-commit-and-tag: New file.
21724         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21725
21726 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21727
21728         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
21729         because test-select.c uses inet_pton.
21730
21731 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21732
21733         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
21734         GETADDRINFO_LIB.  Bump serial number.
21735         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
21736         Suggested by Eric Blake <ebb9@byu.net>.
21737
21738 2009-11-05  Eric Blake  <ebb9@byu.net>
21739
21740         strtod: detect darwin bug
21741         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
21742         Reported by Leo Davis.
21743
21744         freopen-safer: new module
21745         * modules/freopen-safer: New module.
21746         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
21747         * lib/freopen-safer.c (freopen_safer): New file.
21748         * lib/stdio-safer.h (freopen_safer): New declaration.
21749         * lib/stdio--.h (freopen): New override.
21750         * MODULES.html.sh (File stream based Input/Output): Mention it.
21751         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
21752         freopen-safer module.
21753         * doc/posix-functions/stderr.texi (stderr): Likewise.
21754         * doc/posix-functions/stdin.texi (stdin): Likewise.
21755         * doc/posix-functions/stdout.texi (stdout): Likewise.
21756         * modules/freopen-safer-tests: New test.
21757         * tests/test-reopen-safer.c: New file.
21758
21759 2009-11-05  Jim Meyering  <meyering@redhat.com>
21760
21761         maint.mk: Prohibit inclusion of "close-stream.h" without use.
21762         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21763
21764 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21765
21766         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
21767
21768 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21769
21770         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
21771
21772 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21773
21774         Fix link error.
21775         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21776         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21777
21778 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21779
21780         * tests/test-func.c: Also test value of __func__.
21781
21782 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21783
21784         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
21785         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
21786
21787 2009-11-05  Bruno Haible  <bruno@clisp.org>
21788
21789         Fix link error.
21790         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21791         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21792         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
21793
21794 2009-11-05  Bruno Haible  <bruno@clisp.org>
21795
21796         Tests for module 'inet_pton'.
21797         * modules/inet_pton-tests: New file.
21798         * tests/test-inet_pton.c: New file.
21799
21800 2009-11-05  Bruno Haible  <bruno@clisp.org>
21801
21802         Tests for module 'inet_ntop'.
21803         * modules/inet_ntop-tests: New file.
21804         * tests/test-inet_ntop.c: New file.
21805
21806 2009-11-04  Eric Blake  <ebb9@byu.net>
21807
21808         stdlib-safer: wrap all mkstemp variants
21809         * modules/mkostemp (configure.ac): Set witness.
21810         * modules/mkostemps (configure.ac): Likewise.
21811         * modules/mkstemps (configure.ac): Likewise.
21812         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
21813         (mkstemps_safer): Wrap more functions.
21814         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
21815         wrapping.
21816         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
21817         (mkstemps_safer): Implement the wrappers.
21818
21819         mkstemps, mkostemps: new modules
21820         * modules/mkostemps: New module.
21821         * modules/mkstemps: Likewise.
21822         * lib/mkostemps.c (mkostemps): New file.
21823         * lib/mkstemps.c (mkstemps): Likewise.
21824         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
21825         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
21826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
21827         * modules/stdlib (Makefile.am): Substitute them.
21828         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
21829         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
21830         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21831         * doc/gnulib.texi (Glibc stdlib.h): Include them.
21832         * MODULES.html.sh (File system functions): Mention them.
21833
21834         tempname: resync from glibc
21835         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
21836         same values for __GT_FILE as glibc.  Abort even when assertions
21837         are disabled.
21838         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
21839         match its value otherwise.  Allow idempotent inclusion.
21840         * lib/mkdtemp.c (mkdtemp): Adjust caller.
21841         * lib/mkostemp.c (mkostemp): Likewise.
21842         * lib/mkstemp.c (mkstemp): Likewise.
21843         * lib/tmpfile.c (tmpfile): Likewise.
21844         * NEWS: Document this.
21845
21846         utimens: fix use of futimens on older Linux
21847         * lib/utimens.c (fdutimens): Use updated, rather than original,
21848         timespec to avoid bug in older Linux kernel.
21849         Reported by Simon Josefsson.
21850
21851 2009-11-04  Bruno Haible  <bruno@clisp.org>
21852
21853         Make num_processors more flexible and consistent.
21854         * lib/nproc.h (enum nproc_query): New type.
21855         (num_processors): Add a 'query' argument.
21856         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
21857         (num_processors): Add a 'query' argument. Test the value of the
21858         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
21859         mingw, count the number of CPUs available for the current process.
21860         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
21861         Check for sched_getaffinity and sched_getaffinity_np.
21862         * modules/nproc (Depends-on): Add c-ctype, extensions.
21863         * NEWS: Mention the change.
21864
21865 2009-11-03  Bruno Haible  <bruno@clisp.org>
21866
21867         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
21868
21869 2009-11-03  Jim Meyering  <meyering@redhat.com>
21870
21871         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
21872         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
21873         if it is defined.
21874
21875 2009-11-02  Eric Blake  <ebb9@byu.net>
21876
21877         mktime, timegm: share common declaration
21878         * lib/mktime-internal.h: New file.
21879         * lib/mktime.c: Use it rather than open-coding a declaration.
21880         * lib/timegm.c: Likewise.
21881         * modules/mktime (Files): Ship it.
21882         * modules/timegm (Files): Likewise.
21883         Suggested by Bruno Haible.
21884
21885         test-update-copyright: update test to match script changes
21886         * tests/test-update-copyright.sh: Avoid hard-coding perl
21887         location.  Don't update *.bak created by earlier runs.
21888
21889 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21890             Simon Josefsson  <simon@josefsson.org>
21891             Bruno Haible  <bruno@clisp.org>
21892
21893         Fix link error on Solaris 8.
21894         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
21895         also in libnsl. Define also INET_PTON_LIB.
21896         * modules/inet_pton (Link): New section.
21897
21898 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21899             Bruno Haible  <bruno@clisp.org>
21900
21901         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
21902         * modules/inet_ntop (Link): New section.
21903         Reported by Boyan Kasarov <bkasarov@gmail.com>.
21904
21905 2009-11-02  Eric Blake  <ebb9@byu.net>
21906
21907         maint: avoid compiler warnings in m4 macros
21908         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
21909         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
21910
21911 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21912
21913         * m4/pmccabe2html.m4: Remove file.
21914         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
21915         function.  Change maintainer.
21916         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
21917         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
21918         Courtès).
21919
21920 2009-10-31  Eric Blake  <ebb9@byu.net>
21921
21922         fseeko: fix m4 regression
21923         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
21924         regression from 2009-10-27.
21925         Reported by Ralf Wildenhues.
21926
21927 2009-10-31  Jim Meyering  <meyering@redhat.com>
21928
21929         inttostr: aesthetics and improved (compile-time) safety
21930         Define inttype_is_signed rather than inttype_is_unsigned,
21931         since the sole use is via "#if inttype_is_signed".
21932         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
21933         inttype_is_unsigned.
21934         * lib/offtostr.c (inttype_is_signed): Likewise.
21935         * lib/uinttostr.c (inttype_is_signed): Likewise.
21936         * lib/umaxtostr.c (inttype_is_signed): Likewise.
21937         * lib/inttostr.c (inttostr): Use verify to cross-check the
21938         inttype_is_signed value and the signedness of the actual type.
21939         * modules/inttostr (Depends-on): Add verify.
21940
21941 2009-10-30  Eric Blake  <ebb9@byu.net>
21942
21943         build: avoid compiler warnings
21944         * lib/fchmodat.c (lchmod): Mark unused variables.
21945         * lib/getopt.c (_getopt_initialize): Likewise.
21946         * lib/mktime.c (__mktime_internal): Provide prototype.
21947         * lib/inttostr.c (inttostr): Avoid compiler warning even with
21948         older gcc that do not understand #pragma GCC diagnostic.
21949         * lib/uinttostr.c (inttype_is_unsigned): Define.
21950         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
21951
21952 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21953
21954         stat: fix compilation on AIX
21955         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
21956         only see struct stat64.
21957
21958 2009-10-30  Eric Blake  <ebb9@byu.net>
21959
21960         exclude: make more robust
21961         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
21962         rather than masking a coding bug.
21963         Suggested by Bruno Haible.
21964
21965 2009-10-30  Jim Meyering  <meyering@redhat.com>
21966
21967         perl scripts: remove #!/usr/bin/perl in favor of more portable...
21968         Rather than putting #!/usr/bin/perl on the first line,
21969         start with a variant of what's recommended by "man perlrun" that
21970         invokes the first "perl" program from your shell's search path.
21971         * build-aux/gitlog-to-changelog: Replace #!... as above.
21972         Add a "Local Variables" perl mode setting.
21973         Prompted by a patch from Ludovic Courtès.
21974         Improved by Eric Blake.
21975         * build-aux/useless-if-before-free: Likewise.
21976         * build-aux/announce-gen: Likewise.
21977         * build-aux/update-copyright: Likewise.
21978
21979 2009-10-29  Eric Blake  <ebb9@byu.net>
21980
21981         filenamecat-lgpl: adjust clients
21982         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
21983         filenamecat.
21984         * modules/renameat (Depends-on): Likewise.
21985
21986         filenamecat: split into filenamecat-lgpl
21987         * modules/filenamecat-lgpl: New module.
21988         * modules/filenamecat (Files): Move library-safe files into
21989         filenamecat-lgpl.
21990         (Depends-on): Add filenamecat-lgpl.
21991         (configure.ac): Declare witness.
21992         * lib/filenamecat.h (file_name_concat): Only declare when using
21993         GPL module.
21994         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
21995         Move...
21996         * lib/filenamecat-lgpl.c: ...into new file.
21997         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
21998         (gl_FILE_NAME_CONCAT): Use it.
21999         * MODULES.html.sh (File system functions): Mention new module.
22000
22001         argp: avoid memory leak
22002         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22003         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22004         base_name, since the latter malloc()s and can call exit().
22005         Leak introduced 2006-07-03.
22006
22007         dirname-lgpl: adjust clients that don't need full dirname
22008         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22009         * modules/filenamecat (Depends-on): Likewise.
22010         * modules/linkat (Depends-on): Likewise.
22011         * modules/mkancesdirs (Depends-on): Likewise.
22012         * modules/mkdir (Depends-on): Likewise.
22013         * modules/openat (Depends-on): Likewise.
22014         * modules/savewd (Depends-on): Likewise.
22015         * modules/rename (Depends-on): Likewise.
22016         (License): Relax license.
22017         * modules/mkdir-tests (Depends-on): Drop progname.
22018         (Makefile.am): Delete unneeded LDADD.
22019         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22020
22021         dirname: split into dirname-lgpl
22022         * modules/dirname-lgpl: New module.
22023         * modules/dirname (Files): Move library-safe files into
22024         dirname-lgpl.
22025         (Depends-on): Add dirname-lgpl.
22026         (configure.ac): Declare witness.
22027         * modules/double-slash-root (License): Relax license.
22028         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22029         module.
22030         * lib/dirname.c (dir_len, mdir_name): Move...
22031         * lib/dirname-lgpl.c: ...into new file.
22032         * lib/basename.c (last_component, base_len): Move...
22033         * lib/basename-lgpl.c: ...into new file.
22034         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22035         (gl_DIRNAME): Use it.
22036         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22037         Mention new module.
22038         * modules/dirname-tests (Depends-on): Add progname.
22039         * tests/test-dirname.c (program_name): Delete.
22040
22041         mkdir: make safe for libraries
22042         * modules/mkdir (Depends-on): Drop xalloc.
22043         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22044         exit.
22045
22046         tests: avoid some compiler warnings
22047         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22048         literals.
22049         * tests/test-memchr.c (main): Avoid type mismatch.
22050         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22051         * tests/test-base64.c (main): Likewise.
22052         * tests/test-getdelim.c (main): Likewise.
22053         * tests/test-gethostname.c (main): Likewise.
22054         * tests/test-getline.c (main): Likewise.
22055         * tests/test-netinet_in.c (main): Likewise.
22056         * tests/test-select.c (open_server_socket, main): Likewise.
22057         * tests/test-select-stdin.c (main): Likewise.
22058         * tests/test-sockets.c (main): Likewise.
22059         * tests/test-strsignal.c (main): Likewise.
22060         * tests/test-sys_select.c (main): Likewise.
22061         * tests/test-sys_socket.c (main): Likewise.
22062         * tests/test-u64.c (main): Likewise.
22063         * tests/test-xfprintf-posix.c (main): Likewise.
22064         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22065
22066         sockets: avoid compiler warning
22067         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22068
22069         maint: detect usage(1) and other suspicious exits
22070         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22071
22072 2009-10-29  Jim Meyering  <meyering@redhat.com>
22073
22074         timespec: long-to-int truncation could make timespec_cmp malfunction
22075         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22076         a multiple of 2^32 nanoseconds as no difference.
22077
22078 2009-10-28  Jim Meyering  <meyering@redhat.com>
22079
22080         fprintftime: wrap macro code argument in "do {...} while(0)"
22081         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22082         cpy macro must be a statement that can be followed by a semicolon.
22083         Now that the else clause contains a comment and is hence longer
22084         than one line, I require curly braces.  That in turn requires
22085         that we wrap this code block in the standard do...while(0).
22086
22087         fprintftime: remove stray semicolon from previous change
22088         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22089
22090         fprintftime: avoid a warning about ignored fwrite return value
22091         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22092         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22093         that is unsafe.
22094         * modules/fprintftime (Depends-on): Add ignore-value.
22095
22096         exclude: avoid an unwarranted warning
22097         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22098
22099 2009-10-27  Eric Blake  <ebb9@byu.net>
22100
22101         fseek: avoid compilation failure when fflush is replaced
22102         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22103         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22104         module is in use.
22105         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22106         module is not in use; since REPLACE_FSEEK worked otherwise.
22107         (GNULIB_FTELLO): Likewise for ftell.
22108         Reported by Ian Beckwith and others.
22109
22110 2009-10-27  Bruno Haible  <bruno@clisp.org>
22111
22112         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22113         Reported by Jim Meyering.
22114
22115 2009-10-27  Jim Meyering  <jim@meyering.net>
22116             Bruno Haible  <bruno@clisp.org>
22117
22118         Avoid warning despite dropping the return value of fwrite.
22119         * lib/unicodeio.c: Include ignore-value.h.
22120         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22121         * modules/unicodeio (Depends-on): Add ignore-value.
22122
22123 2009-10-26  Eric Blake  <ebb9@byu.net>
22124
22125         areadlinkat: fix fallback path
22126         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22127         pointer and zero.
22128
22129 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22130
22131         Use a better IO block size for modern systems
22132         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22133         * lib/md2.c: Likewise.
22134         * lib/md4.c: Likewise.
22135         * lib/md5.c: Likewise.
22136         * lib/sha1.c: Likewise.
22137         * lib/sha256.c: Likewise.
22138         * lib/sha512.c: Likewise.
22139
22140 2009-10-22  Eric Blake  <ebb9@byu.net>
22141
22142         tests: avoid several compiler warnings
22143         * tests/test-getcwd.c (main): Avoid buffer underflow.
22144         * tests/test-getdate.c (main): String literals are not safe with
22145         putenv, so use setenv.  Declare unused argument.
22146         * modules/getdate-tests (Depends-on): Add setenv.
22147         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22148         problems with string literals in char *.
22149         * tests/test-hash.c (main): Avoid shadowing declaration.
22150         (insert_new): Treat string literals as char const *.
22151         * tests/test-getopt.h (test_getopt): Likewise.
22152         (getopt_loop): Alter types to minimize casting elsewhere.
22153         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22154         (test_getopt_long_posix): Likewise.
22155         (do_getopt_long): Add wrapper to minimize casting.
22156         * tests/test-atexit.c (clear_temp_file): Use void.
22157         * tests/test-areadlink-with-size.c (main): Declare unused
22158         arguments.
22159         * tests/test-areadlink.c (main): Likewise.
22160         * tests/test-areadlinkat-with-size.c (main): Likewise.
22161         * tests/test-areadlinkat.c (main): Likewise.
22162         * tests/test-canonicalize-lgpl.c (main): Likewise.
22163         * tests/test-canonicalize.c (main): Likewise.
22164         * tests/test-dirent-safer.c (main): Likewise.
22165         * tests/test-dirname.c (main): Likewise.
22166         * tests/test-dup2.c (main): Likewise.
22167         * tests/test-fchdir.c (main): Likewise.
22168         * tests/test-fcntl-h.c (main): Likewise.
22169         * tests/test-fcntl-safer.c (main): Likewise.
22170         * tests/test-fdopendir.c (main): Likewise.
22171         * tests/test-fdutimensat.c (main): Likewise.
22172         * tests/test-fflush.c (main): Likewise.
22173         * tests/test-filenamecat.c (main): Likewise.
22174         * tests/test-filevercmp.c (main): Likewise.
22175         * tests/test-fopen-safer.c (main): Likewise.
22176         * tests/test-fopen.c (main): Likewise.
22177         * tests/test-fpending.c (main): Likewise.
22178         * tests/test-fpurge.c (main): Likewise.
22179         * tests/test-freading.c (main): Likewise.
22180         * tests/test-fstatat.c (main): Likewise.
22181         * tests/test-fsync.c (main): Likewise.
22182         * tests/test-futimens.c (main): Likewise.
22183         * tests/test-getndelim2.c (main): Likewise.
22184         * tests/test-gettimeofday.c (main): Likewise.
22185         * tests/test-getopt.c (main): Likewise.
22186         * tests/test-i-ring.c (main): Likewise.
22187         * tests/test-inttypes.c (main): Likewise.
22188         * tests/test-link.c (main): Likewise.
22189         * tests/test-lstat.c (main): Likewise.
22190         * tests/test-math.c (main): Likewise.
22191         * tests/test-md5.c (main): Likewise.
22192         * tests/test-memchr2.c (main): Likewise.
22193         * tests/test-memrchr.c (main): Likewise.
22194         * tests/test-mkdir.c (main): Likewise.
22195         * tests/test-mkdirat.c (main): Likewise.
22196         * tests/test-mkfifoat.c (main): Likewise.
22197         * tests/test-open.c (main): Likewise.
22198         * tests/test-openat-safer.c (main): Likewise.
22199         * tests/test-openat.c (main): Likewise.
22200         * tests/test-quotearg.c (main): Likewise.
22201         * tests/test-rawmemchr.c (main): Likewise.
22202         * tests/test-readlink.c (main): Likewise.
22203         * tests/test-remove.c (main): Likewise.
22204         * tests/test-rename.c (main): Likewise.
22205         * tests/test-renameat.c (main): Likewise.
22206         * tests/test-rmdir.c (main): Likewise.
22207         * tests/test-sha1.c (main): Likewise.
22208         * tests/test-signal.c (main): Likewise.
22209         * tests/test-sigaction.c (main): Likewise.
22210         * tests/test-stat.c (main): Likewise.
22211         * tests/test-stat-time.c (main): Likewise.
22212         * tests/test-stddef.c (main): Likewise.
22213         * tests/test-stdint.c (main): Likewise.
22214         * tests/test-stdio.c (main): Likewise.
22215         * tests/test-stdlib.c (main): Likewise.
22216         * tests/test-strchrnul.c (main): Likewise.
22217         * tests/test-strerror.c (main): Likewise.
22218         * tests/test-string.c (main): Likewise.
22219         * tests/test-strtod.c (main): Likewise.
22220         * tests/test-strverscmp.c (main): Likewise.
22221         * tests/test-symlink.c (main): Likewise.
22222         * tests/test-symlinkat.c (main): Likewise.
22223         * tests/test-sys_stat.c (main): Likewise.
22224         * tests/test-sys_time.c (main): Likewise.
22225         * tests/test-time.c (main): Likewise.
22226         * tests/test-unistd.c (main): Likewise.
22227         * tests/test-unlink.c (main): Likewise.
22228         * tests/test-unlinkat.c (main): Likewise.
22229         * tests/test-utimens.c (main): Likewise.
22230         * tests/test-utimensat.c (main): Likewise.
22231         * tests/test-version-etc.c (main): Likewise.
22232         * tests/test-wchar.c (main): Likewise.
22233         * tests/test-wctype.c (main): Likewise.
22234         * tests/test-xprintf-posix.c (main): Likewise.
22235         * tests/test-posixtm.c (main): Likewise.
22236         (STREQ): Delete unused macro.
22237         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22238         shadowed variables.
22239         * tests/test-memchr.c (main): Likewise.
22240
22241 2009-10-21  Eric Blake  <ebb9@byu.net>
22242
22243         areadlinkat: avoid failure on older glibc
22244         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22245         rather than mis-comparing 0 against FUNC_RESULT of char*.
22246
22247 2009-10-21  Bruno Haible  <bruno@clisp.org>
22248
22249         * modules/stpncpy (License): Relicense under LGPLv2+.
22250         Reported by David Lutterkort <lutter@redhat.com>.
22251
22252 2009-10-20  Eric Blake  <ebb9@byu.net>
22253
22254         utimensat: work around Solaris 9 bug
22255         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22256         has trailing slash bugs.
22257         * tests/test-lutimens.h (test_lutimens): Enhance test.
22258         * tests/test-utimens.h (test_utimens): Likewise.
22259         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22260         * doc/posix-functions/utimes.texi (utimes): Likewise.
22261         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22262         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22263         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22264         * doc/posix-functions/futimens.texi (futimens): Likewise.
22265
22266         fdutimensat: new module
22267         * modules/fdutimensat: New file.
22268         * lib/fdutimensat.c (fdutimensat): Likewise.
22269         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22270         * MODULES.html.sh (File system functions): Mention module.
22271         * modules/fdutimensat-tests: New test.
22272         * tests/test-fdutimensat.c: Likewise.
22273
22274         doc: regenerate INSTALL
22275         * doc/INSTALL: Reflect recent autoconf update.
22276         * doc/INSTALL.ISO: Likewise.
22277         * doc/INSTALL.UTF-8: Likewise.
22278
22279 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22280
22281         acl: warn if ACL support is not detected
22282         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22283
22284 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22285
22286         * lib/nproc.h: Add extern "C" block for C++.
22287
22288 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22289             Bruno Haible  <bruno@clisp.org>
22290
22291         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22292         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22293         * doc/posix-functions/isalpha.texi: Likewise.
22294         * doc/posix-functions/isblank.texi: Likewise.
22295         * doc/posix-functions/iscntrl.texi: Likewise.
22296         * doc/posix-functions/isdigit.texi: Likewise.
22297         * doc/posix-functions/isgraph.texi: Likewise.
22298         * doc/posix-functions/islower.texi: Likewise.
22299         * doc/posix-functions/isprint.texi: Likewise.
22300         * doc/posix-functions/ispunct.texi: Likewise.
22301         * doc/posix-functions/isspace.texi: Likewise.
22302         * doc/posix-functions/isupper.texi: Likewise.
22303         * doc/posix-functions/isxdigit.texi: Likewise.
22304
22305 2009-10-18  Bruno Haible  <bruno@clisp.org>
22306
22307         Tests for module 'isblank'.
22308         * modules/isblank-tests: New file.
22309         * tests/test-isblank.c: New file.
22310
22311         New module 'isblank'.
22312         * lib/isblank.c: New file.
22313         * m4/isblank.m4: New file.
22314         * modules/isblank: New file.
22315         * doc/posix-functions/isblank.texi: Mention the new module.
22316
22317 2009-10-18  Bruno Haible  <bruno@clisp.org>
22318
22319         New module 'ctype'.
22320         * lib/ctype.in.h: New file.
22321         * m4/ctype.m4: New file.
22322         * modules/ctype: New file.
22323         * doc/posix-headers/ctype.texi: Mention the new module.
22324
22325 2009-10-18  Jim Meyering  <meyering@redhat.com>
22326
22327         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22328         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22329         right after its initialization, rather than farther down.
22330         Keeping these in close proximity makes it easier to ensure
22331         that each such variable is initialized.  E.g.,
22332
22333             LIB_CLOCK_GETTIME=
22334             AC_SUBST([LIB_CLOCK_GETTIME])
22335
22336         This change also increments these serial numbers.
22337         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22338         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22340
22341 2009-10-18  Bruno Haible  <bruno@clisp.org>
22342
22343         Don't let environment variables perturb build.
22344         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22345         (gl_PREREQ_GETHRXTIME): ... not here.
22346
22347 2009-10-18  Bruno Haible  <bruno@clisp.org>
22348
22349         Avoid symlink attack in localcharset module.
22350         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
22351         (O_NOFOLLOW): Define fallback.
22352         (get_charset_aliases): Don't open the file if it is a symbolic link.
22353         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22354         gl_FCNTL_H.
22355         (gl_FCNTL_H): Require it.
22356         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22357         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22358         Reported by Fergal Glynn <fglynn@veracode.com>.
22359
22360 2009-10-18  Bruno Haible  <bruno@clisp.org>
22361
22362         Implement nproc for mingw.
22363         * lib/nproc.c: Include <windows.h>
22364         (num_processors): On native Windows platforms, try GetSystemInfo.
22365
22366 2009-10-18  Bruno Haible  <bruno@clisp.org>
22367
22368         Implement nproc for IRIX.
22369         * lib/nproc.c: Include <sys/sysmp.h>.
22370         (num_processors): On IRIX systems, try sysmp.
22371         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22372
22373 2009-10-18  Bruno Haible  <bruno@clisp.org>
22374
22375         Implement nproc for HP-UX.
22376         * lib/nproc.c: Include <sys/pstat.h>
22377         (num_processors): On HP-UX systems, try pstat_getdynamic.
22378         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22379         pstat_getdynamic.
22380
22381 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22382             Bruno Haible  <bruno@clisp.org>
22383
22384         Implement nproc for NetBSD, OpenBSD.
22385         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22386         (ARRAY_SIZE): New macro.
22387         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22388         * m4/nproc.m4: New file.
22389         * modules/nproc (Files): Add m4/nproc.m4.
22390         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22391         (Makefile.am): Instead, augment lib_SOURCES.
22392
22393 2009-10-18  Bruno Haible  <bruno@clisp.org>
22394
22395         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22396         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22397         sys/param.h.
22398
22399 2009-10-16  Eric Blake  <ebb9@byu.net>
22400
22401         utimensat: new module
22402         * modules/utimensat: New file.
22403         * lib/utimensat.c (utimensat): Likewise.
22404         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22405         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22406         so we can work around Linux bugs.
22407         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22408         * modules/sys_stat (Makefile.am): Substitute them.
22409         * lib/sys_stat.in.h (utimensat): Declare it.
22410         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22411         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22412         * modules/utimensat-tests: New test.
22413         * tests/test-utimensat.c: Likewise.
22414
22415         utimens: let lutimens work on non-symlinks
22416         * lib/utimens.c (lutimens): Fall back to utimens rather than
22417         failing with ENOSYS, when file is not a symlink.
22418         (utimens): Reduce redirection.
22419         * tests/test-lutimens.h (test_lutimens): Update test to cover
22420         non-symlinks.
22421         * tests/test-utimens.h (test_utimens): Update test to cover
22422         symlinks.
22423         * tests/test-utimens.c (main): Update caller.
22424
22425         utimens: cache whether utimensat syscall works
22426         * lib/utimens.c (utimensat_works_really): New cache variable.
22427         (fdutimens, lutimens): Use it to avoid failing syscall.
22428
22429         test-stat-time, test-utimens: improve portability
22430         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
22431         ext4 on alpha, and for cygwin.
22432         * tests/test-utimens-common.h: New file.
22433         (nap): Factor delays into single function.
22434         * tests/test-lutimens.h (test_lutimens): Use new header.
22435         * tests/test-futimens.h (test_futimens): Likewise.
22436         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
22437         timestamps to occur from same machine, as was done previously for
22438         test_utimens.
22439         * modules/utimens-tests (Files): Ship new file.
22440         * modules/futimens-tests (Files): Likewise.
22441         Reported in part by Jim Meyering.
22442
22443         sys_stat: sort replacement declarations
22444         * lib/sys_stat.in.h: Sort declarations.
22445         * lib/futimens.c (futimens): Fix typo.
22446
22447 2009-10-15  Jim Meyering  <meyering@redhat.com>
22448
22449         don't let environment settings perturb build
22450         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
22451         could cause a configure-time and/or build-time malfunction.
22452         Typically, a configure-time function-in-library test is performed
22453         via code like this:
22454
22455           LIB_VAR=
22456           AC_SUBST([LIB_VAR])
22457           prefix_saved_LIBS=$LIBS
22458             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
22459                        [test "$ac_cv_search_FUNC" = "none required" ||
22460                         LIB_VAR=$ac_cv_search_FUNC])
22461           LIBS=$prefix_saved_LIBS
22462
22463         However, in each of the files affected by this change, the LIB_VAR=
22464         initialization was omitted.  Thus, when set in the environment, its
22465         value would propagate into generated Makefiles when FUNC is not found
22466         in LIB_NAME.
22467         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
22468         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22470
22471 2009-10-14  Eric Blake  <ebb9@byu.net>
22472
22473         fchdir: avoid infinite recursion in mingw
22474         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
22475         recursing.
22476
22477         test-stat-time: port to mingw
22478         * tests/test-stat-time.c (force_unlink): Return a value.
22479         (test_ctime) [W32]: Fix compilation error.
22480         (nap): Don't call usleep with too large an argument.  Use
22481         force_unlink.
22482         * doc/pastposix-functions/usleep.texi (usleep): Document the
22483         portability issue.
22484
22485 2009-10-13  Jim Meyering  <meyering@redhat.com>
22486
22487         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
22488         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
22489         * modules/pipe-filter-ii: Likewise.
22490         * modules/sys_socket-tests: Likewise.
22491         * modules/tsearch-tests: Likewise.
22492         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
22493         (check): Depend on it.
22494
22495 2009-10-12  Eric Blake  <ebb9@byu.net>
22496
22497         utimens-tests: port to NFS file systems
22498         * tests/test-utimens.h (test_utimens): Refactor utimecmp
22499         comparisons to avoid spurious failures from timestamp drift
22500         between NFS machines.
22501
22502 2009-10-12  Eric Blake  <ebb9@byu.net>
22503
22504         stat-time-tests: minor cleanups
22505         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
22506         * tests/test-stat-time.c (nap): Separate assignment from call.
22507         Suggested by Paolo Bonzini and Bruno Haible.
22508
22509         sys_stat: guarantee struct timespec
22510         * lib/sys_stat.in.h (includes): Always include <time.h>
22511         * modules/sys_stat (Depends-on): Add time.
22512         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
22513         mode_t permission values.
22514         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
22515         get at subsecond timestamps.
22516
22517 2009-10-10  Eric Blake  <ebb9@byu.net>
22518
22519         futimens: new module
22520         * modules/futimens: New file.
22521         * lib/futimens.c (futimens): Likewise.
22522         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
22523         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
22524         we can work around Linux bugs.
22525         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22526         * modules/sys_stat (Makefile.am): Substitute them.
22527         * lib/sys_stat.in.h (futimens): Declare it.
22528         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22529         * doc/posix-functions/futimens.texi (futimens): Likewise.
22530         * modules/futimens-tests: New test.
22531         * tests/test-futimens.c: Likewise.
22532
22533         utimens: introduce fdutimens
22534         * lib/utimens.h (fdutimens): New prototype.
22535         * lib/utimens.c (gl_futimens): Move guts...
22536         (fdutimens): ...to new interface.
22537         * tests/test-utimens.c (do_fdutimens): Use it.
22538
22539         utimens: add UTIME_NOW and UTIME_OMIT support
22540         * lib/utimens.c (validate_timespec, update_timespec): New helper
22541         functions.
22542         (gl_futimens, lutimens): Use them.
22543         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
22544         stdbool, sys_stat.
22545         (Link): Mention resulting library dependency.
22546         * modules/utimecmp (Link): Likewise.
22547         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
22548         (Makefile.am): Pick up library dependency.
22549         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
22550         definition.
22551         * tests/test-sys_stat.c: Test the definitions.
22552         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
22553         * NEWS: Document library dependency.
22554
22555         utimecmp: support symlink timestamps
22556         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
22557         hashing when possible.  Use pathconf when available.
22558         (SYSCALL_RESOLUTION): Recognize tighter resolution.
22559         * modules/utimecmp (Depends-on): Add lstat.
22560
22561         utimens: add lutimens interface
22562         * lib/utimens.c (lutimens): New function.
22563         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
22564         * lib/utimens.h (lutimens): Declare new interface.
22565         * tests/test-utimens.c (main): Enhance test.
22566         * tests/test-lutimens.h (test_lutimens): New file.
22567         * modules/utimens-tests (Files): Distribute it.
22568         (Depends-on): Add symlink.
22569         (configure.ac): Check for usleep.
22570
22571         utimens: validate futimens usage
22572         * lib/utimens.c (gl_futimens): Require valid fd up front, using
22573         fewer syscalls on failure later on.  Avoid compiler warning on
22574         mingw.
22575         * modules/utimens (Depends-on): Add dup2.
22576
22577         utimens: add test
22578         * modules/utimens-tests: New test.
22579         * tests/test-utimens.h: New file.
22580         * tests/test-futimens.h: Likewise.
22581         * tests/test-utimens.c: Likewise.
22582
22583         doc: mention timestamp portability issues
22584         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
22585         instead.
22586         * doc/posix-functions/utime.texi (utime): Likewise.
22587         * doc/posix-functions/utimes.texi (utimes): Likewise.
22588         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
22589         instead.
22590         * doc/posix-functions/futimens.texi (futimens): Mention utimens
22591         module.
22592         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22593         Mention weakness with symlink timestamps.
22594         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
22595         to utimensat/futimens instead.
22596         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
22597
22598         test-dup2: enhance test
22599         * tests/test-dup2.c (main): Also check AT_FDCWD.
22600
22601         test-stat-time: avoid more spurious failures
22602         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
22603         xfs; and avoid race if the two timestamps cross quantization edge.
22604
22605         relocatable: prefer 'file system' over 'filesystem'
22606         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
22607         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
22608         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
22609         * doc/relocatable.texi (Enabling Relocatability): Likewise.
22610         * lib/relocatable.c (compute_curr_prefix): Likewise.
22611
22612 2009-10-10  Jim Meyering  <meyering@redhat.com>
22613
22614         stat-time-tests: check for the usleep function
22615         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
22616
22617 2009-10-10  Bruno Haible  <bruno@clisp.org>
22618
22619         * modules/xnanosleep: Put the Link section after the Include section.
22620
22621 2009-10-09  Eric Blake  <ebb9@byu.net>
22622
22623         dup2: work around FreeBSD 6.1 bug
22624         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
22625         * doc/posix-functions/dup2.texi (dup2): Document it.
22626         Reported by Nelson H. F. Beebe and Jim Meyering.
22627
22628         test-stat-time: port to buggy NFS clients
22629         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
22630         (test_ctime): Also skip test if mtime and ctime are skewed.
22631
22632         maint: prefer 'file system' over 'filesystem'
22633         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22634         * doc/posix-functions/lstat.texi (lstat): Likewise.
22635         * lib/file-has-acl.c (file_has_acl): Likewise.
22636         * lib/fwriteerror.c [TEST]: Likewise.
22637         * tests/test-areadlink.h (test_areadlink): Likewise.
22638         * tests/test-areadlinkat-with-size.c (main): Likewise.
22639         * tests/test-areadlinkat.c (main): Likewise.
22640         * tests/test-canonicalize-lgpl.c (main): Likewise.
22641         * tests/test-canonicalize.c (main): Likewise.
22642         * tests/test-fstatat.c (main): Likewise.
22643         * tests/test-linkat.c (main): Likewise.
22644         * tests/test-lstat.h (test_lstat_func): Likewise.
22645         * tests/test-mkdir.h (test_mkdir): Likewise.
22646         * tests/test-readlink.h (test_readlink): Likewise.
22647         * tests/test-remove.c (main): Likewise.
22648         * tests/test-rename.h (test_rename): Likewise.
22649         * tests/test-renameat.c (main): Likewise.
22650         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22651         * tests/test-symlink.h (test_symlink): Likewise.
22652         * tests/test-symlinkat.c (main): Likewise.
22653         * tests/test-unlink.h (test_unlink_func): Likewise.
22654         * tests/test-unlinkat.c (main): Likewise.
22655
22656         maint: make realtime library usage explicit
22657         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
22658         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
22659         * modules/settime (Link): Likewise.
22660         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
22661
22662         test-stat-time: speed up execution
22663         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
22664         warning on mingw.
22665         (nap): New helper function.
22666         (prepare_test): Use it to reduce sleep time.
22667         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
22668         execution.
22669         * modules/stat-time-tests (configure.ac): Check for usleep.
22670
22671 2009-10-09  Jim Meyering  <meyering@redhat.com>
22672
22673         selinux-h: always use getfilecon wrappers
22674         * lib/getfilecon.c: New file.
22675         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
22676         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
22677         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
22678         (fgetfilecon): Provide a stub.
22679         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
22680         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
22681         file unconditionally.
22682         When <selinux/selinux.h> is found, arrange to use wrappers.
22683         * modules/selinux-h (Files): Add getfilecon.c.
22684         (Makefile.am): Substitute include-next-related bits
22685         into the now-always-generated selinux/selinux.h file.
22686         * doc/glibc-functions/lgetfilecon.texi: New file.
22687         * doc/glibc-functions/fgetfilecon.texi: New file.
22688         * doc/glibc-functions/getfilecon.texi: New file.
22689         * doc/glibc-functions/getfilecon-desc.texi: New file.
22690         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
22691         which to pull in the new files.
22692         * MODULES.html.sh (Misc): Add selinux-h.
22693
22694 2009-10-08  Jim Meyering  <meyering@redhat.com>
22695
22696         unistd: fix comment typo
22697         * lib/unistd.in.h (euidaccess): Fix a comment typo.
22698
22699 2009-10-08  Eric Blake  <ebb9@byu.net>
22700
22701         areadlink: use SIZE_MAX consistently
22702         * modules/areadlink (Depends-on): Add stdint.
22703         * modules/areadlink-with-size (Depends-on): Likewise.
22704         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
22705         gives NULL; drop sys/types, since unistd gives size_t; and add
22706         stdint for SIZE_MAX.
22707         (SIZE_MAX): Rely on headers.
22708         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
22709         and add stdint.
22710         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
22711         (SIZE_MAX): Likewise.
22712         (INITIAL_BUF_SIZE): Turn into enum.
22713         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
22714
22715 2009-10-08  Jim Meyering  <meyering@redhat.com>
22716
22717         areadlinkat: avoid compilation failure
22718         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
22719         Fix typo in comment.
22720
22721 2009-10-07  Eric Blake  <ebb9@byu.net>
22722
22723         areadlinkat-with-size: new module
22724         * modules/areadlinkat-with-size: New module.
22725         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
22726         * lib/areadlink.h (areadlinkat): Declare it.
22727         * MODULES.html.sh (File system functions): Mention it.
22728         * modules/areadlinkat-with-size-tests: New test.
22729         * tests/test-areadlinkat-with-size.c: New file.
22730
22731         xreadlinkat: new module
22732         * modules/xreadlinkat: New module.
22733         * lib/xreadlinkat.c (xreadlinkat): New file.
22734         * lib/xreadlink.h (xreadlinkat): Declare it.
22735         * MODULES.html.sh (File system functions): Mention it.
22736
22737         areadlinkat: new module
22738         * lib/at-func.c (FUNC_FAIL): New define.
22739         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
22740         * modules/areadlinkat: New module.
22741         * lib/linkat.c (areadlinkat): Move...
22742         * lib/areadlinkat.c (areadlinkat): ...to new file.
22743         * lib/areadlink.h (areadlinkat): Declare it.
22744         * modules/linkat (Depends-on): Add areadlinkat.
22745         * MODULES.html.sh (File system functions): Mention it.
22746         * modules/areadlinkat-tests: New test.
22747         * tests/test-areadlinkat.c: New file.
22748
22749         areadlink, areadlink-with-size: add tests
22750         * modules/areadlink-tests: New test.
22751         * modules/areadlink-with-size-tests: Likewise.
22752         * tests/test-areadlink.h: New file.
22753         * tests/test-areadlink.c: Likewise.
22754         * tests/test-areadlink-with-size.c: Likewise.
22755
22756         maint: minor cleanups
22757         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
22758         _UNUSED_PARAMETER_ instead.
22759         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
22760         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
22761         * modules/linkat-tests (Files): Distribute test-link.h.
22762
22763         openat, utimens: whitespace cleanup
22764         * lib/openat.c: Prefer space throughout, rather than mix of 8
22765         spaces vs. tabs.
22766         * lib/at-func.c: Likewise.
22767         * lib/utimens.c: Likewise.
22768
22769         openat: avoid using wrong fd
22770         * lib/openat.c (openat_permissive): Reject user's fd if saving the
22771         working directory chooses same fd.
22772         * lib/at-func.c (AT_FUNC_NAME): Likewise.
22773
22774         mkdir, mkdirat: fix cygwin 1.5.x bug
22775         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
22776         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
22777         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
22778         bug.
22779         (gl_PREREQ_MKDIR): Delete unused macro.
22780         * modules/mkdir (Files): Track file rename.
22781         (configure.ac): Update macro name.
22782         * modules/openat (Depends-on): Add mkdir.
22783         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
22784
22785         mkdir, mkdirat: add tests
22786         * modules/mkdir-tests: New test.
22787         * tests/test-mkdir.h: New file.
22788         * tests/test-mkdir.c: Likewise.
22789         * tests/test-mkdirat.c: Likewise.
22790         * modules/openat-tests (Files): Add new files.
22791         (Makefile.am): Run new test.
22792
22793 2009-10-06  Eric Blake  <ebb9@byu.net>
22794
22795         doc: tweak *at function documentation
22796         * doc/posix-functions/faccessat.texi (faccessat): Mention
22797         known issue with replacement.
22798         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
22799         * doc/posix-functions/linkat.texi (linkat): Likewise.
22800         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22801         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22802         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22803         * doc/posix-functions/renameat.texi (renameat): Likewise.
22804         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22805
22806         openat: fix GNU/Hurd bug in unlinkat
22807         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
22808         broken.
22809         * doc/posix-functions/unlink.texi (unlink): Document this.
22810         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
22811
22812         fdopendir: fix GNU/Hurd bug
22813         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
22814         allowing non-directory fds.
22815         * lib/fdopendir.c (rpl_fdopendir): Work around it.
22816         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22817         * modules/dirent (Makefile.am): Substitute it.
22818         * lib/dirent.in.h (fdopendir): Declare replacement.
22819         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
22820         * tests/test-fdopendir.c (main): Test something other than
22821         /dev/null, since on Hurd that behaves like a directory.
22822
22823         test-symlink: port to GNU/Hurd
22824         * tests/test-symlink.h (test_symlink): Relax expected errno.
22825
22826         doc: tweak more cygwin information
22827         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
22828         now compatible with glibc.
22829         * doc/posix-functions/getopt.texi (getopt): Likewise.
22830
22831         getopt-gnu: add another test
22832         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
22833         guarantee behavior relied on by m4.
22834         * tests/test-getopt.c (main): Use it.
22835         * modules/getopt-posix-tests (Depends-on): Add setenv.
22836         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
22837
22838         getopt: fix compilation on darwin
22839         * lib/getopt.in.h (includes): Leave breadcrumbs during system
22840         include.
22841         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
22842         Reported by Ludovic Courtès.
22843
22844 2009-10-06  Bruno Haible  <bruno@clisp.org>
22845
22846         * modules/size_max (Description): Discourage its use.
22847         Reported by Simon Josefsson.
22848
22849 2009-10-06  Jim Meyering  <meyering@redhat.com>
22850
22851         linkat: avoid compilation failure
22852         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
22853
22854 2009-10-05  Eric Blake  <ebb9@byu.net>
22855
22856         linkat: support Linux 2.6.17
22857         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
22858         linkat on Linux, but allow cache variable override.
22859         * lib/linkat.c (rpl_linkat): Define override.
22860         * modules/linkat (Depends-on): Add symlinkat.
22861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
22862         * modules/unistd (Makefile.am): Substitute it.
22863         * lib/unistd.in.h (linkat): Declare replacement.
22864         Reported by Pádraig Brady.
22865
22866         quotearg: port test to systems with C.UTF-8 locale
22867         * tests/test-quotearg.c (struct result_strings): Add another
22868         member, differentiating between C.ASCII and C.UTF-8 handling.
22869         (compare_strings): Add parameter.
22870         (main): Adjust all callers.
22871
22872         getopt: avoid clash with FreeBSD _getopt_internal
22873         * lib/getopt.in.h (_getopt_internal): Override the name.
22874         * lib/getopt_int.h (includes): Pick up any overrides.
22875         Reported by Reuben Thomas.
22876
22877         hash: allow C89 compilation
22878         * lib/hash.c (check_tuning): Move declaration before statement.
22879         Reported by Reuben Thomas.
22880
22881 2009-10-05  Karl Berry  <karl@gnu.org>
22882
22883         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
22884
22885 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
22886             Bruno Haible  <bruno@clisp.org>
22887
22888         * lib/uname.c (uname): Use a table-driven algorithm to compute
22889         Windows NT versions.
22890
22891 2009-10-04  Bruno Haible  <bruno@clisp.org>
22892
22893         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
22894         program_invocation_short_name.
22895         * modules/progname (configure.ac): Test for presence of
22896         program_invocation_short_name.
22897         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22898
22899 2009-10-04  Bruno Haible  <bruno@clisp.org>
22900
22901         * lib/progname.c (set_program_name): Fix comment.
22902         Reported by Jim Meyering.
22903
22904 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22905             Bruno Haible  <bruno@clisp.org>
22906
22907         * lib/uname.c: Include <string.h>.
22908         (uname): Do only one call to GetVersionEx in the common case.
22909
22910 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22911             Bruno Haible  <bruno@clisp.org>
22912
22913         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
22914         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
22915         (uname): Add support for Windows CE and various non-x86 CPU types.
22916
22917 2009-10-03  Bruno Haible  <bruno@clisp.org>
22918
22919         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
22920         invocation to tests/configure.ac.
22921         Reported by Ian Beckwith <ianb@erislabs.net>.
22922
22923 2009-10-02  Eric Blake  <ebb9@byu.net>
22924
22925         fchdir: avoid compiler warning
22926         * lib/fchdir.c (canonicalize_file_name)
22927         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
22928
22929         test-open: support mingw errno values
22930         * tests/test-open.h (test_open): Relax test.
22931         * tests/test-fopen.h (test_fopen): Likewise.
22932         * tests/test-openat-safer.c (main): Likewise.
22933
22934         open: fix opening directory on mingw
22935         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
22936
22937         test-open: on GNU/Hurd, /dev/null is a directory
22938         * tests/test-fopen.h (main): Rename...
22939         (test_fopen): ...to this.  Use a guaranteed non-directory when
22940         confirming open behavior on trailing slash.
22941         * tests/test-openat-safer.c (main): Likewise.
22942         * tests/test-open.h (main): Likewise....
22943         (test_open): ...to this.
22944         * tests/test-fopen.c (main): Adjust caller.
22945         * tests/test-fopen-safer.c (main): Likewise.
22946         * tests/test-open.c (main): Likewise.
22947         * tests/test-fcntl-safer.c (main): Likewise.
22948         Reported by Samuel Thibault.
22949
22950         rename, fchdir: don't ignore chdir failure
22951         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
22952         * lib/rename.c (rpl_rename) [W32]: Likewise.
22953         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
22954         an empty destination directory if source cannot be renamed,
22955         although there is still possibility for failure.
22956         * doc/posix-functions/rename.texi (rename): Document the race.
22957         Reported by Jim Meyering.
22958
22959         maint: cleanup whitespace in recent commits
22960         * lib/rename.c (rpl_rename): Remove tabs.
22961         * tests/test-link.h (test_link): Likewise.
22962         * lib/fchdir.c (get_name): Likewise.
22963         Reported by Jim Meyering.
22964
22965 2009-10-02  Ben Pfaff  <blp@gnu.org>
22966
22967         relocatable-prog-wrapper: Add missing dependency on
22968         double-slash-root.
22969         * modules/relocatable-prog-wrapper: Add dependency.
22970         Reported by Ian Beckwith <ianb@erislabs.net>.
22971
22972 2009-10-02  Eric Blake  <ebb9@byu.net>
22973
22974         renameat: fix Solaris bugs
22975         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
22976         needed fixing.
22977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
22978         * modules/stdio (Makefile.am): Substitute it.
22979         * lib/stdio.in.h (renameat): Declare replacement.
22980         * lib/renameat.c (rpl_renameat): Implement fix.
22981
22982         renameat: new module
22983         * modules/renameat: New file.
22984         * lib/renameat.c (renameat): Likewise.
22985         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
22986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22987         * modules/stdio (Makefile.am): Substitute them.
22988         * lib/stdio.in.h (renameat): Declare it.
22989         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22990         * doc/posix-functions/renameat.texi (renameat): Likewise.
22991         * modules/renameat-tests: New test.
22992         * tests/test-renameat.c: Likewise.
22993
22994         rename: fix mingw bugs
22995         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
22996         directory overwrite bugs.
22997
22998         rename: fix another cygwin 1.5 bug
22999         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23000         checks.
23001         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23002         unnecessary cygwin workarounds.  Also work around bug with moving
23003         full directory onto an empty one.
23004         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23005
23006         rename-dest-slash: merge into rename module
23007         * modules/rename-dest-slash (Status): Mark obsolete.
23008         (Depends-on): Add rename.
23009         (Files): Let rename do it all.
23010         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23011         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23012         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23013         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23014         * lib/rename.c (rpl_rename): Update comments.
23015
23016         rename: fix cygwin 1.5.x bugs
23017         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23018         * lib/rename.c (rpl_rename): Work around them.
23019         * modules/rename (Depends-on): Add same-inode.
23020
23021         rename: fix Solaris 10 bug
23022         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23023         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23024         was the only bug.
23025
23026         rename: fix Solaris 9 bug
23027         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23028         on non-directory.  Avoid calling exit.
23029         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23030         strdup.
23031         * modules/rename-tests (Depends-on): Drop lstat.
23032         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23033         (gl_PREREQ_RENAME): Delete unused macro.
23034
23035         rename-dest-slash: fix NetBSD bug
23036         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23037         links.
23038         * modules/rename-dest-slash (Depends-on): Add same-inode.
23039
23040         rename-tests: new test, exposes several platform bugs
23041         * modules/rename-tests: New file.
23042         * tests/test-rename.h: Likewise.
23043         * tests/test-rename.c: Likewise.
23044         * doc/posix-functions/rename.texi (rename): Improve documentation,
23045         including bugs that will eventually be fixed in gnulib.
23046
23047 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23048
23049         * lib/uname.c: Include <stdlib.h>
23050         (uname): Assume version info is available.
23051
23052 2009-10-02  Jim Meyering  <meyering@redhat.com>
23053
23054         gnu-web-doc-update: correct --help output
23055         * build-aux/gnu-web-doc-update: Make --help output relevant.
23056
23057         gnu-web-doc-update: add standard options
23058         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23059
23060         gnu-web-doc-update: New module.
23061         Use this script to automatically update the on-line web documentation
23062         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23063         * modules/gnu-web-doc-update: New file, from coreutils.
23064         * build-aux/gnu-web-doc-update: New script.
23065
23066 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23067
23068         link: LoadLibrary is not needed.
23069         * lib/link.c: Use GetModuleHandle.
23070
23071 2009-10-01  Eric Blake  <ebb9@byu.net>
23072
23073         getopt: bump serial number
23074         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23075         change.
23076
23077         tests: tighten link, rmdir, and remove tests
23078         * tests/test-link.h (includes): No need to use <config.h> here.
23079         Clean up if directory hard link was created, otherwise test for
23080         trailing '.'.
23081         * tests/test-linkat.c (main): Simplify.
23082         * tests/test-remove.c (main): Enhance test for trailing '.'.
23083         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23084
23085 2009-10-01  Jim Meyering  <meyering@redhat.com>
23086
23087         maint.mk: requiring "make major" was annoying, for a "minor" release.
23088         What is intended is "stable", to contrast with alpha and beta,
23089         so require "make stable", not "make major".
23090         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23091         (get_tool_versions): Likewise.
23092         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23093
23094 2009-09-30  Ben Pfaff  <blp@gnu.org>
23095
23096         Fix broken build of replacement for Windows tmpfile().
23097         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23098         flags argument added along with the 'mkostemp' module.
23099
23100 2009-09-28  Bruno Haible  <bruno@clisp.org>
23101
23102         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23103         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23104         to 'remove_elt'.
23105         (gl_list_remove): Update.
23106         * lib/gl_list.c (gl_list_remove): Update.
23107         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23108         to 'remove_elt'.
23109         (gl_oset_remove): Update.
23110         * lib/gl_list.c (gl_oset_remove): Update.
23111         Reported by Eric Blake.
23112
23113 2009-09-28  Eric Blake  <ebb9@byu.net>
23114
23115         doc: mention yet more cygwin 1.7 status
23116         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23117         cygwin.
23118         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23119         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23120
23121         argp: fix test failure
23122         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23123         that are not upper-case.  Pass correct range to tolower.
23124
23125 2009-09-27  Jim Meyering  <meyering@redhat.com>
23126
23127         test-yesno: work around sparc-dash here-document infelicity
23128         Without this change, the literal \177 byte in a here document
23129         would make dash 0.5.5.1-3 access uninitialized memory.
23130         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23131         Instead, use a marker, "@", and filter through tr to create the desired
23132         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23133
23134 2009-09-27  Bruno Haible  <bruno@clisp.org>
23135
23136         Disable untested support for new flavours of ACLs on AIX.
23137         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23138         progress.
23139         * lib/set-mode-acl.c (qset_acl): Likewise.
23140
23141 2008-12-07  Bruno Haible  <bruno@clisp.org>
23142
23143         Add support for new flavours of ACLs on AIX. (Untested.)
23144         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23145         (file_has_acl): Add support for newer AIX.
23146         * lib/set-mode-acl.c (qset_acl): Likewise.
23147         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23148         Rainer Tammer <tammer@tammer.net>.
23149
23150 2009-09-26  Eric Blake  <ebb9@byu.net>
23151
23152         argp: fix compilation of getopt
23153         * lib/getopt.in.h (includes): Use different guard than glibc.
23154         Reported by Sergey Poznyakoff.
23155
23156         doc: mention more cygwin 1.7 status
23157         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23158         bug.
23159         * doc/posix-functions/execl.texi (execl): Likewise.
23160         * doc/posix-functions/execle.texi (execle): Likewise.
23161         * doc/posix-functions/execlp.texi (execlp): Likewise.
23162         * doc/posix-functions/execv.texi (execv): Likewise.
23163         * doc/posix-functions/execve.texi (execve): Likewise.
23164         * doc/posix-functions/execvp.texi (execvp): Likewise.
23165         * doc/glibc-functions/canonicalize_file_name.texi
23166         (canonicalize_file_name): Cygwin 1.7 now provides this.
23167         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23168         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23169         on AT_SYMLINK_NOFOLLOW.
23170
23171 2009-09-24  Eric Blake  <ebb9@byu.net>
23172
23173         test-linkat: make test more robust
23174         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23175
23176         getopt: fix inclusion guards for cygwin
23177         * modules/getopt-posix (Depends-on): Add include-next.
23178         (Makefile.am): Substitute more items in replacement header.
23179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23180         <getopt.h>.
23181         * lib/getopt.in.h (includes): Use split inclusion guard, and
23182         prefer <getopt.h> over include <unistd.h> when one is present.
23183         (option): Also override name of 'struct option'.
23184
23185         same-inode: revert prior change; it is not yet ready
23186         * NEWS: Undo mention of this change.
23187         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23188         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23189         * lib/cycle-check.c (cycle_check): Likewise.
23190         * lib/same.c (same_name): Likewise.
23191         * lib/at-func2.c (at_func2): Likewise.
23192
23193 2009-09-23  Eric Blake  <ebb9@byu.net>
23194
23195         linkat: new module
23196         * modules/linkat: New file.
23197         * lib/at-func2.c (at_func2): Likewise.
23198         * lib/linkat.c (linkat): Likewise.
23199         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23200         * lib/openat-priv.h (at_func2): Add declaration.
23201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23202         * modules/unistd (Makefile.am): Substitute them.
23203         * lib/unistd.in.h (linkat): Declare it.
23204         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23205         * doc/posix-functions/linkat.texi (linkat): Likewise.
23206         * doc/posix-functions/link.texi (link): Tweak wording.
23207         * tests/test-link.c (main): Move guts...
23208         * tests/test-link.h (test_link): ...into new file.
23209         * modules/linkat-tests: New test.
23210         * tests/test-linkat.c: Likewise.
23211         * modules/link-tests (Files): Ship new file.
23212         (Depends-on): Add stdbool.
23213
23214         dirname: add library-safe mdir_name
23215         * lib/dirname.h (mdir_name): New prototype.
23216         * lib/dirname.c (dir_name): Move guts...
23217         (mdir_name): ...to new function that avoids xalloc_die.
23218
23219         fchdir: another mingw fix
23220         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23221         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23222         on mingw (where it has not yet been ported), and make it optional
23223         elsewhere.
23224         (_gl_register_fd): Use it.
23225
23226         same-inode: make SAME_INODE tri-state, to port to mingw
23227         * NEWS: Mention this change.
23228         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23229         st_ino always being 0.
23230         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23231         * lib/cycle-check.c (cycle_check): Likewise.
23232         * lib/same.c (same_name): Likewise.
23233
23234         lstat: avoid mingw compilation error
23235         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23236         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23237         lstat ourselves.
23238         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23239         was adequate.
23240         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23241         the checks for lstat.
23242         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23243
23244         link: fix test failure on Solaris 9
23245         * lib/link.c (rpl_link): Don't assume link will catch bogus
23246         trailing slash on source.
23247
23248         test-symlinkat: enhance test
23249         * tests/test-readlink.c (main): Move guts...
23250         * tests/test-readlink.h (test_readlink): ...into new file.
23251         * tests/test-symlink.c (main): Move guts...
23252         * tests/test-symlink.h (test_symlink): ...into new file.
23253         * tests/test-symlinkat.c (main): Use new files for further
23254         coverage.
23255         (do_symlink, do_readlink): New helper functions.
23256         * modules/symlink-tests (Files): Ship new file.
23257         (Depends-on): Add stdbool.
23258         * modules/readlink-tests (Files): Ship new file.
23259         (Depends-on): Add stdbool.
23260         * modules/symlinkat-tests (Files): Use new files.
23261
23262 2009-09-23  Eric Blake  <ebb9@byu.net>
23263
23264         readlink: document portability issue with symlink length
23265         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23266         systems have bogus st_size on symlinks, and mention the
23267         areadlink-with-size module.
23268         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23269         * doc/posix-functions/readlink.texi (readlink): Mention the
23270         areadlink module, and ERANGE failure.
23271         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23272         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23273
23274         readlink: fix Solaris 9 bug with trailing slash
23275         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23276         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23277         * doc/posix-functions/readlink.texi (readlink): Document this.
23278         * modules/readlink-tests: New test.
23279         * tests/test-readlink.c: Likewise.
23280
23281         readlink: fix cygwin 1.5.x bug with return type
23282         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23283         * lib/unistd.in.h (readlink): Use ssize_t.
23284         * lib/readlink.c (readlink): Likewise.
23285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23286         * modules/unistd (Makefile.am): Substitute it.
23287         * lib/unistd.in.h (readlink): Declare replacement.
23288         * doc/posix-functions/readlink.texi (readlink): Document this.
23289
23290         symlink: use throughout gnulib
23291         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23292         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23293         symlink is not used.
23294         * modules/symlinkat (Depends-on): Add symlink.
23295         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23296         * modules/canonicalize-tests (Depends-on): Likewise.
23297         * modules/lstat-tests (Depends-on): Likewise.
23298         * modules/openat-tests (Depends-on): Likewise.
23299         * modules/remove-tests (Depends-on): Likewise.
23300         * modules/rmdir-tests (Depends-on): Likewise.
23301         * modules/unlink-tests (Depends-on): Likewise.
23302         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23303         * tests/test-canonicalize.c (symlink): Likewise.
23304         * tests/test-fstatat.c (symlink): Likewise.
23305         * tests/test-lstat.c (symlink): Likewise.
23306         * tests/test-remove.c (symlink): Likewise.
23307         * tests/test-rmdir.c (symlink): Likewise.
23308         * tests/test-unlink.c (symlink): Likewise.
23309         * tests/test-unlinkat.c (symlink): Likewise.
23310
23311         symlink: new module, for Solaris 9 bug
23312         * modules/symlink: New file.
23313         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23314         * lib/symlink.c: Likewise.
23315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23316         * modules/unistd (Makefile.am): Substitute them.
23317         * lib/unistd.in.h (symlink): Declare replacement.
23318         * MODULES.html.sh (File system functions): Mention it.
23319         * doc/posix-functions/symlink.texi (symlink): Likewise.
23320         * modules/symlink-tests: New test.
23321         * tests/test-symlink.c: Likewise.
23322
23323 2009-09-23  Bruno Haible  <bruno@clisp.org>
23324
23325         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23326         when needed.
23327         Test case: gnulib-tool --import --with-tests atexit inttypes.
23328         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23329
23330 2009-09-23  Bruno Haible  <bruno@clisp.org>
23331
23332         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23333         subcommand, not in a subshell.
23334
23335 2009-09-22  Eric Blake  <ebb9@byu.net>
23336
23337         unistd: sort replacement declarations
23338         * lib/unistd.in.h: Sort declarations.
23339
23340         open, openat: minor optimization
23341         * lib/open.c (open): If open succeeded, len is non-zero.
23342         * lib/openat.c (rpl_openat): Likewise.
23343
23344         link-follow: ensure correct result
23345         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23346         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23347         distinguish between possible failures.
23348
23349 2009-09-21  Eric Blake  <ebb9@byu.net>
23350
23351         fts: avoid compiler warning
23352         * lib/fts.c (dirent_inode_sort_may_be_useful)
23353         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23354
23355 2009-09-19  Bruno Haible  <bruno@clisp.org>
23356
23357         * lib/progreloc.c (canonicalize_file_name): New declaration.
23358
23359 2009-09-19  Eric Blake  <ebb9@byu.net>
23360
23361         link: fix quoting
23362         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23363
23364         openat: fix openat bugs on Solaris 9
23365         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23366         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23367         * modules/openat (Depends-on): Add open.
23368         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23369         * modules/fcntl-h (Makefile.am): Substitute it.
23370         * lib/fcntl.in.h (openat): Declare replacement.
23371         * doc/posix-functions/openat.texi (openat): Document this.
23372
23373         openat: move fstatat and unlinkat into correct files
23374         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23375         compiled.
23376         * lib/openat.c (fstatat, unlinkat): Move...
23377         * lib/fstatat.c (fstatat): ...into correct files.
23378         * lib/unlinkat.c (unlinkat): Likewise.
23379
23380         openat: fix unlinkat bugs on Solaris 9
23381         * lib/unlinkat.c (unlinkat): New file.
23382         * modules/openat (Depends-on): Add unlink.
23383         (Files): Distribute it.
23384         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23385         trailing slash behavior is broken.
23386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23387         * modules/unistd (Makefile.am): Substitute it.
23388         * lib/unistd.in.h (unlinkat): Declare replacement.
23389         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23390
23391         openat: fix fstatat bugs on Solaris 9
23392         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23393         stat.
23394         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23395
23396         test-unlinkat: enhance test, to expose Solaris 9 bug
23397         * tests/test-unlink.c (main): Factor guts...
23398         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23399         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23400         * tests/test-rmdir.c (main): Adjust caller.
23401         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23402         (unlinker): New helper function.
23403         (rmdirat): Enhance check.
23404         * modules/rmdir-tests (Depends-on): Add stdbool.
23405         * modules/unlink-tests (Depends-on): Likewise.
23406         (Files): Add test-unlink.h.
23407         * modules/openat-tests (Files): Likewise.
23408         (Depends-on): Add unlinkdir.
23409
23410         test-fstatat: new test, to expose Solaris 9 bugs
23411         * tests/test-stat.c (main): Factor guts...
23412         * tests/test-stat.h (test_stat_func): ...into new file.
23413         * tests/test-lstat.c (main): Factor guts...
23414         * tests/test-lstat.h (test_lstat_func): ...into new file.
23415         * tests/test-fstatat.c: New file.
23416         * modules/stat-tests (Files): Add test-stat.h.
23417         * modules/lstat-tests (Files): Add test-lstat.h.
23418         (Depends-on): Add stdbool.
23419         * modules/openat-tests (Depends-on): Add pathmax.
23420         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
23421         (Makefile.am): Run new test.
23422
23423         remove: new module, for mingw and Solaris 9 bugs
23424         * modules/remove: New file.
23425         * lib/remove.c: Likewise.
23426         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
23427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23428         * modules/stdio (Makefile.am): Use them.
23429         * lib/stdio.in.h (remove): Declare replacement.
23430         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23431         * doc/posix-functions/remove.texi (remove): Likewise.
23432         * modules/remove-tests: New test.
23433         * tests/test-remove.c: Likewise.
23434
23435         unlink: new module, for Solaris 9 bug
23436         * modules/unlink: New file.
23437         * lib/unlink.c: Likewise.
23438         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23440         * modules/unistd (Makefile.am): Use them.
23441         * lib/unistd.in.h (stat): Declare replacement.
23442         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23443         * doc/posix-functions/unlink.texi (unlink): Likewise.
23444         * modules/unlink-tests: New test.
23445         * tests/test-unlink.c: Likewise.
23446
23447         lstat: fix Solaris 9 bug
23448         * lib/lstat.c (lstat): Also check for trailing slash on
23449         non-symlink, non-directories.  Use stat module to simplify logic.
23450         * doc/posix-functions/lstat.texi (lstat): Document it.
23451         * modules/lstat-tests (Depends-on): Add errno, same-inode.
23452         (configure.ac): Check for symlink.
23453         * tests/test-lstat.c (main): Add more tests.
23454
23455         stat: add as dependency to other modules
23456         * modules/chown (Depends-on): Add stat.
23457         * modules/euidaccess (Depends-on): Likewise.
23458         * modules/fchdir (Depends-on): Likewise.
23459         * modules/isdir (Depends-on): Likewise.
23460         * modules/link (Depends-on): Likewise.
23461         * modules/lstat (Depends-on): Likewise.
23462         * modules/mkdir-p (Depends-on): Likewise.
23463         * modules/modechange (Depends-on): Likewise.
23464         * modules/open (Depends-on): Likewise.
23465         * modules/readlink (Depends-on): Likewise.
23466         * modules/same (Depends-on): Likewise.
23467
23468         stat: fix Solaris 9 bug
23469         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
23470         slash.
23471         * lib/stat.c (rpl_stat): Work around it.
23472         * doc/posix-functions/stat.texi (stat): Update documentation.
23473
23474         stat: new module, for mingw bug
23475         * modules/stat: New file.
23476         * lib/stat.c: Likewise.
23477         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23479         * modules/sys_stat (Makefile.am): Use them.
23480         * lib/sys_stat.in.h (stat): Declare replacement.
23481         * lib/openat.c (fstatat): Deal with lstat and stat being function
23482         macros.
23483         * modules/openat (Depends-on): Add inline.
23484         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23485         * doc/posix-functions/stat.texi (stat): Likewise.
23486         * modules/stat-tests: New test.
23487         * tests/test-stat.c: Likewise.
23488
23489 2009-09-19  Jim Meyering  <meyering@redhat.com>
23490
23491         syntax-check: detect unnecessary inclusion of canonicalize.h
23492         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
23493
23494 2009-09-19  Eric Blake  <ebb9@byu.net>
23495
23496         canonicalize-lgpl: adjust clients to use correct header
23497         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23498         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
23499         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
23500         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
23501         * lib/progreloc.c (includes): Likewise.
23502
23503 2009-09-19  Jim Meyering  <meyering@redhat.com>
23504
23505         test-posixtm.c: correct a comment
23506         * tests/test-posixtm.c: Correct first-line comment.
23507         Spotted by Eric Blake.
23508
23509 2009-09-16  Jim Meyering  <meyering@redhat.com>
23510
23511         posixtm-tests: make T const-correct; add a test case
23512         * tests/test-posixtm.c (T): Declare const.
23513         Add a test for -(2^31+1).
23514         Remove useless can-succeed-only-in-2002 test.
23515
23516         posixtm-tests: adjust the sole failing test
23517         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
23518         expected output matches what mktime now produces.  Cross-checked via
23519         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
23520
23521         posixtm: move #ifdef'd tests into a new module
23522         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
23523         * tests/test-posixtm.c: ... this new file.
23524         * modules/posixtm-tests: New module.
23525
23526 2009-09-19  Eric Blake  <ebb9@byu.net>
23527
23528         openat: simplify use of at-func.c
23529         * lib/at-func.c (includes): Include prerequisites here, to
23530         simplify requirements on client files.
23531         * lib/openat-priv.h: Add double-inclusion guard.
23532         * lib/faccessat.c (includes): Simplify.
23533         * lib/fchmodat.c (includes): Likewise.
23534         * lib/fchownat.c (includes): Likewise.
23535         * lib/mkdirat.c (includes): Likewise.
23536         * lib/mkfifoat.c (includes): Likewise.
23537         * lib/symlinkat.c (includes): Likewise.
23538
23539         openat: allow return of fd 0
23540         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
23541         * modules/save-cwd (Depends-on): Replace fcntl-safer with
23542         unistd-safer.
23543         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
23544         <fcntl.h>; this module does not leak fds.
23545         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
23546         must be allowed to return 0, leaving openat_safer to add the
23547         safety.
23548         (openat_permissive): Avoid writing to just-opened fd 2 if
23549         restoring the current directory fails.
23550         * lib/openat-die.c (openat_restore_fail): Add comment.
23551         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
23552         (save_cwd): Guarantee safe fd, but without use of open_safer.
23553         * tests/test-openat.c: New test.
23554         * modules/openat-tests (Files, Makefile.am): Distribute and build
23555         new file.
23556
23557         relocatable-prog-wrapper: fix build
23558         * modules/relocatable-prog-wrapper (Files): Update name of
23559         canonicalize m4 file, broken on 2009-09-17.
23560         Reported by emad hajjar <aleppos@hotmail.com>.
23561
23562 2009-09-19  Bruno Haible  <bruno@clisp.org>
23563
23564         * lib/safe-alloc.h: Use the standard header with GPL copyright.
23565         * lib/safe-alloc.c: Likewise.
23566         Reported by Ian Beckwith <ianb@erislabs.net>.
23567
23568 2009-09-18  Bruno Haible  <bruno@clisp.org>
23569
23570         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
23571         Reported by <erobles@sensacd.com.mx>.
23572
23573 2009-09-17  Eric Blake  <ebb9@byu.net>
23574
23575         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
23576         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
23577         slashes when checking if last component is missing.
23578         * tests/test-canonicalize.c (main): Test this.
23579
23580         canonicalize, canonicalize-lgpl: honor // if distinct from /
23581         * modules/canonicalize (Files): Add double-slash-root.m4.
23582         * modules/canonicalize-lgpl (Files): Likewise.
23583         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23584         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
23585         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
23586         fallback definition.
23587         (canonicalize_filename_mode): Use it to protect //.
23588         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
23589         (__realpath): Likewise.
23590         * tests/test-canonicalize.c (main): Test this.
23591         * tests/test-canonicalize-lgpl.c (main): Likewise.
23592         * modules/canonicalize-tests (Depends-on): Add same-inode.
23593         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23594
23595         canonicalize-lgpl: fix glibc bug with trailing slash
23596         * m4/canonicalize-lgpl.m4: Move contents...
23597         * m4/canonicalize.m4: ...here.
23598         (gl_CANONICALIZE_LGPL): Factor realpath check...
23599         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
23600         glibc 2.3.5 bug, fixed 2005-04-27.
23601         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
23602         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
23603         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
23604         * modules/canonicalize-lgpl (Files): Manage file rename.
23605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23606         * modules/stdlib (Makefile.am): Substitute witness.
23607         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
23608         is needed.
23609         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
23610         replacement is required.
23611         * lib/canonicalize.c (canonicalize_file_name): Likewise.
23612         * doc/glibc-functions/canonicalize_file_name.texi
23613         (canonicalize_file_name): Document this.
23614         * doc/posix-functions/realpath.texi (realpath): Likewise.
23615
23616         canonicalize-lgpl: reject non-directory with trailing slash
23617         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
23618         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
23619         catches failures in glibc 2.3.5.
23620         * tests/test-canonicalize.c (main): Likewise.
23621
23622         canonicalize-lgpl: use native realpath if it works
23623         * lib/canonicalize-lgpl.c (realpath): Guard with
23624         FUNC_REALPATH_WORKS.
23625         * lib/stdlib.in.h (realpath): Make declaration optional based on
23626         HAVE_REALPATH.
23627         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
23628         native realpath works.
23629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23630         * modules/stdlib (Makefile.am): Substitute witness.
23631
23632         canonicalize, canonicalize-lgpl: use <stdlib.h>
23633         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
23634         (Include): Mention <stdlib.h>.
23635         (configure.ac): Mention functions we provide.
23636         * modules/canonicalize (configure.ac): Likewise.
23637         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
23638         realpath if canonicalize_file_name is missing.
23639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
23640         * modules/stdlib (Makefile.am): Substitute witnesses.
23641         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
23642         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
23643         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
23644         * NEWS: Document this.
23645         * doc/glibc-functions/canonicalize_file_name.texi
23646         (canonicalize_file_name): Likewise.
23647         * doc/posix-functions/realpath.texi (realpath): Likewise.
23648         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
23649
23650         test-canonicalize: consolidate into single C program
23651         * tests/test-canonicalize.sh: Delete; move setup into...
23652         * tests/test-canonicalize.c (main): ...the program, making it
23653         easier to run in debugger.  Add some tests.
23654         * modules/canonicalize-tests (Files): Remove unused file.
23655         (Depends-on): Add progname.
23656         (configure.ac, Makefile.am): Simplify.
23657
23658         test-canonicalize-lgpl: consolidate into single C program
23659         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
23660         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
23661         easier to run in debugger.  Add some tests.
23662         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
23663         (configure.ac, Makefile.am): Simplify.
23664
23665         canonicalize: avoid resolvepath
23666         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
23667         unnecessary checks.
23668         * lib/canonicalize.c (includes): Simplify.
23669         (canonicalize_file_name): Drop resolvepath implementation.
23670         * modules/canonicalize (Depends-on): Drop filenamecat.
23671
23672         canonicalize: don't lose errno
23673         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
23674         over calls to free.
23675
23676         canonicalize: simplify errno handling
23677         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
23678         assignment.
23679
23680         canonicalize, canonicalize-lgpl: update module dependencies
23681         * modules/canonicalize (Depends-on): Add extensions, lstat,
23682         pathmax, stdlib.
23683         (Files): Drop pathmax.h.
23684         (configure.ac): Adjust macro name.
23685         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
23686         lstat, stdlib, sys_stat.
23687         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
23688         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
23689         extensions.
23690         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
23691         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
23692         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
23693         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
23694         declaration, if available.
23695         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
23696         we can rely on the readlink module.
23697         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
23698         (includes): Use <unistd.h> unconditionally.
23699
23700 2009-09-17  Eric Blake  <ebb9@byu.net>
23701
23702         maint: make Include sections of modules consistent
23703         * modules/alloca: Use only header name; no need to list #include.
23704         * modules/alloca-opt: Likewise.
23705         * modules/arpa_inet: Likewise.
23706         * modules/canon-host: Likewise.
23707         * modules/configmake: Likewise.
23708         * modules/dirent: Likewise.
23709         * modules/eealloc: Likewise.
23710         * modules/environ: Likewise.
23711         * modules/fchdir: Likewise.
23712         * modules/fcntl: Likewise.
23713         * modules/fcntl-h: Likewise.
23714         * modules/gethrxtime: Likewise.
23715         * modules/gettime: Likewise.
23716         * modules/ignore-value: Likewise.
23717         * modules/inet_ntop: Likewise.
23718         * modules/inet_pton: Likewise.
23719         * modules/inttypes: Likewise.
23720         * modules/isnand-nolibm: Likewise.
23721         * modules/isnanf-nolibm: Likewise.
23722         * modules/mbchar: Likewise.
23723         * modules/mbfile: Likewise.
23724         * modules/mbiter: Likewise.
23725         * modules/mbuiter: Likewise.
23726         * modules/netdb: Likewise.
23727         * modules/netinet_in: Likewise.
23728         * modules/nproc: Likewise.
23729         * modules/pagealign_alloc: Likewise.
23730         * modules/poll: Likewise.
23731         * modules/printf-frexp: Likewise.
23732         * modules/pthread: Likewise.
23733         * modules/putenv: Likewise.
23734         * modules/random_r: Likewise.
23735         * modules/relocatable-prog: Likewise.
23736         * modules/search: Likewise.
23737         * modules/select: Likewise.
23738         * modules/selinux-h: Likewise.
23739         * modules/settime: Likewise.
23740         * modules/signal: Likewise.
23741         * modules/size_max: Likewise.
23742         * modules/socklen: Likewise.
23743         * modules/ssize_t: Likewise.
23744         * modules/stdarg: Likewise.
23745         * modules/stdbool: Likewise.
23746         * modules/stddef: Likewise.
23747         * modules/stdint: Likewise.
23748         * modules/stdio: Likewise.
23749         * modules/stdlib: Likewise.
23750         * modules/string: Likewise.
23751         * modules/strings: Likewise.
23752         * modules/sys_file: Likewise.
23753         * modules/sys_ioctl: Likewise.
23754         * modules/sys_select: Likewise.
23755         * modules/sys_socket: Likewise.
23756         * modules/sys_stat: Likewise.
23757         * modules/sys_time: Likewise.
23758         * modules/sys_times: Likewise.
23759         * modules/sys_utsname: Likewise.
23760         * modules/sys_wait: Likewise.
23761         * modules/sysexits: Likewise.
23762         * modules/time: Likewise.
23763         * modules/times: Likewise.
23764         * modules/tmpfile: Likewise.
23765         * modules/trim: Likewise.
23766         * modules/unistd: Likewise.
23767         * modules/wchar: Likewise.
23768         * modules/wctype: Likewise.
23769
23770 2009-09-17  Bruno Haible  <bruno@clisp.org>
23771
23772         Make getdate.y compile on QNX and NetBSD 5 / i386.
23773         * m4/getdate.m4 (gl_GETDATE): Conditionally define
23774         TIME_T_FITS_IN_LONG_INT.
23775         * lib/getdate.y (long_time_t): New type.
23776         (relative_time): Change type of 'seconds' field to long_time_t.
23777         (get_date): Update types of local variables. Check against overflow
23778         during conversion from long_time_t to time_t.
23779         Reported by Matt Kraai <kraai@ftbfs.org>
23780         and Hasso Tepper <hasso@netbsd.org>.
23781
23782 2009-09-17  Bruno Haible  <bruno@clisp.org>
23783
23784         * modules/COPYING: Update copyright years.
23785         * modules/README: Likeiwse.
23786         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
23787         Reported by Ian Beckwith <ianb@erislabs.net>.
23788
23789 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23790
23791         * users.txt: Update references for gnuit package.
23792
23793 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23794
23795         * m4/getdelim.m4: Fix typo in copyright line.
23796
23797 2009-09-17  Bruno Haible  <bruno@clisp.org>
23798
23799         * lib/atoll.c: Use the standard header with GPL copyright.
23800         * lib/argz.in.h: Likewise.
23801         * lib/glob.c: Likewise.
23802         * lib/glob-libc.h: Likewise.
23803         * lib/random_r.c: Likewise.
23804         * lib/siglist.h: Likewise.
23805         * lib/strsignal.c: Likewise.
23806         Reported by Ian Beckwith <ianb@erislabs.net>.
23807
23808 2009-09-17  Eric Blake  <ebb9@byu.net>
23809
23810         rmdir: ensure correct dependency order
23811         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
23812
23813 2009-09-17  Bruno Haible  <bruno@clisp.org>
23814
23815         Disable assertion that fails on NetBSD 5 / i386.
23816         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
23817         Reported by Sam Steingold <sds@gnu.org>
23818         and Hasso Tepper <hasso@netbsd.org>.
23819
23820 2009-09-16  Eric Blake  <ebb9@byu.net>
23821
23822         unlinkdir: port to mingw
23823         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
23824         on which no one can unlink a directory.
23825
23826         stdlib: sort witness names
23827         * modules/stdlib (Makefile.am): Sort replacements.
23828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23829         * lib/stdlib.in.h: Likewise.
23830
23831         parse-duration-tests: avoid link failure
23832         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
23833         LIBINTL.
23834         Reported by Tom G. Christensen.
23835
23836         openat-tests: ensure unlinkat behaves like rmdir
23837         * tests/test-rmdir.c (main): Factor guts...
23838         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
23839         * modules/rmdir-tests (Files): Ship new file.
23840         * modules/openat-tests: New test.
23841         * tests/test-unlinkat.c: Likewise.
23842
23843         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
23844         * modules/rmdir-errno (Status, Notice): Now obsolete.
23845
23846         rmdir: work around cygwin 1.5.x and mingw bugs
23847         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
23848         * lib/rmdir.c (rmdir): Work around it.
23849         * modules/rmdir (Status, Notice): No longer obsolete.
23850         (Files): Add dos.m4.
23851         (Depends-on): Add unistd.
23852         (configure.ac): Set witnesses.
23853         (License): Relax to LGPLv2+.
23854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
23855         * modules/unistd (Makefile.am): Substitute witnesses.
23856         * lib/unistd.in.h (rmdir): Declare replacement.
23857         * doc/posix-functions/rmdir.texi (rmdir): Document this.
23858         * modules/rmdir-tests: New tests.
23859         * tests/test-rmdir.c: Likewise.
23860
23861 2009-09-15  Eric Blake  <ebb9@byu.net>
23862
23863         fchdir: improve use of replacement functions
23864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
23865         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
23866         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
23867         REPLACE_CLOSEDIR.
23868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
23869         * modules/sys_stat (Makefile.am): Substitute correct witness.
23870         * modules/dirent (Makefile.am): Likewise.
23871         * modules/unistd (Makefile.am): Likewise.
23872         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
23873         * lib/unistd.in.h (dup): Likewise.
23874         * lib/sys_stat.in.h (fstat): Likewise.
23875
23876         maint: ignore gnulib-tool temp files
23877         * .gitignore: Ignore files created during gnulib-tool --test.
23878
23879 2009-09-13  Jim Meyering  <meyering@redhat.com>
23880
23881         posixtm: don't reject a time that specify "60" as the number of seconds
23882         * lib/posixtm.c (posixtime): The code to reject invalid dates
23883         would also reject a time specified with the .60 suffix.
23884         But POSIX allows that, in order to accommodate leap seconds.
23885         So don't reject it.
23886         (main): Adjust tests accordingly.
23887         * modules/posixtm (Depends-on): Add stpcpy.
23888
23889 2009-09-11  Jim Meyering  <meyering@redhat.com>
23890
23891         announce-gen: include [$release_type] in emitted Subject:
23892         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
23893         e.g., [stable] in the emitted Subject: line.
23894
23895 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23896
23897         Remove obsolete macros from several modules.
23898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
23899         obsolete Autoconf macros with their modern counterparts.
23900         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
23901         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
23902         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23903         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23904         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
23905         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23906         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23907         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23908         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23909         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
23910         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23911         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23912         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
23913         * m4/sockets.m4 (gl_SOCKETS): Likewise.
23914         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
23915         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
23916         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23917         * m4/time_r.m4 (gl_TIME_R): Likewise.
23918         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23919         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
23920         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23921
23922         Fix copyright header in build-aux scripts.
23923         * build-aux/git-version-gen: Fix copyright header to match GPLv3
23924         recommendation.
23925         * build-aux/ncftpput-ftp: Likewise.
23926         * build-aux/update-copyright: Likewise.
23927
23928 2009-09-09  Eric Blake  <ebb9@byu.net>
23929
23930         test-link: allow Linux choice of errno
23931         * tests/test-link.c (main): Relax test for alternate error.
23932
23933         strndup: fix improper m4 caching
23934         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
23935         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
23936         (gl_PREREQ_STRNDUP): Delete.
23937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
23938         * modules/string (Makefile.am): Substitute it.
23939         * lib/string.in.h (strndup): Modernize prototype.
23940
23941         getcwd: port to mingw
23942         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
23943         different from the POSIX assumptions made throughout the getcwd
23944         module; fortunately, the mingw getcwd does not need replacement.
23945         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
23946         * modules/getcwd-tests: New test.
23947         * tests/test-getcwd.c: Likewise.
23948
23949         link: fix platform bugs
23950         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
23951         * lib/link.c (link): Work around them.  Fix related mingw bug.
23952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
23953         * modules/unistd (Makefile.am): Substitute it.
23954         * lib/unistd.in.h (link): Declare replacement.
23955         * doc/posix-functions/link.texi (link): Document this.
23956         * modules/link (Depends-on): Add strdup-posix, sys_stat.
23957
23958         test-link: consolidate into single C program, test more cases
23959         * tests/test-link.sh: Delete.
23960         * tests/test-link.c: Test more error conditions.  Exposes bugs on
23961         at least Cygwin and Solaris.
23962         * modules/link-tests (Files): Remove unused file.
23963         (Depends-on): Add errno, sys_stat.
23964         (Makefile.am): Simplify.
23965
23966 2009-09-08  Bruno Haible  <bruno@clisp.org>
23967
23968         Work around towlower, towupper bug on mingw.
23969         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
23970         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
23971         * doc/posix-functions/towlower.texi: Mention the mingw bug.
23972         * doc/posix-functions/towupper.texi: Likewise.
23973         Reported by Eric Blake.
23974
23975 2009-09-08  Jim Meyering  <meyering@redhat.com>
23976
23977         build: don't try to run autoheader if we don't use it
23978         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
23979         is not used in configure.ac.
23980
23981 2009-09-08  Eric Blake  <ebb9@byu.net>
23982
23983         euidaccess: fix compilation error
23984         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
23985
23986         rawmemchr: relax license
23987         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
23988         okay.
23989         Reported by Jim Meyering.
23990
23991         mkfifoat: new module
23992         * modules/mkfifoat: New file.
23993         * lib/mkfifoat.c: Likewise.
23994         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
23995         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23996         * modules/sys_stat (Makefile.am): Use them.
23997         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
23998         * MODULES.html.sh (File system functions): Mention module.
23999         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24000         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24001         * modules/mkfifoat-tests: New test.
24002         * tests/test-mkfifoat.c: Likewise.
24003
24004         strchrnul: relax license
24005         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24006         okay.
24007         Reported by Jim Meyering.
24008
24009 2009-09-08  Eric Blake  <ebb9@byu.net>
24010
24011         fstatat: fix compilation on Solaris
24012         * lib/fstatat.c (includes): Add fcntl.h.
24013         Reported by Pádraig Brady.
24014
24015 2009-09-07  Eric Blake  <ebb9@byu.net>
24016
24017         rename: modernize replacement
24018         * modules/rename (Depends-on): Add stdio.
24019         (configure.ac): Declare witness.
24020         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24021         stdio take care of replacement.
24022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24023         * modules/stdio (Makefile.am): Substitute them.
24024         * lib/stdio.in.h (rename): Declare replacement.
24025         * lib/rename.c (includes): Allow cross-compilation to non-windows
24026         machines.
24027         * doc/posix-functions/rename.texi (rename): Improve
24028         documentation.
24029
24030         stdio: sort witness names
24031         * modules/stdio (Makefile.am): Sort replacements.
24032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24033         * lib/stdio.in.h: Likewise.
24034
24035         getcwd: minor cleanups
24036         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24037         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24038
24039         openat: provide more convenience names
24040         * modules/faccessat (configure.ac): Add C witness.
24041         * lib/unistd.in.h (readlinkat): Fix typo.
24042         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24043         convenience wrappers.
24044         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24045         wrappers in syntax checks.
24046
24047 2009-09-06  Eric Blake  <ebb9@byu.net>
24048
24049         doc: fix comments in recent patches
24050         * lib/faccessat.c: Mention correct function.
24051         * lib/fchmodat.c: Likewise.
24052         * lib/fchownat.c: Likewise.
24053         * lib/symlinkat.c: Likewise.
24054         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24055         constants.
24056
24057         faccessat, symlinkat: continue cleanup of previous patch
24058         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24059         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24060         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24062         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24063         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24064         set.
24065
24066 2009-09-06  Bruno Haible  <bruno@clisp.org>
24067
24068         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24069         (fstatat): Declare if GNULIB_FSTATAT is set.
24070         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24071         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24072         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24073         * modules/fcntl-h (Files): Remove m4/openat.m4.
24074         * modules/sys_stat (Files): Remove m4/openat.m4.
24075         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24076         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24077         * modules/unistd (Files): Remove m4/openat.m4.
24078         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24079         GNULIB_OPENAT.
24080         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24081         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24082         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24083         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24084         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24085         gl_OPENAT_DEFAULTS.
24086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24087         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24088         Don't require gl_OPENAT_DEFAULTS.
24089         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24090         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24091         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24092         (gl_OPENAT_DEFAULTS): Remove macro.
24093
24094 2009-09-06  Bruno Haible  <bruno@clisp.org>
24095
24096         * modules/openat (configure.ac): Remove unneeded witness.
24097
24098 2009-09-06  Bruno Haible  <bruno@clisp.org>
24099
24100         Set errno to ENOSYS when a function is entirely unsupported.
24101         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24102         EOPNOTSUPP.
24103         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24104         * modules/chown (Depends-on): Remove errno.
24105
24106 2009-09-06  Bruno Haible  <bruno@clisp.org>
24107
24108         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24109
24110 2009-09-06  Bruno Haible  <bruno@clisp.org>
24111
24112         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24113
24114 2009-09-06  Ben Pfaff  <blp@gnu.org>
24115             Bruno Haible  <bruno@clisp.org>
24116
24117         Work around a glibc bug in strtok_r.
24118         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24119         Undefine if UNDEFINE_STRTOK_R is set.
24120         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24121         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24122         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24123         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24124         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24125         UNDEFINE_STRTOK_R.
24126         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24127
24128 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24129
24130         exclude: minor fix
24131         * lib/exclude.c: Include wctype.h
24132
24133 2009-09-06  Akim Demaille  <demaille@gostai.com>
24134
24135         bootstrap: improve error message
24136         * build-aux/bootstrap (find_tool): Upon failure, report the list
24137         of candidates.
24138         Honor the initial value of the envvar.
24139
24140 2009-09-05  Eric Blake  <ebb9@byu.net>
24141
24142         symlinkat: new module
24143         * modules/symlinkat: New file.
24144         * lib/symlinkat.c: Likewise.
24145         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24147         * modules/unistd (Makefile.am): Use them.
24148         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24149         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24150         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24151         * MODULES.html.sh (File system functions): Mention module.
24152         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24153         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24154         * modules/symlinkat-tests: New test.
24155         * tests/test-symlinkat.c: Likewise.
24156
24157         test-openat-safer: add more checks
24158         * tests/test-openat-safer.c (main): Check more code paths.
24159
24160 2009-09-05  Jim Meyering  <meyering@redhat.com>
24161
24162         syntax-check: detect unnecessary inclusion of openat.h
24163         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24164
24165 2009-09-05  Bruno Haible  <bruno@clisp.org>
24166
24167         Support towlower, towupper.
24168         * doc/posix-functions/towlower.texi: Mention module wctype.
24169         * doc/posix-functions/towupper.texi: Likewise.
24170         * lib/wctype.in.h (towlower, towupper): New functions.
24171         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24172         (ASSERT): New macro.
24173         (e): New variable.
24174         (main): Test also towlower, towupper. Test WEOF argument.
24175         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24176
24177 2009-09-05  Bruno Haible  <bruno@clisp.org>
24178
24179         Fix conversion behaviour when the input is invalid.
24180         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24181         mark occurring in first pass of indirect conversion.
24182         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24183         input.
24184         Found by clang's static analyzer.
24185
24186 2009-09-05  Bruno Haible  <bruno@clisp.org>
24187
24188         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24189         where direct conversion is possible.
24190
24191 2009-09-04  Eric Blake  <ebb9@byu.net>
24192
24193         openat: fail with ENOENT on empty name
24194         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24195         buffer.
24196
24197         link-follow: fix logic bug in prior patch
24198         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24199         reversed sense of yes and no in prior patch.  Avoid confusing
24200         compilation failure with desired semantics.
24201
24202         link-follow: accomodate mingw and cross-compilation
24203         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24204         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24205         cross-compilation results to -1, to make linkat easier to
24206         implement when cross-compiling.  Trivially support mingw.
24207         * modules/link-follow (configure.ac): Call new name.
24208         * NEWS: Mention this.
24209
24210 2009-09-03  Eric Blake  <ebb9@byu.net>
24211
24212         faccessat: compile replacement
24213         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24214         needed.
24215
24216         fts: fix compilation error
24217         * lib/fts.c (includes): Re-add "openat.h", for
24218         openat_needs_fchdir.
24219
24220         faccessat: new module
24221         * modules/faccessat: New file.
24222         * lib/faccessat.c: Likewise.
24223         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24225         * modules/unistd (Makefile.am): Use it.
24226         * lib/unistd.in.h (faccessat): Declare it.
24227         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24228         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24229         * MODULES.html.sh (File system functions): Mention it.
24230         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24231         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24232
24233         euidaccess: prefer POSIX over non-standard implementation
24234         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24235         * lib/euidaccess.c (euidaccess): Use it if available.
24236
24237         openat: make template easier to use
24238         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24239         AT_FUNC_F2 to be undefined.
24240         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24241         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24242         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24243         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24244         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24245         Likewise.
24246         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24247         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24248         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24249         Likewise.
24250
24251         openat: declare in POSIX headers
24252         * NEWS: Mention this.
24253         * modules/openat (configure.ac): Declare witnesses.
24254         (Depends-on): Add fcntl-h, sys_stat, unistd.
24255         (Include): Mention correct headers.
24256         * modules/fcntl-h (Depends-on): Add link-warning.
24257         (Files): Add openat.m4.
24258         (Makefile.am): Substitute witnesses.
24259         * modules/sys_stat (Files, Makefile.am): Likewise.
24260         * modules/unistd (Files, Makefile.am): Likewise.
24261         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24262         (gl_OPENAT_DEFAULTS): New macro.
24263         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24265         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24266         (SYS_STAT_H): Remove unused variable.
24267         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24268         * lib/fcntl--.h (includes): Remove unneeded header.
24269         * lib/openat-safer.c (includes): Likewise.
24270         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24271         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24272         appropriate headers.
24273         (__OPENAT_PREFIX): Delete.
24274         * lib/fcntl.in.h (openat): Provide declaration.
24275         (AT_FDCWD): Fix Solaris bug.
24276         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24277         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24278         * lib/fchmodat.c (includes):  Adjust to find declaration.
24279         * lib/fchownat.c (includes): Likewise.
24280         * lib/mkdirat.c (includes): Likewise.
24281         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24282         still visible.
24283
24284 2009-09-02  Eric Blake  <ebb9@byu.net>
24285
24286         errno: use consistently
24287         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24288         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24289         * lib/canonicalize.c (ELOOP): Likewise.
24290         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24291         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24292         * lib/lchown.c (EOPNOTSUPP): Likewise.
24293         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24294         * lib/savewd.c (ESTALE): Likewise.
24295         * lib/settime.c (ENOSYS): Likewise.
24296         * lib/utimens.c (ENOSYS): Likewise.
24297         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24298         * lib/chdir-safer.c (ELOOP): Likewise.
24299         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24300         * modules/c-stack (Depends-on): Add errno.
24301         * modules/canonicalize (Depends-on): Likewise.
24302         * modules/chdir-safer (Depends-on): Likewise.
24303         * modules/fdopendir (Depends-on): Likewise.
24304         * modules/inet_ntop (Depends-on): Likewise.
24305         * modules/inet_pton (Depends-on): Likewise.
24306         * modules/lchown (Depends-on): Likewise.
24307         * modules/openat (Depends-on): Likewise.
24308         * modules/savewd (Depends-on): Likewise.
24309         * modules/settime (Depends-on): Likewise.
24310         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24311
24312         fts: avoid leaking fds
24313         * modules/fts (Depends-on): Add cloexec.
24314         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24315         flag.
24316
24317         fts: make directory fds more robust
24318         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24319         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24320
24321         backupfile, chdir-long, fts, savedir: make safer
24322         * lib/backupfile.c (includes): Use "dirent--.h", since
24323         numbered_backup can write to stderr during readdir.
24324         * lib/savedir.c (includes): Likewise.
24325         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24326         emulation can write to stderr on failure.
24327         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24328         * lib/getcwd.c: Document why opendir_safer is unused.
24329         * lib/glob.c: Likewise.
24330         * lib/scandir.c: Likewise.
24331         * lib/openat-proc.c: Likewise, for open_safer.
24332         * modules/backupfile (Depends-on): Add dirent-safer.
24333         * modules/savedir (Depends-on): Likewise.
24334         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24335         * modules/chdir-long (Depends-on): Add openat-safer.
24336
24337         openat-safer: new module
24338         * modules/openat-safer: New file.
24339         * lib/openat-safer.c: Likewise.
24340         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24341         * lib/fcntl-safer.h (openat_safer): Declare.
24342         * lib/fcntl--.h (openat): Override.
24343         * MODULES.html.sh (File descriptor based I/O): Mention it.
24344         * lib/openat.h: Add double-inclusion guards.
24345         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24346         "fcntl--.h", so we can implement openat.
24347         * modules/openat-safer-tests: New test.
24348         * tests/test-openat-safer.c: New file.
24349
24350         dirent-safer: new module
24351         * modules/dirent-safer: New file.
24352         * lib/dirent--.h: Likewise.
24353         * lib/dirent-safer.h: Likewise.
24354         * lib/opendir-safer.c: Likewise.
24355         * m4/dirent-safer.m4: Likewise.
24356         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24357         * modules/dirent-safer-tests: New test.
24358         * tests/test-dirent-safer.c: New file.
24359         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24360
24361         fdopendir: optimize on mingw
24362         * lib/unistd.in.h (_gl_directory_name): New prototype.
24363         * lib/fchdir.c (_gl_directory_name): Implement it.
24364         (fchdir): Use it to simplify implementation.
24365         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24366         fchdir, when available, to avoid calling [f]chdir().
24367
24368         fdopendir: split into its own module
24369         * lib/openat.c (fdopendir): Move...
24370         * lib/fdopendir.c: ...into new file.
24371         * modules/fdopendir: New module.
24372         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24373         * modules/openat (Depends-on): Add fdopendir.
24374         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24375         fdopendir here.
24376         * modules/savedir (Depends-on): Only need fdopendir, not full
24377         openat.
24378         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24379         * lib/openat.h (fdopendir): Drop prototype.
24380         * lib/dirent.in.h (fdopendir): Provide prototype.
24381         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24382         * modules/dirent (Makefile.am): Substitute them.
24383         * MODULES.html.sh (File system functions): Mention it.
24384         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24385         * modules/fdopendir-tests: New file.
24386         * tests/test-fdopendir.c: Likewise.
24387
24388         fchdir: use more consistent macro convention
24389         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24390         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24391         REPLACE_FCHDIR, rather than relying on config.h macros.
24392         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24393         inside a single make-time REPLACE_FCHDIR block, rather than using
24394         the config.h FCHDIR_REPLACEMENT.
24395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24396         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24397         Manage fstat replacement.
24398         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24399         REPLACE_FCHDIR.
24400         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24401         (Makefile.am): Substitute REPLACE_FCHDIR.
24402         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24403         FCHDIR_REPLACEMENT.
24404         * lib/dup-safer.c (dup_safer): Likewise.
24405         * lib/dup2.c (rpl_dup2): Likewise.
24406         * lib/dup3.c (rpl_dup3): Likewise.
24407         * lib/open.c (rpl_open): Likewise.
24408
24409         fchdir: simplify error handling, and support dup3
24410         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24411         stdbool, malloc-posix, realloc-posix.
24412         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24413         (ensure_dirs_slot): Return false on allocation failure.
24414         (rpl_dup2): Delete.
24415         (_gl_register_dup): New function.
24416         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
24417         (_gl_register_fd): Close fd on allocation failure.
24418         * lib/fcntl.in.h (_gl_register_fd): Update signature.
24419         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
24420         prototype.
24421         (rpl_dup2_fchdir): Delete prototype.
24422         * lib/open.c (open): Update caller.
24423         * lib/dup2.c (dup2): Track fchdir metadata.
24424         * lib/dup3.c (dup3): Likewise.
24425         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
24426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
24427
24428 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24429
24430         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
24431         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
24432         don't pass arguments to AC_OUTPUT.
24433
24434 2009-09-02  Bruno Haible  <bruno@clisp.org>
24435
24436         * modules/mkdtemp (License): Relicense under LGPLv2+.
24437         Reported by Paolo Bonzini.
24438
24439 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24440
24441         Replace uses of obsolete autoconf macros in Jim's modules.
24442         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
24443         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
24444         can evoke a warning from autoconf when run with -Wobsolete
24445         enabled.  They were declared obsolete for good reasons (see
24446         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
24447         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
24448         should not continue using the deprecated macros.
24449         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
24450         obsolete Autoconf macros with modern counterparts.
24451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24452         * m4/dos.m4 (gl_AC_DOS): Likewise.
24453         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
24454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24455         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
24456         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
24457         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
24458         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
24459         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
24460         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
24461         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
24462         Likewise.
24463         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24464         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24465         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
24466         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
24467         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
24468         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24469
24470 2009-09-01  Eric Blake  <ebb9@byu.net>
24471
24472         fchdir: fix off-by-one bug in previous patch
24473         * lib/fchdir.c (rpl_fstat): Use correct bounds.
24474         (_gl_unregister_fd): Delete useless if.
24475
24476 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
24477
24478         maint.mk: sort the list of syntax-check rules
24479         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
24480         easier to get a sense of progress when the rules are run sequentially
24481         and take a long time.
24482
24483 2009-09-01  Simon Josefsson  <simon@josefsson.org>
24484
24485         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
24486         * modules/netinet_in: Likewise.
24487         * modules/sys_file: Likewise.
24488         * modules/sys_ioctl: Likewise.
24489         * modules/sys_select: Likewise.
24490         * modules/sys_socket: Likewise.
24491         * modules/sys_stat: Likewise.
24492         * modules/sys_time: Likewise.
24493         * modules/sys_times: Likewise.
24494         * modules/sys_utsname: Likewise.
24495         * modules/sys_wait: Likewise.
24496
24497 2009-09-01  Jim Meyering  <meyering@redhat.com>
24498
24499         fts: help ensure that return values are not ignored
24500         * lib/fts_.h (__GNUC_PREREQ): Define.
24501         (__attribute_warn_unused_result__): Define.
24502         (fts_children, fts_close, fts_open, fts_read): Declare with
24503         __attribute_warn_unused_result__.
24504
24505         fts: fts_close now fails also when closing a dir file descriptor fails
24506         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
24507         and propagate to caller, along with errno.
24508
24509         announce-gen: correct formatting in --help output
24510         * build-aux/announce-gen (usage): Move the one-line description in
24511         --help output "up", to where it belongs, just after Usage:.
24512
24513 2009-08-31  Eric Blake  <ebb9@byu.net>
24514
24515         fchdir: port to mingw
24516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
24517         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
24518         opened, then use a substitute.
24519         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
24520         replacement.
24521         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
24522         (_gl_register_fd): No need to check stat if open already filters
24523         all directories.
24524         (fchdir): Fix error condition to match POSIX.
24525         * modules/fchdir (Depends-on): Add sys_stat.
24526         * doc/posix-functions/open.texi (open): Document the limitation.
24527         * modules/fchdir-tests: New file.
24528         * tests/test-fchdir.c: Likewise.
24529
24530         canonicalize: allow cross-testing from cygwin to mingw
24531         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
24532         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
24533         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
24534         Likewise.
24535         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
24536         target does not support symlinks.
24537         * tests/test-canonicalize-lgpl.sh: Likewise.
24538
24539         chown: avoid compilation warning on mingw
24540         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
24541         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
24542         mingw.
24543         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24544         * modules/chown (Depends-on): Add errno.
24545
24546 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24547
24548         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
24549         command.
24550
24551 2009-08-31  Jim Meyering  <meyering@redhat.com>
24552
24553         canonicalize: remove useless initialization
24554         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
24555         initialization of local, "end".
24556
24557 2009-08-30  Bruno Haible  <bruno@clisp.org>
24558
24559         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
24560         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
24561         ENOSYS.
24562
24563 2009-08-30  Bruno Haible  <bruno@clisp.org>
24564
24565         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
24566         /usr/xpg4/bin/tr when it exists.
24567         * tests/test-pipe-filter-gi1.sh: Likewise.
24568
24569 2009-08-30  Bruno Haible  <bruno@clisp.org>
24570
24571         Work around deficient /usr/bin/id program on Solaris.
24572         * tests/test-file-has-acl.sh (ID): New variable.
24573         * tests/test-set-mode-acl.sh (ID): Likewise.
24574         * tests/test-copy-acl.sh (ID): Likewise.
24575         * tests/test-copy-file.sh (ID): Likewise.
24576
24577 2009-08-30  Bruno Haible  <bruno@clisp.org>
24578
24579         New module 'xstriconveh'.
24580         * lib/xstriconveh.h: New file.
24581         * lib/xstriconveh.c: New file.
24582         * modules/xstriconveh: New file.
24583
24584 2009-08-30  Bruno Haible  <bruno@clisp.org>
24585
24586         Make it easier to use mem_cd_iconveh.
24587         * lib/striconveh.h (iconveh_t): New type.
24588         (iconveh_open, iconveh_close): New declarations.
24589         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24590         with a single 'const iconveh_t *' argument.
24591         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
24592         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24593         with a single 'const iconveh_t *' argument.
24594         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
24595         * tests/test-striconveh.c (main): Update.
24596         * NEWS: Mention the change.
24597
24598 2009-08-30  Bruno Haible  <bruno@clisp.org>
24599
24600         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
24601         problem.
24602
24603 2009-08-30  Bruno Haible  <bruno@clisp.org>
24604
24605         Work around iconv_open problem on Solaris.
24606         * lib/iconv_open-solaris.gperf: New file.
24607         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
24608         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
24609         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
24610         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
24611         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
24612         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
24613
24614 2009-08-29  Jim Meyering  <meyering@redhat.com>
24615
24616         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
24617         * top/maint.mk (cvs-check): Remove target; it was just an alias
24618         to the better-named vc-diff-check.
24619         (maintainer-distcheck): Remove rule.  It was used only from
24620         the (alpha/beta/major) target, and all of its commands but one
24621         were coreutils-specific.
24622         (vc-dist): Remove rule.
24623         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
24624         Run vc-diff-check, not vc-dist.
24625         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
24626
24627 2009-08-27  Bruno Haible  <bruno@clisp.org>
24628
24629         * tests/test-bitrotate.c (main): Remove test that uses a shift count
24630         of 0.
24631
24632 2009-08-27  Bruno Haible  <bruno@clisp.org>
24633
24634         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
24635         compilers.
24636         * doc/func.texi: Document the SunPRO C bug.
24637
24638 2009-08-27  Bruno Haible  <bruno@clisp.org>
24639
24640         Fix link error on Solaris.
24641         * tests/test-parse-duration.c (xstrdup): Remove function.
24642
24643 2009-08-26  Pádraig Brady  <P@draigbrady.com>
24644
24645         ignore-value: handle pointer types, too
24646         * lib/ignore-value.h (__attribute__): Remove definition.
24647         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
24648         of a more concise and more-often effective "(void) i" statement.
24649         (ignore_ptr): New function to suppress warnings from functions that
24650         return pointers, and to make it explicit that one function doesn't
24651         handle all cases.
24652
24653 2009-08-25  Bruno Haible  <bruno@clisp.org>
24654
24655         dup2: work around a Linux bug.
24656         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
24657         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
24658         * doc/posix-functions/dup2.texi: Mention the Linux bug.
24659         Reported by Simon Josefsson.
24660
24661 2009-08-25  Jim Meyering  <meyering@redhat.com>
24662
24663         libguestfs uses gnulib
24664         * users.txt: Add libguestfs.
24665
24666 2009-08-24  Eric Blake  <ebb9@byu.net>
24667
24668         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
24669         * lib/pipe2.c (includes): Add binary-io.h.
24670         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
24671
24672 2009-08-24  Bruno Haible  <bruno@clisp.org>
24673
24674         Tolerate declared but missing accept4 syscall.
24675         * lib/accept4.c (accept4): Invoke original accept4 function first, if
24676         available.
24677         * lib/sys_socket.in.h (accept4): If the function is already present,
24678         override it.
24679         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
24680         * modules/accept4 (Makefile.am): Compile accept4.c always.
24681         Reported by Paolo Bonzini and Eric Blake.
24682
24683 2009-08-23  Bruno Haible  <bruno@clisp.org>
24684
24685         New module 'accept4'.
24686         * lib/sys_socket.in.h (accept4): New declaration.
24687         * lib/accept4.c: New file.
24688         * m4/accept4.m4: New file.
24689         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24690         GNULIB_ACCEPT4, HAVE_ACCEPT4.
24691         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
24692         HAVE_ACCEPT4.
24693         * modules/accept4: New file.
24694         * doc/glibc-functions/accept4.texi: Mention the new module.
24695
24696 2009-08-24  Jim Meyering  <meyering@redhat.com>
24697
24698         progname: also set global program_invocation_name, when possible
24699         Before this change, a libtool-enabled program that calls glibc's
24700         error function would report the program name as
24701         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
24702         * modules/progname (configure.ac): Check for a declaration of
24703         program_invocation_name.
24704         * lib/progname.c:  Include <errno.h>.
24705         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
24706         Set program_invocation_name.
24707
24708 2009-08-23  Bruno Haible  <bruno@clisp.org>
24709
24710         * lib/dup3.c: Include <string.h>.
24711
24712 2009-08-23  Bruno Haible  <bruno@clisp.org>
24713
24714         * lib/dup3.c (dup3): Test only once whether the system actually exists.
24715         * lib/pipe2.c (pipe2): Likewise.
24716         Suggested by Eric Blake.
24717
24718 2009-08-23  Bruno Haible  <bruno@clisp.org>
24719
24720         Tolerate declared but missing dup3 syscall.
24721         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
24722         * lib/unistd.in.h (dup3): If the function is already present,
24723         override it.
24724         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
24725         * modules/dup3 (Makefile.am): Compile dup3.c always.
24726         Reported by Paolo Bonzini.
24727
24728 2009-08-23  Bruno Haible  <bruno@clisp.org>
24729
24730         Tolerate declared but missing pipe2 syscall.
24731         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
24732         available.
24733         * lib/unistd.in.h (pipe2): If the function is already present,
24734         override it.
24735         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
24736         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
24737         Reported by Paolo Bonzini.
24738
24739 2009-08-23  Bruno Haible  <bruno@clisp.org>
24740
24741         * lib/pipe2.c (pipe2): Move #ifs inside function.
24742
24743 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24744
24745         quotearg: document limitations of quote_these_too
24746         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
24747         those limitations are created.
24748         * lib/quotearg.h (set_char_quoting): Document that digits and
24749         letters that are special after backslash are not permitted.
24750         (quotearg_char): Cross-reference set_char_quoting documentation.
24751
24752 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
24753
24754         quotearg: implement custom_quoting_style
24755         * lib/quotearg.c: (struct quoting_options): Add left_quote and
24756         right_quote fields.
24757         (set_custom_quoting): New public function.
24758         (quotearg_buffer_restyled): Add left_quote and right_quote
24759         arguments, handle them very much like locale quoting, and update
24760         all uses.
24761         (quotearg_n_custom): New public function.
24762         (quotearg_n_custom_mem): New public function.
24763         (quotearg_custom): New public function.
24764         (quotearg_custom_mem): New public function.
24765         * lib/quotearg.h: Prototype and document new public functions.
24766         (enum quoting_style): For escape_quoting_style and
24767         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
24768         ignored even though they're otherwise like c_quoting_style.
24769         Add custom_quoting_style member and document with comparison to
24770         clocale_quoting_style.
24771         * tests/test-quotearg.c (custom_quotes): New array.
24772         (custom_results): New array.
24773         (main): Extend to test custom quoting.
24774
24775 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24776
24777         quotearg: fix right quote escaping when it's in quote_these_too
24778         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
24779         quote, be sure to prepend only one backslash.
24780         * tests/test-quotearg.c (use_quote_double_quotes): New function.
24781         (main): Test it.
24782
24783 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24784
24785         quotearg-tests: test escaping of embedded locale quotes
24786         * tests/test-quotearg.c (struct result_strings): Add member for
24787         new input.
24788         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
24789         (inputs): Add new input.
24790         (results_g): Add expected results.
24791         (flag_results): Likewise.
24792         (locale_results): Likewise.
24793         (compare_strings): Check those.
24794
24795 2009-08-23  Bruno Haible  <bruno@clisp.org>
24796
24797         Tests for module 'dup3'.
24798         * modules/dup3-tests: New file.
24799         * tests/test-dup3.c: New file.
24800
24801         New module 'dup3'.
24802         * lib/unistd.in.h (dup3): New declaration.
24803         * lib/dup3.c: New file.
24804         * m4/dup3.m4: New file.
24805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
24806         HAVE_DUP3.
24807         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
24808         * modules/dup3: New file.
24809         * doc/glibc-functions/dup3.texi: Mention the new module.
24810
24811 2009-08-23  Bruno Haible  <bruno@clisp.org>
24812
24813         Tweak the dup2 test.
24814         * tests/test-dup2.c (main): Create the test file empty. Verify that an
24815         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
24816         the test file is still empty. Fix argument order of lseek.
24817
24818 2009-08-23  Bruno Haible  <bruno@clisp.org>
24819
24820         Avoid test link errors when the modules getopt-gnu, gettext are used.
24821         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
24822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24823
24824 2009-08-23  Bruno Haible  <bruno@clisp.org>
24825
24826         Fix getdtablesize() on mingw.
24827         * lib/getdtablesize.c (getdtablesize): Implement differently.
24828         * lib/unistd.in.h (getdtablesize): Improve comment.
24829
24830 2009-08-23  Bruno Haible  <bruno@clisp.org>
24831
24832         New module 'mkostemp'.
24833         Based on Ulrich Drepper's 2007-08-10 change in glibc.
24834         * lib/stdlib.in.h (mksotemp): New declaration.
24835         * lib/mkostemp.c: New file, from glibc with modifications.
24836         * lib/tempname.h (GT_FILE): Remove outdated comment.
24837         (gen_tempname): Add flags argument.
24838         * lib/tempname.c (__GT_BIGFILE): Remove macro.
24839         (__GT_FILE): Map to 1.
24840         (small_open, large_open): Remove macros.
24841         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
24842         * lib/mkstemp.c (mkstemp): Update.
24843         * lib/mkdtemp.c (mkdtemp): Likewise.
24844         * m4/mkostemp.m4: New file.
24845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
24846         HAVE_MKOSTEMP.
24847         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
24848         HAVE_MKOSTEMP.
24849         * modules/mkostemp: New file, based on modules/mkstemp.
24850         * doc/glibc-functions/mkostemp.texi: Mention the new module.
24851         * NEWS: Mention the change.
24852
24853 2009-08-23  Bruno Haible  <bruno@clisp.org>
24854
24855         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
24856         Reported by Eric Blake.
24857
24858 2009-08-23  Bruno Haible  <bruno@clisp.org>
24859
24860         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
24861         Reported by Eric Blake.
24862
24863 2009-08-23  Bruno Haible  <bruno@clisp.org>
24864
24865         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
24866         * modules/pipe2 (Depends-on): Likewise.
24867
24868 2009-08-23  Eric Blake  <ebb9@byu.net>
24869
24870         fcntl-h: add O_TTY_INIT support
24871         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
24872         * tests/test-fcntl-h.c (o): Test it.
24873         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24874
24875         fcntl-h: rename from fcntl, in preparation for fcntl(2)
24876         * modules/fcntl: Move <fcntl.h> header replacement...
24877         * modules/fcntl-h: ...to new name, so as not to collide with
24878         like-named function.
24879         * tests/test-fcntl.c: Rename...
24880         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
24881         * modules/fcntl-tests: Rename...
24882         * modules/fcntl-h-tests: ...to this.  Update test file name.
24883         * modules/chdir-long (Depends-on): Update clients.
24884         * modules/chdir-safer (Depends-on): Likewise.
24885         * modules/fcntl-safer (Depends-on): Likewise.
24886         * modules/fts (Depends-on): Likewise.
24887         * modules/mkancesdirs (Depends-on): Likewise.
24888         * modules/mkdir-p (Depends-on): Likewise.
24889         * modules/open (Depends-on): Likewise.
24890         * modules/savewd (Depends-on): Likewise.
24891         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
24892         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24893
24894 2009-08-22  Bruno Haible  <bruno@clisp.org>
24895
24896         * modules/binary-io (License): Relicense under LGPL.
24897         * modules/pipe2 (License): Likewise.
24898
24899 2009-08-22  Bruno Haible  <bruno@clisp.org>
24900
24901         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
24902         return value.
24903         * lib/pipe-filter-gi.c (filter_init): Likewise.
24904         Reported by Eric Blake.
24905
24906 2009-08-22  Bruno Haible  <bruno@clisp.org>
24907
24908         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
24909         * modules/pipe (Depends-on): Add pipe2.
24910
24911 2009-08-22  Bruno Haible  <bruno@clisp.org>
24912
24913         Tests for module 'pipe2'.
24914         * modules/pipe2-tests: New file.
24915         * tests/test-pipe2.c: New file.
24916
24917         New module 'pipe2'.
24918         * lib/unistd.in.h (pipe2): New declaration.
24919         * lib/pipe2.c: New file.
24920         * m4/pipe2.m4: New file.
24921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
24922         HAVE_PIPE2.
24923         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
24924         * modules/pipe2: New file.
24925         * doc/glibc-functions/pipe2.texi: Mention the new module.
24926
24927 2009-08-22  Bruno Haible  <bruno@clisp.org>
24928
24929         Reference some new glibc functions.
24930         * doc/glibc-functions/accept4.texi: New file.
24931         * doc/glibc-functions/dup3.texi: New file.
24932         * doc/glibc-functions/mkostemp.texi: New file.
24933         * doc/glibc-functions/pipe2.texi: New file.
24934         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
24935         (Glibc sys/socket.h): Refer to accept4.
24936         (Glibc unistd.h): Refer to dup3, pipe2.
24937         Reported by Eric Blake.
24938
24939 2009-08-22  Jim Meyering  <meyering@redhat.com>
24940             Bruno Haible  <bruno@clisp.org>
24941
24942         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
24943         This makes it so packages using automake-1.11's silent-rules option
24944         can print e.g., a single "GEN    configmake.h" line, rather than
24945         the 30+ statements that perform the job.  If you want to see the
24946         actual commands, you can still run "make V=1".
24947         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
24948         so that make output is abbreviated when those variables are defined
24949         appropriately.
24950         * modules/argz: Likewise.
24951         * modules/arpa_inet: Likewise.
24952         * modules/byteswap: Likewise.
24953         * modules/configmake: Likewise.
24954         * modules/dirent: Likewise.
24955         * modules/errno: Likewise.
24956         * modules/fcntl: Likewise.
24957         * modules/float: Likewise.
24958         * modules/fnmatch: Likewise.
24959         * modules/getopt-posix: Likewise.
24960         * modules/glob: Likewise.
24961         * modules/iconv_open: Likewise.
24962         * modules/inttypes: Likewise.
24963         * modules/localcharset: Likewise.
24964         * modules/locale: Likewise.
24965         * modules/math: Likewise.
24966         * modules/netdb: Likewise.
24967         * modules/netinet_in: Likewise.
24968         * modules/poll: Likewise.
24969         * modules/posix_spawnp-tests: Likewise.
24970         * modules/sched: Likewise.
24971         * modules/search: Likewise.
24972         * modules/selinux-h: Likewise.
24973         * modules/signal: Likewise.
24974         * modules/spawn: Likewise.
24975         * modules/stdarg: Likewise.
24976         * modules/stdbool: Likewise.
24977         * modules/stddef: Likewise.
24978         * modules/stdint: Likewise.
24979         * modules/stdio: Likewise.
24980         * modules/stdlib: Likewise.
24981         * modules/string: Likewise.
24982         * modules/strings: Likewise.
24983         * modules/sys_file: Likewise.
24984         * modules/sys_ioctl: Likewise.
24985         * modules/sys_select: Likewise.
24986         * modules/sys_socket: Likewise.
24987         * modules/sys_stat: Likewise.
24988         * modules/sys_time: Likewise.
24989         * modules/sys_times: Likewise.
24990         * modules/sys_utsname: Likewise.
24991         * modules/sys_wait: Likewise.
24992         * modules/sysexits: Likewise.
24993         * modules/time: Likewise.
24994         * modules/unistd: Likewise.
24995         * modules/wchar: Likewise.
24996         * modules/wctype: Likewise.
24997
24998 2009-08-22  Jim Meyering  <meyering@redhat.com>
24999
25000         announce-gen: detect write failure
25001         * build-aux/announce-gen: Add Coda at end.
25002         Remove equivalent-but-more-verbose block at top.
25003
25004 2009-08-19  Akim Demaille  <demaille@gostai.com>
25005
25006         bootstrap: --help to stdout.
25007         * bootstrap (usage): Don't send --help to stderr.
25008         Use a here doc instead of a long string.
25009
25010 2009-08-21  Eric Blake  <ebb9@byu.net>
25011
25012         test-popen-safer: split from test-popen
25013         * tests/test-popen.c (main): Move...
25014         * tests/test-popen.h: ...into new file.
25015         * tests/test-popen-safer2.c: New file.
25016         * modules/popen-tests (Files): Add test-popen.h.
25017         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25018         Suggested by Bruno Haible.
25019
25020         test-fcntl-safer: split from test-open
25021         * tests/test-open.c (main): Move...
25022         * tests/test-open.h: ...into new file.
25023         * tests/test-fcntl-safer.c: New file.
25024         * modules/open-tests (Files): Add test-open.h.
25025         * modules/fcntl-safer-tests: New file.
25026         Suggested by Bruno Haible.
25027
25028         test-fopen-safer: split from test-fopen
25029         * tests/test-fopen.c (main): Move...
25030         * tests/test-fopen.h: ...into new file.
25031         * tests/test-fopen-safer.c: New file.
25032         * modules/fopen-tests (Files): Add test-fopen.h.
25033         * modules/fopen-safer-tests: New file.
25034         Suggested by Bruno Haible.
25035
25036 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25037
25038         popen-safer: test O_CLOEXEC at run-time.
25039         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25040
25041 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25042
25043         fcntl: move more flags to the header
25044         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25045         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25046         * lib/fcntl.in.h: Do both things here.
25047
25048 2009-08-21  Jim Meyering  <meyering@redhat.com>
25049
25050         consistently remove $@-t before redirecting to it
25051         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25052         * modules/alloca-opt: Likewise.
25053         * modules/byteswap: Likewise.
25054         * modules/fnmatch: Likewise.
25055         * modules/getopt-posix: Likewise.
25056         * modules/glob: Likewise.
25057         * modules/poll: Likewise.
25058         * modules/posix_spawnp-tests: Likewise.
25059         * modules/sys_socket: Likewise.
25060         * modules/sysexits: Likewise.
25061
25062 2009-08-21  Eric Blake  <ebb9@byu.net>
25063
25064         popen: simplify access to original popen
25065         * lib/popen.c (rpl_popen): No need to worry about popen being a
25066         macro.
25067         Reported by Bruno Haible.
25068
25069 2009-08-20  Eric Blake  <ebb9@byu.net>
25070
25071         build: avoid some compiler warnings
25072         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25073         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25074         type.
25075         (new_exclude_segment, excluded_file_pattern_p)
25076         (excluded_file_name_p): Reduce scope.
25077         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25078         old-style declaration.
25079
25080 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25081
25082         * tests/test-exclude1.sh: Handle Windows EOL.
25083         * tests/test-exclude2.sh: Likewise.
25084         * tests/test-exclude3.sh: Likewise.
25085         * tests/test-exclude4.sh: Likewise.
25086         * tests/test-exclude5.sh: Likewise.
25087         * tests/test-exclude6.sh: Likewise.
25088         * tests/test-exclude7.sh: Likewise.
25089
25090 2009-08-19  Akim Demaille  <demaille@gostai.com>
25091
25092         bootstrap: find sha1sum when named gsha1sum.
25093         * bootstrap (find_tool): New.
25094         ($SHA1SUM): New.
25095         Use it.
25096
25097 2009-08-20  Jim Meyering  <meyering@redhat.com>
25098
25099         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25100         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25101         expression that converts "." in a file name to "\." in the resulting
25102         regexp.  Start with a dummy statement, so that prior shell variable
25103         definitions are expanded portably.  Reported by Simon Josefsson.
25104
25105 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25106
25107         Fix polling for writeability of a screen buffer.
25108         * lib/poll.c: Distinguish input and screen buffers for the
25109         Win32 implementation.
25110         * lib/select.c: Likewise.
25111
25112 2009-08-19  Eric Blake  <ebb9@byu.net>
25113
25114         popen-safer: prevent popen from clobbering std descriptors
25115         * modules/popen-safer: New file.
25116         * lib/popen-safer.c: Likewise.
25117         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25118         * lib/stdio--.h (popen): Provide override.
25119         * lib/stdio-safer.h (popen_safer): Provide declaration.
25120         * tests/test-popen.c (includes): Partially test this.
25121         * modules/popen-safer-tests: New file, for more tests.
25122         * tests/test-popen-safer.c: Likewise.
25123         * MODULES.html.sh (file stream based Input/Output): Mention it.
25124
25125         tests: test some of the *-safer modules
25126         * modules/fopen-safer (Depends-on): Add fopen.
25127         * modules/fcntl-safer (Depends-on): Add fcntl.
25128         * modules/stdlib-safer (Depends-on): Add stdlib.
25129         (configure.ac): Set indicator.
25130         * modules/unistd-safer (configure.ac): Likewise.
25131         * modules/tmpfile-safer (configure.ac): Likewise.
25132         (Depends-on): Add tmpfile.
25133         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25134         active.
25135         * tests/test-fopen.c (includes): Test safer versions when they are
25136         in use.
25137         * tests/test-open.c (includes): Likewise.
25138
25139         popen: fix cygwin 1.5 bug when stdin closed
25140         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25141         * modules/popen: New file.
25142         * modules/popen-tests: Likewise.
25143         * tests/test-popen.c: Likewise.
25144         * m4/popen.m4: Likewise.
25145         * lib/popen.c: Likewise.
25146         * lib/stdio.in.h (popen): New declaration.
25147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25148         * modules/stdio (Makefile.am): Likewise.
25149         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25150
25151 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25152
25153         maint.mk: give full control over update-copyright exclusions
25154         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25155         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25156         (update-copyright): Don't force inclusion of top-level
25157         ChangeLog.  Don't force exclusion of all COPYING files, but make
25158         them the default exclusion instead.
25159
25160 2009-08-16  Bruno Haible  <bruno@clisp.org>
25161
25162         Fix test failures on Solaris 10.
25163         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25164         tests when Solaris iconv() is used.
25165         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25166         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25167         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25168         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25169         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25170
25171 2009-08-16  Bruno Haible  <bruno@clisp.org>
25172
25173         Fix test failures on Solaris 10.
25174         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25175         'tr' program and pass it as first argument.
25176         * tests/test-pipe-filter-gi1.sh: Likewise.
25177         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25178         program as first argument.
25179         * tests/test-pipe-filter-gi1.c (main): Likewise.
25180
25181 2009-08-16  Eric Blake  <ebb9@byu.net>
25182
25183         fpurge: fix previous commits
25184         * modules/fpurge (Makefile.am): Make replacement conditional,
25185         partially reverting 2007-04-29 change; missed in previous
25186         attempt.
25187         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25188         is missing.
25189
25190 2009-08-16  Bruno Haible  <bruno@clisp.org>
25191
25192         Clarify fpurge's effect on the file position.
25193         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25194         * tests/test-fpurge.c (main): Make a second pass for checking the file
25195         position.
25196
25197 2009-08-16  Bruno Haible  <bruno@clisp.org>
25198
25199         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25200         declaration of fpurge is missing.
25201         * tests/test-fpurge.c (main): Check that the file has not more contents
25202         than expected. Close the file before removing it.
25203
25204 2009-08-15  Eric Blake  <ebb9@byu.net>
25205
25206         fpurge: don't wrap working cygwin implementation
25207         * lib/fpurge.c (fpurge): Fix comment typo.
25208         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25209         1.7 to avoid replacement.
25210         * tests/test-fpurge.c (main): Enhance test.
25211
25212 2009-08-15  Eric Blake  <ebb9@byu.net>
25213         and Jim Meyering  <meyering@redhat.com>
25214
25215         test-update-copyright: skip if perl is insufficient
25216         * tests/test-update-copyright.sh: Failure to run maintainer tool
25217         should not cause testsuite failure on cygwin 1.5.
25218
25219 2009-08-14  Eric Blake  <ebb9@byu.net>
25220
25221         doc: mention more functions added in cygwin 1.7.0
25222         * doc/posix-headers/limits.texi (limits.h): Update for recent
25223         cygwin additions.
25224         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25225         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25226         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25227         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25228         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25229
25230 2009-08-14  Eric Blake  <ebb9@byu.net>
25231
25232         maint.mk: simplify update-copyright rule
25233         * top/maint.mk (update-copyright-local): Delete, and document how
25234         to do it in cfg.mk instead.
25235         (update-copyright-exclude-regexp): Delete, and document how to do
25236         it in .x-update-copyright instead.
25237         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25238         exclude ChangeLog.
25239
25240 2009-08-14  Bruno Haible  <bruno@clisp.org>
25241
25242         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25243
25244 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25245
25246         maint.mk: support update-copyright-env
25247         * top/maint.mk (update-copyright-env): Define place-holder.
25248         (update-copyright): Expand $(update-copyright-env) before
25249         invoking update-copyright.
25250
25251 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25252
25253         update-copyright: implement forced reformatting
25254         * build-aux/update-copyright: Implement and document
25255         UPDATE_COPYRIGHT_FORCE.
25256         * tests/test-update-copyright.sh: Test it.
25257
25258 2009-08-14  Eric Blake  <ebb9@byu.net>
25259         and Bruno Haible  <bruno@clisp.org>
25260
25261         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25262         * tests/test-locale.c: Revert previous patch related to NULL.
25263         * tests/test-stdio.c: Likewise.
25264         * tests/test-stdlib.c: Likewise.
25265         * tests/test-string.c: Likewise.
25266         * tests/test-unistd.c: Likewise.
25267         * modules/time-tests (Depends-on): Add verify.
25268         * modules/wchar-tests (Depends-on): Likewise.
25269         * tests/test-time.c: Test for NULL compliance.
25270         * tests/test-wchar.c: Likewise.
25271         * modules/locale (Depends-on): Add stddef.
25272         * modules/stdio (Depends-on): Likewise.
25273         * modules/stdlib (Depends-on): Likewise.
25274         * modules/string (Depends-on): Likewise.
25275         * modules/time (Depends-on): Likewise.
25276         * modules/unistd (Depends-on): Likewise.
25277         * modules/wchar (Depends-on): Likewise.
25278         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25279         * lib/stdlib.in.h (includes): Likewise.
25280         * lib/string.in.h (includes): Likewise.
25281         * lib/time.in.h (includes): Likewise.
25282         * lib/unistd.in.h (includes): Likewise.
25283         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25284         replaced.
25285         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25286         * m4/stddef_h.m4: New file.
25287         * modules/stddef: Likewise.
25288         * lib/stddef.in.h: Likewise.
25289         * modules/stddef-tests: Likewise.
25290         * tests/test-stddef.c: Likewise.
25291         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25292         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25293         * doc/posix-headers/locale.texi (locale.h): Likewise.
25294         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25295         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25296         * doc/posix-headers/string.texi (string.h): Likewise.
25297         * doc/posix-headers/time.texi (time.h): Likewise.
25298         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25299         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25300
25301 2009-08-14  Eric Blake  <ebb9@byu.net>
25302
25303         doc: improve git diff of texinfo files
25304         * .gitattributes: Add rule for *.texi files, with hint on how to
25305         use it.
25306         Copied from m4, and based on a report by Bruno Haible.
25307
25308 2009-08-14  Bruno Haible  <bruno@clisp.org>
25309
25310         Disable multithread support by default on Cygwin 1.5.x for real.
25311         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25312
25313 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25314
25315         update-copyright: much ado about intervals
25316         * build-aux/update-copyright: Implement and document
25317         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25318         of copyright year intervals.
25319         Also, document UPDATE_COPYRIGHT_YEAR.
25320         * tests/test-update-copyright.sh: Test it.
25321
25322         update-copyright: convert 2-digit to 4-digit years
25323         * build-aux/update-copyright: Implement and document.
25324         * tests/test-update-copyright.sh: Update.
25325
25326 2009-08-14  Jim Meyering  <meyering@redhat.com>
25327
25328         test-exclude: avoid coreutils "make check" failure
25329         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25330         just as in test-argmatch.c.
25331
25332 2009-08-13  Eric Blake  <ebb9@byu.net>
25333
25334         test-dup2: fix bad assumption
25335         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25336         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25337
25338         test-version-etc: fix CRLF portability issue
25339         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25340         recognize \r.
25341         * tests/test-argp-version-etc-1.sh: Likewise.
25342
25343         getopt: update client modules
25344         * modules/argp (Depends-on): Use getopt-gnu.
25345         * modules/git-merge-changelog (Depends-on): Likewise.
25346         * modules/long-options (Depends-on): Likewise.
25347         * modules/xstrtol (Depends-on): Likewise.
25348
25349 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25350
25351         * tests/test-version-etc.sh: Don't fail on different
25352         project/version.  Don't fail on CRLF differences.  Rewrite to use
25353         multiple -e instead of multiple sed forks, suggested by Eric Blake
25354         <ebb9@byu.net>.
25355         * tests/test-argp-version-etc-1.sh: Likewise.
25356
25357 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25358
25359         * tests/test-version-etc.sh: Don't fail on different
25360         project/version.
25361
25362 2009-08-12  Bruno Haible  <bruno@clisp.org>
25363
25364         Tests for modules 'getopt-posix', 'getopt-gnu'.
25365         * modules/getopt-posix-tests: New file.
25366         * tests/test-getopt.c: New file.
25367         * tests/test-getopt.h: New file.
25368         * tests/test-getopt_long.h: New file.
25369
25370         New modules 'getopt-posix', 'getopt-gnu'.
25371         * modules/getopt-gnu: New file, renamed from modules/getopt.
25372         * modules/getopt-posix: New file.
25373         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25374         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25375         (gl_GETOPT): Remove macro.
25376         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25377         Disable the test against BSD systems that declare optreset. Test
25378         against mingw bug. Test against lack of support of optional arguments
25379         on many platforms.
25380         * doc/glibc-headers/getopt.texi: Update module name and list of
25381         relevant platforms.
25382         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25383         'getopt-gnu' and more portability problems.
25384         * NEWS: Mention the changes.
25385
25386 2009-08-12  Bruno Haible  <bruno@clisp.org>
25387
25388         Ensure that optarg etc. get declared by <unistd.h>.
25389         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25390         AC_USE_SYSTEM_EXTENSIONS.
25391         * modules/getopt (Depends-on): Add 'extensions'.
25392
25393 2009-08-12  Bruno Haible  <bruno@clisp.org>
25394
25395         Avoid test link errors.
25396         * modules/pipe-filter-ii-tests (Makefile.am): Define
25397         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25398         * modules/pipe-filter-gi-tests (Makefile.am): Define
25399         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25401
25402 2009-08-12  Bruno Haible  <bruno@clisp.org>
25403
25404         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25405         gl_GETOPT_SUBSTITUTE before.
25406         (gl_GETOPT): Use it.
25407         * m4/argp.m4 (gl_ARGP): Update.
25408         Reported by Sergey Poznyakoff.
25409
25410         * m4/getopt.m4: Reorder macros.
25411         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25412         (gl_GETOPT_SUBSTITUTE): Remove macro.
25413
25414 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25415
25416         Minor improvement in gitlog-to-changelog
25417
25418         * build-aux/gitlog-to-changelog: New option `--format' makes
25419         output format string configurable.
25420
25421 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25422
25423         Optimize exclude: use hash tables for non-wildcard patterns.
25424
25425         * lib/exclude.c: Include hash.h and mbuiter.h
25426         (struct exclude_pattern, exclude_segment): New data types.
25427         (struct exclude): Rewrite.
25428         (fnmatch_pattern_has_wildcards): New function.
25429         (new_exclude_segment, free_exclude_segment): New functions.
25430         (excluded_file_pattern_p, excluded_file_name_p): New functions.
25431         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
25432         * lib/exclude.h (is_fnmatch_pattern): New prototype.
25433         * modules/exclude: Depend on hash and mbuiter.
25434
25435         * modules/exclude-tests: New file.
25436         * tests/test-exclude.c: New file.
25437         * tests/test-exclude1.sh: New file.
25438         * tests/test-exclude2.sh: New file.
25439         * tests/test-exclude3.sh: New file.
25440         * tests/test-exclude4.sh: New file.
25441         * tests/test-exclude5.sh: New file.
25442         * tests/test-exclude6.sh: New file.
25443         * tests/test-exclude7.sh: New file.
25444
25445 2009-08-12  Bruno Haible  <bruno@clisp.org>
25446
25447         Ensure that getopt() gets declared by <unistd.h>.
25448         * lib/unistd.in.h: Conditionally include getopt.h.
25449         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
25450         Set GNULIB_UNISTD_H_GETOPT.
25451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25452         GNULIB_UNISTD_H_GETOPT.
25453         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
25454
25455 2009-08-12  Bruno Haible  <bruno@clisp.org>
25456
25457         Clarify logic.
25458         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
25459         gl_replace_getopt instead of GETOPT_H.
25460
25461 2009-08-12  Bruno Haible  <bruno@clisp.org>
25462
25463         * m4/getopt.m4: Add comments.
25464
25465 2009-08-12  Bruno Haible  <bruno@clisp.org>
25466
25467         Disable multithread support by default on Cygwin 1.5.x.
25468         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
25469         set gl_use_threads=no if not specified otherwise.
25470
25471 2009-08-11  Bruno Haible  <bruno@clisp.org>
25472
25473         Avoid compilation error on NetBSD 5.0.
25474         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
25475         * tests/test-stdio.c: Likewise.
25476         * tests/test-stdlib.c: Likewise.
25477         * tests/test-string.c: Likewise.
25478         * tests/test-unistd.c: Likewise.
25479         Reported by Greg Troxel <gdt@ir.bbn.com>
25480         at <https://savannah.gnu.org/support/?106973>.
25481
25482 2009-08-11  Bruno Haible  <bruno@clisp.org>
25483
25484         * modules/dup2-tests (Depends-on): Remove close.
25485
25486         Undo 2009-07-19 commit.
25487         * modules/acl-tests (Depends-on): Remove close.
25488         * modules/binary-io-tests (Depends-on): Likewise.
25489         * modules/closein-tests (Depends-on): Likewise.
25490         * modules/flock-tests (Depends-on): Likewise.
25491         * modules/fsync-tests (Depends-on): Likewise.
25492         * modules/lseek-tests (Depends-on): Likewise.
25493         * modules/pipe-tests (Depends-on): Likewise.
25494         * modules/posix_spawn-tests (Depends-on): Likewise.
25495         * modules/posix_spawnp-tests (Depends-on): Likewise.
25496         * modules/stat-time-tests (Depends-on): Likewise.
25497         * modules/yesno-tests (Depends-on): Likewise.
25498
25499 2009-08-10  Bruno Haible  <bruno@clisp.org>
25500
25501         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
25502
25503 2009-08-10  Bruno Haible  <bruno@clisp.org>
25504
25505         Fix a gcc warning.
25506         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
25507
25508 2009-08-10  Bruno Haible  <bruno@clisp.org>
25509
25510         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
25511         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
25512         not only the first time.
25513         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
25514         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
25515         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
25516         is 1, not only the the first time.
25517
25518 2009-08-10  Bruno Haible  <bruno@clisp.org>
25519
25520         Make it possible to use module 'gethostname' without module 'close'.
25521         * lib/unistd.in.h (close): Evoke a link error only if
25522         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25524         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25525         * modules/unistd (Makefile.am): Substitute
25526         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25527         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
25528         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25529         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25530         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25531         * modules/sys_ioctl (Makefile.am): Substitute
25532         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25533         * modules/socket (configure.ac): On native Windows, set
25534         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
25535         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25536         Reported by Sam Steingold <sds@gnu.org>.
25537
25538 2009-08-10  Bruno Haible  <bruno@clisp.org>
25539
25540         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
25541         * modules/ioctl (configure.ac): Likewise.
25542
25543 2009-08-10  Bruno Haible  <bruno@clisp.org>
25544
25545         Avoid collision between gnulib wrapper and libintl wrapper.
25546         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
25547         already defined in intl/printf.c.
25548         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
25549         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
25550
25551 2009-08-09  Bruno Haible  <bruno@clisp.org>
25552
25553         Make <sys/select.h> really self-contained, also on Solaris 10.
25554         * lib/sys_select.in.h: Include <string.h>.
25555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
25556         Solaris 10 problem.
25557         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
25558         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
25559         Reported by Jim Meyering.
25560
25561 2009-08-09  Bruno Haible  <bruno@clisp.org>
25562
25563         Avoid warnings from 'aclocal' that are due to a use of macro name
25564         AM_XGETTEXT_OPTION that is not defined in automake.
25565         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
25566         automake.
25567         * modules/error (configure.ac): Likewise.
25568         * modules/propername (configure.ac): Likewise.
25569         * modules/vasprintf (configure.ac): Likewise.
25570         * modules/verror (configure.ac): Likewise.
25571         * modules/xprintf (configure.ac): Likewise.
25572         * modules/xvasprintf (configure.ac): Likewise.
25573
25574 2009-08-08  Bruno Haible  <bruno@clisp.org>
25575
25576         Avoid compilation error in C++ mode.
25577         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
25578         Reported by Sam Steingold <sds@gnu.org>.
25579
25580 2009-08-08  Bruno Haible  <bruno@clisp.org>
25581
25582         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
25583         for the various Unix platforms.
25584         * doc/posix-headers/limits.texi: Update platforms list regarding
25585         HOST_NAME_MAX.
25586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25587
25588 2009-08-07  Jim Meyering  <meyering@redhat.com>
25589
25590         selinux-at: fix typo in a comment
25591         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
25592         Spotted by Paolo Bonzini.
25593
25594         selinux-at: remove redundant m4 code, add documentation
25595         * modules/selinux-at (configure.ac): Remove redundant code.
25596         LIB_SELINUX is already set via the dependent module, selinux-h.
25597         (Include): Add quotes around selinux-at.h.
25598         * lib/selinux-at.h: Add documentation.
25599         Reported by Bruno Haible in
25600         http://marc.info/?l=gnulib-bug&m=124958988300749
25601
25602 2009-08-07  Bruno Haible  <bruno@clisp.org>
25603
25604         Avoid link error on MacOS X 10.3 and 10.4.
25605         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
25606         on non-ELF systems.
25607         * lib/argp-pv.c (argp_program_version): Likewise.
25608         Reported by Simon Josefsson.
25609
25610 2009-08-07  Simon Josefsson  <simon@josefsson.org>
25611
25612         * tests/test-version-etc.sh: Use $EXEEXT.
25613
25614 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
25615
25616         update-copyright: update documentation to point to maint.mk
25617         * build-aux/update-copyright: Here.
25618
25619 2009-08-06  Jim Meyering  <meyering@redhat.com>
25620
25621         maint.mk: support update-copyright-local
25622         * top/maint.mk (update-copyright-local): Define place-holder.
25623         (update-copyright): Depend on $(update-copyright-local).
25624
25625 2009-08-06  Jim Meyering  <meyering@redhat.com>
25626
25627         selinux-at: new module
25628         Initially written for coreutils, this module will soon be
25629         used by findutils, too.
25630         * MODULES.html.sh [Misc]: Add selinux-at.
25631         * lib/selinux-at.h: New file, from coreutils.
25632         * lib/selinux-at.c: Likewise.
25633         * modules/selinux-at: Likewise.
25634         (License): Change from LGPL to GPL, since it depends
25635         on the GPL'd openat module.
25636
25637         doc: update README
25638         * README: Remove references to cogito.
25639         Remove cvs-repo-updating instructions from 2007.
25640         Don't imply that CVS is better if you have limited disk space.
25641
25642 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25643
25644         update-copyright: support C-style comments
25645         * build-aux/update-copyright: Implement and document.
25646         * tests/test-update-copyright.sh: Test.
25647
25648 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25649
25650         update-copyright: support omitted "(C)"
25651         * build-aux/update-copyright: Implement and document.  Also,
25652         allow variable whitespace before "(C)".
25653         * tests/test-update-copyright.sh: Test.
25654
25655 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25656
25657         update-copyright: don't trip on non-FSF copyright statements
25658         * build-aux/update-copyright: Fix so that the first correctly
25659         formatted FSF copyright statement is recognized no matter what
25660         appears before it.  Update documentation.
25661         * tests/test-update-copyright.sh: Test that.
25662
25663 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25664
25665         update-copyright: clean up code a little
25666         * build-aux/update-copyright: Append "_re" to the name of any
25667         variable holding a regular expression.
25668         Replace "old" and "new" with "stmt" in variable names.
25669         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
25670         handled correctly.
25671         Format code more consistently.
25672
25673 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25674
25675         update-copyright-tests: improve portability
25676         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
25677         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
25678
25679 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25680
25681         update-copyright: support @copyright{} and &copy;
25682         * build-aux/update-copyright: Implement and document.
25683         * tests/test-update-copyright.sh: Test.
25684
25685 2009-08-04  Jim Meyering  <meyering@redhat.com>
25686
25687         update-copyright-tests: correctly test EOL=\r\n handling
25688         * tests/test-update-copyright.sh: Put \r at the end of some lines
25689         for the dos-eol tests.  Based on a patch by Joel E. Denny.
25690
25691         maint.mk: make update-copyright exclusion list more configurable
25692         * top/maint.mk (update-copyright): Default to excluding COPYING,
25693         but allow an override, in case someone does want to update that file.
25694
25695         maint.mk: don't update copyright date in COPYING
25696         * top/maint.mk (update-copyright): Exclude COPYING.
25697
25698         maint.mk: add a copyright-updating rule
25699         * top/maint.mk (update-copyright): New rule.
25700         Derived from coreutils/Makefile.am.
25701
25702         update-copyright: rename some variables
25703         * build-aux/update-copyright: Rename a few variables for clarity.
25704         Tweak syntax.  List Joel E. Denny as coauthor.
25705
25706 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25707
25708         update-copyright: fix bug for 2-digit last year and add tests
25709         * build-aux/update-copyright: Fix bug.
25710         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
25711         specified.
25712         * modules/update-copyright-tests: New
25713         * tests/test-update-copyright.sh: New.
25714
25715 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25716
25717         update-copyright: handle leading tabs in line prefix
25718         * build-aux/update-copyright: Count leading tabs as 8 spaces
25719         when computing margin.  This helps with the formatting of
25720         ChangeLogs, for example.
25721         Fix documentation a little.
25722
25723 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25724
25725         update-copyright: support EOL=\r\n
25726         * build-aux/update-copyright: Implement that.
25727
25728 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25729
25730         update-copyright: automatically format copyright statements
25731         * build-aux/update-copyright: Implement that.
25732         Also, be a little more predictable and safer by always failing
25733         when the full copyright format is not perfectly recognized as an
25734         unbroken whole.  Discussed at
25735         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
25736         Rewrite documentation.
25737
25738 2009-08-03  Bruno Haible  <bruno@clisp.org>
25739
25740         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
25741
25742 2009-08-02  Bruno Haible  <bruno@clisp.org>
25743
25744         Tests for module 'uname'.
25745         * modules/uname-tests: New file.
25746         * tests/test-uname.c: New file.
25747
25748         New module 'uname'.
25749         * lib/uname.c: New file.
25750         * m4/uname.m4: New file.
25751         * modules/uname: New file.
25752         * doc/posix-functions/uname.texi: Mention the new module.
25753
25754 2009-08-02  Bruno Haible  <bruno@clisp.org>
25755
25756         Tests for module 'sys_utsname'.
25757         * modules/sys_utsname-tests: New file.
25758         * tests/test-sys_utsname.c: New file.
25759
25760         New module 'sys_utsname'.
25761         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
25762         * m4/sys_utsname_h.m4: New file.
25763         * modules/sys_utsname: New file.
25764         * doc/posix-headers/sys_utsname.texi: Mention the new module.
25765
25766 2009-08-02  Bruno Haible  <bruno@clisp.org>
25767
25768         Implicitly initialize the sockets library.
25769         * lib/gethostname.c: Include sockets.h.
25770         (rpl_gethostname): Invoke gl_sockets_startup.
25771         * lib/socket.c: Include sockets.h.
25772         (rpl_socket): Invoke gl_sockets_startup.
25773         * modules/gethostname (Depends-on): Add sockets.
25774         * modules/socket (Depends-on): Likewise.
25775         * tests/test-poll.c: Don't include sockets.h.
25776         (main): Don't invoke gl_sockets_startup.
25777         * tests/test-select.c: Don't include sockets.h.
25778         (main): Don't invoke gl_sockets_startup.
25779
25780 2009-08-02  Bruno Haible  <bruno@clisp.org>
25781
25782         Allow multiple calls to gl_sockets_startup.
25783         * lib/sockets.c (initialized_sockets_version): New variable.
25784         (gl_sockets_startup): Do nothing if already called for this or a higher
25785         version.
25786         (gl_sockets_cleanup): Reset initialized_sockets_version.
25787
25788 2009-08-03  Simon Josefsson  <simon@josefsson.org>
25789
25790         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
25791         different project/version.
25792
25793 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
25794             Bruno Haible  <bruno@clisp.org>
25795
25796         Tests for module 'pipe-filter-gi'.
25797         * modules/pipe-filter-gi-tests: New file.
25798         * tests/test-pipe-filter-gi1.sh: New file.
25799         * tests/test-pipe-filter-gi1.c: New file.
25800         * tests/test-pipe-filter-gi2.sh: New file.
25801         * tests/test-pipe-filter-gi2-main.c: New file.
25802         * tests/test-pipe-filter-gi2-child.c: New file.
25803
25804         New module 'pipe-filter-gi'.
25805         * lib/pipe-filter-gi.c: New file.
25806         * modules/pipe-filter-gi: New file.
25807
25808 2009-08-02  Bruno Haible  <bruno@clisp.org>
25809             Paolo Bonzini  <bonzini@gnu.org>
25810
25811         Tests for module 'pipe-filter-ii'.
25812         * modules/pipe-filter-ii-tests: New file.
25813         * tests/test-pipe-filter-ii1.sh: New file.
25814         * tests/test-pipe-filter-ii1.c: New file.
25815         * tests/test-pipe-filter-ii2.sh: New file.
25816         * tests/test-pipe-filter-ii2-main.c: New file.
25817         * tests/test-pipe-filter-ii2-child.c: New file.
25818
25819         New module 'pipe-filter-ii'.
25820         * lib/pipe-filter.h: New file.
25821         * lib/pipe-filter-ii.c: New file.
25822         * lib/pipe-filter-aux.h: New file.
25823         * modules/pipe-filter-ii: New file.
25824
25825 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25826
25827         * lib/gc-libgcrypt.c: Change copyright to FSF.
25828         * lib/gc-gnulib.c: Likewise.
25829
25830 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
25831
25832         * lib/gethostname.c: Include limits.h.
25833
25834 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25835             Bruno Haible  <bruno@clisp.org>
25836
25837         Ensure HOST_NAME_MAX as part of the gethostname module.
25838         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
25839         define also HOST_NAME_MAX.
25840         * tests/test-gethostname.c: Include <limits.h>.
25841         (main): Check also HOST_NAME_MAX.
25842         * doc/posix-headers/limits.texi: Document the mingw problem.
25843
25844 2009-08-02  Bruno Haible  <bruno@clisp.org>
25845
25846         * lib/gethostname.c (gethostname): Fix handling of large len argument.
25847         Add comments.
25848
25849 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25850
25851         * lib/gethostname.c: Add Windows wrapper.
25852         * m4/gethostname.m4: Look for gethostname in -lws2_32.
25853         * modules/gethostname: Depend on sys_socket & errno, for also
25854         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
25855         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
25856
25857 2009-07-31  Jim Meyering  <meyering@redhat.com>
25858
25859         getloadavg: fix symbol name in comment
25860         * lib/getloadavg.c: Correct a typo I introduced when adding
25861         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
25862         Matt Kraai spotted the problem.
25863
25864 2009-07-29  Matt Kraai  <mkraai@beckman.com>
25865
25866         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
25867         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
25868         code also if ! defined N_NAME_POINTER.
25869         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
25870         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
25871         but the n_name member is a 12-byte array.
25872
25873 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
25874
25875         update-copyright: generalize comment handling
25876         * build-aux/update-copyright: Handle copyright statements
25877         within more comment styles.
25878         Document usage.
25879         Report any file with an external copyright holder or parse failure.
25880
25881 2009-07-29  Jim Meyering  <meyering@redhat.com>
25882
25883         mktime: correct setting of REPLACE_MKTIME
25884         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
25885
25886         update-copyright: new module
25887         * modules/update-copyright: New file.
25888         * build-aux/update-copyright: New file.
25889         * MODULES.html.sh (maint+release support): Add update-copyright.
25890
25891 2009-07-27  Bruno Haible  <bruno@clisp.org>
25892
25893         Fix compilation error when <ctime> is used and mktime is replaced.
25894         * lib/time.in.h (mktime): New declaration.
25895         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
25896         REPLACE_MKTIME instead of defining mktime in config.h.
25897         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
25898         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
25899         Reported by Ross McFarland <rwmcfa1@neces.com>.
25900
25901 2009-07-27  Bruno Haible  <bruno@clisp.org>
25902
25903         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
25904         Reported by Matt Kraai <mkraai@beckman.com>.
25905
25906 2009-07-25  Jim Meyering  <meyering@redhat.com>
25907
25908         maint.mk: avoid warnings about missing files
25909         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
25910         diagnostic when .prev-version does not exist.
25911         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
25912         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
25913         nonexistent cfg.mk.
25914         Suggestions from Simon Josefsson.
25915
25916 2009-07-25  Bruno Haible  <bruno@clisp.org>
25917
25918         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
25919         defined as macros. Needed on QNX 6.4.1.
25920         Reported by Matt Kraai <mkraai@beckman.com>.
25921
25922 2009-07-23  Jim Meyering  <meyering@redhat.com>
25923
25924         maint.mk: invoke "make dist" with a working value of XZ_OPT
25925         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
25926
25927 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
25928
25929         Make fseeko.c compile on QNX.
25930         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
25931
25932 2009-07-22  Peter Simons  <simons@cryp.to>
25933
25934         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
25935         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
25936         * lib/md4.h: Likewise.
25937         * lib/md5.h: Likewise.
25938         * lib/sha1.h: Likewise.
25939         * lib/sha256.h: Likewise.
25940         * lib/sha512.h: Likewise.
25941
25942         tests-sha1: don't assign literal string to 'char *' variable
25943         * tests/test-sha1.c (main): Declare locals with "const" to match
25944         attributes of the right hand side.
25945
25946 2009-07-21  Eric Blake  <ebb9@byu.net>
25947
25948         dup2: fix more mingw problems
25949         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
25950         fd to itself.
25951         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25952         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
25953         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
25954         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
25955         care of mingw bugs.
25956
25957 2009-07-21  Jim Meyering  <meyering@redhat.com>
25958
25959         vc-list-files: avoid failure when /bin/sh is dash
25960         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
25961         On some Debian based systems, /bin/sh is a symlink to dash, and running
25962         this command would omit the "/" following each 'tests' prefix:
25963           dash -x build-aux/vc-list-files -C . tests
25964         That is because bash and dash work differently:
25965           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
25966           bash ok
25967           dash odd
25968
25969 2009-07-21  Eric Blake  <ebb9@byu.net>
25970
25971         dup2-tests: test previous patch
25972         * modules/dup2-tests: New file.
25973         * tests/test-dup2.c: Likewise.
25974         * tests/test-open.c (main): Avoid unspecified behavior.
25975         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
25976         test.
25977
25978         dup2: work around mingw and cygwin 1.5 bug
25979         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
25980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25981         * modules/unistd (Makefile.am): Substitute it.
25982         * lib/unistd.in.h (dup2): Declare the replacement.
25983         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
25984         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
25985         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
25986         * modules/execute (Depends-on): Add dup2.
25987         * modules/fseterr (Depends-on): Likewise.
25988         * modules/pipe (Depends-on): Likewise.
25989         * modules/posix_spawn-internal (Depends-on): Likewise.
25990
25991 2009-07-21  Bruno Haible  <bruno@clisp.org>
25992
25993         * modules/.gitattributes: New file.
25994
25995 2009-07-20  Bruno Haible  <bruno@clisp.org>
25996
25997         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
25998         (main): Use it.
25999
26000 2009-07-20  Eric Blake  <ebb9@byu.net>
26001
26002         test-pipe: make a bit more robust.
26003         * tests/test-pipe.c (myerr): Allow error messages regardless of
26004         what we do to stderr.
26005         (test_pipe): Rearrange to avoid deadlock.
26006         (child_main): Try a larger read, to ensure we avoided deadlock.
26007         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26008         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26009         if misused.
26010
26011 2009-07-19  Jim Meyering  <meyering@redhat.com>
26012
26013         fts: avoid false-positive cycle-detection
26014         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26015         for each new command line argument.
26016
26017 2009-07-19  Bruno Haible  <bruno@clisp.org>
26018
26019         Fix build error on mingw with the modules sys_select and unistd.
26020         * modules/acl-tests (Depends-on): Add close.
26021         * modules/binary-io-tests (Depends-on): Likewise.
26022         * modules/closein-tests (Depends-on): Likewise.
26023         * modules/flock-tests (Depends-on): Likewise.
26024         * modules/fsync-tests (Depends-on): Likewise.
26025         * modules/lseek-tests (Depends-on): Likewise.
26026         * modules/pipe-tests (Depends-on): Likewise.
26027         * modules/posix_spawn-tests (Depends-on): Likewise.
26028         * modules/posix_spawnp-tests (Depends-on): Likewise.
26029         * modules/stat-time-tests (Depends-on): Likewise.
26030         * modules/yesno-tests (Depends-on): Likewise.
26031
26032 2009-07-19  Bruno Haible  <bruno@clisp.org>
26033
26034         Unify conditionals.
26035         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26036         macros, not at the compiler macros.
26037         * lib/pipe.c: Likewise.
26038         * lib/execute.c: Likewise.
26039         * lib/spawni.c: Likewise.
26040
26041 2009-07-19  Bruno Haible  <bruno@clisp.org>
26042
26043         Fix handling of closed stdin/stdout/stderr on mingw.
26044         * lib/w32spawn.h: Include unistd.h.
26045         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26046         file descriptor with O_NOINHERIT flag.
26047         (fd_safer_noinherit): New function, based on fd-safer.c.
26048         (dup_safer_noinherit): New function, based on dup-safer.c.
26049         (undup_safer_noinherit): New function.
26050         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26051         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26052         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26053         instead of fd_safer.
26054         * tests/test-pipe.c: Include <windows.h>.
26055         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26056
26057         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26058         from main.
26059         (test_pipe): Pass an extra argument for disambiguation.
26060         (main): Invoke parent_main or child_main.
26061
26062         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26063         consistently.
26064
26065 2009-07-18  Eric Blake  <ebb9@byu.net>
26066
26067         test-pipe: fix mingw build
26068         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26069
26070 2009-07-18  Bruno Haible  <bruno@clisp.org>
26071
26072         * modules/pipe-tests (Makefile.am): Fix typo.
26073
26074 2009-07-18  Eric Blake  <ebb9@byu.net>
26075
26076         error: fix mingw build
26077         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26078         Reported by Bruno Haible.
26079
26080         error: avoid undefined use of stdout
26081         * lib/error.c (error, error_at_line): Check that fd 1 is open
26082         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26083         is handling faults and the close_stdout module wants to report the
26084         detection of closed stdout as an error.
26085
26086 2009-07-17  Eric Blake  <ebb9@byu.net>
26087
26088         pipe: be robust in face of closed fds
26089         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26090         should cause child to misbehave.
26091         * modules/pipe-tests: New module.
26092         * tests/test-pipe.c: New file.
26093         * tests/test-pipe.sh: New file.
26094         Reported by Akim Demaille.
26095
26096 2009-07-14  Bruno Haible  <bruno@clisp.org>
26097
26098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26099         Reported by anonymous kc.
26100
26101 2009-07-07  Jim Meyering  <meyering@redhat.com>
26102
26103         maint.mk: don't look for translatable strings in *.m4 or *.mk
26104         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26105         when searching for translatable strings.
26106
26107 2009-07-05  Jim Meyering  <meyering@redhat.com>
26108
26109         remove superfluous parentheses in STREQ definition
26110         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26111         * lib/getugroups.c (STREQ): Likewise.
26112         * lib/fnmatch.c (STREQ): Likewise.
26113         Spotted by Bruno Haible.
26114
26115 2009-07-04  Jim Meyering  <meyering@redhat.com>
26116
26117         argv-iter: new module
26118         * MODULES.html.sh: Add argv-iter.
26119         * lib/argv-iter.c, lib/argv-iter.h: New files.
26120         * modules/argv-iter: New file.
26121         * modules/argv-iter-tests: New file.
26122         * tests/test-argv-iter.c: Test it.
26123
26124 2009-07-04  Bruno Haible  <bruno@clisp.org>
26125
26126         Fix assertion.
26127         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26128         contains more exact copies of a given entry than file2, leave the extra
26129         copies unpaired rather than aborting.
26130         Reported by Eric Blake.
26131
26132 2009-07-02  Bruno Haible  <bruno@clisp.org>
26133
26134         Speedup git-merge-changelog for git cherry-pick.
26135         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26136         (entries_mapping_get): New function, extracted from compute_mapping.
26137         (entries_mapping_reverse_get): New function.
26138         (compute_mapping): Add a 'full' argument. Return the result in a
26139         'struct entries_mapping'.
26140         (main): Update. Access the mappings through entries_mapping_get.
26141         Reported by Eric Blake.
26142
26143 2009-07-02  Bruno Haible  <bruno@clisp.org>
26144
26145         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26146         best_i.
26147
26148 2009-07-02  Bruno Haible  <bruno@clisp.org>
26149
26150         Speed up approximate search for matching ChangeLog entries.
26151         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26152         argument. Call fstrcmp_bounded instead of fstrcmp.
26153         (compute_mapping, try_split_merged_entry, main): Update callers.
26154
26155 2009-07-02  Bruno Haible  <bruno@clisp.org>
26156
26157         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26158
26159 2009-06-30  Bruno Haible  <bruno@clisp.org>
26160
26161         Reduce the number of uc_is_cased calls.
26162         * lib/unicase.h (casing_suffix_context_t): Add
26163         'first_char_except_ignorable' field.
26164         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26165         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26166         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26167         Update initializer.
26168         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26169         case-ignorable characters.
26170         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26171         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26172         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26173         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26174         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26175
26176 2009-06-30  Bruno Haible  <bruno@clisp.org>
26177
26178         Tests for module 'unicase/ignorable'.
26179         * modules/unicase/ignorable-tests: New file.
26180         * tests/unicase/test-ignorable.c: New file, generated by
26181         gen-uni-tables.
26182
26183         Tests for module 'unicase/cased'.
26184         * modules/unicase/cased-tests: New file.
26185         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26186         * tests/unicase/test-predicate-part1.h: New file, derived from
26187         tests/unictype/test-predicate-part1.h.
26188         * tests/unicase/test-predicate-part2.h: New file, same as
26189         tests/unictype/test-predicate-part2.h.
26190
26191         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26192         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26193         (output_casing_properties): New function.
26194         (main): Call it.
26195         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26196         * lib/unicase/cased.c: Include unictype/bitmap.h.
26197         (uc_is_cased): Define through a bitmap lookup.
26198         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26199         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26200         (uc_is_case_ignorable): Define through a bitmap lookup.
26201         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26202         lib/unictype/bitmap.h.
26203         (Depends-on): Add inline. Clean up.
26204         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26205         lib/unictype/bitmap.h.
26206         (Depends-on): Add inline. Clean up.
26207         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26208         recognition.
26209         * tests/unicase/test-u16-tolower.c (main): Likewise.
26210         * tests/unicase/test-u32-tolower.c (main): Likewise.
26211
26212 2009-06-30  Bruno Haible  <bruno@clisp.org>
26213
26214         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26215         * lib/unicase/u16-casemap.c: Likewise.
26216         * lib/unicase/u32-casemap.c: Likewise.
26217
26218 2009-06-29  Bruno Haible  <bruno@clisp.org>
26219
26220         Define u32_casefold as a wrapper around u32_ct_casefold.
26221         * lib/unicase/u32-casefold.c: Update.
26222         * modules/unicase/u32-casefold (Depends-on): Add
26223         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26224         unicase/empty-suffix-context. Clean up.
26225
26226         Define u16_casefold as a wrapper around u16_ct_casefold.
26227         * lib/unicase/u16-casefold.c: Update.
26228         * modules/unicase/u16-casefold (Depends-on): Add
26229         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26230         unicase/empty-suffix-context. Clean up.
26231
26232         Define u8_casefold as a wrapper around u8_ct_casefold.
26233         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26234         * lib/unicase/u8-casefold.c: Update.
26235         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26236         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26237
26238         Define u32_totitle as a wrapper around u32_ct_totitle.
26239         * lib/unicase/u32-totitle.c: Update.
26240         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26241         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26242
26243         Define u16_totitle as a wrapper around u16_ct_totitle.
26244         * lib/unicase/u16-totitle.c: Update.
26245         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26246         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26247
26248         Define u8_totitle as a wrapper around u8_ct_totitle.
26249         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26250         functions.
26251         (FUNC): Delegate to U_CT_TOTITLE.
26252         * lib/unicase/u8-totitle.c: Update.
26253         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26254         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26255
26256         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26257         invocation.
26258         * modules/unicase/u32-tolower (Depends-on): Add
26259         unicase/empty-prefix-context, unicase/empty-suffix-context.
26260
26261         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26262         invocation.
26263         * modules/unicase/u16-tolower (Depends-on): Add
26264         unicase/empty-prefix-context, unicase/empty-suffix-context.
26265
26266         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26267         * modules/unicase/u8-tolower (Depends-on): Add
26268         unicase/empty-prefix-context, unicase/empty-suffix-context.
26269
26270         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26271         invocation.
26272         * modules/unicase/u32-toupper (Depends-on): Add
26273         unicase/empty-prefix-context, unicase/empty-suffix-context.
26274
26275         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26276         invocation.
26277         * modules/unicase/u16-toupper (Depends-on): Add
26278         unicase/empty-prefix-context, unicase/empty-suffix-context.
26279
26280         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26281         * modules/unicase/u8-toupper (Depends-on): Add
26282         unicase/empty-prefix-context, unicase/empty-suffix-context.
26283
26284         New module 'unicase/u32-ct-casefold'.
26285         * lib/unicase/u32-ct-casefold.c: New file.
26286         * modules/unicase/u32-ct-casefold: New file.
26287
26288         New module 'unicase/u16-ct-casefold'.
26289         * lib/unicase/u16-ct-casefold.c: New file.
26290         * modules/unicase/u16-ct-casefold: New file.
26291
26292         New module 'unicase/u8-ct-casefold'.
26293         * lib/unicase/u8-ct-casefold.c: New file.
26294         * lib/unicase/u-ct-casefold.h: New file, derived from
26295         lib/unicase/u-casefold.h.
26296         * modules/unicase/u8-ct-casefold: New file.
26297
26298         New module 'unicase/u32-ct-totitle'.
26299         * lib/unicase/u32-ct-totitle.c: New file.
26300         * modules/unicase/u32-ct-totitle: New file.
26301
26302         New module 'unicase/u16-ct-totitle'.
26303         * lib/unicase/u16-ct-totitle.c: New file.
26304         * modules/unicase/u16-ct-totitle: New file.
26305
26306         New module 'unicase/u8-ct-totitle'.
26307         * lib/unicase/u8-ct-totitle.c: New file.
26308         * lib/unicase/u-ct-totitle.h: New file, derived from
26309         lib/unicase/u-totitle.h.
26310         * modules/unicase/u8-ct-totitle: New file.
26311
26312         New module 'unicase/u32-ct-tolower'.
26313         * lib/unicase/u32-ct-tolower.c: New file.
26314         * modules/unicase/u32-ct-tolower: New file.
26315
26316         New module 'unicase/u16-ct-tolower'.
26317         * lib/unicase/u16-ct-tolower.c: New file.
26318         * modules/unicase/u16-ct-tolower: New file.
26319
26320         New module 'unicase/u8-ct-tolower'.
26321         * lib/unicase/u8-ct-tolower.c: New file.
26322         * modules/unicase/u8-ct-tolower: New file.
26323
26324         New module 'unicase/u32-ct-toupper'.
26325         * lib/unicase/u32-ct-toupper.c: New file.
26326         * modules/unicase/u32-ct-toupper: New file.
26327
26328         New module 'unicase/u16-ct-toupper'.
26329         * lib/unicase/u16-ct-toupper.c: New file.
26330         * modules/unicase/u16-ct-toupper: New file.
26331
26332         New module 'unicase/u8-ct-toupper'.
26333         * lib/unicase/u8-ct-toupper.c: New file.
26334         * modules/unicase/u8-ct-toupper: New file.
26335
26336         Add context arguments to u*_casemap functions.
26337         * lib/unicase/unicasemap.h: Include unicase.h.
26338         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26339         suffix_context arguments.
26340         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26341         functions.
26342         (FUNC): Add prefix_context and suffix_context arguments. Use
26343         uc_is_cased and uc_is_case_ignorable.
26344         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26345         * lib/unicase/u16-casemap.c: Likewise.
26346         * lib/unicase/u32-casemap.c: Likewise.
26347         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26348         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26349         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26350         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26351         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
26352         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26353
26354         New module 'unicase/u32-suffix-context'.
26355         * lib/unicase/u32-suffix-context.c: New file.
26356         * modules/unicase/u32-suffix-context: New file.
26357
26358         New module 'unicase/u16-suffix-context'.
26359         * lib/unicase/u16-suffix-context.c: New file.
26360         * modules/unicase/u16-suffix-context: New file.
26361
26362         New module 'unicase/u8-suffix-context'.
26363         * lib/unicase/u8-suffix-context.c: New file.
26364         * lib/unicase/u-suffix-context.h: New file.
26365         * modules/unicase/u8-suffix-context: New file.
26366
26367         New module 'unicase/empty-suffix-context'.
26368         * lib/unicase/empty-suffix-context.c: New file.
26369         * modules/unicase/empty-suffix-context: New file.
26370
26371         New module 'unicase/u32-prefix-context'.
26372         * lib/unicase/u32-prefix-context.c: New file.
26373         * modules/unicase/u32-prefix-context: New file.
26374
26375         New module 'unicase/u16-prefix-context'.
26376         * lib/unicase/u16-prefix-context.c: New file.
26377         * modules/unicase/u16-prefix-context: New file.
26378
26379         New module 'unicase/u8-prefix-context'.
26380         * lib/unicase/u8-prefix-context.c: New file.
26381         * lib/unicase/u-prefix-context.h: New file.
26382         * lib/unicase/context.h: New file.
26383         * modules/unicase/u8-prefix-context: New file.
26384
26385         New module 'unicase/empty-prefix-context'.
26386         * lib/unicase/empty-prefix-context.c: New file.
26387         * modules/unicase/empty-prefix-context: New file.
26388
26389         New module 'unicase/ignorable'.
26390         * lib/unicase/ignorable.c: New file.
26391         * modules/unicase/ignorable: New file.
26392
26393         New module 'unicase/cased'.
26394         * lib/unicase/caseprop.h: New file.
26395         * lib/unicase/cased.c: New file.
26396         * modules/unicase/cased: New file.
26397
26398         New functions for case mapping of substrings.
26399         * lib/unicase.h (casing_prefix_context_t): New type.
26400         (unicase_empty_prefix_context): New variable.
26401         (u8_casing_prefix_context, u16_casing_prefix_context,
26402         u32_casing_prefix_context, u8_casing_prefixes_context,
26403         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26404         declarations.
26405         (casing_suffix_context_t): New type.
26406         (unicase_empty_suffix_context): New variable.
26407         (u8_casing_suffix_context, u16_casing_suffix_context,
26408         u32_casing_suffix_context, u8_casing_suffixes_context,
26409         u16_casing_suffixes_context, u32_casing_suffixes_context,
26410         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26411         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26412         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26413         declarations.
26414
26415 2009-06-28  Jim Meyering  <meyering@redhat.com>
26416
26417         boostrap: indent only with spaces
26418         * build-aux/bootstrap: Indent only with spaces, never TABs.
26419
26420         bootstrap: split long lines
26421         * build-aux/bootstrap: Keep line length < 80.
26422
26423         bootstrap: sync from coreutils
26424         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
26425         just as autoreconf does.  Verify a list of prerequisite
26426         package-name,version-number pairs if defined in bootstrap.conf.
26427         Refer to README-prereq, if prerequisites are not satisfied.
26428
26429 2009-06-27  Eric Blake  <ebb9@byu.net>
26430
26431         tests: add test for bogus NULL definition
26432         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
26433         * tests/test-stdlib.c: Likewise.
26434         * tests/test-string.c: Likewise.
26435         * tests/test-locale.c: Likewise.
26436         * tests/test-unistd.c: Likewise.
26437         * modules/stdio-tests (Depends-on): Add verify.
26438         * modules/stdlib-tests (Depends-on): Likewise.
26439         * modules/string-tests (Depends-on): Likewise.
26440         * modules/locale-tests (Depends-on): Likewise.
26441         * modules/unistd-tests (Depends-on): Likewise.
26442
26443 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
26444
26445         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
26446         self-explaining comment.
26447         * m4/selinux-selinux-h: Update serial.
26448         (gl_LIBSELINUX): New macro, adding a warning for missing development
26449         packages to code extracted from...
26450         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
26451         Add warning for missing development packages here, too.
26452
26453 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
26454
26455         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
26456
26457 2009-06-25  Eric Blake  <ebb9@byu.net>
26458
26459         version-etc: fix regression
26460         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
26461         gcc.
26462         (version_etc): Use it, to catch bugs with trailing NULL.
26463         * lib/version-etc.c (version_etc_arn): Delete unused argument.
26464         (version_etc_va): Fix logic bug.
26465         * modules/version-etc-tests: Add test.
26466         * tests/test-version-etc.c: New file.
26467         * tests/test-version-etc.sh: Likewise.
26468
26469 2009-06-25  Sam Steingold  <sds@gnu.org>
26470
26471         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
26472         mbtowc declaration.
26473
26474 2009-06-25  Eric Blake  <ebb9@byu.net>
26475
26476         fpurge: migrate into <stdio.h>
26477         * lib/fpurge.h: Delete...
26478         * lib/stdio.in.h (fpurge): ...and declare here, instead.
26479         * lib/fpurge.c (fpurge): Change declaring header.
26480         * modules/fpurge (Files): Drop deleted file.
26481         (Depends-on): Add stdio.
26482         (configure.ac): Set witness.
26483         * modules/stdio (Makefile.am): Support fpurge macros.
26484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26485         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
26486         * lib/fflush.c: Update client.
26487         * tests/test-fpurge.c: Likewise.
26488         * NEWS: Mention the change.
26489
26490 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26491
26492         * lib/argp-version-etc.c (program_authors): Add const
26493         qualifier.
26494         * lib/version-etc.c: Fix typos in the comments.
26495         * modules/argp-version-etc: Depends on version-etc.
26496
26497 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26498
26499         argp-version-etc: new module.
26500
26501         * lib/argp-version-etc.c: New file.
26502         * lib/argp-version-etc.h: New file.
26503         * modules/argp-version-etc: New file.
26504         * modules/argp-version-etc-tests: New file.
26505         * tests/test-argp-version-etc.c: New test.
26506         * tests/test-argp-version-etc-1.sh: New test.
26507
26508 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26509
26510         Provide additional interfaces and documentation for version-etc
26511         module.
26512
26513         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
26514         interfaces.
26515         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
26516         prototypes.
26517
26518 2009-06-24  Bruno Haible  <bruno@clisp.org>
26519
26520         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
26521         HAVE_LIB${NAME} macro.
26522         Reported by Sam Steingold <sds@gnu.org>.
26523
26524 2009-06-23  Simon Josefsson  <simon@josefsson.org>
26525
26526         * modules/hash-tests (test_hash_LDADD): Link to libintl when
26527         needed.
26528
26529 2009-06-21  Bruno Haible  <bruno@clisp.org>
26530
26531         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
26532         work.
26533         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
26534         together with LIB${NAME}, LTLIB${NAME}.
26535         Reported by Sam Steingold <sds@gnu.org>.
26536
26537 2009-06-20  Jim Meyering  <meyering@redhat.com>
26538
26539         tests: make sc_require_test_exit_idiom more generic
26540         * top/maint.mk (Exit_witness_file): New overridable variable.
26541         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
26542         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
26543
26544 2009-06-19  Jim Meyering  <meyering@redhat.com>
26545
26546         hash: reverse order of src/dst parameters in an internal interface
26547         * lib/hash.c (transfer_entries): Reverse order of parameters to
26548         put DST before SRC.  Adjust callers.
26549
26550         tests: test-hash: avoid wholesale duplication
26551         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
26552         Instead, use a loop and add a single conditional.
26553
26554         tests: test-hash: allow seed selection via a command line argument
26555         * tests/test-hash.c (get_seed): New function.
26556         (main): Use it.
26557
26558 2009-06-19  Eric Blake  <ebb9@byu.net>
26559
26560         hash: avoid memory leak on allocation failure
26561         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
26562         failure.  Factor repeated algorithm...
26563         (transfer_entries): ...into new helper routine.
26564         (hash_delete): React to hash_rehash return value.
26565
26566         hash: reduce memory pressure in hash_rehash no-op case
26567         * lib/hash.c (next_prime): Avoid overflow.
26568         (hash_initialize): Factor bucket size computation...
26569         (compute_bucket_size): ...into new helper function.
26570         (hash_rehash): Use new function and open coding to reduce memory
26571         pressure, and avoid a memory leak in USE_OBSTACK code.
26572         Reported by Jim Meyering.
26573
26574 2009-06-18  Eric Blake  <ebb9@byu.net>
26575
26576         hash: make rotation more obvious
26577         * modules/hash (Depends-on): Add bitrotate and stdint.
26578         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
26579         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
26580         (SIZE_MAX): Rely on headers for definition.
26581         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
26582         (raw_hasher): Use rotr_sz.
26583         Suggested by Jim Meyering.
26584
26585         hash: fix memory leak in last patch
26586         * lib/hash.c (hash_rehash): Avoid memory leak.
26587
26588         hash: avoid no-op rehashing
26589         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
26590
26591         hash: provide default callback functions
26592         * lib/hash.c (raw_hasher, raw_comparator): New functions.
26593         (hash_initialize): Use them as defaults.
26594         * tests/test-hash.c (main): Test this.
26595
26596         hash: minor optimization
26597         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
26598         when possible.
26599         (hash_initialize): Document this promise.
26600         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
26601         * tests/test-hash.c (hash_compare_strings): Test this.
26602
26603 2009-06-18  Bruno Haible  <bruno@clisp.org>
26604
26605         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
26606         going to be replaced anyway.
26607
26608 2009-06-18  Bruno Haible  <bruno@clisp.org>
26609
26610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
26611         in one place.
26612         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
26613         be replaced anyway.
26614
26615 2009-06-18  Eric Blake  <ebb9@byu.net>
26616
26617         hash: check for resize before insertion
26618         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
26619         threshold before insertion, so that a pathological hash_rehash
26620         that fills every bucket can still trigger another rehash.
26621
26622 2009-06-18  Jim Meyering  <meyering@redhat.com>
26623
26624         hash-tests: add a loop around the small tests
26625         * tests/test-hash.c (main): Repeat small tests with selected
26626         small initial table sizes.
26627
26628 2009-06-17  Eric Blake  <ebb9@byu.net>
26629
26630         hash: minor cleanups
26631         * lib/hash.h (hash_entry): Make opaque, by moving...
26632         * lib/hash.c (hash_entry): ...here.
26633         (hash_insert): Clarify restrictions on what can be inserted.
26634         (hash_get_next): Clarify when it is safe to remove an element
26635         during traversal.
26636         (check_tuning): Skip verification when tuning is known safe.
26637         (hash_initialize): Clarify restrictions on tuning.
26638
26639 2009-06-17  Jim Meyering  <jim@meyering.net>
26640         and Eric Blake  <ebb9@byu.net>
26641
26642         hash-tests: new module
26643         * modules/hash-tests: New file.
26644         * tests/test-hash.c: New file.
26645
26646 2009-06-17  Eric Blake  <ebb9@byu.net>
26647
26648         strstr-simple: document new module
26649         * MODULES.html.sh: Document new module.
26650
26651         strstr, strcasestr: replace on platforms with broken memchr
26652         * modules/strstr: Split into...
26653         * modules/strstr-simple: ...new module that does not care about
26654         performance, but does care about glibc bug.
26655         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
26656         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
26657         if platform memchr is broken, per Debian bug 521737.
26658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
26659         memchr.
26660         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
26661         * doc/posix-functions/strstr.texi (strstr): Document the fix.
26662         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26663         * modules/mountlist (Depends-on): Add strstr-simple.
26664         * modules/gen-uni-tables (Depends-on): Likewise.
26665         * modules/argz (Depends-on): Add strstr.
26666
26667 2009-06-17  Bruno Haible  <bruno@clisp.org>
26668
26669         * modules/posix_spawn-internal (Depends-on): Add errno.
26670
26671 2009-06-17  Bruno Haible  <bruno@clisp.org>
26672
26673         Define missing ESTALE on Interix 3.5.
26674         * lib/errno.in.h (ESTALE): Assign a value if missing.
26675         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
26676         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
26677         missing.
26678         * doc/posix-headers/errno.texi: Mention the Interix bug.
26679         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
26680
26681 2009-06-15  Eric Blake  <ebb9@byu.net>
26682
26683         memchr, memchr2: add valgrind exception
26684         * lib/memchr.valgrind: New file.
26685         * lib/memchr2.valgrind: New file.
26686         * modules/memchr (Files): Distribute valgrind file.
26687         * modules/memchr2 (Files): Likewise.
26688
26689         docs: memchr is no longer obsolete
26690         * MODULES.html.sh: Move memchr from obsolete to string.h section.
26691         * lib/string.in.h (memchr): Simplify logic.
26692
26693 2009-06-14  Jim Meyering  <meyering@redhat.com>
26694
26695         link-follow: fix the "checking..." message to not mention trailing slash
26696         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
26697         never considered trailing slashes.
26698
26699 2009-06-14  Bruno Haible  <bruno@clisp.org>
26700
26701         * m4/memchr.m4: Mention also the bug on IA-64.
26702         * doc/posix-functions/memchr.texi: Likewise.
26703
26704 2009-06-12  Eric Blake  <ebb9@byu.net>
26705
26706         memchr: detect broken x86_64 and alpha implementations
26707         * modules/memchr-tests (Depends-on): Move mmap detection...
26708         * modules/memchr (Depends-on): ...here.
26709         (configure.ac): Set indicator.
26710         * lib/string.in.h (memchr): Declare replacement.
26711         * modules/string (Makefile.am): Trigger replacement.
26712         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26713         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
26714         bugs.
26715         * doc/posix-functions/memchr.texi (memchr): Document the bug.
26716         * modules/getpagesize (License): Relax license.
26717
26718 2009-06-11  Bruno Haible  <bruno@clisp.org>
26719
26720         * lib/idpriv.h: Add more references.
26721
26722 2009-06-08  Bruno Haible  <bruno@clisp.org>
26723
26724         Tests for module 'idpriv-droptemp'.
26725         * modules/idpriv-droptemp-tests: New file.
26726         * tests/test-idpriv-droptemp.sh: New file.
26727         * tests/test-idpriv-droptemp.su.sh: New file.
26728         * tests/test-idpriv-droptemp.c: New file.
26729
26730         New module 'idpriv-droptemp'.
26731         * lib/idpriv-droptemp.c: New file.
26732         * modules/idpriv-droptemp: New file.
26733
26734 2009-06-08  Bruno Haible  <bruno@clisp.org>
26735
26736         Tests for module 'idpriv-drop'.
26737         * modules/idpriv-drop-tests: New file.
26738         * tests/test-idpriv-drop.sh: New file.
26739         * tests/test-idpriv-drop.su.sh: New file.
26740         * tests/test-idpriv-drop.c: New file.
26741
26742         New module 'idpriv-drop'.
26743         * lib/idpriv.h: New file.
26744         * lib-idpriv-drop.c: New file.
26745         * m4/idpriv.m4: New file.
26746         * modules/idpriv-drop: New file.
26747
26748 2009-06-08  Bruno Haible  <bruno@clisp.org>
26749
26750         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
26751         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26752         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26753         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26754         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26755         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26756         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26757
26758 2009-06-08  Eric Blake  <ebb9@byu.net>
26759
26760         test-strstr: use memory fence, when possible
26761         * tests/test-strstr.c (main): Use memory fence, in order to be
26762         more likely to trigger Debian bug 521737.
26763         * modules/strstr-tests (Files): Pull in additional files.
26764
26765         memchr: no longer obsolete, for wider field testing
26766         * modules/memchr (Status, Notice): Delete, this module is no
26767         longer obsolete.
26768         * modules/vasnprintf (Depends-on): Add memchr.
26769
26770 2009-06-07  Jim Meyering  <meyering@redhat.com>
26771
26772         hash: declare some functions with the warn_unused_result attribute
26773         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
26774
26775 2009-06-07  Bruno Haible  <bruno@clisp.org>
26776
26777         * tests/test-alignof.c: Don't test int64_t if it does not exist.
26778         Reported by Eric Blake.
26779
26780 2009-06-06  Eric Blake  <ebb9@byu.net>
26781
26782         test-alignof: fix typo with long double
26783         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
26784         compiler error.
26785
26786 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
26787
26788         Escape non-texinfo { and }s.
26789         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
26790         markup error.
26791
26792 2009-06-04  Jim Meyering  <meyering@redhat.com>
26793
26794         gitlog-to-changelog: don't infloop on an empty commit log
26795         * build-aux/gitlog-to-changelog: Warn about an empty log message.
26796         Reported by Boris Petersen <transacid@centerim.org>.
26797
26798 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
26799
26800         version-etc: extend for packagers
26801         Add three new configure options, intended for packagers:
26802           --with-packager="packager name"
26803           --with-packager-version="packager-specific version"
26804           --with-packager-bug-reports="packager bug reporting"
26805         An example with coreutils:
26806           $ ./configure \
26807             --with-packager=Gentoo \
26808             --with-packager-bug-report=http://bugs.gentoo.org/ \
26809             --with-packager-version="patchset 1.6"
26810           $ ./src/ls --version | head -n2
26811           ls (GNU coreutils) 7.1-dirty
26812           Packaged by Gentoo (patchset 1.6)
26813         Note that the bug reporting info via --help doesn't show up because
26814         coreutils uses its own custom emit_bug_reporting_address() implementation
26815         in src/system.h.  If it didn't, it'd look like:
26816           $ ./src/ls --help | tail -n4
26817           Report bugs to <bug-coreutils@gnu.org>.
26818           Report Gentoo bugs to <http://bugs.gentoo.org/>.
26819           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
26820           General help using GNU software: <http://www.gnu.org/gethelp/>.
26821         * lib/version-etc.c: Print new information, if provided.
26822         * m4/version-etc.m4: New file.
26823         * modules/version-etc (Files): Add m4/version-etc.m4.
26824         (configure.ac): Add gl_VERSION_ETC.
26825
26826 2009-05-31  Bruno Haible  <bruno@clisp.org>
26827
26828         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
26829         and 'int64_t'.
26830         * modules/alignof-tests (Dependencies): Add stdint.
26831         Reported by Eric Blake.
26832
26833 2009-05-31  Bruno Haible  <bruno@clisp.org>
26834
26835         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
26836         restriction due to compiler bugs.
26837         Reported by Eric Blake.
26838
26839 2009-05-31  Simon Josefsson  <simon@josefsson.org>
26840             Bruno Haible  <bruno@clisp.org>
26841
26842         Fix test-alignof failure.
26843         * lib/alignof.h (alignof_slot): New macro.
26844         (alignof_type): New macro, with the same semantics as the previous
26845         'alignof'.
26846         (alignof): Alias to alignof_slot.
26847         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
26848         check that the results are usable as constant expressions.
26849
26850 2009-05-31  Bruno Haible  <bruno@clisp.org>
26851
26852         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
26853         * tests/test-memchr.c (main): Check that memchr does not read past the
26854         first occurrence of the byte.
26855         * tests/test-strstr.c (main): Update comment.
26856         Suggested by Eric Blake.
26857
26858 2009-05-30  Bruno Haible  <bruno@clisp.org>
26859
26860         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
26861         detail how to use dumpbin.
26862         Reported by David Byron <dbyron@dbyron.com>.
26863
26864 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26865
26866         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
26867
26868 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26869
26870         * m4/manywarnings.m4: Add GCC 4.4 warnings.
26871
26872 2009-05-28  Bruno Haible  <bruno@clisp.org>
26873
26874         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
26875         build-aux/ files.
26876
26877 2009-05-28  Simon Josefsson  <simon@josefsson.org>
26878
26879         * gnulib-tool (func_import): Transform license on build-aux/ files too.
26880
26881 2009-05-27  Simon Josefsson  <simon@josefsson.org>
26882
26883         * gnulib-tool (sed_transform_main_lib_file)
26884         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
26885         regexps.
26886
26887 2009-05-26  Simon Josefsson  <simon@josefsson.org>
26888
26889         * tests/test-strstr.c: Add another self-test.
26890         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
26891         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
26892
26893 2009-05-23  Bruno Haible  <bruno@clisp.org>
26894
26895         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
26896         change.
26897
26898 2009-05-21  Bruno Haible  <bruno@clisp.org>
26899
26900         Simplify use of mode_t varargs.
26901         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
26902         uses 'mode_t' or 'int'.
26903         * lib/openat.c (openat): Likewise.
26904         * lib/open-safer.c (open_safer): Likewise.
26905         * m4/mode_t.m4: New file.
26906         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
26907         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
26908         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
26909         * modules/open (Files): Add m4/mode_t.m4.
26910         * modules/openat (Files): Likewise.
26911         * modules/fcntl-safer (Files): Likewise.
26912         Suggested by Eric Blake.
26913
26914 2009-05-21  Pádraig Brady  <P@draigbrady.com>
26915
26916         * doc/glibc-functions/fallocate.texi: New file.
26917         * doc/gnulib.texi: Include it.
26918
26919 2009-05-21  Eric Blake  <ebb9@byu.net>
26920             Bruno Haible  <bruno@clisp.org>
26921
26922         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
26923         invocations.
26924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26925
26926 2009-05-21  Eric Blake  <ebb9@byu.net>
26927             Bruno Haible  <bruno@clisp.org>
26928
26929         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
26930         include_next. Fix of 2008-11-20 commit.
26931         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
26932         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
26933         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
26934         NEXT_MATH_H.
26935         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
26936         instead of NEXT_MATH_H.
26937
26938 2009-05-21  Bruno Haible  <bruno@clisp.org>
26939
26940         Avoid redefinition warnings for SIZE_MAX.
26941         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
26942         Reported by Simon Josefsson.
26943
26944 2009-05-21  Bruno Haible  <bruno@clisp.org>
26945
26946         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
26947         AC_CACHE_VAL.
26948
26949 2009-05-20  Bruno Haible  <bruno@clisp.org>
26950
26951         Make zeroptr.h work on mingw.
26952         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
26953         mprotect.
26954         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
26955         * modules/memchr2-tests (configure.ac): Likewise.
26956         * modules/memcmp-tests (configure.ac): Likewise.
26957         * modules/memmem-tests (configure.ac): Likewise.
26958         * modules/memrchr-tests (configure.ac): Likewise.
26959         Reported by Simon Josefsson.
26960
26961 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26962
26963         * tests/test-glob.c: Include string.h for strcmp prototype.
26964
26965 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26966
26967         * modules/getdelim (Depends-on): Add explicit stdint, although it
26968         was implicitly already pulled in via realloc-posix.
26969         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
26970
26971 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26972
26973         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
26974         G. Christensen" <tgc@jupiterrise.com>.
26975         * m4/sys_socket_h.m4: Check for sa_family_t.
26976         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
26977         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
26978         * tests/test-sys_socket.c: Check that sa_family_t works.
26979
26980 2009-05-18  Eric Blake  <ebb9@byu.net>
26981
26982         maint.mk: allow gnulib_dir in VPATH build
26983         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
26984
26985 2009-05-15  Jim Meyering  <meyering@redhat.com>
26986
26987         maint.mk: Give gnulib_dir a default definition.
26988         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
26989         Thus, most packages no longer need to specify this variable in cfg.mk
26990
26991 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
26992
26993         rename.m4: fix typos that would make non-mingw cross-configure fail
26994         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
26995
26996 2009-05-13  Eric Blake  <ebb9@byu.net>
26997
26998         mmap-anon: avoid out-of-order autoconf expansion
26999         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27000         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27001         * modules/memchr-tests (Depends-on): Add extensions.
27002         * modules/memchr2-tests (Depends-on): Add extensions.
27003         * modules/memcmp-tests (Depends-on): Add extensions.
27004         * modules/memmem-tests (Depends-on): Add extensions.
27005         * modules/memrchr-tests (Depends-on): Add extensions.
27006
27007 2009-05-13  Bruno Haible  <bruno@clisp.org>
27008
27009         Make some tests ISO C 99 compliant.
27010         * tests/zerosize-ptr.h: New file.
27011         * tests/test-memchr.c: Include zerosize-ptr.h.
27012         (main): Use a zero-size object pointer instead of NULL.
27013         * tests/test-memchr2.c: Include zerosize-ptr.h.
27014         (main): Use a zero-size object pointer instead of NULL.
27015         * tests/test-memcmp.c: Include zerosize-ptr.h.
27016         (main): Use a zero-size object pointer instead of NULL.
27017         * tests/test-memmem.c: Include zerosize-ptr.h.
27018         (main): Use a zero-size object pointer instead of NULL.
27019         * tests/test-memrchr.c: Include zerosize-ptr.h.
27020         (main): Use a zero-size object pointer instead of NULL.
27021         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27022         m4/mmap-anon.m4.
27023         (Depends-on): Add getpagesize.
27024         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27025         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27026         m4/mmap-anon.m4.
27027         (Depends-on): Add getpagesize.
27028         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27029         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27030         m4/mmap-anon.m4.
27031         (Depends-on): Add getpagesize.
27032         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27033         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27034         m4/mmap-anon.m4.
27035         (Depends-on): Add getpagesize.
27036         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27037         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27038         m4/mmap-anon.m4.
27039         (Depends-on): Add getpagesize.
27040         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27041
27042 2009-05-12  Bruno Haible  <bruno@clisp.org>
27043
27044         Tests for module 'alignof'.
27045         * modules/alignof-tests: New file.
27046         * tests/test-alignof.c: New file.
27047
27048 2009-05-12  Bruno Haible  <bruno@clisp.org>
27049
27050         Fix alignof macro.
27051         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27052         vendor compilers that are always correct.
27053
27054 2009-05-12  Bruno Haible  <bruno@clisp.org>
27055
27056         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27057         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27058         not whether its fully works.
27059
27060 2009-05-12  Bruno Haible  <bruno@clisp.org>
27061
27062         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27063
27064 2009-05-12  Jim Meyering  <meyering@redhat.com>
27065
27066         * top/maint.mk: Adjust backslash alignment.
27067
27068 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27069
27070         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27071
27072 2009-05-11  Eric Blake  <ebb9@byu.net>
27073
27074         argp: avoid undefined behavior
27075         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27076         macros.
27077
27078 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27079
27080         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27081         user.name to prevent git commit from complaining.
27082
27083 2009-05-10  Bruno Haible  <bruno@clisp.org>
27084
27085         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27086         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27087         it rewrites every file name only once.
27088         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27089
27090 2009-05-08  Bruno Haible  <bruno@clisp.org>
27091
27092         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27093         instead of 'max'.
27094
27095 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27096
27097         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27098         sockaddr_storage test.
27099
27100 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27101
27102         * modules/sys_socket (Makefile.am): Substitute
27103         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27104         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27105         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27106         * tests/test-sys_socket.c: Check sockaddr_storage.
27107
27108 2009-05-08  Bruno Haible  <bruno@clisp.org>
27109
27110         New module 'alignof'.
27111         * lib/alignof.h: New file.
27112         * modules/alignof: New file.
27113
27114 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27115             Bruno Haible  <bruno@clisp.org>
27116
27117         Fix test-file-has-acl on FreeBSD.
27118         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27119         mask is implicitly added.
27120         * tests/test-file-has-acl.c: Include <signal.h>.
27121         (main): Terminate the test after 5 seconds.
27122         * modules/acl-tests (configure.ac): Check for alarm function.
27123
27124 2009-05-04  Bruno Haible  <bruno@clisp.org>
27125
27126         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27127         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27128         * modules/errno (configure.ac): Drop AC_REQUIRE.
27129         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27130         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27131
27132 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27133
27134         * modules/glob-tests: New module.
27135         * tests/test-glob.c: Add.
27136
27137 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27138
27139         * modules/fnmatch-tests: New module.
27140         * tests/test-fnmatch.c: Add.
27141
27142 2009-05-04  Eric Blake  <ebb9@byu.net>
27143
27144         maint: make the new no-submodule-changes rule VPATH-safe
27145         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27146
27147 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27148             Bruno Haible  <bruno@clisp.org>
27149
27150         acl: Fix infinite loop on FreeBSD.
27151         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27152         of return value from acl_get_entry.
27153         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27154         Likewise.
27155
27156 2009-05-03  Bruno Haible  <bruno@clisp.org>
27157
27158         * lib/acl-internal.h (acl_entries): Clarify return value.
27159         * lib/acl_entries.c (acl_entries): Likewise.
27160
27161 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27162
27163         Bug fix in acl module.
27164         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27165
27166 2009-05-03  Bruno Haible  <bruno@clisp.org>
27167
27168         Create gperf-generated file in the source dir, not in the build dir.
27169         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27170         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27171         * modules/unicase/locale-language (unicase/locale-languages.h):
27172         Likewise.
27173         * modules/unicase/special-casing (unicase/special-casing-table.h):
27174         Likewise.
27175         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27176         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27177         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27178         Reported by Ralf Wildenhues.
27179
27180 2009-05-03  Bruno Haible  <bruno@clisp.org>
27181
27182         * modules/fnmatch (Description, configure.ac): Taken from
27183         fnmatch-posix.
27184         * modules/fnmatch-posix: Turn into a symbolic reference to the
27185         'fnmatch' module, and deprecate.
27186         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27187
27188 2009-05-03  Bruno Haible  <bruno@clisp.org>
27189
27190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27191         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27192         Reported by Ralf Wildenhues.
27193
27194 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27195
27196         * m4/fnmatch.m4: Fix fnmatch re-define.
27197
27198 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27199
27200         priv-set: new module and tests; adapt write-any-file
27201         * lib/priv-set.c: New file.
27202         * lib/priv-set.h: New file.
27203         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27204         * lib/write-any-file.c: Simplify by using priv-set module.
27205         * m4/priv-set.m4: New file.
27206         * modules/priv-set: New file.
27207         * modules/unlinkdir: Add dependency on priv-set module.
27208         * modules/write-any-file: Likewise.
27209
27210         Tests for module 'priv-set'.
27211         * modules/priv-set-tests: New file.
27212         * tests/test-priv-set.c: New file.
27213
27214 2009-05-03  Jim Meyering  <meyering@redhat.com>
27215             Bruno Haible  <bruno@clisp.org>
27216
27217         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27218         use the converted UTF-8 variant of the name instead.
27219
27220 2009-05-03  Jim Meyering  <meyering@redhat.com>
27221
27222         tests: tighten some getdate tests
27223         * tests/test-getdate.c (main): Tighten tests: require equality,
27224         not just greater than.  Set TZ envvar to UTC0.
27225
27226 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27227
27228         getdate: correctly interpret "next monday" when run on a Monday
27229         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27230         that e.g., "next tues" (when run on a tuesday) results in a date
27231         that is one week in the future, and not today's date.
27232         I.e., add a week when the wday is the same as the current one.
27233         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27234         and earlier by Martin Bernreuther and Jan Minář.
27235         * tests/test-getdate.c (main): Check that "next DAY" is always in
27236         the future and that "last DAY" is always in the past.
27237
27238 2009-05-02  Jim Meyering  <meyering@redhat.com>
27239
27240         build: ensure that a release build fails when a submodule is unclean
27241         * top/maint.mk (no-submodule-changes): New rule.
27242         (alpha beta major): Depend on it.
27243
27244 2009-05-02  Bruno Haible  <bruno@clisp.org>
27245
27246         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27247         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27248         shell variable gl_fnmatch_required to detect which variant is
27249         requested.
27250         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27251         gl_FUNC_FNMATCH_POSIX.
27252         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27253         exclude fnmatch-posix.
27254
27255 2009-05-02  Bruno Haible  <bruno@clisp.org>
27256
27257         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27258         * modules/mbsrtowcs (License): Change to LGPLv2+.
27259         * modules/strnlen1 (License): Likewise.
27260         Reported by Simon Josefsson.
27261
27262 2009-05-02  Bruno Haible  <bruno@clisp.org>
27263
27264         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27265         "cross".
27266         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27267         gnulib-tool was called with option --source-base=lib.
27268
27269 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27270
27271         Use automake *-local hooks without commands, for extensibility.
27272         * modules/localcharset (Makefile.am): Rename install-exec-local
27273         rule to install-exec-localcharset, and make it a prerequisite of
27274         install-exec-local.  Likewise, rename the uninstall-local rule to
27275         uninstall-localcharset, and make it a prerequisite of the former.
27276
27277 2009-05-01  Bruno Haible  <bruno@clisp.org>
27278
27279         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27280         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27281         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27283         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27284         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27285         m4/locale-zh.m4, m4/codeset.m4.
27286
27287         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27288         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27289         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27290         m4/locale-zh.m4.
27291
27292         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27293         REPLACE_WCRTOMB if mbstate_t must be replaced.
27294         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27295         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27296
27297 2009-05-01  Bruno Haible  <bruno@clisp.org>
27298
27299         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27300         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27301         dngettext, dcngettext, textdomain, bindtextdomain,
27302         bind_textdomain_codeset): Undefine before redefining.
27303
27304 2009-04-30  Bruno Haible  <bruno@clisp.org>
27305
27306         Fix bug introduced on 2009-04-25.
27307         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27308         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27309         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27310         is defined.
27311         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27312         is defined.
27313         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27314         is defined.
27315         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27316
27317 2009-04-28  Bruno Haible  <bruno@clisp.org>
27318
27319         Comment tweaks.
27320         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27321         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27322         * lib/unicase.h (u*_casexfrm): Likewise.
27323         Reported by Paolo Bonzini.
27324
27325 2009-04-28  Bruno Haible  <bruno@clisp.org>
27326
27327         Fix a compilation error.
27328         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27329         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27330         Reported by Jim Meyering.
27331
27332 2009-04-27  Bruno Haible  <bruno@clisp.org>
27333
27334         New module 'libunistring'.
27335         * modules/libunistring: New file.
27336         * m4/libunistring.m4: New file.
27337         * MODULES.html.sh (Unicode string functions): Add it.
27338
27339 2009-04-27  Eric Blake  <ebb9@byu.net>
27340
27341         maint.mk: allow package-specific header to provide <config.h>
27342         * top/maint.mk (sc_require_config_h): New variable.
27343         (sc_require_config_h, sc_require_config_h_first): Use it.
27344
27345 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27346
27347         * top/maint.mk (sc_avoid_if_before_free): Except
27348         useless-if-before-free script.
27349
27350 2009-04-27  Eric Blake  <ebb9@byu.net>
27351
27352         maintainer-makefile: depend on all required helper scripts
27353         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27354         useless-if-before-free.
27355         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27356         version, rather than assuming gnulib checkout is available.
27357         Reported by Simen Josefsson.
27358
27359 2009-04-26  Bruno Haible  <bruno@clisp.org>
27360
27361         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27362         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27363         "../" or "..".
27364
27365 2009-04-26  Bruno Haible  <bruno@clisp.org>
27366
27367         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27368         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27369         AC_LIB_HAVE_LINKFLAGS.
27370
27371 2009-04-26  Bruno Haible  <bruno@clisp.org>
27372
27373         Simplify calling convention of u*_conv_from_encoding.
27374         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27375         u32_conv_from_encoding): Expect a resultbuf argument and return the
27376         result directly as a pointer.
27377         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27378         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27379         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27380         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27381         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27382         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27383         Update.
27384         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27385         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27386         * lib/vasnprintf.c (VASNPRINTF): Update.
27387         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27388         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27389         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27390         * NEWS: Mention the change.
27391
27392 2009-04-26  Bruno Haible  <bruno@clisp.org>
27393
27394         Simplify calling convention of u*_conv_to_encoding.
27395         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27396         u32_conv_to_encoding): Expect a resultbuf argument and return the
27397         result directly as a pointer.
27398         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27399         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27400         freeing scaled_offsets if mem_iconveha failed.
27401         * lib/unicase/u-casexfrm.h (FUNC): Update.
27402         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27403         * lib/vasnprintf.c (VASNPRINTF): Update.
27404         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27405         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27406         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27407         * NEWS: Mention the change.
27408
27409 2009-04-26  Bruno Haible  <bruno@clisp.org>
27410
27411         Avoid test failures on AIX and OSF/1.
27412         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27413         malloc(0).
27414         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27415         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27416         Likewise.
27417         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
27418         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
27419         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
27420         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
27421         * doc/posix-functions/malloc.texi: Document the portability problem
27422         related to malloc(0).
27423
27424 2009-04-26  Bruno Haible  <bruno@clisp.org>
27425
27426         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
27427         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
27428         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
27429
27430 2009-04-25  Bruno Haible  <bruno@clisp.org>
27431
27432         Avoid link error when creating a namespace clean library.
27433         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
27434         as macro with arguments if already defined as an alias.
27435         * lib/signbitf.c (gl_signbitf): Don't undefine.
27436         * lib/signbitd.c (gl_signbitd): Don't undefine.
27437         * lib/signbitl.c (gl_signbitl): Don't undefine.
27438
27439 2009-04-25  Jim Meyering  <meyering@redhat.com>
27440
27441         vc-list-files: fix another quoting bug
27442         * build-aux/vc-list-files: Avoid sed backslash expansion
27443         of pathological directory names.
27444
27445 2009-04-25  Eric Blake  <ebb9@byu.net>
27446
27447         vc-list-files: fix shell quoting error
27448         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
27449         timestamp.
27450
27451 2009-04-25  Jim Meyering  <meyering@redhat.com>
27452
27453         vc-list-files: restore lost functionality with subdir argument
27454         * build-aux/vc-list-files: When given a non-"." sub-directory
27455         argument, substitute the $dir/ prefix back onto each resulting name.
27456         Otherwise, coreutils' root_tests check would fail.
27457
27458 2009-04-24  Eric Blake  <ebb9@byu.net>
27459
27460         vc-list-files: ignore git symlinks
27461         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
27462         than ls-files, to ignore git symlinks.
27463
27464         maint.mk: import improvements from m4
27465         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
27466         (move_if_change): Delete unused macro.
27467         (news-date-check, vc-diff-check): Support VPATH builds.
27468         (announcement): Likewise.  Split --bootstrap-tools list...
27469         (boostrap-tools): ...into separate list, which can be overridden
27470         in cfg.mk.
27471         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
27472         requiring dependency on useless-if-before-free module.
27473         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
27474         Support VPATH builds.
27475
27476 2009-04-24  Jim Meyering  <meyering@redhat.com>
27477
27478         maint.mk: remove coreutils-specific rules and variables
27479         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
27480         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
27481         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
27482
27483         maint.mk: remove obsolete rule
27484         * top/maint.mk (rel-check): Remove rule.
27485         (WGET, WGETFLAGS): Remove now-unused variables.
27486
27487 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27488
27489         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
27490         consistency.
27491
27492         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
27493         '$(PATH_SEPARATOR)' instead of ':'.
27494
27495 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27496
27497         * lib/getopt1.c (main): Use 'const' for static array.
27498
27499 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27500
27501         * top/maint.mk: Sync with coreutils.
27502         * NEWS: Explain incompatibilities.
27503
27504 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27505             Bruno Haible  <bruno@clisp.org>
27506
27507         Fix cross-compilation results.
27508         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
27509         statement, as third argument of AC_TRY_RUN.
27510         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27511         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27512         Likewise.
27513         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27514         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27515         Likewise.
27516         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27517         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
27518         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
27519
27520 2009-04-20  Bruno Haible  <bruno@clisp.org>
27521
27522         Avoid test failure on mingw.
27523         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
27524
27525 2009-04-20  Bruno Haible  <bruno@clisp.org>
27526
27527         Avoid compilation error on mingw.
27528         * modules/localename-tests (Depends-on): Add locale.
27529
27530 2009-04-19  Bruno Haible  <bruno@clisp.org>
27531
27532         Support for building a shared library on Windows platforms.
27533         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
27534         (main): Test the presence of UNINORM_NFC here.
27535         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
27536         (main): Test the presence of UNINORM_NFD here.
27537         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
27538         (main): Test the presence of UNINORM_NFKC here.
27539         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
27540         (main): Test the presence of UNINORM_NFKD here.
27541
27542 2009-04-19  Bruno Haible  <bruno@clisp.org>
27543
27544         Avoid a compiler warning.
27545         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
27546         Change type of variable 'sequence'.
27547
27548 2009-04-19  Bruno Haible  <bruno@clisp.org>
27549
27550         * modules/configmake (Makefile.am): When the contents of configmake.h
27551         does not change, arrange to preserve its modification time.
27552
27553 2009-04-17  Simon Josefsson  <simon@josefsson.org>
27554
27555         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
27556         gettext domain.
27557
27558 2009-04-16  Jim Meyering  <meyering@redhat.com>
27559
27560         useless-if-before-free: improve conversion code
27561         * build-aux/useless-if-before-free: Adjust code-in-comment to match
27562         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
27563
27564 2009-04-14  Bruno Haible  <bruno@clisp.org>
27565
27566         * modules/fcntl (Depends-on): Add extensions.
27567         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
27568
27569 2009-04-12  Ben Pfaff  <blp@gnu.org>
27570
27571         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
27572         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
27573
27574 2009-03-20  Ben Pfaff  <blp@gnu.org>
27575
27576         Make rename replace existing destinations on Windows.
27577         * m4/rename.m4: Add test for Mingw.
27578         * lib/rename.c: Add rename replacement that uses MoveFileEx with
27579         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
27580         * doc/posix-functions/rename.texi: Document.
27581
27582 2009-04-10  Bruno Haible  <bruno@clisp.org>
27583
27584         New include file "iconveh.h".
27585         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
27586         * lib/striconveh.h: Include it.
27587         (enum iconv_ilseq_handler): Remove definition.
27588         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
27589         striconveh.h.
27590         * lib/striconveha.c: Include striconveh.h.
27591         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
27592         * modules/striconveh (Files): Add lib/iconveh.h.
27593         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
27594         lib/striconveh.h.
27595
27596 2009-04-10  Bruno Haible  <bruno@clisp.org>
27597
27598         * lib/uniconv.h: Update comment.
27599
27600 2009-04-10  Bruno Haible  <bruno@clisp.org>
27601
27602         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
27603         always.
27604         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27605         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27606         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27607         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
27608         "unistring-notinline.h", so that the function gets defined always.
27609         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27610         * lib/unistr/u8-uctomb.c: Likewise.
27611         * lib/unistr/u16-mbtouc.c: Likewise.
27612         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27613         * lib/unistr/u16-uctomb.c: Likewise.
27614         * lib/unistr/u32-mbtouc.c: Likewise.
27615         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27616         * lib/unistr/u32-uctomb.c: Likewise.
27617
27618 2009-04-10  Bruno Haible  <bruno@clisp.org>
27619
27620         Mark 'utime' obsolete.
27621         * modules/utime (Status, Notice): New sections.
27622         Suggested by Jim Meyering.
27623
27624         Fix cross-compile guess for utime test.
27625         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
27626         autoconf.
27627         * doc/posix-functions/utime.texi: Give more precisions.
27628         Reported by Jan <ipif@ymail.com>.
27629
27630 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
27631
27632         filevercmp: correct today's change
27633         * lib/filevercmp.c: Also handle coreutils' test inputs.
27634         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
27635
27636         Fix regression in 'filevercmp' module. Thanks Sven Joachim
27637         for reporting it.
27638         * lib/filevercmp.c: Special handle for "", "." and "..".
27639         * tests/test-filevercmp.c: Enlarge the set suite.
27640
27641 2009-04-07  Jim Meyering  <meyering@redhat.com>
27642
27643         useless-if-before-free: show how to remove braced useless free, too
27644         * build-aux/useless-if-before-free: still only in a comment, though.
27645
27646 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
27647
27648         maint.mk: import changes to syntax-check macros from coreutils
27649         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
27650         Use them in the relevant macros.
27651
27652 2009-04-06  Bruno Haible  <bruno@clisp.org>
27653
27654         Fix unportable use of bit-fields.
27655         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
27656         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
27657         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
27658
27659 2009-04-06  Bruno Haible  <bruno@clisp.org>
27660
27661         Avoid test failures on AIX and OSF/1.
27662         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
27663         that malloc(0) = NULL.
27664         * tests/unicase/test-u8-tolower.c (check): Likewise.
27665         * tests/unicase/test-u8-totitle.c (check): Likewise.
27666         * tests/unicase/test-u8-toupper.c (check): Likewise.
27667         * tests/unicase/test-u16-casefold.c (check): Likewise.
27668         * tests/unicase/test-u16-tolower.c (check): Likewise.
27669         * tests/unicase/test-u16-totitle.c (check): Likewise.
27670         * tests/unicase/test-u16-toupper.c (check): Likewise.
27671         * tests/unicase/test-u32-casefold.c (check): Likewise.
27672         * tests/unicase/test-u32-tolower.c (check): Likewise.
27673         * tests/unicase/test-u32-totitle.c (check): Likewise.
27674         * tests/unicase/test-u32-toupper.c (check): Likewise.
27675         * tests/uninorm/test-u8-nfc.c (check): Likewise.
27676         * tests/uninorm/test-u8-nfd.c (check): Likewise.
27677         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
27678         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
27679         * tests/uninorm/test-u16-nfc.c (check): Likewise.
27680         * tests/uninorm/test-u16-nfd.c (check): Likewise.
27681         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
27682         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
27683         * tests/uninorm/test-u32-nfc.c (check): Likewise.
27684         * tests/uninorm/test-u32-nfd.c (check): Likewise.
27685         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
27686         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
27687
27688 2009-04-05  Bruno Haible  <bruno@clisp.org>
27689
27690         Work around an autoconf limitation.
27691         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
27692         comment line if it would be longer than 3 KB.
27693
27694 2009-04-05  Bruno Haible  <bruno@clisp.org>
27695
27696         Avoid test failure with libiconv-1.13.
27697         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
27698         of the expected test results.
27699
27700 2009-04-05  Bruno Haible  <bruno@clisp.org>
27701
27702         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
27703         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
27704         that it should be installed.
27705
27706 2009-04-05  Bruno Haible  <bruno@clisp.org>
27707
27708         * gnulib-tool: New option --copy-file.
27709         (func_usage): Document it.
27710         (func_dest_tmpfilename): Moved out of func_import.
27711         (func_add_file, func_update_file): New functions, extracted from
27712         func_import.
27713         (func_import): Update.
27714
27715 2009-04-05  Karl Berry  <karl@gnu.org>
27716
27717         * README: prominently mention gnulib-tool.
27718         Rearrange sections so getting the code is near the top.
27719
27720 2009-04-05  Bruno Haible  <bruno@clisp.org>
27721
27722         * lib/unicase.h: Mention u*_cmp2.
27723         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27724         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
27725         * lib/unicase/ulc-casecmp.c: Likewise.
27726         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
27727         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
27728         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
27729         unistr/u8-cmp.
27730         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
27731         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27732         unistr/u16-cmp.
27733         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
27734         unistr/u32-cmp.
27735
27736         * lib/uninorm.h: Mention u*_cmp2.
27737         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27738         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
27739         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
27740         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
27741         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
27742         unistr/u8-cmp.
27743         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
27744         unistr/u16-cmp.
27745         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
27746         unistr/u32-cmp.
27747
27748         New module 'unistr/u32-cmp2'.
27749         * lib/unistr/u32-cmp2.c: New file.
27750         * modules/unistr/u32-cmp2: New file.
27751
27752         New module 'unistr/u16-cmp2'.
27753         * lib/unistr/u16-cmp2.c: New file.
27754         * modules/unistr/u16-cmp2: New file.
27755
27756         New module 'unistr/u8-cmp2'.
27757         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
27758         * lib/unistr/u8-cmp2.c: New file.
27759         * lib/unistr/u-cmp2.h: New file.
27760         * modules/unistr/u8-cmp2: New file.
27761
27762 2009-04-05  Bruno Haible  <bruno@clisp.org>
27763
27764         * lib/unictype.h (uc_property_is_valid): New macro.
27765         * tests/unictype/test-pr_byname.c (main): Use it.
27766
27767         * lib/unistr.h: Doc fixes.
27768         * lib/uniconv.h: Doc fixes.
27769         * lib/unictype.h: Doc fixes.
27770
27771 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27772
27773         Port coreutils 7.2 to Solaris 8.
27774
27775         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
27776         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
27777         for Solaris 8.  This is a bit of a hack, as it means it's the
27778         caller's responsibility to add -lnsl if needed, but most likely it
27779         won't be needed since only getaddrinfo uses this and getaddrinfo
27780         isn't needed on Solaris 8.
27781
27782         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
27783         problem to Solaris 8 encountered with coreutils 7.2, which
27784         resulted in a message "fnmatch.c:292: warning: passing argument 4
27785         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
27786         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
27787
27788 2009-04-03  Simon Josefsson  <simon@josefsson.org>
27789
27790         * m4/ld-version-script.m4: Add FIXME comment.
27791
27792 2009-04-02  Simon Josefsson  <simon@josefsson.org>
27793
27794         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
27795         SOVERSION variable.
27796
27797 2009-04-02  Bruno Haible  <bruno@clisp.org>
27798
27799         * Makefile (info, html, dvi, pdf): Combine the rules.
27800         Suggested by Jim Meyering.
27801
27802 2009-04-01  Bruno Haible  <bruno@clisp.org>
27803
27804         * Makefile (info, html, dvi, pdf): New targets.
27805         Reported by Reuben Thomas <rrt@sc3d.org>.
27806
27807 2009-04-01  Bruno Haible  <bruno@clisp.org>
27808
27809         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
27810         can be put into PATH.
27811         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
27812
27813 2009-04-01  Bruno Haible  <bruno@clisp.org>
27814
27815         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
27816
27817 2009-04-01  Bruno Haible  <bruno@clisp.org>
27818
27819         Rename module 'visibility'.
27820         * modules/lib-symbol-visibility: Renamed from modules/visibility.
27821         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
27822         * doc/gnulib.texi: Update.
27823         * MODULES.html.sh (Misc): Update.
27824         * NEWS: Mention the change.
27825
27826 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27827
27828         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
27829         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
27830         Eric Blake <ebb9@byu.net> for review.
27831         * MODULES.html.sh: Add lib-msvc-compat.
27832         * doc/gnulib.texi: Link to new section.
27833         * m4/ld-output-def.m4: New file.
27834         * doc/ld-output-def.texi: New file.
27835
27836 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27837
27838         Rename ld-version-script to lib-symbol-versions.  Suggested by
27839         Bruno Haible <bruno@clisp.org>.
27840         * modules/ld-version-script: Renamed to lib-symbol-versions.
27841         * doc/ld-version-script.texi: Fix module name.
27842         * MODULES.html.sh: Add lib-symbol-versions.
27843
27844 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27845
27846         * modules/u64-tests: New file.
27847         * tests/test-u64.c: New file.
27848
27849 2009-03-04  Simon Josefsson  <simon@josefsson.org>
27850
27851         * MODULES.html.sh: Mention u64.
27852         * modules/u64: New module.
27853         * modules/crypto/sha512: Depend on u64 module instead of providing
27854         u64.h.
27855
27856 2009-03-27  Eric Blake  <ebb9@byu.net>
27857
27858         test-strerror: make debugging EAI_SYSTEM easier
27859         * modules/getaddrinfo-tests (Depends-on): Add strerror.
27860         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
27861         failure was EAI_SYSTEM.
27862
27863 2009-03-25  Bruno Haible  <bruno@clisp.org>
27864
27865         Fix a problem with --enable-relocatable on Solaris 7.
27866         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
27867         since 2008-02-24.
27868
27869 2009-03-25  Eric Blake  <ebb9@byu.net>
27870
27871         test-sockets: avoid gcc warning
27872         * tests/test-sockets.c (main): Silence compiler warning.
27873
27874 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27875
27876         New modules nproc, pthread, contributed by Glen Lenker.
27877
27878         * MODULES.html.sh: Add pthread, nproc.
27879         * lib/nproc.c: New file.
27880         * lib/nproc.h: New file.
27881         * lib/pthread.in.h: New file.
27882         * m4/pthread.m4: New file.
27883         * modules/nproc: New file.
27884         * modules/pthread: New file.
27885
27886 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27887
27888         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
27889         New variable.
27890
27891 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
27892
27893         filevercmp: handle simple~ and numbered.~3~ backup suffixes
27894         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
27895         * tests/test-filevercmp.c: Add tests for backup suffixes.
27896
27897 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27898
27899         * modules/stdlib (Depends-on): Add stdint, needed when defining
27900         struct random_data on, for example, HP-UX 10.20.  Reported by
27901         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27902
27903 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27904
27905         * lib/readline.c (readline): Call fflush on stdout after printing
27906         prompt.
27907
27908 2009-03-20  Bruno Haible  <bruno@clisp.org>
27909
27910         Remove dependency from 'close' module to -lws2_32 on native Windows.
27911         * lib/close-hook.h: New file.
27912         * lib/close-hook.c: New file.
27913         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
27914         w32sock.h.
27915         (_gl_close_fd_maybe_socket): Remove function.
27916         (rpl_close): Invoke execute_all_close_hooks instead of
27917         _gl_close_fd_maybe_socket.
27918         * lib/sockets.c: Include close-hook.h, w32sock.h.
27919         (close_fd_maybe_socket): New function, essentially from lib/close.c.
27920         (close_sockets_hook): New variable.
27921         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
27922         (gl_sockets_cleanup): Unregister it.
27923         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
27924         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
27925         * modules/close-hook: New file.
27926         * modules/close (Files): Remove lib/w32sock.h.
27927         (Depends-on): Add close-hook.
27928         (Link): Remove section.
27929         * modules/sockets (Files): Add lib/w32sock.h.
27930         (Depends-on): Add close-hook.
27931         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
27932         invocation.
27933         * NEWS: Mention that LIB_CLOSE is gone.
27934
27935 2009-03-23  Eric Blake  <ebb9@byu.net>
27936
27937         signal-tests: test previous patch
27938         * tests/test-signal.c: New file.
27939         * modules/signal-tests: Likewise.
27940
27941         signal.h: always support 'volatile sig_atomic_t'
27942         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
27943         (gl_SIGNAL_H_DEFAULTS): Add a default.
27944         * modules/signal (Makefile.am): Substitute if needed.
27945         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
27946         users can blindly add volatile.
27947         * doc/posix-headers/signal.texi (signal.h): Document it.
27948         Reported by Matthew Woehlke.
27949
27950 2009-03-23  Jim Meyering  <meyering@redhat.com>
27951
27952         pathmax: PATH_MAX: use pathconf only when available
27953         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
27954         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
27955         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
27956         This avoids a link failure in a PSP cross-compilation environment
27957         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
27958
27959         * lib/vasnprintf.c (divide): Fix typo in comment.
27960
27961 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27962
27963         * gnulib-tool (func_filter_filelist): Fix comment.
27964
27965 2009-03-20  Bruno Haible  <bruno@clisp.org>
27966
27967         Make sockets.h self-contained.
27968         * lib/sockets.c: Include sockets.h first.
27969         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
27970
27971 2009-03-19  Eric Blake  <ebb9@byu.net>
27972
27973         doc: mention more functions added in cygwin 1.7.0
27974         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
27975         addition.
27976         * doc/posix-functions/log2f.texi: Likewise.
27977
27978 2009-03-19  Jim Meyering  <meyering@redhat.com>
27979
27980         fsusage: avoid syntax error due to statement-before-declaration
27981         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
27982         after all declarations.  Reported by Matthew Woehlke in
27983         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
27984
27985 2009-03-18  Eric Blake  <ebb9@byu.net>
27986
27987         build-aux/compile: sync from automake
27988         * build-aux/compile: New file, from automake.
27989         * config/srclist.txt: Mention build-aux/compile.
27990
27991 2009-03-17  Bruno Haible  <bruno@clisp.org>
27992
27993         * lib/git-merge-changelog.c: Fix typo in comment.
27994         Reported by Reuben Thomas <rrt@sc3d.org>.
27995
27996 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
27997
27998         * m4/regex.m4: update and improve help for
27999         --without-included-regex.
28000
28001 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28002
28003         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28004         failure on missing include files.
28005
28006 2009-03-17  Eric Blake  <ebb9@byu.net>
28007
28008         doc: mention more functions added in cygwin 1.7.0
28009         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28010         addition.
28011         * doc/posix-functions/fwscanf.texi: Likewise.
28012         * doc/posix-functions/swprintf.texi: Likewise.
28013         * doc/posix-functions/swscanf.texi: Likewise.
28014         * doc/posix-functions/vfwprintf.texi: Likewise.
28015         * doc/posix-functions/vfwscanf.texi: Likewise.
28016         * doc/posix-functions/vswprintf.texi: Likewise.
28017         * doc/posix-functions/vswscanf.texi: Likewise.
28018         * doc/posix-functions/vwprintf.texi: Likewise.
28019         * doc/posix-functions/vwscanf.texi: Likewise.
28020         * doc/posix-functions/wcscasecmp.texi: Likewise.
28021         * doc/posix-functions/wcsdup.texi: Likewise.
28022         * doc/posix-functions/wcsftime.texi: Likewise.
28023         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28024         * doc/posix-functions/wprintf.texi: Likewise.
28025         * doc/posix-functions/wscanf.texi: Likewise.
28026         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28027
28028 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28029
28030         maint.mk: really add $(AM_MAKEFLAGS)
28031         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28032         was inadvertently omitted in the last commit.
28033         Spotted by Bruno Haible.
28034
28035         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28036         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28037         $(AM_MAKEFLAGS)' rather than plain `make'.
28038
28039         gnulib-tool: execute $MAKE not make
28040         * gnulib-tool: Default $MAKE to 'make'.
28041         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28042         than make.  Initialize $MAKE in the do-autobuild script.
28043
28044         gnulib-tool: use $MAKE not make in generated files
28045         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28046         make, in generated files.  Initialize $MAKE in the do-autobuild
28047         script.
28048
28049         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28050
28051         GNUmakefile: disable parallelism only for multiple, recursive targets
28052         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28053         additions in the Makefile.
28054         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28055         by Automake.
28056         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28057         are listed on the command line and at least one of them is
28058         listed in $(ALL_RECURSIVE_TARGETS).
28059
28060 2009-03-14  Bruno Haible  <bruno@clisp.org>
28061
28062         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28063         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28064         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28065         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28066         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28067         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28068         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28069         unistr/u8-uctomb.
28070         * modules/unistr/u8-strchr (Depends-on): Likewise.
28071         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28072         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28073         unistr/u16-uctomb.
28074         * modules/unistr/u16-strchr (Depends-on): Likewise.
28075         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28076
28077 2009-03-12  Bruno Haible  <bruno@clisp.org>
28078
28079         Work around select() bug on Interix 3.5.
28080         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28081         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28082         * m4/select.m4: New file.
28083         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28084         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28085         * modules/select (Files): Add m4/select.m4.
28086         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28087         * modules/nanosleep (Depends-on): Add select.
28088         * modules/poll (Depends-on): Likewise.
28089         * doc/posix-functions/select.texi: Mention the Interix bug.
28090         Reported by Markus Duft <mduft@gentoo.org>.
28091
28092         * lib/select.c: Renamed from lib/winsock-select.c.
28093         * modules/select (Files): Add lib/select.c, remove
28094         lib/winsock-select.c.
28095         (configure.ac): Update.
28096
28097 2009-03-12  Jim Meyering  <meyering@redhat.com>
28098
28099         avoid gcc warnings about unused macro definitions
28100         * lib/readtokens.c (STREQ): Remove unused definition.
28101         * lib/xmalloc.c (SIZE_MAX): Likewise.
28102         * lib/openat-die.c (N_): Likewise.
28103         * lib/mountlist.c (SIZE_MAX): Remove definition.
28104         Instead, include <stdint.h>.
28105         * lib/readutmp.c: Likewise.
28106         * modules/readutmp (Depends-on): Add stdint.
28107         * modules/mountlist (Depends-on): Add stdint.
28108         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28109
28110 2009-03-10  Bruno Haible  <bruno@clisp.org>
28111
28112         Tests for module 'mbmemcasecoll'.
28113         * modules/mbmemcasecoll-tests: New file.
28114         * tests/test-mbmemcasecoll1.sh: New file.
28115         * tests/test-mbmemcasecoll2.sh: New file.
28116         * tests/test-mbmemcasecoll3.sh: New file.
28117         * tests/test-mbmemcasecoll.c: New file.
28118
28119         New module 'mbmemcasecoll'.
28120         * lib/mbmemcasecoll.h: New file.
28121         * lib/mbmemcasecoll.c: New file.
28122         * modules/mbmemcasecoll: New file.
28123
28124         * tests/test-mbmemcasecmp.h: New file, extracted from
28125         tests/test-mbmemcasecmp.c.
28126         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28127         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28128         (main): Update.
28129         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28130
28131 2009-03-09  Bruno Haible  <bruno@clisp.org>
28132
28133         Tests for module 'mbmemcasecmp'.
28134         * modules/mbmemcasecmp-tests: New file.
28135         * tests/test-mbmemcasecmp1.sh: New file.
28136         * tests/test-mbmemcasecmp2.sh: New file.
28137         * tests/test-mbmemcasecmp3.sh: New file.
28138         * tests/test-mbmemcasecmp.c: New file.
28139
28140         New module 'mbmemcasecmp'.
28141         * lib/mbmemcasecmp.h: New file.
28142         * lib/mbmemcasecmp.c: New file.
28143         * modules/mbmemcasecmp: New file.
28144
28145 2009-03-09  Bruno Haible  <bruno@clisp.org>
28146
28147         Tests for module 'unicase/ulc-casecoll'.
28148         * modules/unicase/ulc-casecoll-tests: New file.
28149         * tests/unicase/test-ulc-casecoll1.sh: New file.
28150         * tests/unicase/test-ulc-casecoll2.sh: New file.
28151         * tests/unicase/test-ulc-casecoll.c: New file.
28152
28153         New module 'unicase/ulc-casecoll'.
28154         * lib/unicase.h (ulc_casecoll): New declaration.
28155         * lib/unicase/ulc-casecoll.c: New file.
28156         * modules/unicase/ulc-casecoll: New file.
28157
28158         New module 'unicase/ulc-casexfrm'.
28159         * lib/unicase.h (ulc_casexfrm): New declaration.
28160         * lib/unicase/ulc-casexfrm.c: New file.
28161         * modules/unicase/ulc-casexfrm: New file.
28162
28163 2009-03-09  Bruno Haible  <bruno@clisp.org>
28164
28165         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28166         invocations.
28167
28168         * m4/mbscasecmp.m4: Remove file.
28169         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28170         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28171
28172         * m4/mbscasestr.m4: Remove file.
28173         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28174         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28175
28176         * m4/mbschr.m4: Remove file.
28177         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28178         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28179
28180         * m4/mbscspn.m4: Remove file.
28181         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28182         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28183
28184         * m4/mbslen.m4: Remove file.
28185         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28186         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28187
28188         * m4/mbsncasecmp.m4: Remove file.
28189         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28190         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28191
28192         * m4/mbsnlen.m4: Remove file.
28193         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28194         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28195
28196         * m4/mbspbrk.m4: Remove file.
28197         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28198         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28199
28200         * m4/mbspcasecmp.m4: Remove file.
28201         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28202         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28203
28204         * m4/mbsrchr.m4: Remove file.
28205         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28206         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28207
28208         * m4/mbssep.m4: Remove file.
28209         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28210         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28211
28212         * m4/mbsspn.m4: Remove file.
28213         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28214         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28215
28216         * m4/mbsstr.m4: Remove file.
28217         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28218         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28219
28220         * m4/mbstok_r.m4: Remove file.
28221         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28222         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28223
28224         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28225
28226         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28227         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28228
28229         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28230
28231 2009-03-08  Bruno Haible  <bruno@clisp.org>
28232
28233         Tests for module 'unicase/ulc-casecmp'.
28234         * modules/unicase/ulc-casecmp-tests: New file.
28235         * tests/unicase/test-ulc-casecmp1.sh: New file.
28236         * tests/unicase/test-ulc-casecmp2.sh: New file.
28237         * tests/unicase/test-ulc-casecmp.c: New file.
28238
28239         New module 'unicase/ulc-casecmp'.
28240         * lib/unicase.h (ulc_casecmp): New declaration.
28241         * lib/unicase/ulc-casecmp.c: New file.
28242         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28243         'const SRC_UNIT *'.
28244         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28245         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28246         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28247         * modules/unicase/ulc-casecmp: New file.
28248
28249         Tests for module 'unicase/u32-is-cased'.
28250         * modules/unicase/u32-is-cased-tests: New file.
28251         * tests/unicase/test-u32-is-cased.c: New file.
28252
28253         Tests for module 'unicase/u16-is-cased'.
28254         * modules/unicase/u16-is-cased-tests: New file.
28255         * tests/unicase/test-u16-is-cased.c: New file.
28256
28257         Tests for module 'unicase/u8-is-cased'.
28258         * modules/unicase/u8-is-cased-tests: New file.
28259         * tests/unicase/test-u8-is-cased.c: New file.
28260         * tests/unicase/test-is-cased.h: New file.
28261
28262         New module 'unicase/u32-is-cased'.
28263         * lib/unicase/u32-is-cased.c: New file.
28264         * modules/unicase/u32-is-cased: New file.
28265
28266         New module 'unicase/u16-is-cased'.
28267         * lib/unicase/u16-is-cased.c: New file.
28268         * modules/unicase/u16-is-cased: New file.
28269
28270         New module 'unicase/u8-is-cased'.
28271         * lib/unicase/u8-is-cased.c: New file.
28272         * lib/unicase/u-is-cased.h: New file.
28273         * modules/unicase/u8-is-cased: New file.
28274
28275         Tests for module 'unicase/u32-is-casefolded'.
28276         * modules/unicase/u32-is-casefolded-tests: New file.
28277         * tests/unicase/test-u32-is-casefolded.c: New file.
28278
28279         Tests for module 'unicase/u16-is-casefolded'.
28280         * modules/unicase/u16-is-casefolded-tests: New file.
28281         * tests/unicase/test-u16-is-casefolded.c: New file.
28282
28283         Tests for module 'unicase/u8-is-casefolded'.
28284         * modules/unicase/u8-is-casefolded-tests: New file.
28285         * tests/unicase/test-u8-is-casefolded.c: New file.
28286         * tests/unicase/test-is-casefolded.h: New file.
28287
28288         New module 'unicase/u32-is-casefolded'.
28289         * lib/unicase/u32-is-casefolded.c: New file.
28290         * modules/unicase/u32-is-casefolded: New file.
28291
28292         New module 'unicase/u16-is-casefolded'.
28293         * lib/unicase/u16-is-casefolded.c: New file.
28294         * modules/unicase/u16-is-casefolded: New file.
28295
28296         New module 'unicase/u8-is-casefolded'.
28297         * lib/unicase/u8-is-casefolded.c: New file.
28298         * modules/unicase/u8-is-casefolded: New file.
28299
28300         Tests for module 'unicase/u32-is-titlecase'.
28301         * modules/unicase/u32-is-titlecase-tests: New file.
28302         * tests/unicase/test-u32-is-titlecase.c: New file.
28303
28304         Tests for module 'unicase/u16-is-titlecase'.
28305         * modules/unicase/u16-is-titlecase-tests: New file.
28306         * tests/unicase/test-u16-is-titlecase.c: New file.
28307
28308         Tests for module 'unicase/u8-is-titlecase'.
28309         * modules/unicase/u8-is-titlecase-tests: New file.
28310         * tests/unicase/test-u8-is-titlecase.c: New file.
28311         * tests/unicase/test-is-titlecase.h: New file.
28312
28313         New module 'unicase/u32-is-titlecase'.
28314         * lib/unicase/u32-is-titlecase.c: New file.
28315         * modules/unicase/u32-is-titlecase: New file.
28316
28317         New module 'unicase/u16-is-titlecase'.
28318         * lib/unicase/u16-is-titlecase.c: New file.
28319         * modules/unicase/u16-is-titlecase: New file.
28320
28321         New module 'unicase/u8-is-titlecase'.
28322         * lib/unicase/u8-is-titlecase.c: New file.
28323         * modules/unicase/u8-is-titlecase: New file.
28324
28325         Tests for module 'unicase/u32-is-lowercase'.
28326         * modules/unicase/u32-is-lowercase-tests: New file.
28327         * tests/unicase/test-u32-is-lowercase.c: New file.
28328
28329         Tests for module 'unicase/u16-is-lowercase'.
28330         * modules/unicase/u16-is-lowercase-tests: New file.
28331         * tests/unicase/test-u16-is-lowercase.c: New file.
28332
28333         Tests for module 'unicase/u8-is-lowercase'.
28334         * modules/unicase/u8-is-lowercase-tests: New file.
28335         * tests/unicase/test-u8-is-lowercase.c: New file.
28336         * tests/unicase/test-is-lowercase.h: New file.
28337
28338         New module 'unicase/u32-is-lowercase'.
28339         * lib/unicase/u32-is-lowercase.c: New file.
28340         * modules/unicase/u32-is-lowercase: New file.
28341
28342         New module 'unicase/u16-is-lowercase'.
28343         * lib/unicase/u16-is-lowercase.c: New file.
28344         * modules/unicase/u16-is-lowercase: New file.
28345
28346         New module 'unicase/u8-is-lowercase'.
28347         * lib/unicase/u8-is-lowercase.c: New file.
28348         * modules/unicase/u8-is-lowercase: New file.
28349
28350         Tests for module 'unicase/u32-is-uppercase'.
28351         * modules/unicase/u32-is-uppercase-tests: New file.
28352         * tests/unicase/test-u32-is-uppercase.c: New file.
28353
28354         Tests for module 'unicase/u16-is-uppercase'.
28355         * modules/unicase/u16-is-uppercase-tests: New file.
28356         * tests/unicase/test-u16-is-uppercase.c: New file.
28357
28358         Tests for module 'unicase/u8-is-uppercase'.
28359         * modules/unicase/u8-is-uppercase-tests: New file.
28360         * tests/unicase/test-u8-is-uppercase.c: New file.
28361         * tests/unicase/test-is-uppercase.h: New file.
28362
28363         New module 'unicase/u32-is-uppercase'.
28364         * lib/unicase/u32-is-uppercase.c: New file.
28365         * modules/unicase/u32-is-uppercase: New file.
28366
28367         New module 'unicase/u16-is-uppercase'.
28368         * lib/unicase/u16-is-uppercase.c: New file.
28369         * modules/unicase/u16-is-uppercase: New file.
28370
28371         New module 'unicase/u8-is-uppercase'.
28372         * lib/unicase/u8-is-uppercase.c: New file.
28373         * modules/unicase/u8-is-uppercase: New file.
28374
28375         New module 'unicase/u32-is-invariant'.
28376         * lib/unicase/u32-is-invariant.c: New file.
28377         * modules/unicase/u32-is-invariant: New file.
28378
28379         New module 'unicase/u16-is-invariant'.
28380         * lib/unicase/u16-is-invariant.c: New file.
28381         * modules/unicase/u16-is-invariant: New file.
28382
28383         New module 'unicase/u8-is-invariant'.
28384         * lib/unicase/u8-is-invariant.c: New file.
28385         * lib/unicase/invariant.h: New file.
28386         * lib/unicase/u-is-invariant.h: New file.
28387         * modules/unicase/u8-is-invariant: New file.
28388
28389         Tests for module 'unicase/u32-casecoll'.
28390         * modules/unicase/u32-casecoll-tests: New file.
28391         * tests/unicase/test-u32-casecoll.c: New file.
28392
28393         Tests for module 'unicase/u16-casecoll'.
28394         * modules/unicase/u16-casecoll-tests: New file.
28395         * tests/unicase/test-u16-casecoll.c: New file.
28396
28397         Tests for module 'unicase/u8-casecoll'.
28398         * modules/unicase/u8-casecoll-tests: New file.
28399         * tests/unicase/test-u8-casecoll.c: New file.
28400
28401         New module 'unicase/u32-casecoll'.
28402         * lib/unicase/u32-casecoll.c: New file.
28403         * modules/unicase/u32-casecoll: New file.
28404
28405         New module 'unicase/u16-casecoll'.
28406         * lib/unicase/u16-casecoll.c: New file.
28407         * modules/unicase/u16-casecoll: New file.
28408
28409         New module 'unicase/u8-casecoll'.
28410         * lib/unicase/u8-casecoll.c: New file.
28411         * lib/unicase/u-casecoll.h: New file.
28412         * modules/unicase/u8-casecoll: New file.
28413
28414         New module 'unicase/u32-casexfrm'.
28415         * lib/unicase/u32-casexfrm.c: New file.
28416         * modules/unicase/u32-casexfrm: New file.
28417
28418         New module 'unicase/u16-casexfrm'.
28419         * lib/unicase/u16-casexfrm.c: New file.
28420         * modules/unicase/u16-casexfrm: New file.
28421
28422         New module 'unicase/u8-casexfrm'.
28423         * lib/unicase/u8-casexfrm.c: New file.
28424         * lib/unicase/u-casexfrm.h: New file.
28425         * modules/unicase/u8-casexfrm: New file.
28426
28427         Tests for module 'unicase/u32-casecmp'.
28428         * modules/unicase/u32-casecmp-tests: New file.
28429         * tests/unicase/test-u32-casecmp.c: New file.
28430
28431         Tests for module 'unicase/u16-casecmp'.
28432         * modules/unicase/u16-casecmp-tests: New file.
28433         * tests/unicase/test-u16-casecmp.c: New file.
28434
28435         Tests for module 'unicase/u8-casecmp'.
28436         * modules/unicase/u8-casecmp-tests: New file.
28437         * tests/unicase/test-u8-casecmp.c: New file.
28438         * tests/unicase/test-casecmp.h: New file.
28439
28440         New module 'unicase/u32-casecmp'.
28441         * lib/unicase/u32-casecmp.c: New file.
28442         * modules/unicase/u32-casecmp: New file.
28443
28444         New module 'unicase/u16-casecmp'.
28445         * lib/unicase/u16-casecmp.c: New file.
28446         * modules/unicase/u16-casecmp: New file.
28447
28448         New module 'unicase/u8-casecmp'.
28449         * lib/unicase/u8-casecmp.c: New file.
28450         * lib/unicase/u-casecmp.h: New file.
28451         * modules/unicase/u8-casecmp: New file.
28452
28453         Tests for module 'unicase/u32-casefold'.
28454         * modules/unicase/u32-casefold-tests: New file.
28455         * tests/unicase/test-u32-casefold.c: New file.
28456
28457         Tests for module 'unicase/u16-casefold'.
28458         * modules/unicase/u16-casefold-tests: New file.
28459         * tests/unicase/test-u16-casefold.c: New file.
28460
28461         Tests for module 'unicase/u8-casefold'.
28462         * modules/unicase/u8-casefold-tests: New file.
28463         * tests/unicase/test-u8-casefold.c: New file.
28464
28465         New module 'unicase/u32-casefold'.
28466         * lib/unicase/u32-casefold.c: New file.
28467         * modules/unicase/u32-casefold: New file.
28468
28469         New module 'unicase/u16-casefold'.
28470         * lib/unicase/u16-casefold.c: New file.
28471         * modules/unicase/u16-casefold: New file.
28472
28473         New module 'unicase/u8-casefold'.
28474         * lib/unicase/u8-casefold.c: New file.
28475         * lib/unicase/u-casefold.h: New file.
28476         * modules/unicase/u8-casefold: New file.
28477
28478         New module 'unicase/tocasefold'.
28479         * lib/unicase/casefold.h: New file.
28480         * lib/unicase/tocasefold.c: New file.
28481         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
28482         * modules/unicase/tocasefold: New file.
28483
28484         Tests for module 'unicase/u32-totitle'.
28485         * modules/unicase/u32-totitle-tests: New file.
28486         * tests/unicase/test-u32-totitle.c: New file.
28487
28488         Tests for module 'unicase/u16-totitle'.
28489         * modules/unicase/u16-totitle-tests: New file.
28490         * tests/unicase/test-u16-totitle.c: New file.
28491
28492         Tests for module 'unicase/u8-totitle'.
28493         * modules/unicase/u8-totitle-tests: New file.
28494         * tests/unicase/test-u8-totitle.c: New file.
28495
28496         New module 'unicase/u32-totitle'.
28497         * lib/unicase/u32-totitle.c: New file.
28498         * modules/unicase/u32-totitle: New file.
28499
28500         New module 'unicase/u16-totitle'.
28501         * lib/unicase/u16-totitle.c: New file.
28502         * modules/unicase/u16-totitle: New file.
28503
28504         New module 'unicase/u8-totitle'.
28505         * lib/unicase/u8-totitle.c: New file.
28506         * lib/unicase/u-totitle.h: New file.
28507         * modules/unicase/u8-totitle: New file.
28508
28509         Tests for module 'unicase/u32-tolower'.
28510         * modules/unicase/u32-tolower-tests: New file.
28511         * tests/unicase/test-u32-tolower.c: New file.
28512
28513         Tests for module 'unicase/u16-tolower'.
28514         * modules/unicase/u16-tolower-tests: New file.
28515         * tests/unicase/test-u16-tolower.c: New file.
28516
28517         Tests for module 'unicase/u8-tolower'.
28518         * modules/unicase/u8-tolower-tests: New file.
28519         * tests/unicase/test-u8-tolower.c: New file.
28520
28521         New module 'unicase/u32-tolower'.
28522         * lib/unicase/u32-tolower.c: New file.
28523         * modules/unicase/u32-tolower: New file.
28524
28525         New module 'unicase/u16-tolower'.
28526         * lib/unicase/u16-tolower.c: New file.
28527         * modules/unicase/u16-tolower: New file.
28528
28529         New module 'unicase/u8-tolower'.
28530         * lib/unicase/u8-tolower.c: New file.
28531         * modules/unicase/u8-tolower: New file.
28532
28533         Tests for module 'unicase/u32-toupper'.
28534         * modules/unicase/u32-toupper-tests: New file.
28535         * tests/unicase/test-u32-toupper.c: New file.
28536
28537         Tests for module 'unicase/u16-toupper'.
28538         * modules/unicase/u16-toupper-tests: New file.
28539         * tests/unicase/test-u16-toupper.c: New file.
28540
28541         Tests for module 'unicase/u8-toupper'.
28542         * modules/unicase/u8-toupper-tests: New file.
28543         * tests/unicase/test-u8-toupper.c: New file.
28544
28545         New module 'unicase/u32-toupper'.
28546         * lib/unicase/u32-toupper.c: New file.
28547         * modules/unicase/u32-toupper: New file.
28548
28549         New module 'unicase/u16-toupper'.
28550         * lib/unicase/u16-toupper.c: New file.
28551         * modules/unicase/u16-toupper: New file.
28552
28553         New module 'unicase/u8-toupper'.
28554         * lib/unicase/u8-toupper.c: New file.
28555         * modules/unicase/u8-toupper: New file.
28556
28557         New module 'unicase/u32-casemap'.
28558         * lib/unicase/u32-casemap.c: New file.
28559         * modules/unicase/u32-casemap: New file.
28560
28561         New module 'unicase/u16-casemap'.
28562         * lib/unicase/u16-casemap.c: New file.
28563         * modules/unicase/u16-casemap: New file.
28564
28565         New module 'unicase/u8-casemap'.
28566         * lib/unicase/unicasemap.h: New file.
28567         * lib/unicase/u8-casemap.c: New file.
28568         * lib/unicase/u-casemap.h: New file.
28569         * modules/unicase/u8-casemap: New file.
28570
28571         New module 'unicase/special-casing'.
28572         * lib/unicase/special-casing.h: New file.
28573         * lib/unicase/special-casing.c: New file.
28574         * lib/unicase/special-casing-table.gperf: New file, generated by
28575         gen-uni-tables.c.
28576         * modules/unicase/special-casing: New file.
28577
28578         Tests for module 'unicase/locale-language'.
28579         * modules/unicase/locale-language-tests: New file.
28580         * tests/unicase/test-locale-language.sh: New file.
28581         * tests/unicase/test-locale-language.c: New file.
28582
28583         New module 'unicase/locale-language'.
28584         * lib/unicase/locale-language.c: New file.
28585         * lib/unicase/locale-languages.gperf: New file.
28586         * modules/unicase/locale-language: New file.
28587
28588         Generate more tables for case conversion and case folding.
28589         * lib/gen-uni-tables.c (SCC_*): New enum items.
28590         (struct special_casing_rule): New type.
28591         (casing_rules, num_casing_rules, allocated_casing_rules): New
28592         variables.
28593         (add_casing_rule, fill_casing_rules): New functions.
28594         (struct casefold_rule): New type.
28595         (casefolding_rules, num_casefolding_rules,
28596         allocated_casefolding_rules): New variables.
28597         (fill_casefolding_rules): New function.
28598         (unicode_casefold): New variable.
28599         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
28600         sort_casing_rules, output_casing_rules): New functions.
28601         (main): Accept to more arguments: SpecialCasing.txt and
28602         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
28603         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
28604         Output mapping for casefolding.
28605
28606         * lib/unicase.h: Include stdbool.h, uninorm.h.
28607         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
28608         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
28609         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
28610         arguments.
28611         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
28612         resultp arguments.
28613         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
28614         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
28615         resultp arguments.
28616         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
28617         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
28618         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
28619         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
28620         declarations.
28621         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
28622
28623 2009-03-08  Bruno Haible  <bruno@clisp.org>
28624
28625         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28626         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
28627         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
28628         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28629
28630 2009-03-07  Bruno Haible  <bruno@clisp.org>
28631
28632         Adjust u*_normcmp, u*_normcoll API.
28633         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28634         u16_normcoll, u32_normcoll): Change failure conventions.
28635         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
28636         errno and return -1.
28637         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28638
28639 2009-03-07  Bruno Haible  <bruno@clisp.org>
28640
28641         Tests for module 'uninorm/u32-normcoll'.
28642         * modules/uninorm/u32-normcoll-tests: New file.
28643         * tests/uninorm/test-u32-normcoll.c: New file.
28644
28645         Tests for module 'uninorm/u16-normcoll'.
28646         * modules/uninorm/u16-normcoll-tests: New file.
28647         * tests/uninorm/test-u16-normcoll.c: New file.
28648
28649         Tests for module 'uninorm/u8-normcoll'.
28650         * modules/uninorm/u8-normcoll-tests: New file.
28651         * tests/uninorm/test-u8-normcoll.c: New file.
28652
28653 2009-03-07  Bruno Haible  <bruno@clisp.org>
28654
28655         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
28656         tests/uninorm/test-u32-normcmp.c.
28657         * tests/uninorm/test-u32-normcmp.c: Include it.
28658         (test_nonascii): New function, extracted from main. Add some more
28659         tests.
28660         (main): Invoke test_ascii and test_nonascii.
28661         * modules/uninorm/u32-normcmp-tests (Files): Add
28662         tests/uninorm/test-u32-normcmp.h.
28663         (Depends-on): Remove uninorm/u32-normcmp.
28664
28665         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
28666         tests/uninorm/test-u16-normcmp.c.
28667         * tests/uninorm/test-u16-normcmp.c: Include it.
28668         (test_nonascii): New function, extracted from main. Add some more
28669         tests.
28670         (main): Invoke test_ascii and test_nonascii.
28671         * modules/uninorm/u16-normcmp-tests (Files): Add
28672         tests/uninorm/test-u16-normcmp.h.
28673         (Depends-on): Remove uninorm/u16-normcmp.
28674
28675         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
28676         tests/uninorm/test-u8-normcmp.c.
28677         * tests/uninorm/test-u8-normcmp.c: Include it.
28678         (test_nonascii): New function, extracted from main. Add some more
28679         tests.
28680         (main): Invoke test_ascii and test_nonascii.
28681         * modules/uninorm/u8-normcmp-tests (Files): Add
28682         tests/uninorm/test-u8-normcmp.h.
28683         (Depends-on): Remove uninorm/u8-normcmp.
28684
28685 2009-03-07  Bruno Haible  <bruno@clisp.org>
28686
28687         New module 'uninorm/u32-normcoll'.
28688         * lib/uninorm/u32-normcoll.c: New file.
28689         * modules/uninorm/u32-normcoll: New file.
28690
28691         New module 'uninorm/u16-normcoll'.
28692         * lib/uninorm/u16-normcoll.c: New file.
28693         * modules/uninorm/u16-normcoll: New file.
28694
28695         New module 'uninorm/u8-normcoll'.
28696         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
28697         declarations.
28698         * lib/uninorm/u8-normcoll.c: New file.
28699         * lib/uninorm/u-normcoll.h: New file.
28700         * modules/uninorm/u8-normcoll: New file.
28701
28702         New module 'uninorm/u32-normxfrm'.
28703         * lib/uninorm/u32-normxfrm.c: New file.
28704         * modules/uninorm/u32-normxfrm: New file.
28705
28706         New module 'uninorm/u16-normxfrm'.
28707         * lib/uninorm/u16-normxfrm.c: New file.
28708         * modules/uninorm/u16-normxfrm: New file.
28709
28710         New module 'uninorm/u8-normxfrm'.
28711         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
28712         declarations.
28713         * lib/uninorm/u8-normxfrm.c: New file.
28714         * lib/uninorm/u-normxfrm.h: New file.
28715         * modules/uninorm/u8-normxfrm: New file.
28716
28717 2009-03-07  Bruno Haible  <bruno@clisp.org>
28718
28719         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
28720         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
28721         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
28722
28723 2009-03-07  Bruno Haible  <bruno@clisp.org>
28724
28725         New module 'memxfrm'.
28726         * lib/memxfrm.h: New file.
28727         * lib/memxfrm.c: New file.
28728         * modules/memxfrm: New file.
28729
28730 2009-03-07  Bruno Haible  <bruno@clisp.org>
28731
28732         New module 'memcmp2'.
28733         * lib/memcmp2.h: New file.
28734         * lib/memcmp2.c: New file.
28735         * modules/memcmp2: New file.
28736
28737 2009-03-07  Bruno Haible  <bruno@clisp.org>
28738
28739         Tests for module 'uninorm/decomposing-form'.
28740         * modules/uninorm/decomposing-form-tests: New file.
28741         * tests/uninorm/test-decomposing-form.c: New file.
28742
28743         New module 'uninorm/decomposing-form'.
28744         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
28745         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
28746         Add 'decomposing_variant' field.
28747         * lib/uninorm/decomposing-form.c: New file.
28748         * lib/uninorm/nfc.c (uninorm_nfc): Update.
28749         * lib/uninorm/nfd.c (uninorm_nfd): Update.
28750         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
28751         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
28752         * modules/uninorm/decomposing-form: New file.
28753         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
28754         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
28755
28756 2009-03-07  Bruno Haible  <bruno@clisp.org>
28757
28758         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
28759         strings.
28760
28761 2009-03-06  Bruno Haible  <bruno@clisp.org>
28762
28763         Tests for module 'uninorm/u32-normcmp'.
28764         * tests/uninorm/test-u32-normcmp.c: New file.
28765         * modules/uninorm/u32-normcmp-tests: New file.
28766
28767         Tests for module 'uninorm/u16-normcmp'.
28768         * tests/uninorm/test-u16-normcmp.c: New file.
28769         * modules/uninorm/u16-normcmp-tests: New file.
28770
28771         Tests for module 'uninorm/u8-normcmp'.
28772         * tests/uninorm/test-u8-normcmp.c: New file.
28773         * modules/uninorm/u8-normcmp-tests: New file.
28774
28775         New module 'uninorm/u32-normcmp'.
28776         * lib/uninorm/u32-normcmp.c: New file.
28777         * modules/uninorm/u32-normcmp: New file.
28778
28779         New module 'uninorm/u16-normcmp'.
28780         * lib/uninorm/u16-normcmp.c: New file.
28781         * modules/uninorm/u16-normcmp: New file.
28782
28783         New module 'uninorm/u8-normcmp'.
28784         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
28785         declarations.
28786         * lib/uninorm/u8-normcmp.c: New file.
28787         * lib/uninorm/u-normcmp.h: New file.
28788         * modules/uninorm/u8-normcmp: New file.
28789
28790 2009-03-06  Bruno Haible  <bruno@clisp.org>
28791
28792         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
28793         Reported by Eric Blake.
28794
28795 2009-03-06  Eric Blake  <ebb9@byu.net>
28796             Bruno Haible  <bruno@clisp.org>
28797
28798         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
28799         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
28800         condition.
28801         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28802         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
28803         condition.
28804         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28805
28806 2009-03-06  Eric Blake  <ebb9@byu.net>
28807
28808         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
28809         to avoid compiler warnings.
28810         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
28811
28812 2009-03-05  Bruno Haible  <bruno@clisp.org>
28813
28814         * tests/test-ftell.c (main): Disable test beyond end of file on
28815         FreeMiNT.
28816         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28817
28818 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
28819
28820         * lib/filevercmp.c: Move hidden files up in ordering.
28821         * tests/test-filevercmp.c: Add tests for hidden files.
28822
28823 2009-03-04  Bruno Haible  <bruno@clisp.org>
28824
28825         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
28826         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
28827         AM_CFLAGS.
28828         Reported by Simon Josefsson.
28829
28830 2009-03-03  Bruno Haible  <bruno@clisp.org>
28831
28832         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
28833         Reported by Simon Josefsson.
28834
28835         * doc/ld-version-script.texi: Update node reference.
28836
28837 2009-03-03  Bruno Haible  <bruno@clisp.org>
28838
28839         * modules/visibility (License): Change to 'unlimited'.
28840         Suggested by Simon Josefsson.
28841
28842 2009-03-03  Jim Meyering  <meyering@redhat.com>
28843
28844         unlinkdir: cannot_unlink_dir may modify process state
28845         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
28846         it's neither thread-safe nor appropriate for use in a library.
28847
28848 2009-03-03  Eric Blake  <ebb9@byu.net>
28849
28850         test-closein: silence test under Darwin
28851         * tests/test-closein.sh: Ignore stderr from cat, since we don't
28852         care if it dies from EPIPE or EBADF.
28853
28854 2009-03-03  Bruno Haible  <bruno@clisp.org>
28855
28856         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
28857         earlier.
28858         * doc/visibility.texi: Fix @node and @section.
28859
28860 2009-03-03  Simon Josefsson  <simon@josefsson.org>
28861
28862         * doc/gnulib.texi: Link to sections for ld version script and
28863         visibility.
28864         * doc/visibility.texi: Add @node and @section.
28865         * modules/ld-version-script: New module.
28866         * m4/ld-version-script.m4: New file.
28867         * doc/ld-version-script.texi: New file.
28868
28869 2009-03-02  David Lutterkort  <lutter@redhat.com>
28870
28871         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
28872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28873
28874 2009-03-02  Bruno Haible  <bruno@clisp.org>
28875
28876         * doc/visibility.texi: Mention libtool's -export-symbols option.
28877
28878 2009-03-02  Jim Meyering  <meyering@redhat.com>
28879
28880         announce-gen: new option: --no-print-checksums
28881         * build-aux/announce-gen (usage): Describe it.
28882         (print_checksums): Print a newline here, not in the [*] footnote.
28883         (main): Honor it.
28884
28885 2009-03-01  Bruno Haible  <bruno@clisp.org>
28886
28887         Use socklen_t in the native Windows replacements prototypes.
28888         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
28889         instead of 'int'.
28890         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28891         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28892         * modules/getsockopt (Depends-on): Add socklen.
28893         * modules/setsockopt (Depends-on): Add socklen.
28894
28895 2009-03-01  Bruno Haible  <bruno@clisp.org>
28896
28897         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
28898         least 4.2.
28899
28900 2009-03-01  Eric Blake  <ebb9@byu.net>
28901             Bruno Haible  <bruno@clisp.org>
28902
28903         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
28904         error messages.
28905         * lib/wait-process.c (wait_subprocess): Omit error message about
28906         deadly signal sent to the child of termsigp != NULL.
28907
28908 2009-03-01  Eric Blake  <ebb9@byu.net>
28909
28910         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
28911
28912 2009-03-01  Bruno Haible  <bruno@clisp.org>
28913
28914         Avoid a gcc warning.
28915         * tests/test-sched.c (b): Make global.
28916         Reported by Eric Blake.
28917
28918 2009-01-19  Martin Lambers  <marlam@marlam.de>
28919
28920         Provide POSIX semantics for socket timeout options on W32.
28921         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
28922         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
28923         * modules/setsockopt: Depend on sys_time module for struct timeval.
28924         * modules/getsockopt: Depend on sys_time module for struct timeval.
28925
28926 2009-03-01  Simon Josefsson  <simon@josefsson.org>
28927
28928         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
28929         __USE_GNU, for consistency with netdb.in.h.
28930         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28931
28932 2009-03-01  Bruno Haible  <bruno@clisp.org>
28933
28934         More support for FreeMiNT.
28935         * lib/fseeko.c (rpl_fseeko): Complete last commit.
28936         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28937
28938 2009-03-01  Bruno Haible  <bruno@clisp.org>
28939
28940         More support for FreeMiNT.
28941         * lib/fpurge.c (fpurge): Correct last commit.
28942         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28943
28944 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28945
28946         Fix unportable awk script in vc-list-files.
28947         * build-aux/vc-list-files: In the replacement awk script, use
28948         substr with a second argument of 1, not zero.
28949         Report by Simon Josefsson.
28950
28951 2009-02-28  Bruno Haible  <bruno@clisp.org>
28952
28953         More support for FreeMiNT.
28954         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
28955         to FreeMiNT today.
28956         * lib/fwriting.c (fwriting): Likewise.
28957         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
28958
28959 2009-02-28  Bruno Haible  <bruno@clisp.org>
28960
28961         * tests/test-freadseek.c (main): Disable test beyond end of file on
28962         FreeMiNT.
28963         * tests/test-ftello.c (main): Likewise.
28964         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28965
28966 2009-02-28  Bruno Haible  <bruno@clisp.org>
28967
28968         Add tentative support for FreeMiNT.
28969         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
28970         * lib/fpurge.c (fpurge): Likewise.
28971         * lib/freadable.c (freadable): Likewise.
28972         * lib/freading.c (freading): Likewise.
28973         * lib/freadptr.c (freadptr): Likewise.
28974         * lib/freadseek.c (freadptrinc): Likewise.
28975         * lib/fseeko.c (rpl_fseeko): Likewise.
28976         * lib/fseterr.c (fseterr): Likewise.
28977         * lib/fwritable.c (fwritable): Likewise.
28978         * lib/fwriting.c (fwriting): Likewise.
28979         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
28980         Hourihane.
28981         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28982
28983 2009-02-28  Bruno Haible  <bruno@clisp.org>
28984
28985         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
28986         SIGCHLD.
28987         Reported by Jim Meyering.
28988
28989 2009-02-28  Bruno Haible  <bruno@clisp.org>
28990
28991         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
28992         Mention the results of these tests on various platforms.
28993         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
28994         order.
28995         * doc/posix-functions/printf.texi: Likewise.
28996         * doc/posix-functions/snprintf.texi: Likewise.
28997         * doc/posix-functions/sprintf.texi: Likewise.
28998         * doc/posix-functions/vfprintf.texi: Likewise.
28999         * doc/posix-functions/vprintf.texi: Likewise.
29000         * doc/posix-functions/vsnprintf.texi: Likewise.
29001         * doc/posix-functions/vsprintf.texi: Likewise.
29002         * doc/glibc-functions/obstack_printf.texi: Likewise.
29003         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29004
29005 2009-02-28  Bruno Haible  <bruno@clisp.org>
29006
29007         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29008         Reported by Loïc Minier <lool@dooz.org>.
29009
29010 2009-02-27  Bruno Haible  <bruno@clisp.org>
29011
29012         * gnulib-tool (func_import): Make the sed expression used to create the
29013         sed script for updating the .gitignore file POSIX compliant.
29014         Reported by Eric Blake.
29015
29016 2009-02-27  Bruno Haible  <bruno@clisp.org>
29017
29018         * gnulib-tool (sed): Don't alias as "sed --posix".
29019         Reported by Eric Blake.
29020
29021 2009-02-27  Bruno Haible  <bruno@clisp.org>
29022
29023         Avoid test link errors.
29024         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29025         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29026         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29027         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29029
29030 2009-02-27  Bruno Haible  <bruno@clisp.org>
29031
29032         Avoid spurious "(cached)" in configure output.
29033         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29034         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29035         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29036         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29037         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29038         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29039         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29040         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29041         Reported by Eric Blake.
29042
29043 2009-02-27  Eric Blake  <ebb9@byu.net>
29044
29045         printf: fix regression in previous patch
29046         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29047
29048 2009-02-27  Bruno Haible  <bruno@clisp.org>
29049
29050         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29051         value.
29052         * lib/stdint.in.h: Likewise.
29053         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29054
29055 2009-02-27  Eric Blake  <ebb9@byu.net>
29056
29057         doc: mention more functions added in cygwin 1.7.0
29058         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29059         addition.
29060         * doc/posix-functions/open_wmemstream.texi: Likewise.
29061         * doc/posix-functions/wcsnlen.texi: Likewise.
29062         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29063         * doc/posix-functions/wcstod.texi: Likewise.
29064         * doc/posix-functions/wcstof.texi: Likewise.
29065         * doc/posix-functions/wcstoimax.texi: Likewise.
29066         * doc/posix-functions/wcstok.texi: Likewise.
29067         * doc/posix-functions/wcstoumax.texi: Likewise.
29068
29069         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29070         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29071         * doc/posix-functions/fprintf.texi: Update.
29072         * doc/posix-functions/printf.texi: Update.
29073         * doc/posix-functions/snprintf.texi: Update.
29074         * doc/posix-functions/sprintf.texi: Update.
29075         * doc/posix-functions/vfprintf.texi: Update.
29076         * doc/posix-functions/vprintf.texi: Update.
29077         * doc/posix-functions/vsnprintf.texi: Update.
29078         * doc/posix-functions/vsprintf.texi: Update.
29079         * doc/glibc-functions/obstack_printf.texi: Update.
29080         * doc/glibc-functions/obstack_vprintf.texi: Update.
29081
29082 2009-02-26  Eric Blake  <ebb9@byu.net>
29083
29084         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29085         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29086         compilation bug by using runtime conversion.
29087         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29088         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29089         * modules/ceill-tests (Files): Use nan.h.
29090         * modules/floorl-tests (Files): Likewise.
29091         * modules/frexpl-tests (Files): Likewise.
29092         * modules/isnanl-tests (Files): Likewise.
29093         * modules/ldexpl-tests (Files): Likewise.
29094         * modules/roundl-tests (Files): Likewise.
29095         * modules/truncl-tests (Files): Likewise.
29096         * tests/test-ceill.c (main): Use a working NaN.
29097         * tests/test-floorl.c (main): Likewise.
29098         * tests/test-frexpl.c (main): Likewise.
29099         * tests/test-isnan.c (test_long_double): Likewise.
29100         * tests/test-isnanl.h (main): Likewise.
29101         * tests/test-ldexpl.h (main): Likewise.
29102         * tests/test-roundl.h (main): Likewise.
29103         * tests/test-truncl.h (main): Likewise.
29104         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29105
29106 2009-02-26  Eric Blake  <ebb9@byu.net>
29107             Bruno Haible  <bruno@clisp.org>
29108
29109         Work around a *printf bug with %ls on Solaris.
29110         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29111         precision is specified, sprintf stops converting the wide string
29112         argument when the number of bytes that have been produced by this
29113         conversion equals or exceeds the precision.
29114         * doc/posix-functions/fprintf.texi: Update.
29115         * doc/posix-functions/printf.texi: Update.
29116         * doc/posix-functions/snprintf.texi: Update.
29117         * doc/posix-functions/sprintf.texi: Update.
29118         * doc/posix-functions/vfprintf.texi: Update.
29119         * doc/posix-functions/vprintf.texi: Update.
29120         * doc/posix-functions/vsnprintf.texi: Update.
29121         * doc/posix-functions/vsprintf.texi: Update.
29122         * doc/glibc-functions/obstack_printf.texi: Update.
29123         * doc/glibc-functions/obstack_vprintf.texi: Update.
29124
29125 2009-02-26  Eric Blake  <ebb9@byu.net>
29126
29127         stdlib: favor compiler check of random.h
29128         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29129         to avoid an ObjC random.h installed by Swarm.
29130
29131 2009-02-26  Bruno Haible  <bruno@clisp.org>
29132
29133         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29134         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29135         Reported by Gary V. Vaughan <gary@gnu.org>.
29136
29137 2009-02-26  Bruno Haible  <bruno@clisp.org>
29138
29139         Fix *printf behaviour regarding the %ls directive.
29140         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29141         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29142         NEED_PRINTF_DIRECTIVE_LS.
29143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29144         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29145         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29146         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29147         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29148         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29149         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29150         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29151         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29153         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29154         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29155         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29156         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29157         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29158         * doc/posix-functions/fprintf.texi: Update.
29159         * doc/posix-functions/printf.texi: Update.
29160         * doc/posix-functions/snprintf.texi: Update.
29161         * doc/posix-functions/sprintf.texi: Update.
29162         * doc/posix-functions/vfprintf.texi: Update.
29163         * doc/posix-functions/vprintf.texi: Update.
29164         * doc/posix-functions/vsnprintf.texi: Update.
29165         * doc/posix-functions/vsprintf.texi: Update.
29166         * doc/glibc-functions/obstack_printf.texi: Update.
29167         * doc/glibc-functions/obstack_vprintf.texi: Update.
29168         Reported by Eric Blake.
29169
29170 2009-02-25  Bruno Haible  <bruno@clisp.org>
29171
29172         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29173         with known value.
29174         Reported by Gary V. Vaughan <gary@gnu.org>.
29175
29176 2009-02-25  Bruno Haible  <bruno@clisp.org>
29177
29178         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29179         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29180         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29181         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29182         Reported by Gary V. Vaughan <gary@gnu.org>.
29183
29184 2009-02-25  Bruno Haible  <bruno@clisp.org>
29185
29186         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29187         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29188         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29189         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29190         Reported by Gary V. Vaughan <gary@gnu.org>.
29191
29192 2009-02-25  Eric Blake  <ebb9@byu.net>
29193
29194         tests: skip fseek/ftell tests if ungetc is broken
29195         * m4/ungetc.m4: New file.
29196         * modules/fseek-tests: Split test, so ungetc dependency is
29197         separate from rest of test.
29198         * modules/fseeko-tests: Likewise.
29199         * modules/ftell-tests: Likewise.
29200         * modules/ftello-tests: Likewise.
29201         * tests/test-fseek.c (main): Isolate ungetc dependency.
29202         * tests/test-fseeko.c (main): Likewise.
29203         * tests/test-ftell.c (main): Likewise.
29204         * tests/test-ftello.c (main): Likewise.
29205         * tests/test-fseek2.sh: New file.
29206         * tests/test-fseeko2.sh: Likewise.
29207         * tests/test-ftell2.sh: Likewise.
29208         * tests/test-ftello2.sh: Likewise.
29209
29210 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29211
29212         test-getaddrinfo: fix usage of skip return code 77
29213         * tests/test-gettaddrinfo.c: Return skip code 77 only
29214         for first occurance of skip (4x77 is not 77)
29215
29216 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29217
29218         strtod: avoid C99 decl-after-statement
29219         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29220
29221 2009-02-24  Eric Blake  <ebb9@byu.net>
29222
29223         strtod: detect HP-UX 11.31 bug
29224         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29225         Reported by Gary V. Vaughan.
29226
29227 2009-02-23  Bruno Haible  <bruno@clisp.org>
29228
29229         Fix invalid read past end of memory block.
29230         * lib/vasnprintf.c (DCHAR_SET): Define.
29231         (local_wcslen): Define only when needed.
29232         (local_strnlen, local_wcsnlen): New functions.
29233         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29234         directives that involve a conversion ourselves.
29235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29236         wcsnlen, mbrtowc, wcrtomb.
29237         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29238         * tests/test-vasprintf-posix.c (test_function): Likewise.
29239         * tests/test-snprintf-posix.h (test_function): Likewise.
29240         * tests/test-sprintf-posix.h (test_function): Likewise.
29241         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29242
29243 2009-02-22  Bruno Haible  <bruno@clisp.org>
29244
29245         Implement new clarified decomposition of Hangul syllables.
29246         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29247         of type LTV, return only a pairwise decomposition.
29248         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29249         Likewise.
29250         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29251         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29252         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29253
29254 2009-02-22  Bruno Haible  <bruno@clisp.org>
29255
29256         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29257         zero-length results and shrink excess allocated memory.
29258         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29259         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29260         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29261         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29262         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29263         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29264         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29265         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29266         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29267         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29268         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29269         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29270
29271 2009-02-21  Bruno Haible  <bruno@clisp.org>
29272
29273         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29274         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29275         spaces after a period. Put a space between a macro name and its
29276         argument list. Trivial rewordings.
29277         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29278         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29279         (main): Return 0 explicitly.
29280
29281 2009-02-21  Bruno Haible  <bruno@clisp.org>
29282
29283         Tests for module 'uninorm/filter'.
29284         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29285         * modules/uninorm/filter-tests: New file.
29286
29287         New module 'uninorm/filter'.
29288         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29289         uninorm_filter_flush, uninorm_filter_free): New declarations.
29290         * lib/uninorm/uninorm-filter.c: New file.
29291         * modules/uninorm/filter: New file.
29292
29293 2009-02-21  Bruno Haible  <bruno@clisp.org>
29294
29295         Tests for module 'uninorm/nfkc'.
29296         * tests/uninorm/test-nfkc.c: New file.
29297         * tests/uninorm/test-u8-nfkc.c: New file.
29298         * tests/uninorm/test-u16-nfkc.c: New file.
29299         * tests/uninorm/test-u32-nfkc.c: New file.
29300         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29301         * tests/uninorm/test-u32-nfkc-big.c: New file.
29302         * modules/uninorm/nfkc-tests: New file.
29303
29304         New module 'uninorm/nfkc'.
29305         * lib/uninorm/nfkc.c: New file.
29306         * modules/uninorm/nfkc: New file.
29307
29308         Tests for module 'uninorm/nfkd'.
29309         * tests/uninorm/test-nfkd.c: New file.
29310         * tests/uninorm/test-u8-nfkd.c: New file.
29311         * tests/uninorm/test-u16-nfkd.c: New file.
29312         * tests/uninorm/test-u32-nfkd.c: New file.
29313         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29314         * tests/uninorm/test-u32-nfkd-big.c: New file.
29315         * modules/uninorm/nfkd-tests: New file.
29316
29317         New module 'uninorm/nfkd'.
29318         * lib/uninorm/nfkd.c: New file.
29319         * modules/uninorm/nfkd: New file.
29320
29321         Tests for module 'uninorm/nfc'.
29322         * tests/uninorm/test-nfc.c: New file.
29323         * tests/uninorm/test-u8-nfc.c: New file.
29324         * tests/uninorm/test-u16-nfc.c: New file.
29325         * tests/uninorm/test-u32-nfc.c: New file.
29326         * tests/uninorm/test-u32-nfc-big.sh: New file.
29327         * tests/uninorm/test-u32-nfc-big.c: New file.
29328         * modules/uninorm/nfc-tests: New file.
29329
29330         New module 'uninorm/nfc'.
29331         * lib/uninorm/nfc.c: New file.
29332         * modules/uninorm/nfc: New file.
29333
29334         Tests for module 'uninorm/nfd'.
29335         * tests/uninorm/test-nfd.c: New file.
29336         * tests/uninorm/test-u8-nfd.c: New file.
29337         * tests/uninorm/test-u16-nfd.c: New file.
29338         * tests/uninorm/test-u32-nfd.c: New file.
29339         * tests/uninorm/test-u32-nfd-big.sh: New file.
29340         * tests/uninorm/test-u32-nfd-big.c: New file.
29341         * tests/uninorm/test-u32-normalize-big.h: New file.
29342         * tests/uninorm/test-u32-normalize-big.c: New file.
29343         * tests/uninorm/NormalizationTest.txt: New file, created from
29344         Unicode 5.1.0 NormalizationTest.txt.
29345         * modules/uninorm/nfd-tests: New file.
29346
29347         New module 'uninorm/nfd'.
29348         * lib/uninorm/nfd.c: New file.
29349         * modules/uninorm/nfd: New file.
29350
29351         New module 'uninorm/u32-normalize'.
29352         * lib/uninorm/u32-normalize.c: New file.
29353         * modules/uninorm/u32-normalize: New file.
29354
29355         New module 'uninorm/u16-normalize'.
29356         * lib/uninorm/u16-normalize.c: New file.
29357         * modules/uninorm/u16-normalize: New file.
29358
29359         New module 'uninorm/u8-normalize'.
29360         * lib/uninorm/u8-normalize.c: New file.
29361         * lib/uninorm/normalize-internal.h: New file.
29362         * lib/uninorm/u-normalize-internal.h: New file.
29363         * modules/uninorm/u8-normalize: New file.
29364
29365         New module 'uninorm/decompose-internal'.
29366         * lib/uninorm/decompose-internal.c: New file.
29367         * modules/uninorm/decompose-internal: New file.
29368
29369         Tests for module 'uninorm/composition'.
29370         * tests/uninorm/test-composition.c: New file.
29371         * modules/uninorm/composition-tests: New file.
29372
29373         New module 'uninorm/composition'.
29374         * lib/uninorm/composition.c: New file.
29375         * lib/uninorm/composition-table.gperf: New file, generated by
29376         gen-uni-tables.
29377         * modules/uninorm/composition: New file.
29378
29379         Tests for module 'uninorm/compat-decomposition'.
29380         * tests/uninorm/test-compat-decomposition.c: New file.
29381         * modules/uninorm/compat-decomposition-tests: New file.
29382
29383         New module 'uninorm/compat-decomposition'.
29384         * lib/uninorm/decompose-internal.h: New file.
29385         * lib/uninorm/compat-decomposition.c: New file.
29386         * modules/uninorm/compat-decomposition: New file.
29387
29388         Tests for module 'uninorm/canonical-decomposition'.
29389         * tests/uninorm/test-canonical-decomposition.c: New file.
29390         * modules/uninorm/canonical-decomposition-tests: New file.
29391
29392         New module 'uninorm/canonical-decomposition'.
29393         * lib/uninorm/canonical-decomposition.c: New file.
29394         * modules/uninorm/canonical-decomposition: New file.
29395
29396         Tests for module 'uninorm/decomposition'.
29397         * tests/uninorm/test-decomposition.c: New file.
29398         * modules/uninorm/decomposition-tests: New file.
29399
29400         New module 'uninorm/decomposition'.
29401         * lib/uninorm/decomposition.c: New file.
29402         * modules/uninorm/decomposition: New file.
29403
29404         New module 'uninorm/decomposition-table'.
29405         * lib/uninorm/decomposition-table.h: New file.
29406         * lib/uninorm/decomposition-table.c: New file.
29407         * lib/uninorm/decomposition-table1.h: New file, generated by
29408         gen-uni-tables.
29409         * lib/uninorm/decomposition-table2.h: New file, generated by
29410         gen-uni-tables.
29411         * modules/uninorm/decomposition-table: New file.
29412
29413         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29414         (UC_DECOMP_*): New enumeration items.
29415         (get_decomposition): New function.
29416         (struct decomp_table): New type.
29417         (output_decomposition, output_decomposition_tables): New functions.
29418         (unicode_composition_exclusions): New variable.
29419         (fill_composition_exclusions, debug_output_composition_tables): New
29420         functions.
29421         (main): Accept one more argument. Invoke fill_composition_exclusions.
29422         Output decomposition and composition tables.
29423
29424         New module 'uninorm/base'.
29425         * lib/uninorm.h: New file.
29426         * lib/unictype.h: Update comment.
29427         * modules/uninorm/base: New file.
29428
29429 2009-02-21  David Lutterkort  <lutter@redhat.com>
29430
29431         Tests for module 'safe-alloc'.
29432         * tests/test-safe-alloc.c: New file.
29433         * modules/safe-alloc-tests: New file.
29434
29435         New module 'safe-alloc'.
29436         * lib/safe-alloc.h: New file.
29437         * lib/safe-alloc.c: New file.
29438         * m4/safe-alloc.m4: New file.
29439         * modules/safe-alloc: New file.
29440         * doc/safe-alloc.texi: New file.
29441         * doc/gnulib.texi: Include it.
29442         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29443         safe-alloc.
29444
29445 2009-02-18  Bruno Haible  <bruno@clisp.org>
29446
29447         Fix link error on non-glibc systems.
29448         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
29449         variable.
29450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29451
29452 2009-02-18  Jim Meyering  <meyering@redhat.com>
29453
29454         fts: avoid used-uninitialized error due to recent change
29455         * lib/fts.c (fts_read): Guard uses of the new member,
29456         parent->fts_n_dirs_remaining, since it's not relevant for
29457         the parent of a directory specified on the command-line.
29458
29459 2009-02-17  James Youngman  <jay@gnu.org>
29460             Bruno Haible  <bruno@clisp.org>
29461
29462         * m4/include_next.m4: Reformulate comment.
29463
29464 2009-02-16  Jim Meyering  <meyering@redhat.com>
29465
29466         fts: add #if guards so that the fts_lgpl module still builds
29467         * lib/fts.c: Guard just-added hash-table-using parts with
29468         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
29469         Reported by Simon Josefsson.
29470
29471 2009-02-15  Bruno Haible  <bruno@clisp.org>
29472
29473         * modules/array-mergesort-tests: New file.
29474         * tests/test-array-mergesort.c: New file.
29475
29476         New module 'array-mergesort'.
29477         * modules/array-mergesort: New file.
29478         * lib/array-mergesort.h: New file.
29479
29480 2009-02-15  Bruno Haible  <bruno@clisp.org>
29481
29482         Fix 2009-02-07 commit.
29483         * lib/gen-uni-tables.c (output_predicate, output_category,
29484         output_combclass, output_bidi_category, output_decimal_digit,
29485         output_digit, output_numeric, output_mirror, output_scripts,
29486         output_ident_category, output_simple_mapping): Fix format directives.
29487         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
29488
29489 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
29490
29491         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
29492         fixes are available from IBM.
29493
29494 2009-02-13  Jim Meyering  <meyering@redhat.com>
29495
29496         fts: arrange not to stat non-directories in more cases
29497         This makes GNU find (when it doesn't need to stat each file)
29498         *much* more efficient at traversing reiserfs file systems.
29499         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
29500         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
29501         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
29502         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
29503         (leaf_optimization_applies): New function.
29504         (LCO_hash, LCO_compare): New helper functions.
29505         (link_count_optimize_ok): New function.
29506         (fts_stat): Initialize new member (if dir).
29507         (fts_read): Decrement parent's fts_n_dirs_remaining count if
29508         we've just stat'ed a directory.  Skip the stat call when possible.
29509         ---
29510         Note this AFS-related exchange:
29511         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
29512         and note find's pioctl call in find/fstype.c.
29513         But that is necessary only if you want to enable the
29514         optimization for AFS, and for now, I don't.
29515
29516         fts: move a function definition "up" (no semantic change)
29517         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
29518         "up" to precede upcoming use of a related function.
29519
29520 2009-02-11  Jim Meyering  <meyering@redhat.com>
29521
29522         fts: correct internal computation of nlinks (optimization-related)
29523         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
29524         whether the current entry is a directory, so don't test it.
29525
29526 2009-02-10  Bruno Haible  <bruno@clisp.org>
29527
29528         Tests for module 'uniwbrk/ulc-wordbreaks'.
29529         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
29530         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
29531         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
29532
29533         Tests for module 'uniwbrk/u32-wordbreaks'.
29534         * modules/uniwbrk/u32-wordbreaks-tests: New file.
29535         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
29536
29537         Tests for module 'uniwbrk/u16-wordbreaks'.
29538         * modules/uniwbrk/u16-wordbreaks-tests: New file.
29539         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
29540
29541         Tests for module 'uniwbrk/u8-wordbreaks'.
29542         * modules/uniwbrk/u8-wordbreaks-tests: New file.
29543         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
29544
29545 2009-02-10  Bruno Haible  <bruno@clisp.org>
29546
29547         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
29548         property.
29549         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
29550         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
29551         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
29552
29553 2009-02-10  Simon Josefsson  <simon@josefsson.org>
29554
29555         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
29556         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
29557
29558 2009-02-10  Bruno Haible  <bruno@clisp.org>
29559
29560         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
29561         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
29562         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
29563         * lib/unilbrk/u8-possible-linebreaks.c: Update.
29564         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
29565         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
29566
29567 2009-02-09  Simon Josefsson  <simon@josefsson.org>
29568
29569         * lib/sockets.h (gl_fd_to_handle): New function.
29570
29571         * tests/test-sockets.c: Call gl_fd_to_handle.
29572
29573 2009-02-09  Bruno Haible  <bruno@clisp.org>
29574
29575         * doc/havelib.texi: Document the conventions on bi-arch systems.
29576
29577 2009-02-08  Bruno Haible  <bruno@clisp.org>
29578
29579         Document the AC_LIB_LINKFLAGS macro.
29580         * doc/havelib.texi: New file, mostly written on 2005-05-24.
29581         * doc/gnulib.texi: Include it.
29582
29583 2009-02-08  Bruno Haible  <bruno@clisp.org>
29584
29585         Fix wrong order of sections, compared to TOC.
29586         * doc/gnulib.texi: Include relocatable-maint.texi after the
29587         "Regular expressions" node, not before.
29588
29589 2009-02-08  Bruno Haible  <bruno@clisp.org>
29590
29591         Tests for module 'unicase/totitle'.
29592         * modules/unicase/totitle-tests: New file.
29593
29594         Tests for module 'unicase/tolower'.
29595         * modules/unicase/tolower-tests: New file.
29596
29597         Tests for module 'unicase/toupper'.
29598         * modules/unicase/toupper-tests: New file.
29599         * tests/unicase/test-mapping-part1.h: New file.
29600         * tests/unicase/test-mapping-part2.h: New file.
29601
29602         New module 'unicase/totitle'.
29603         * modules/unicase/totitle: New file.
29604         * lib/unicase/totitle.c: New file.
29605
29606         New module 'unicase/tolower'.
29607         * modules/unicase/tolower: New file.
29608         * lib/unicase/tolower.c: New file.
29609
29610         New module 'unicase/toupper'.
29611         * modules/unicase/toupper: New file.
29612         * lib/unicase/toupper.c: New file.
29613         * lib/unicase/simple-mapping.h: New file.
29614
29615         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
29616         (mapping_table): New structure.
29617         (output_simple_mapping): New function.
29618         (main): Invoke output_simple_mapping_test and output_simple_mapping.
29619         * modules/gen-uni-tables (Description): Update.
29620         * lib/unicase/toupper.h: New file, automatically generated by
29621         gen-uni-tables.
29622         * lib/unicase/tolower.h: New file, automatically generated by
29623         gen-uni-tables.
29624         * lib/unicase/totitle.h: New file, automatically generated by
29625         gen-uni-tables.
29626         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
29627         gen-uni-tables.
29628         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
29629         gen-uni-tables.
29630         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
29631         gen-uni-tables.
29632
29633         New module 'unicase/base'.
29634         * modules/unicase/base: New file.
29635         * lib/unicase.h: New file.
29636
29637 2009-02-08  Bruno Haible  <bruno@clisp.org>
29638
29639         New module 'uniwbrk/ulc-wordbreaks'.
29640         * modules/uniwbrk/ulc-wordbreaks: New file.
29641         * lib/uniwbrk/ulc-wordbreaks.c: New file.
29642
29643         New module 'uniwbrk/u32-wordbreaks'.
29644         * modules/uniwbrk/u32-wordbreaks: New file.
29645         * lib/uniwbrk/u32-wordbreaks.c: New file.
29646
29647         New module 'uniwbrk/u16-wordbreaks'.
29648         * modules/uniwbrk/u16-wordbreaks: New file.
29649         * lib/uniwbrk/u16-wordbreaks.c: New file.
29650
29651         New module 'uniwbrk/u8-wordbreaks'.
29652         * modules/uniwbrk/u8-wordbreaks: New file.
29653         * lib/uniwbrk/u8-wordbreaks.c: New file.
29654         * lib/uniwbrk/u-wordbreaks.h: New file.
29655
29656         New module 'uniwbrk/table'.
29657         * modules/uniwbrk/table: New file.
29658         * lib/uniwbrk/wbrktable.h: New file.
29659         * lib/uniwbrk/wbrktable.c: New file.
29660
29661         New module 'uniwbrk/wordbreak-property'.
29662         * modules/uniwbrk/wordbreak-property: New file.
29663         * lib/uniwbrk/wordbreak-property.c: New file.
29664
29665         * lib/gen-uni-tables.c (WBP_*): New enum items.
29666         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
29667         (unicode_org_wbp): New variable.
29668         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
29669         New functions.
29670         (wbp_table): New structure.
29671         (output_wbp, output_wbrk_tables): New functions.
29672         (main): Accept additional argument. Invoke fill_org_wbp,
29673         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
29674         output_wbrk_tables.
29675         * modules/gen-uni-tables (Description): Update.
29676         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
29677         gen-uni-tables.
29678
29679         New module 'uniwbrk/base'.
29680         * modules/uniwbrk/base: New file.
29681         * lib/uniwbrk.h: New file.
29682
29683 2009-02-08  Bruno Haible  <bruno@clisp.org>
29684
29685         Update to Unicode 5.1.0.
29686         * lib/gen-uni-tables.c (is_property_alphabetic): Include
29687         U+2185..U+2188.
29688         (is_property_default_ignorable_code_point): Don't include characters
29689         of category Cc or Cs and not-a-characters.
29690         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
29691         U+0D79, U+109E, U+109F, U+A60C.
29692         * lib/unictype/bidi_of.h: Regenerated.
29693         * lib/unictype/blocks.h: Regenerated.
29694         * lib/unictype/categ_C.h: Regenerated.
29695         * lib/unictype/categ_Cf.h: Regenerated.
29696         * lib/unictype/categ_Cn.h: Regenerated.
29697         * lib/unictype/categ_L.h: Regenerated.
29698         * lib/unictype/categ_Ll.h: Regenerated.
29699         * lib/unictype/categ_Lm.h: Regenerated.
29700         * lib/unictype/categ_Lo.h: Regenerated.
29701         * lib/unictype/categ_Lu.h: Regenerated.
29702         * lib/unictype/categ_M.h: Regenerated.
29703         * lib/unictype/categ_Mc.h: Regenerated.
29704         * lib/unictype/categ_Me.h: Regenerated.
29705         * lib/unictype/categ_Mn.h: Regenerated.
29706         * lib/unictype/categ_N.h: Regenerated.
29707         * lib/unictype/categ_Nd.h: Regenerated.
29708         * lib/unictype/categ_Nl.h: Regenerated.
29709         * lib/unictype/categ_No.h: Regenerated.
29710         * lib/unictype/categ_P.h: Regenerated.
29711         * lib/unictype/categ_Pd.h: Regenerated.
29712         * lib/unictype/categ_Pe.h: Regenerated.
29713         * lib/unictype/categ_Pf.h: Regenerated.
29714         * lib/unictype/categ_Pi.h: Regenerated.
29715         * lib/unictype/categ_Po.h: Regenerated.
29716         * lib/unictype/categ_Ps.h: Regenerated.
29717         * lib/unictype/categ_S.h: Regenerated.
29718         * lib/unictype/categ_Sk.h: Regenerated.
29719         * lib/unictype/categ_Sm.h: Regenerated.
29720         * lib/unictype/categ_So.h: Regenerated.
29721         * lib/unictype/categ_of.h: Regenerated.
29722         * lib/unictype/combining.h: Regenerated.
29723         * lib/unictype/ctype_alnum.h: Regenerated.
29724         * lib/unictype/ctype_alpha.h: Regenerated.
29725         * lib/unictype/ctype_graph.h: Regenerated.
29726         * lib/unictype/ctype_lower.h: Regenerated.
29727         * lib/unictype/ctype_print.h: Regenerated.
29728         * lib/unictype/ctype_punct.h: Regenerated.
29729         * lib/unictype/ctype_upper.h: Regenerated.
29730         * lib/unictype/decdigit.h: Regenerated.
29731         * lib/unictype/digit.h: Regenerated.
29732         * lib/unictype/mirror.h: Regenerated.
29733         * lib/unictype/numeric.h: Regenerated.
29734         * lib/unictype/pr_alphabetic.h: Regenerated.
29735         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
29736         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
29737         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
29738         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
29739         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
29740         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
29741         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
29742         * lib/unictype/pr_combining.h: Regenerated.
29743         * lib/unictype/pr_dash.h: Regenerated.
29744         * lib/unictype/pr_decimal_digit.h: Regenerated.
29745         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
29746         * lib/unictype/pr_deprecated.h: Regenerated.
29747         * lib/unictype/pr_diacritic.h: Regenerated.
29748         * lib/unictype/pr_extender.h: Regenerated.
29749         * lib/unictype/pr_format_control.h: Regenerated.
29750         * lib/unictype/pr_grapheme_base.h: Regenerated.
29751         * lib/unictype/pr_grapheme_extend.h: Regenerated.
29752         * lib/unictype/pr_grapheme_link.h: Regenerated.
29753         * lib/unictype/pr_id_continue.h: Regenerated.
29754         * lib/unictype/pr_id_start.h: Regenerated.
29755         * lib/unictype/pr_ideographic.h: Regenerated.
29756         * lib/unictype/pr_ignorable_control.h: Regenerated.
29757         * lib/unictype/pr_lowercase.h: Regenerated.
29758         * lib/unictype/pr_math.h: Regenerated.
29759         * lib/unictype/pr_numeric.h: Regenerated.
29760         * lib/unictype/pr_other_alphabetic.h: Regenerated.
29761         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
29762         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
29763         * lib/unictype/pr_other_id_continue.h: Regenerated.
29764         * lib/unictype/pr_other_lowercase.h: Regenerated.
29765         * lib/unictype/pr_other_math.h: Regenerated.
29766         * lib/unictype/pr_punctuation.h: Regenerated.
29767         * lib/unictype/pr_sentence_terminal.h: Regenerated.
29768         * lib/unictype/pr_soft_dotted.h: Regenerated.
29769         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
29770         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
29771         * lib/unictype/pr_unified_ideograph.h: Regenerated.
29772         * lib/unictype/pr_uppercase.h: Regenerated.
29773         * lib/unictype/pr_xid_continue.h: Regenerated.
29774         * lib/unictype/pr_xid_start.h: Regenerated.
29775         * lib/unictype/pr_zero_width.h: Regenerated.
29776         * lib/unictype/scripts.h: Regenerated.
29777         * lib/unictype/scripts_byname.gperf: Regenerated.
29778         * lib/unictype/sy_java_ident.h: Regenerated.
29779         * lib/unilbrk/lbrkprop1.h: Regenerated.
29780         * lib/unilbrk/lbrkprop2.h: Regenerated.
29781         * tests/unictype/test-categ_C.c: Regenerated.
29782         * tests/unictype/test-categ_Cf.c: Regenerated.
29783         * tests/unictype/test-categ_Cn.c: Regenerated.
29784         * tests/unictype/test-categ_L.c: Regenerated.
29785         * tests/unictype/test-categ_Ll.c: Regenerated.
29786         * tests/unictype/test-categ_Lm.c: Regenerated.
29787         * tests/unictype/test-categ_Lo.c: Regenerated.
29788         * tests/unictype/test-categ_Lu.c: Regenerated.
29789         * tests/unictype/test-categ_M.c: Regenerated.
29790         * tests/unictype/test-categ_Mc.c: Regenerated.
29791         * tests/unictype/test-categ_Me.c: Regenerated.
29792         * tests/unictype/test-categ_Mn.c: Regenerated.
29793         * tests/unictype/test-categ_N.c: Regenerated.
29794         * tests/unictype/test-categ_Nd.c: Regenerated.
29795         * tests/unictype/test-categ_Nl.c: Regenerated.
29796         * tests/unictype/test-categ_No.c: Regenerated.
29797         * tests/unictype/test-categ_P.c: Regenerated.
29798         * tests/unictype/test-categ_Pd.c: Regenerated.
29799         * tests/unictype/test-categ_Pe.c: Regenerated.
29800         * tests/unictype/test-categ_Pf.c: Regenerated.
29801         * tests/unictype/test-categ_Pi.c: Regenerated.
29802         * tests/unictype/test-categ_Po.c: Regenerated.
29803         * tests/unictype/test-categ_Ps.c: Regenerated.
29804         * tests/unictype/test-categ_S.c: Regenerated.
29805         * tests/unictype/test-categ_Sk.c: Regenerated.
29806         * tests/unictype/test-categ_Sm.c: Regenerated.
29807         * tests/unictype/test-categ_So.c: Regenerated.
29808         * tests/unictype/test-ctype_alnum.c: Regenerated.
29809         * tests/unictype/test-ctype_alpha.c: Regenerated.
29810         * tests/unictype/test-ctype_graph.c: Regenerated.
29811         * tests/unictype/test-ctype_lower.c: Regenerated.
29812         * tests/unictype/test-ctype_print.c: Regenerated.
29813         * tests/unictype/test-ctype_punct.c: Regenerated.
29814         * tests/unictype/test-ctype_upper.c: Regenerated.
29815         * tests/unictype/test-decdigit.h: Regenerated.
29816         * tests/unictype/test-digit.h: Regenerated.
29817         * tests/unictype/test-numeric.h: Regenerated.
29818         * tests/unictype/test-pr_alphabetic.c: Regenerated.
29819         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
29820         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
29821         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
29822         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
29823         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
29824         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
29825         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
29826         * tests/unictype/test-pr_combining.c: Regenerated.
29827         * tests/unictype/test-pr_dash.c: Regenerated.
29828         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
29829         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
29830         * tests/unictype/test-pr_deprecated.c: Regenerated.
29831         * tests/unictype/test-pr_diacritic.c: Regenerated.
29832         * tests/unictype/test-pr_extender.c: Regenerated.
29833         * tests/unictype/test-pr_format_control.c: Regenerated.
29834         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
29835         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
29836         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
29837         * tests/unictype/test-pr_id_continue.c: Regenerated.
29838         * tests/unictype/test-pr_id_start.c: Regenerated.
29839         * tests/unictype/test-pr_ideographic.c: Regenerated.
29840         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
29841         * tests/unictype/test-pr_lowercase.c: Regenerated.
29842         * tests/unictype/test-pr_math.c: Regenerated.
29843         * tests/unictype/test-pr_numeric.c: Regenerated.
29844         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
29845         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
29846         Regenerated.
29847         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
29848         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
29849         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
29850         * tests/unictype/test-pr_other_math.c: Regenerated.
29851         * tests/unictype/test-pr_punctuation.c: Regenerated.
29852         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
29853         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
29854         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
29855         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
29856         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
29857         * tests/unictype/test-pr_uppercase.c: Regenerated.
29858         * tests/unictype/test-pr_xid_continue.c: Regenerated.
29859         * tests/unictype/test-pr_xid_start.c: Regenerated.
29860         * tests/unictype/test-pr_zero_width.c: Regenerated.
29861
29862         Update to Unicode 5.1.0.
29863         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
29864         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
29865         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
29866         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
29867         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
29868         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
29869         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
29870         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
29871         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
29872         (nonspacing_table_ind): Update.
29873         * tests/uniwidth/test-uc_width2.sh: Update expected result.
29874
29875         Update to Unicode 5.1.0.
29876         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
29877         code transform.
29878         * lib/uniname/uniname.c (unicode_character_name,
29879         unicode_name_character): Add the range 0x1Fxxx to the code transform.
29880         * lib/uniname/uninames.h: Regenerated.
29881         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
29882
29883 2009-02-07  Bruno Haible  <bruno@clisp.org>
29884
29885         Merge gen-ctype and gen-lbrk into a single program.
29886         * lib/gen-uni-tables.c: New file, incorporating
29887         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
29888         Add directory prefixes to the names of the generated files.
29889         * lib/unictype/gen-ctype.c: Remove file.
29890         * lib/unilbrk/gen-lbrk.c: Remove file.
29891         * modules/gen-uni-tables: New file.
29892         * modules/unictype/gen-ctype: Remove file.
29893         * modules/unilbrk/gen-lbrk: Remove file.
29894
29895 2009-02-07  Bruno Haible  <bruno@clisp.org>
29896
29897         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
29898
29899         New module 'unistr/u32-strcoll'.
29900         * modules/unistr/u32-strcoll: New file.
29901         * lib/unistr/u32-strcoll.c: New file.
29902
29903         New module 'unistr/u16-strcoll'.
29904         * modules/unistr/u16-strcoll: New file.
29905         * lib/unistr/u16-strcoll.c: New file.
29906
29907         New module 'unistr/u8-strcoll'.
29908         * modules/unistr/u8-strcoll: New file.
29909         * lib/unistr/u8-strcoll.c: New file.
29910         * lib/unistr/u-strcoll.h: New file.
29911
29912 2009-02-07  Bruno Haible  <bruno@clisp.org>
29913
29914         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
29915         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29916         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29917         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
29918         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
29919         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
29920
29921 2009-02-07  Bruno Haible  <bruno@clisp.org>
29922
29923         Make 64-bit clean.
29924         * lib/unictype/gen-ctype.c (output_predicate, output_category,
29925         output_combclass, output_bidi_category, output_decimal_digit,
29926         output_digit, output_numeric, output_mirror, output_scripts,
29927         output_ident_category): Use proper width specifier in format strings.
29928
29929 2009-02-07  Bruno Haible  <bruno@clisp.org>
29930
29931         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
29932         failure behaviour.
29933
29934 2009-02-07  Jim Meyering  <meyering@redhat.com>
29935
29936         regex: avoid compilation failure with upcoming gcc-4.4
29937         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
29938         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
29939         "... error: integer overflow in preprocessor expression".
29940
29941 2009-02-05  Ben Pfaff  <blp@gnu.org>
29942
29943         Fix link errors on Windows when close module is used.
29944         * modules/close: Add $(LIB_CLOSE) to Link section.
29945         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
29946         $(LIB_CLOSE) on Windows.
29947
29948 2009-02-05  Jim Meyering  <meyering@redhat.com>
29949
29950         still avoid unused-parameter warnings, but do it cleanly
29951         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
29952         (get_fs_usage): Cast to void instead.
29953         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
29954         (dev_from_mount_options, read_file_system_list): Cast to void.
29955         Prompted by Bruno Haible.
29956
29957 2009-02-04  Jim Meyering  <meyering@redhat.com>
29958
29959         fsusage.c: correct copyright year
29960         * lib/fsusage.c: Reflect year in which the change is pushed into
29961
29962         avoid misc. warnings
29963         * lib/fsusage.c (UNUSED_PARAM): Define.
29964         (get_fs_usage): Mark parameter "disk" as unused.
29965         * lib/getugroups.c (getgrent): Use "void" in prototype.
29966         * lib/mountlist.c: Mark unused parameters.
29967         (read_file_system_list): Declare a local with "const".
29968         * lib/nanosleep.c (getnow): Declare static.
29969         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
29970
29971         dirfd: set errno upon failure
29972         * lib/dirfd.c: Include <errno.h>.
29973         Set errno to ENOTSUP when returning -1.
29974         * modules/dirfd (Depends-on): Add errno.
29975         Suggested by John Kodis <kodis@comcast.net>.
29976
29977 2009-02-01  Bruno Haible  <bruno@clisp.org>
29978
29979         Don't assume sizeof (long) >= sizeof (void *).
29980         * lib/memcmp.c: Include stdint.h.
29981         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
29982         srcp2 to 'const byte *'.
29983         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
29984         types to uintptr_t.
29985         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
29986         * modules/memcmp (Depends-on): Add stdint.
29987         Reported by Ozkan Sezer <sezeroz@gmail.com>.
29988
29989 2009-01-30  Eric Blake  <ebb9@byu.net>
29990
29991         fix more require-before-expand issues
29992         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
29993         expand, AC_PROG_AWK.
29994         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
29995
29996 2009-01-28  Eric Blake  <ebb9@byu.net>
29997
29998         version-etc: use consistent URL formatting
29999         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30000         Improve formatting.  Use fputs for string without %.
30001
30002 2009-01-28  Jim Meyering  <meyering@redhat.com>
30003
30004         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30005         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30006         "underquoted definition of NAME" from autoconf-2.59.
30007
30008 2009-01-28  Bruno Haible  <bruno@clisp.org>
30009
30010         * doc/gnulib.texi: Add "Obsolete modules" to index.
30011
30012 2009-01-28  Jim Meyering  <meyering@redhat.com>
30013
30014         useless-if-before-free: recognize more variants
30015         * build-aux/useless-if-before-free: Also recognize e.g.,
30016         if (NULL != p) free (p);
30017
30018 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30019
30020         test-getaddrinfo: skip (don't fail) this test when there's no network
30021         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30022         on the presumption that it means you lack network access.
30023
30024 2009-01-26  Jim Meyering  <meyering@redhat.com>
30025
30026         fflush: avoid warnings on modern systems
30027         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30028         pos and result, into scopes where they're used.
30029
30030 2009-01-26  Eric Blake  <ebb9@byu.net>
30031
30032         Silence warning reintroduced by recent extensions patch.
30033         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30034         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30035         autoconf.
30036
30037         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30038         * m4/00gnulib.m4: New file.
30039         * gnulib-tool (func_get_filelist): Always use it.
30040         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30041         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30042
30043 2009-01-25  Bruno Haible  <bruno@clisp.org>
30044
30045         Make test-quotearg work on MacOS X and AIX.
30046         * tests/test-quotearg.sh: New file.
30047         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30048         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30049         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30050         include <libintl.h>.
30051         (fake_locale): Remove variable.
30052         (gettext, dgettext, dcgettext): Remove functions.
30053         (main): Instead of setting a fake locale, set a real locale. Call
30054         textdomain and bindtextdomain.
30055         * modules/quotearg-tests (Files): Add the new files.
30056         (Depends-on): Add gettext, setenv, unsetenv.
30057         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30058         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30059         Augment TESTS_ENVIRONMENT.
30060
30061 2009-01-25  Bruno Haible  <bruno@clisp.org>
30062
30063         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30064         fr_FR.ISO8859-1 locale on MacOS X.
30065         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30066         ja_JP.eucJP locale on MacOS X.
30067         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30068         zh_CN.GB18030 locale on MacOS X.
30069
30070 2009-01-25  Bruno Haible  <bruno@clisp.org>
30071
30072         Avoid link errors on MacOS X 10.3.
30073         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30074         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30075
30076 2009-01-25  Bruno Haible  <bruno@clisp.org>
30077
30078         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30079         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30080         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30081         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30082         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30083         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30084         posix_spawnattr_init, posix_spawnattr_setsigmask,
30085         posix_spawnattr_setflags, posix_spawnattr_destroy.
30086
30087         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30088         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30089         * modules/execute (Files): Remove m4/posix_spawn.m4.
30090         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30091         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30092         posix_spawnattr_init, posix_spawnattr_setsigmask,
30093         posix_spawnattr_setflags, posix_spawnattr_destroy.
30094
30095 2009-01-25  Bruno Haible  <bruno@clisp.org>
30096
30097         * lib/glthread/threadlib.c: Include <stdlib.h>.
30098
30099 2009-01-25  Bruno Haible  <bruno@clisp.org>
30100
30101         * lib/glthread/threadlib.c (dummy): New declaration.
30102
30103 2009-01-25  Bruno Haible  <bruno@clisp.org>
30104
30105         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30106         multibyte characters also for the GB18030 encoding. Don't crash when
30107         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30108
30109 2009-01-25  Bruno Haible  <bruno@clisp.org>
30110
30111         Avoid redefining 'struct random_data' on OSF/1 5.1.
30112         * lib/stdlib.in.h: Include <random.h> if it exists.
30113         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30114         HAVE_RANDOM_H. Include <random.h> when testing whether
30115         'struct random_data' exists.
30116         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30117
30118 2009-01-25  Bruno Haible  <bruno@clisp.org>
30119
30120         Don't install charset.alias on MacOS X >= 10.3.
30121         * lib/localcharset.c (DARWIN7): New macro.
30122         (get_charset_aliases): Hardcode the result for Darwin7.
30123         * modules/localcharset (install-exec-local): Don't install
30124         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30125
30126 2009-01-25  Bruno Haible  <bruno@clisp.org>
30127
30128         Don't install charset.alias on mingw and Cygwin.
30129         * modules/localcharset (install-exec-local): Don't install
30130         charset.alias on mingw and Cygwin, if the file does not yet exist.
30131         The result for these platforms is hardcoded in localcharset.c.
30132
30133 2009-01-25  Bruno Haible  <bruno@clisp.org>
30134
30135         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30136         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30137         before requiring AC_USE_SYSTEM_EXTENSIONS.
30138
30139 2009-01-25  Jim Meyering  <meyering@redhat.com>
30140
30141         c-strtod: avoid warnings
30142         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30143         "assignment discards qualifiers from pointer target type" warnings.
30144
30145 2009-01-24  Bruno Haible  <bruno@clisp.org>
30146
30147         Add support for non-UTF-8 locales on MacOS X.
30148         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30149         canonical encodings. For Darwin 7 and newer, don't map traditional
30150         encodings to UTF-8.
30151         Reported by Vincent Lefevre <vincent@vinc17.org>
30152         at <http://savannah.gnu.org/bugs/?25235>.
30153
30154 2009-01-24  Bruno Haible  <bruno@clisp.org>
30155
30156         * doc/gnulib.texi (Obsolete modules): New section.
30157         Reported by Mike Frysinger <vapier@gentoo.org>.
30158
30159 2009-01-24  Bruno Haible  <bruno@clisp.org>
30160
30161         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30162         (%.dvi): New rule.
30163
30164 2009-01-24  Bruno Haible  <bruno@clisp.org>
30165
30166         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30167         Reported by Eric Blake.
30168
30169 2009-01-24  Bruno Haible  <bruno@clisp.org>
30170
30171         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30172         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30173         Reported by Gary V. Vaughan <gary@gnu.org>.
30174
30175 2009-01-24  Bruno Haible  <bruno@clisp.org>
30176
30177         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30178
30179 2009-01-23  Bruno Haible  <bruno@clisp.org>
30180
30181         Make c-strtod, c-strtold usable in libraries.
30182         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30183         (C_STRTOD): Call strdup instead of xstrdup.
30184         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30185         * modules/c-strtold (Depends-on): Likewise.
30186         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30187         * NEWS: Mention the change.
30188         Reported by Michael Gold <mgold@ncf.ca>.
30189
30190 2009-01-23  Jim Meyering  <meyering@redhat.com>
30191
30192         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30193         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30194         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30195
30196 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30197
30198         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30199         GNU CoreUtils.
30200         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30201         * modules/version-etc (Description): Update.
30202
30203 2009-01-22  Bruno Haible  <bruno@clisp.org>
30204
30205         Cache the C locale object.
30206         * lib/c-strtod.c (c_locale_cache): New variable.
30207         (c_locale): New function.
30208         (C_STRTOD): Use it, and don't call freelocale.
30209         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30210         Suggested by Paolo Bonzini.
30211
30212 2009-01-21  Bruno Haible  <bruno@clisp.org>
30213
30214         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30215         conditions other than overflow.
30216
30217 2009-01-21  Bruno Haible  <bruno@clisp.org>
30218
30219         * lib/c-strtod.c: Include errno.h.
30220         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30221         value from STRTOD_L and STRTOD.
30222
30223 2009-01-21  Bruno Haible  <bruno@clisp.org>
30224         and Jim Meyering  <meyering@redhat.com>
30225
30226         nanosleep: skip configure test (fail it) for apple universal builds
30227         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30228         universal builds, assume that nanosleep does not work.
30229         * modules/nanosleep (Depends-on): Add multiarch.
30230
30231         mktime: skip configure test (fail it) for apple universal builds
30232         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30233         universal builds, assume that mktime does not work.
30234         * modules/mktime (Depends-on): Add multiarch.
30235
30236 2009-01-21  Eric Blake  <ebb9@byu.net>
30237
30238         multiarch: avoid expand-before-require warning
30239         * modules/multiarch (configure.ac): Require, rather than expand,
30240         gl_MULTIARCH.
30241         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30242         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30243         enforce that all clients require it.  Partial reversion of
30244         2008-12-29 patch.
30245
30246         error: avoid expand-before-require warning
30247         * modules/errno (configure.ac): Require, rather than expand,
30248         gl_HEADER_ERRNO_H.
30249         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30250         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30251         enforce that all clients require it.
30252
30253         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30254         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30255         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30256         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30257
30258 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30259
30260         Revert:
30261         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30262
30263         regex: do not depend on obsolete modules.
30264         * modules/regex: Remove memcmp and memmove.
30265
30266 2009-01-20  Bruno Haible  <bruno@clisp.org>
30267
30268         Make the 'link' module link on Windows NT 4.
30269         * lib/link.c (_WIN32_WINNT): Don't define.
30270         (CreateHardLinkFuncType): New type.
30271         (CreateHardLinkFunc, initialized): New variables.
30272         (initialize): New function.
30273         (link): Invoke CreateHardLink indirectly through the function pointer.
30274
30275 2009-01-20  Bruno Haible  <bruno@clisp.org>
30276
30277         Fix compilation failure on mingw.
30278         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30279
30280 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30281
30282         * doc/c-strtod.texi: Mention a couple of restrictions.
30283
30284 2009-01-20  Jim Meyering  <meyering@redhat.com>
30285
30286         gettimeofday: move more declarations out of functions
30287         * lib/gettimeofday.c: Move extern declarations of tzset and
30288         gmtime out of containing functions.  Prompted by Bruno Haible.
30289
30290 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30291
30292         regex: do not depend on obsolete modules.
30293         * modules/regex: Remove memcmp and memmove.
30294
30295 2009-01-19  Bruno Haible  <bruno@clisp.org>
30296
30297         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30298         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30299         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30300         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30301         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30302
30303 2009-01-19  Bruno Haible  <bruno@clisp.org>
30304
30305         * tests/test-link.c: Include <errno.h>.
30306         (main): Exit with code 77 when a hard link cannot be created due to
30307         the file system.
30308         * tests/test-link.sh: Skip test when a hard link cannot be created due
30309         to the file system.
30310         Suggested by Eric Blake.
30311
30312 2009-01-19  Martin Lambers  <marlam@marlam.de>
30313
30314         * modules/link-tests: New file.
30315         * tests/test-link.sh: New file.
30316         * tests/test-link.c: New file.
30317
30318 2009-01-19  Eric Blake  <ebb9@byu.net>
30319
30320         doc: mention another function added in cygwin 1.7.0
30321         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30322         Another new function in cygwin 1.7.
30323
30324 2009-01-19  Bruno Haible  <bruno@clisp.org>
30325
30326         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30327         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30328         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30329         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30330         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30331         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30332         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30333         * m4/md4.m4 (gl_MD4): Likewise.
30334         * m4/md5.m4 (gl_MD5): Likewise.
30335         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30336         * m4/sha1.m4 (gl_SHA1): Likewise.
30337         * m4/sha256.m4 (gl_SHA256): Likewise.
30338         * m4/sha512.m4 (gl_SHA512): Likewise.
30339
30340 2009-01-19  Bruno Haible  <bruno@clisp.org>
30341
30342         * modules/uniname/uniname-tests (Depends-on): Add progname.
30343         * tests/uniname/test-uninames.c: Include progname.h.
30344         (main): Call set_program_name.
30345
30346         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30347         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30348         (main): Call set_program_name.
30349
30350         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
30351         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
30352         (main): Call set_program_name.
30353
30354         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30355         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30356         (main): Call set_program_name.
30357
30358         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30359         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30360         (main): Call set_program_name.
30361
30362         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30363         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30364         (main): Call set_program_name.
30365
30366         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30367         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30368         (main): Call set_program_name.
30369
30370         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30371         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30372         (main): Call set_program_name.
30373
30374         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30375         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30376         (main): Call set_program_name.
30377
30378 2009-01-19  Eric Blake  <ebb9@byu.net>
30379
30380         test-unistd: test previous patch
30381         * tests/test-unistd.c: Test *_FILENO macros.
30382
30383         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30384         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30385         Guarantee a definition.
30386         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30387         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30388         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30389         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30390         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30391         Likewise.
30392         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30393         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30394         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30395         Likewise.
30396         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30397         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30398         (STDERR_FILENO): Likewise.
30399         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30400         (STDERR_FILENO): Likewise.
30401         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30402         (STDERR_FILENO): Likewise.
30403         Reported by Elbert Pol.
30404
30405 2009-01-19  Eric Blake  <ebb9@byu.net>
30406
30407         doc: mention more functions added in cygwin 1.7.0
30408         * doc/posix-functions/abort.texi (abort): Update wording related
30409         to cygwin.
30410         * doc/posix-functions/daylight.texi (daylight): Likewise.
30411         * doc/posix-functions/optarg.texi (optarg): Likewise.
30412         * doc/posix-functions/optarg.texi (opterr): Likewise.
30413         * doc/posix-functions/optarg.texi (optind): Likewise.
30414         * doc/posix-functions/optarg.texi (optopt): Likewise.
30415         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30416         worked in 1.5.x, and was withdrawn in 1.7.
30417         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30418         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
30419         cygwin versions.
30420         * doc/posix-functions/perror.texi (perror): Likewise.
30421         * doc/posix-functions/printf.texi (printf): Likewise.
30422         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
30423         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
30424         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30425         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30426         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30427         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
30428         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30429         Likewise.
30430         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30431         Likewise.
30432         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
30433         this function.
30434         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
30435         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
30436         Likewise.
30437         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
30438         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
30439         * doc/posix-functions/confstr.texi (confstr): Likewise.
30440         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
30441         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
30442         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
30443         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
30444         * doc/posix-functions/fputws.texi (fputws): Likewise.
30445         * doc/posix-functions/fwide.texi (fwide): Likewise.
30446         * doc/posix-functions/getwc.texi (getwc): Likewise.
30447         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
30448         * doc/posix-functions/putwc.texi (putwc): Likewise.
30449         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
30450         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
30451         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
30452         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
30453         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
30454         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
30455         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
30456         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
30457         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
30458         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
30459         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
30460
30461 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30462
30463         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
30464         * lib/ioctl.c: Include <sys/ioctl.h>.
30465
30466 2009-01-19  Simon Josefsson  <simon@josefsson.org>
30467
30468         * modules/getdate-tests (Depends-on): Add progname.
30469         * tests/test-getdate.c: Use progname module, to avoid link errors
30470         on non-glibc systems.
30471
30472 2009-01-18  Simon Josefsson  <simon@josefsson.org>
30473
30474         * modules/filenamecat-tests (Depends-on): Add progname.
30475         * modules/fstrcmp-tests (Depends-on): Likewise.
30476
30477         * tests/test-filenamecat.c: Use progname module, to avoid link
30478         errors on non-glibc systems.
30479         * tests/test-fstrcmp.c: Likewise.
30480
30481 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30482
30483         gettimeofday: avoid warning: nested extern declaration of 'localtime'
30484         * lib/gettimeofday.c: Move extern declaration out of function.
30485
30486 2009-01-18  Bruno Haible  <bruno@clisp.org>
30487
30488         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
30489         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
30490         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
30491
30492 2009-01-18  Bruno Haible  <bruno@clisp.org>
30493
30494         * lib/strftime.c (MEMPCPY): Remove unused macro.
30495         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
30496
30497 2009-01-18  Martin Lambers  <marlam@marlam.de>
30498
30499         New module 'link'.
30500         * lib/unistd.in.h (link): New declaration.
30501         * lib/link.c: New file.
30502         * m4/link.m4: New file.
30503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
30504         HAVE_LINK.
30505         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
30506         * modules/link: New file.
30507         * doc/posix-functions/link.texi: Mention the new module.
30508
30509 2009-01-18  Bruno Haible  <bruno@clisp.org>
30510
30511         * tests/test-avltree_list.c (main): Call set_program_name.
30512         * tests/test-avltree_oset.c (main): Likewise.
30513         * tests/test-obstack-printf.c: Include progname.h.
30514         (main): Call set_program_name.
30515         * tests/test-quotearg.c: Include progname.h.
30516         (main): Call set_program_name.
30517         * tests/test-xmemdup0.c: Include progname.h.
30518         (main): Call set_program_name.
30519
30520 2009-01-18  Bruno Haible  <bruno@clisp.org>
30521
30522         New module 'alphasort'.
30523         * lib/dirent.in.h (alphasort): New declaration.
30524         * lib/alphasort.c: New file, from glibc with modifications.
30525         * m4/alphasort.m4: New file.
30526         * modules/alphasort: New file.
30527         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
30528         HAVE_ALPHASORT.
30529         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
30530         HAVE_ALPHASORT.
30531         * doc/posix-functions/alphasort.texi: Mention the new module and the
30532         portability problems.
30533
30534 2009-01-18  Bruno Haible  <bruno@clisp.org>
30535
30536         New module 'scandir'.
30537         * lib/dirent.in.h (scandir): New declaration.
30538         * lib/scandir.c: New file, from glibc with modifications.
30539         * m4/scandir.m4: New file.
30540         * modules/scandir: New file.
30541         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
30542         HAVE_SCANDIR.
30543         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
30544         HAVE_SCANDIR.
30545         * doc/posix-functions/scandir.texi: Mention the new module and the
30546         portability problems.
30547
30548 2009-01-17  Bruno Haible  <bruno@clisp.org>
30549
30550         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
30551         Update documentation.
30552         (func_remove_suffix): Escape all dots in the suffix. Update
30553         documentation.
30554         (func_filter_filelist): Update documentation.
30555         Reported by Ralf Wildenhues.
30556
30557 2009-01-17  Bruno Haible  <bruno@clisp.org>
30558
30559         * modules/dprintf-posix-tests: New file.
30560         * tests/test-dprintf-posix.sh: New file.
30561         * tests/test-dprintf-posix.c: New file.
30562
30563         New modules 'dprintf', 'dprintf-posix'.
30564         * lib/stdio.in.h (dprintf): New declaration.
30565         * lib/dprintf.c: New file.
30566         * m4/dprintf.m4: New file.
30567         * m4/dprintf-posix.m4: New file.
30568         * modules/dprintf: New file.
30569         * modules/dprintf-posix: New file.
30570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
30571         HAVE_DPRINTF, REPLACE_DPRINTF.
30572         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
30573         HAVE_DPRINTF, REPLACE_DPRINTF.
30574         * doc/posix-functions/dprintf.texi: Mention the new modules.
30575
30576 2009-01-17  Bruno Haible  <bruno@clisp.org>
30577
30578         * modules/vdprintf-posix-tests: New file.
30579         * tests/test-vdprintf-posix.sh: New file.
30580         * tests/test-vdprintf-posix.c: New file.
30581
30582         New modules 'vdprintf', 'vdprintf-posix'.
30583         * lib/stdio.in.h (vdprintf): New declaration.
30584         * lib/vdprintf.c: New file.
30585         * m4/vdprintf.m4: New file.
30586         * m4/vdprintf-posix.m4: New file.
30587         * modules/vdprintf: New file.
30588         * modules/vdprintf-posix: New file.
30589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
30590         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30591         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
30592         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30593         * doc/posix-functions/vdprintf.texi: Mention the new modules.
30594
30595 2009-01-17  Bruno Haible  <bruno@clisp.org>
30596
30597         Fix replacement of fopen on mingw.
30598         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
30599         mingw.
30600
30601 2009-01-17  Bruno Haible  <bruno@clisp.org>
30602
30603         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
30604         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
30605
30606 2009-01-17  Bruno Haible  <bruno@clisp.org>
30607
30608         Avoid test-fflush2.sh failure on mingw.
30609         * tests/test-fflush2.c: Include binary-io.h.
30610         (main): Put standard input into binary mode.
30611         * modules/fflush-tests (Depends-on): Add binary-io.
30612
30613 2009-01-17  Bruno Haible  <bruno@clisp.org>
30614
30615         * lib/wchar.in.h: In another particular situation, include only the
30616         system's <wchar.h> file.
30617         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
30618         Reported by Albert Chin-A-Young <china@thewrittenword.com>
30619         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
30620
30621 2009-01-17  Bruno Haible  <bruno@clisp.org>
30622
30623         Support for stripping executables in --enable-relocatable.
30624         * build-aux/install-reloc: Expect one more argument, or an environment
30625         variable RELOC_STRIP_PROG. If set, strip the destination program and
30626         its wrapper.
30627         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
30628         RELOC_STRIP_PROG.
30629         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
30630         to set RELOCATABLE_STRIP.
30631         * NEWS: Mention the new Makefile requirement.
30632
30633 2009-01-17  Bruno Haible  <bruno@clisp.org>
30634
30635         * build-aux/install-reloc: Remove debugging information left over by
30636         C compiler on MacOS X.
30637
30638 2009-01-17  Bruno Haible  <bruno@clisp.org>
30639
30640         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
30641         * lib/progreloc.c (find_executable): Fix type of pointer passed to
30642         _NSGetExecutablePath.
30643
30644 2009-01-16  Jim Meyering  <meyering@redhat.com>
30645
30646         strerror: avoid warnings about discarding "const"
30647         * lib/strerror.c (rpl_strerror): Instead of returning a const
30648         string from each and every "case", use a variable, and add a single
30649         cast after the switch.
30650
30651 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
30652
30653         * lib/arpa_inet.in.h: Add extern "C" block for C++.
30654
30655 2009-01-16  Bruno Haible  <bruno@clisp.org>
30656
30657         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
30658         array initializer syntax that also works in C++ mode.
30659         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30660
30661 2009-01-16  Jim Meyering  <meyering@redhat.com>
30662
30663         poll: suppress a warning
30664         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
30665         to ignore "...unsigned expression < 0 is always false" warnings.
30666
30667 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
30668
30669         poll: remove declarations of unused variables
30670         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
30671         sockbuf and optlen.
30672
30673 2009-01-15  Bruno Haible  <bruno@clisp.org>
30674
30675         Make fflush-after-ungetc POSIX compliant on BSD systems.
30676         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
30677         (clear_ungetc_buffer): Implement also for other systems.
30678         (rpl_fflush): On glibc systems, invoke
30679         clear_ungetc_buffer_preserving_position. Otherwise, invoke
30680         clear_ungetc_buffer after fetching the stream's position, not before.
30681
30682 2009-01-15  Bruno Haible  <bruno@clisp.org>
30683
30684         Make fflush-after-ungetc POSIX compliant on glibc systems.
30685         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
30686         after ungetc.
30687         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
30688         (rpl_fflush): On glibc systems, simply call the system's fflush
30689         function after clearing the ungetc buffer.
30690         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
30691         Instead, lseek only to the end of file, then use the system's fseeko
30692         for the rest. On glibc systems, reset the EOF indicator bit.
30693
30694 2009-01-15  Jim Meyering  <meyering@redhat.com>
30695
30696         openmp.m4: revert quote-adding change, for portability to older autoconf
30697         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
30698         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
30699         Simon Josefsson noticed the problem when using autoconf-2.61.
30700
30701 2009-01-15  Bruno Haible  <bruno@clisp.org>
30702
30703         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
30704         * tests/test-fflush2.c (ASSERT): Always fail.
30705         (main): Add two tests for fflush() after ungetc(), taking into account
30706         the Austin Group's clarification.
30707         Suggested by Eric Blake.
30708
30709 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
30710
30711         mktime.m4: remove K&R-style function prototypes
30712         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
30713         for the Sun C++ compiler.
30714
30715 2009-01-14  Bruno Haible  <bruno@clisp.org>
30716
30717         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
30718         while including <wchar.h>.
30719         * lib/wchar.in.h: In two particular situations on HP-UX, include only
30720         the system's <wchar.h> file.
30721         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30722
30723 2009-01-14  Bruno Haible  <bruno@clisp.org>
30724
30725         * m4/csharp.m4: Don't mention gettext on the serial number line.
30726         * m4/csharpexec.m4: Likewise.
30727         * m4/eaccess.m4: Likewise.
30728         * m4/javaexec.m4: Likewise.
30729         * m4/sig_atomic_t.m4: Likewise.
30730         * m4/tmpdir.m4: Likewise.
30731         * m4/intldir.m4: Bump gettext version.
30732         * m4/lib-ld.m4: Likewise.
30733
30734 2009-01-14  Bruno Haible  <bruno@clisp.org>
30735
30736         * lib/progname.c (set_program_name): Add more comments.
30737         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30738
30739 2009-01-14  Simon Josefsson  <simon@josefsson.org>
30740
30741         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
30742         were sys/stat.h does not define it.
30743
30744 2009-01-14  Jim Meyering  <meyering@redhat.com>
30745
30746         many *.m4 files: improve m4 quoting
30747         99% of this change was performed by running the following commands:
30748         git ls-files | grep '\.m4$' | xargs perl -pi \
30749           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
30750           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30751           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30752           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
30753         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
30754         The remainder were to add Copyright dates, increment serial numbers,
30755         undo some changes in comments, exclude m4/intl.m4, and add quotes
30756         around the "1" in ",1" where the unusual spacing prohibited the
30757         above regexps from doing the job.  For more details, see
30758         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
30759         * m4/acl.m4: Modified.
30760         * m4/afs.m4: Likewise.
30761         * m4/alloca.m4: Likewise.
30762         * m4/argp.m4: Likewise.
30763         * m4/argz.m4: Likewise.
30764         * m4/atexit.m4: Likewise.
30765         * m4/bison-i18n.m4: Likewise.
30766         * m4/bison.m4: Likewise.
30767         * m4/byteswap.m4: Likewise.
30768         * m4/c-stack.m4: Likewise.
30769         * m4/c-strtod.m4: Likewise.
30770         * m4/calloc.m4: Likewise.
30771         * m4/canonicalize-lgpl.m4: Likewise.
30772         * m4/chown.m4: Likewise.
30773         * m4/clock_time.m4: Likewise.
30774         * m4/codeset.m4: Likewise.
30775         * m4/copy-file.m4: Likewise.
30776         * m4/csharp.m4: Likewise.
30777         * m4/csharpcomp.m4: Likewise.
30778         * m4/csharpexec.m4: Likewise.
30779         * m4/d-ino.m4: Likewise.
30780         * m4/d-type.m4: Likewise.
30781         * m4/dirfd.m4: Likewise.
30782         * m4/double-slash-root.m4: Likewise.
30783         * m4/eaccess.m4: Likewise.
30784         * m4/eealloc.m4: Likewise.
30785         * m4/environ.m4: Likewise.
30786         * m4/errno_h.m4: Likewise.
30787         * m4/euidaccess.m4: Likewise.
30788         * m4/execute.m4: Likewise.
30789         * m4/fatal-signal.m4: Likewise.
30790         * m4/fchdir.m4: Likewise.
30791         * m4/fcntl_h.m4: Likewise.
30792         * m4/fileblocks.m4: Likewise.
30793         * m4/filenamecat.m4: Likewise.
30794         * m4/findprog.m4: Likewise.
30795         * m4/flexmember.m4: Likewise.
30796         * m4/fnmatch.m4: Likewise.
30797         * m4/fopen.m4: Likewise.
30798         * m4/fpending.m4: Likewise.
30799         * m4/fprintf-posix.m4: Likewise.
30800         * m4/free.m4: Likewise.
30801         * m4/frexp.m4: Likewise.
30802         * m4/frexpl.m4: Likewise.
30803         * m4/fsusage.m4: Likewise.
30804         * m4/ftruncate.m4: Likewise.
30805         * m4/gc-camellia.m4: Likewise.
30806         * m4/gc-random.m4: Likewise.
30807         * m4/gc.m4: Likewise.
30808         * m4/getaddrinfo.m4: Likewise.
30809         * m4/getcwd-abort-bug.m4: Likewise.
30810         * m4/getcwd-path-max.m4: Likewise.
30811         * m4/getdate.m4: Likewise.
30812         * m4/getdomainname.m4: Likewise.
30813         * m4/getgroups.m4: Likewise.
30814         * m4/gethostname.m4: Likewise.
30815         * m4/gethrxtime.m4: Likewise.
30816         * m4/getline.m4: Likewise.
30817         * m4/getloadavg.m4: Likewise.
30818         * m4/getndelim2.m4: Likewise.
30819         * m4/getpass.m4: Likewise.
30820         * m4/gettext.m4: Likewise.
30821         * m4/gettime.m4: Likewise.
30822         * m4/gettimeofday.m4: Likewise.
30823         * m4/gnulib-common.m4: Likewise.
30824         * m4/group-member.m4: Likewise.
30825         * m4/host-os.m4: Likewise.
30826         * m4/iconv.m4: Likewise.
30827         * m4/iconv_open.m4: Likewise.
30828         * m4/inet_ntop.m4: Likewise.
30829         * m4/inet_pton.m4: Likewise.
30830         * m4/inline.m4: Likewise.
30831         * m4/intldir.m4: Likewise.
30832         * m4/intlmacosx.m4: Likewise.
30833         * m4/intmax.m4: Likewise.
30834         * m4/intmax_t.m4: Likewise.
30835         * m4/inttypes.m4: Likewise.
30836         * m4/inttypes_h.m4: Likewise.
30837         * m4/inttypes-pri.m4: Likewise.
30838         * m4/isapipe.m4: Likewise.
30839         * m4/isnand.m4: Likewise.
30840         * m4/isnanf.m4: Likewise.
30841         * m4/isnanl.m4: Likewise.
30842         * m4/javacomp.m4: Likewise.
30843         * m4/javaexec.m4: Likewise.
30844         * m4/jm-winsz1.m4: Likewise.
30845         * m4/jm-winsz2.m4: Likewise.
30846         * m4/lchown.m4: Likewise.
30847         * m4/lcmessage.m4: Likewise.
30848         * m4/ldexpl.m4: Likewise.
30849         * m4/lib-ld.m4: Likewise.
30850         * m4/lib-link.m4: Likewise.
30851         * m4/libsigsegv.m4: Likewise.
30852         * m4/link-follow.m4: Likewise.
30853         * m4/localcharset.m4: Likewise.
30854         * m4/locale-fr.m4: Likewise.
30855         * m4/locale-ja.m4: Likewise.
30856         * m4/locale-tr.m4: Likewise.
30857         * m4/locale-zh.m4: Likewise.
30858         * m4/lock.m4: Likewise.
30859         * m4/longlong.m4: Likewise.
30860         * m4/ls-mntd-fs.m4: Likewise.
30861         * m4/lstat.m4: Likewise.
30862         * m4/malloc.m4: Likewise.
30863         * m4/mathl.m4: Likewise.
30864         * m4/mbrtowc.m4: Likewise.
30865         * m4/mbstate_t.m4: Likewise.
30866         * m4/mbswidth.m4: Likewise.
30867         * m4/memchr.m4: Likewise.
30868         * m4/memcmp.m4: Likewise.
30869         * m4/memcpy.m4: Likewise.
30870         * m4/memmem.m4: Likewise.
30871         * m4/memmove.m4: Likewise.
30872         * m4/mempcpy.m4: Likewise.
30873         * m4/memrchr.m4: Likewise.
30874         * m4/memset.m4: Likewise.
30875         * m4/minmax.m4: Likewise.
30876         * m4/mkdir-slash.m4: Likewise.
30877         * m4/mkdtemp.m4: Likewise.
30878         * m4/mktime.m4: Likewise.
30879         * m4/mmap-anon.m4: Likewise.
30880         * m4/mountlist.m4: Likewise.
30881         * m4/nanosleep.m4: Likewise.
30882         * m4/nls.m4: Likewise.
30883         * m4/nocrash.m4: Likewise.
30884         * m4/open.m4: Likewise.
30885         * m4/openat.m4: Likewise.
30886         * m4/openmp.m4: Likewise.
30887         * m4/pathmax.m4: Likewise.
30888         * m4/perl.m4: Likewise.
30889         * m4/physmem.m4: Likewise.
30890         * m4/pipe.m4: Likewise.
30891         * m4/po.m4: Likewise.
30892         * m4/poll.m4: Likewise.
30893         * m4/posixtm.m4: Likewise.
30894         * m4/posixver.m4: Likewise.
30895         * m4/printf-frexp.m4: Likewise.
30896         * m4/printf-frexpl.m4: Likewise.
30897         * m4/printf-posix.m4: Likewise.
30898         * m4/printf-posix-rpl.m4: Likewise.
30899         * m4/printf.m4: Likewise.
30900         * m4/progtest.m4: Likewise.
30901         * m4/putenv.m4: Likewise.
30902         * m4/readline.m4: Likewise.
30903         * m4/readlink.m4: Likewise.
30904         * m4/readutmp.m4: Likewise.
30905         * m4/realloc.m4: Likewise.
30906         * m4/regex.m4: Likewise.
30907         * m4/relocatable.m4: Likewise.
30908         * m4/relocatable-lib.m4: Likewise.
30909         * m4/rename-dest-slash.m4: Likewise.
30910         * m4/rename.m4: Likewise.
30911         * m4/rmdir-errno.m4: Likewise.
30912         * m4/rmdir.m4: Likewise.
30913         * m4/roundf.m4: Likewise.
30914         * m4/roundl.m4: Likewise.
30915         * m4/rpmatch.m4: Likewise.
30916         * m4/save-cwd.m4: Likewise.
30917         * m4/selinux-selinux-h.m4: Likewise.
30918         * m4/setenv.m4: Likewise.
30919         * m4/settime.m4: Likewise.
30920         * m4/sig2str.m4: Likewise.
30921         * m4/sig_atomic_t.m4: Likewise.
30922         * m4/signalblocking.m4: Likewise.
30923         * m4/signbit.m4: Likewise.
30924         * m4/sigpipe.m4: Likewise.
30925         * m4/sockets.m4: Likewise.
30926         * m4/sockpfaf.m4: Likewise.
30927         * m4/st_dm_mode.m4: Likewise.
30928         * m4/stat-time.m4: Likewise.
30929         * m4/stdbool.m4: Likewise.
30930         * m4/stdint.m4: Likewise.
30931         * m4/stdint_h.m4: Likewise.
30932         * m4/stpcpy.m4: Likewise.
30933         * m4/stpncpy.m4: Likewise.
30934         * m4/strcase.m4: Likewise.
30935         * m4/strchrnul.m4: Likewise.
30936         * m4/strcspn.m4: Likewise.
30937         * m4/strdup.m4: Likewise.
30938         * m4/strftime.m4: Likewise.
30939         * m4/strndup.m4: Likewise.
30940         * m4/strnlen.m4: Likewise.
30941         * m4/strpbrk.m4: Likewise.
30942         * m4/strptime.m4: Likewise.
30943         * m4/strsep.m4: Likewise.
30944         * m4/strtod.m4: Likewise.
30945         * m4/strtoimax.m4: Likewise.
30946         * m4/strtok_r.m4: Likewise.
30947         * m4/strtol.m4: Likewise.
30948         * m4/strtoll.m4: Likewise.
30949         * m4/strtoul.m4: Likewise.
30950         * m4/strtoull.m4: Likewise.
30951         * m4/strtoumax.m4: Likewise.
30952         * m4/strverscmp.m4: Likewise.
30953         * m4/threadlib.m4: Likewise.
30954         * m4/timegm.m4: Likewise.
30955         * m4/tm_gmtoff.m4: Likewise.
30956         * m4/tmpdir.m4: Likewise.
30957         * m4/tmpfile.m4: Likewise.
30958         * m4/tzset.m4: Likewise.
30959         * m4/uintmax_t.m4: Likewise.
30960         * m4/unlinkdir.m4: Likewise.
30961         * m4/unlocked-io.m4: Likewise.
30962         * m4/uptime.m4: Likewise.
30963         * m4/userspec.m4: Likewise.
30964         * m4/utimbuf.m4: Likewise.
30965         * m4/utime.m4: Likewise.
30966         * m4/utimes-null.m4: Likewise.
30967         * m4/utimes.m4: Likewise.
30968         * m4/vararrays.m4: Likewise.
30969         * m4/vasnprintf.m4: Likewise.
30970         * m4/vfprintf-posix.m4: Likewise.
30971         * m4/vprintf-posix.m4: Likewise.
30972         * m4/wait-process.m4: Likewise.
30973         * m4/wchar_t.m4: Likewise.
30974         * m4/wint_t.m4: Likewise.
30975         * m4/write-any-file.m4: Likewise.
30976         * m4/yield.m4: Likewise.
30977
30978 2009-01-13  Bruno Haible  <bruno@clisp.org>
30979
30980         Avoid test-copy-file.sh failures when ACL support insufficient.
30981         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
30982         TESTS_ENVIRONMENT.
30983         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
30984         Reported by Jim Meyering.
30985
30986 2009-01-13  Bruno Haible  <bruno@clisp.org>
30987
30988         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
30989         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
30990         * modules/unistdio/u8-printf-parse (Files): Likewise.
30991         * modules/unistdio/u32-printf-parse (Files): Likewise.
30992         * modules/unistdio/ulc-printf-parse (Files): Likewise.
30993
30994 2009-01-13  Simon Josefsson  <simon@josefsson.org>
30995
30996         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
30997         and m4/inttypes_h.m4 too.
30998
30999 2009-01-12  Eric Blake  <ebb9@byu.net>
31000
31001         tests: IRIX 6.2 cc can't compile -0.0 into .data
31002         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31003         rather than at compile-time.
31004         * tests/test-floorl.c (minus_zero): Likewise.
31005         * tests/test-frexpl.c (minus_zero): Likewise.
31006         * tests/test-isnan.c (minus_zerol): Likewise.
31007         * tests/test-isnanl.h (minus_zero): Likewise.
31008         * tests/test-ldexpl.c (minus_zero): Likewise.
31009         * tests/test-roundl.c (minus_zero): Likewise.
31010         * tests/test-signbit.c (minus_zerol): Likewise.
31011         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31012         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31013         * tests/test-truncl.c (minus_zero): Likewise.
31014         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31015         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31016         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31017
31018 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31019
31020         regex: fix glibc bug 9697
31021         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31022         handling.
31023
31024 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31025
31026         regex: fix glibc bug 697
31027         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31028         being NULL also if there are no backreferences.
31029
31030 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31031
31032         regex: merge glibc changes
31033         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31034         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31035         re_string_skip_chars, re_string_reconstruct): Likewise.
31036         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31037
31038 2009-01-07  Jim Meyering  <meyering@redhat.com>
31039
31040         poll: filter through cppi
31041         * lib/poll.c: Indent cpp directives to reflect nesting.
31042
31043 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31044
31045         poll: don't return uninitialized
31046         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31047
31048 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31049
31050         avoid compile failure on AIX 6.1
31051         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31052         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31053
31054 2009-01-04  Jim Meyering  <meyering@redhat.com>
31055
31056         remove duplicate inclusion of <stdio.h>
31057         * tests/test-fprintf-posix.c: Likewise.
31058         * tests/test-printf-posix.c: Likewise.
31059         * tests/test-snprintf-posix.c: Likewise.
31060         * tests/test-sprintf-posix.c: Likewise.
31061         * tests/test-vasprintf-posix.c: Likewise.
31062         * tests/test-vfprintf-posix.c: Likewise.
31063         * tests/test-vprintf-posix.c: Likewise.
31064         * tests/test-vsnprintf-posix.c: Likewise.
31065         * tests/test-vsprintf-posix.c: Likewise.
31066
31067 2009-01-03  Jim Meyering  <meyering@redhat.com>
31068
31069         gnulib-tool: fix sed-based filtering
31070         * gnulib-tool (func_filter_filelist): Remove extra backslash
31071         in sed_fff_filter definition.
31072
31073 2009-01-02  Jim Meyering  <meyering@redhat.com>
31074
31075         strftime: avoid compilation failure on Solaris 2.6
31076         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31077         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31078         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31079         be available.  Reported by Tom G. Christensen.  Details in
31080         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31081
31082 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31083             Bruno Haible  <bruno@clisp.org>
31084
31085         Speed up gnulib-tool by doing more string processing through shell
31086         built-ins.
31087         * gnulib-tool (fast_func_append): New variable.
31088         (func_remove_prefix, func_remove_suffix): New functions.
31089         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31090         (func_filter_filelist): New function.
31091         (func_get_dependencies): Use func_remove_suffix instead of sed.
31092         (func_get_automake_snippet): Use func_filter_filelist instead of a
31093         subshell and sed invocation.
31094
31095 2009-01-01  Bruno Haible  <bruno@clisp.org>
31096
31097         Fix a security bug.
31098         * gnulib-tool (func_import, import, update): Don't allow the characters
31099         '"', '$', '`', '\' in macro arguments that become part of commands that
31100         are evaluated.
31101
31102 2009-01-01  Bruno Haible  <bruno@clisp.org>
31103
31104         * gnulib-tool (func_reset_sigpipe): Add more comments.
31105
31106 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31107
31108         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31109         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31110         already know the answer.
31111
31112 2009-01-01  Jim Meyering  <meyering@redhat.com>
31113
31114         * lib/version-etc.c (version_etc_va): Update copyright year.
31115
31116 2008-12-30  Bruno Haible  <bruno@clisp.org>
31117
31118         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31119         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31120         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31121
31122 2008-12-29  Eric Blake  <ebb9@byu.net>
31123
31124         multiarch: avoid autoconf AC_REQUIRE bug
31125         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31126         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31127         2.63 and older.
31128         Reported by Bruno Haible, and analyzed in
31129         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31130
31131 2008-12-29  Bruno Haible  <bruno@clisp.org>
31132
31133         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31134         files in subdirectories correctly.
31135         Reported by Ralf Wildenhues.
31136
31137 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31138
31139         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31140         rather than 'join FILE -', for Solaris join.
31141
31142 2008-12-29  Bruno Haible  <bruno@clisp.org>
31143
31144         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31145         quoting.
31146         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31147         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31148         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31149         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31150         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31151         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31152         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31153         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31154         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31155         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31156         * m4/nls.m4 (AM_NLS): Likewise.
31157         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31158         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31159         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31160         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31161         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31162         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31163         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31164         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31165         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31166         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31167         * m4/xsize.m4 (gl_XSIZE): Likewise.
31168         Suggested by Jim Meyering.
31169
31170 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31171
31172         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31173         * lib/parse-duration.c: use a switch instead of cascading if's.
31174
31175 2008-12-29  Eric Blake  <ebb9@byu.net>
31176
31177         wchar.h: supply WEOF on Irix 5.3
31178         * lib/wchar.in.h (wint_t): Also supply WEOF.
31179         * lib/wctype.in.h (wint_t): Likewise.
31180         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31181         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31182         Reported by Tom G. Christensen.
31183
31184 2008-12-26  Bruno Haible  <bruno@clisp.org>
31185
31186         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31187         i486, i586, i686.
31188
31189 2008-12-26  Bruno Haible  <bruno@clisp.org>
31190
31191         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31192
31193 2008-12-26  Bruno Haible  <bruno@clisp.org>
31194
31195         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31196         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31197         not __STDC_CONSTANT_MACROS.
31198         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31199
31200 2008-12-25  Bruno Haible  <bruno@clisp.org>
31201
31202         Add support for universal builds to vasnprintf.
31203         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31204         universal builds, guess no.
31205         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31206         * modules/vasprintf-posix (Depends-on): Likewise.
31207         * modules/fprintf-posix (Depends-on): Likewise.
31208         * modules/vfprintf-posix (Depends-on): Likewise.
31209         * modules/snprintf-posix (Depends-on): Likewise.
31210         * modules/vsnprintf-posix (Depends-on): Likewise.
31211         * modules/sprintf-posix (Depends-on): Likewise.
31212         * modules/vsprintf-posix (Depends-on): Likewise.
31213         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31214         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31215         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31216         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31217         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31218         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31219         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31220
31221         Add support for universal builds to <inttypes.h>.
31222         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31223         _SCNu64_PREFIX): In Apple
31224         universal builds, define directly, using _LP64.
31225         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31226         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31227         * modules/inttypes (Depends-on): Add multiarch.
31228         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31229
31230         Add support for universal builds to <stdint.h>.
31231         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31232         universal builds, define directly, using _LP64.
31233         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31234         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31235         and size_t.
31236         * modules/stdint (Depends-on): Add multiarch.
31237         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31238
31239         New module 'multiarch'.
31240         * modules/multiarch: New file.
31241         * m4/multiarch.m4: New file.
31242
31243 2008-12-25  Bruno Haible  <bruno@clisp.org>
31244
31245         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31246
31247 2008-12-25  Bruno Haible  <bruno@clisp.org>
31248
31249         * modules/btowc (License): Relicense under LGPLv2+.
31250         * modules/mbsinit (License): Likewise.
31251         * modules/mbrtowc (License): Likewise.
31252         * modules/wcrtomb (License): Likewise.
31253         * modules/streq (License): Likewise.
31254         Reported by David Lutterkort <lutter@redhat.com>.
31255
31256 2008-12-23  Bruno Haible  <bruno@clisp.org>
31257
31258         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31259
31260 2008-12-23  Bruno Haible  <bruno@clisp.org>
31261
31262         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31263         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31264         GETADDRINFO_LIB, not in LIBS.
31265         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31266         * modules/canon-host (Link): Likewise.
31267         * NEWS: Mention the change.
31268         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31269         GETADDRINFO_LIB.
31270
31271 2008-12-22  Bruno Haible  <bruno@clisp.org>
31272
31273         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31274         * doc/posix-functions/iswalpha_l.texi: Likewise.
31275         * doc/posix-functions/iswblank_l.texi: Likewise.
31276         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31277         * doc/posix-functions/iswctype_l.texi: Likewise.
31278         * doc/posix-functions/iswdigit_l.texi: Likewise.
31279         * doc/posix-functions/iswgraph_l.texi: Likewise.
31280         * doc/posix-functions/iswlower_l.texi: Likewise.
31281         * doc/posix-functions/iswprint_l.texi: Likewise.
31282         * doc/posix-functions/iswpunct_l.texi: Likewise.
31283         * doc/posix-functions/iswspace_l.texi: Likewise.
31284         * doc/posix-functions/iswupper_l.texi: Likewise.
31285         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31286         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31287         * doc/posix-functions/open_wmemstream.texi: Likewise.
31288         * doc/posix-functions/swscanf.texi: Likewise.
31289         * doc/posix-functions/towctrans_l.texi: Likewise.
31290         * doc/posix-functions/towlower.texi: Likewise.
31291         * doc/posix-functions/towlower_l.texi: Likewise.
31292         * doc/posix-functions/towupper.texi: Likewise.
31293         * doc/posix-functions/towupper_l.texi: Likewise.
31294         * doc/posix-functions/vfwprintf.texi: Likewise.
31295         * doc/posix-functions/vfwscanf.texi: Likewise.
31296         * doc/posix-functions/vswscanf.texi: Likewise.
31297         * doc/posix-functions/vwprintf.texi: Likewise.
31298         * doc/posix-functions/vwscanf.texi: Likewise.
31299         * doc/posix-functions/wcpcpy.texi: Likewise.
31300         * doc/posix-functions/wcpncpy.texi: Likewise.
31301         * doc/posix-functions/wcscasecmp.texi: Likewise.
31302         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31303         * doc/posix-functions/wcscoll_l.texi: Likewise.
31304         * doc/posix-functions/wcsdup.texi: Likewise.
31305         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31306         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31307         * doc/posix-functions/wcsnlen.texi: Likewise.
31308         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31309         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31310         * doc/posix-functions/wctrans_l.texi: Likewise.
31311         * doc/posix-functions/wctype_l.texi: Likewise.
31312         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31313         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31314         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31315         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31316         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31317         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31318         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31319         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31320         * doc/glibc-functions/wcschrnul.texi: Likewise.
31321         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31322         * doc/glibc-functions/wcstod_l.texi: Likewise.
31323         * doc/glibc-functions/wcstof_l.texi: Likewise.
31324         * doc/glibc-functions/wcstol_l.texi: Likewise.
31325         * doc/glibc-functions/wcstold_l.texi: Likewise.
31326         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31327         * doc/glibc-functions/wcstoq.texi: Likewise.
31328         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31329         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31330         * doc/glibc-functions/wcstouq.texi: Likewise.
31331         * doc/glibc-functions/wmempcpy.texi: Likewise.
31332
31333 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31334             Eric Blake  <ebb9@byu.net>
31335             Paolo Bonzini  <bonzini@gnu.org>
31336             Bruno Haible  <bruno@clisp.org>
31337
31338         Make c-stack work on Haiku.
31339         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31340         (c_stack_action): Use SA_ONSTACK flag.
31341
31342 2008-12-22  Bruno Haible  <bruno@clisp.org>
31343
31344         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31345
31346 2008-12-22  Bruno Haible  <bruno@clisp.org>
31347
31348         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31349         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31350         being overridden.
31351         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
31352         New macros.
31353         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31355         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31356         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31357
31358 2008-12-22  Bruno Haible  <bruno@clisp.org>
31359
31360         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31361         from test code.
31362
31363 2008-12-22  Eric Blake  <ebb9@byu.net>
31364
31365         Avoid gcc warnings on cygwin.
31366         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31367         Avoid unused variable.
31368         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31369         Likewise.
31370
31371 2008-12-22  Bruno Haible  <bruno@clisp.org>
31372
31373         Remove HAVE_MBRTOWC conditionals.
31374         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31375         (mbscasecmp): Assume mbrtowc function.
31376         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31377         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31378         * lib/mbschr.c: Include mbuiter.h unconditionally.
31379         (mbschr): Assume mbrtowc function.
31380         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31381         (mbscspn): Assume mbrtowc function.
31382         * lib/mbslen.c: Include mbuiter.h unconditionally.
31383         (mbslen): Assume mbrtowc function.
31384         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31385         (mbsncasecmp): Assume mbrtowc function.
31386         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31387         (mbsnlen): Assume mbrtowc function.
31388         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31389         (mbspbrk): Assume mbrtowc function.
31390         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31391         (mbspcasecmp): Assume mbrtowc function.
31392         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31393         (mbsrchr): Assume mbrtowc function.
31394         * lib/mbssep.c: Include mbuiter.h unconditionally.
31395         (mbssep): Assume mbrtowc function.
31396         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31397         (mbsspn): Assume mbrtowc function.
31398         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31399         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31400         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31401         (mbstok_r): Assume mbrtowc function.
31402         * lib/propername.c: Include mbuiter.h unconditionally.
31403         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31404         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31405         (trim2): Assume mbrtowc function.
31406         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31407         (mbsnwidth): Assume mbrtowc function.
31408         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31409         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31410         fallback definitions.
31411         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31412
31413 2008-12-22  Bruno Haible  <bruno@clisp.org>
31414
31415         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31416
31417 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
31418
31419         * modules/regex: Request emulations for the mb*/wc* functions we need.
31420         * m4/regex.m4: Don't look for those functions here.
31421         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
31422
31423 2008-12-22  Bruno Haible  <bruno@clisp.org>
31424
31425         * modules/fnmatch (Depends-on): Remove duplicated dependency.
31426
31427 2008-12-21  Bruno Haible  <bruno@clisp.org>
31428
31429         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
31430         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
31431         (Include): Remove conditionalization.
31432         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
31433         (Include): Remove conditionalization.
31434         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
31435         (Include): Remove conditionalization.
31436         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
31437         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31438         * NEWS: Mention the change.
31439         Reported by Alan Hourihane <alanh@fairlite.co.uk>
31440         via Sergey Poznyakoff <gray@gnu.org.ua>.
31441
31442 2008-12-21  Bruno Haible  <bruno@clisp.org>
31443
31444         * MODULES.html.sh (Extended multibyte and wide character utilities
31445         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
31446         wcrtomb, wcsrtombs.
31447         (Support for systems lacking POSIX:2008): Add accept, bind, close,
31448         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
31449         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
31450         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
31451
31452 2008-12-21  Bruno Haible  <bruno@clisp.org>
31453
31454         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
31455
31456 2008-12-21  Bruno Haible  <bruno@clisp.org>
31457
31458         * modules/wcsnrtombs-tests: New file.
31459         * tests/test-wcsnrtombs1.sh: New file.
31460         * tests/test-wcsnrtombs2.sh: New file.
31461         * tests/test-wcsnrtombs3.sh: New file.
31462         * tests/test-wcsnrtombs4.sh: New file.
31463         * tests/test-wcsnrtombs.c: New file.
31464
31465         New module 'wcsnrtombs'.
31466         * lib/wchar.in.h (wcsnrtombs): New declaration.
31467         * lib/wcsnrtombs.c: New file.
31468         * lib/wcsrtombs-state.c: New file.
31469         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
31470         (internal_state): Remove variable.
31471         * m4/wcsnrtombs.m4: New file.
31472         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
31473         compilation units.
31474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
31475         HAVE_WCSNRTOMBS.
31476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
31477         HAVE_WCSNRTOMBS.
31478         * modules/wcsnrtombs: New file.
31479         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
31480         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
31481
31482 2008-12-21  Bruno Haible  <bruno@clisp.org>
31483
31484         * modules/wcsrtombs-tests: New file.
31485         * tests/test-wcsrtombs1.sh: New file.
31486         * tests/test-wcsrtombs2.sh: New file.
31487         * tests/test-wcsrtombs3.sh: New file.
31488         * tests/test-wcsrtombs4.sh: New file.
31489         * tests/test-wcsrtombs.c: New file.
31490
31491         New module 'wcsrtombs'.
31492         * lib/wchar.in.h (wcsrtombs): New declaration.
31493         * lib/wcsrtombs.c: New file.
31494         * m4/wcsrtombs.m4: New file.
31495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
31496         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31497         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
31498         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31499         * modules/wcsrtombs: New file.
31500         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
31501         bugs.
31502
31503 2008-12-21  Bruno Haible  <bruno@clisp.org>
31504
31505         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
31506         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
31507         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
31508         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
31509         if not correct.
31510         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
31511         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
31512         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31513         m4/locale-zh.m4, m4/codeset.m4.
31514         * doc/posix-functions/wcrtomb.texi: Document the bug.
31515
31516 2008-12-21  Bruno Haible  <bruno@clisp.org>
31517
31518         Work around a btowc() bug on IRIX 6.5.
31519         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
31520         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
31521         REPLACE_WTOBC if not.
31522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
31523         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
31524         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
31525
31526 2008-12-21  Bruno Haible  <bruno@clisp.org>
31527
31528         * modules/wcrtomb-tests: New file.
31529         * tests/test-wcrtomb.sh: New file.
31530         * tests/test-wcrtomb.c: New file.
31531
31532         New module 'wcrtomb'.
31533         * lib/wchar.in.h (wcrtomb): New declaration.
31534         * lib/wcrtomb.c: New file.
31535         * m4/wcrtomb.m4: New file.
31536         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
31537         HAVE_WCRTOMB.
31538         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
31539         HAVE_WCRTOMB.
31540         * modules/wcrtomb: New file.
31541         * doc/posix-functions/wcrtomb.texi: Mention the new module.
31542
31543 2008-12-21  Bruno Haible  <bruno@clisp.org>
31544
31545         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
31546         * modules/mbsrtowcs (Files): Likewise.
31547         * modules/wctob (Files): Likewise.
31548         * modules/c-strcase-tests (Files): Likewise.
31549         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31550         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31551         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31552         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31553         * modules/vasnprintf-posix-tests (Files): Likewise.
31554
31555 2008-12-21  William Pursell  <bill.pursell@gmail.com>
31556
31557         gitlog-to-changelog: pass all command-line arguments to git-log
31558         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
31559         it is sometimes convenient to filter the commits in various ways.
31560         gitlog-to-changelog only allows --since to specify a start date,
31561         but git-log itself supports many other filtering mechanisms.
31562         At the moment, I want to filter by branch name.  Rather than
31563         adding a --branch option to gitlog-to-changelog, it seems more
31564         flexible to simply pass all options directly to git-log and let
31565         git do the work.  Notice that this effectively makes --since a
31566         redundant option for gitlog-to-changelog, but removing it would
31567         require current usage to change since calls would then require
31568         an additional '--'.
31569
31570 2008-12-21  Bruno Haible  <bruno@clisp.org>
31571
31572         * modules/mbsnrtowcs-tests: New file.
31573         * tests/test-mbsnrtowcs1.sh: New file.
31574         * tests/test-mbsnrtowcs2.sh: New file.
31575         * tests/test-mbsnrtowcs3.sh: New file.
31576         * tests/test-mbsnrtowcs4.sh: New file.
31577         * tests/test-mbsnrtowcs.c: New file.
31578
31579         New module 'mbsnrtowcs'.
31580         * lib/wchar.in.h (mbsnrtowcs): New declaration.
31581         * lib/mbsnrtowcs.c: New file.
31582         * lib/mbsrtowcs-state.c: New file.
31583         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
31584         (internal_state): Remove variable.
31585         * m4/mbsnrtowcs.m4: New file.
31586         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
31587         compilation units.
31588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
31589         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31590         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
31591         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31592         * modules/mbsnrtowcs: New file.
31593         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
31594         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
31595         portability problem.
31596
31597 2008-12-21  Bruno Haible  <bruno@clisp.org>
31598
31599         Work around mbsrtowcs bug.
31600         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
31601         (gl_FUNC_MBSRTOWCS): Invoke it.
31602         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31603         m4/locale-zh.m4.
31604         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
31605
31606 2008-12-21  Bruno Haible  <bruno@clisp.org>
31607
31608         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
31609
31610 2008-12-21  Bruno Haible  <bruno@clisp.org>
31611
31612         Update doc for AIX.
31613         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
31614         16-bit wchar_t type.
31615         * doc/posix-functions/btowc.texi: Likewise.
31616         * doc/posix-functions/fgetwc.texi: Likewise.
31617         * doc/posix-functions/fgetws.texi: Likewise.
31618         * doc/posix-functions/fputwc.texi: Likewise.
31619         * doc/posix-functions/fputws.texi: Likewise.
31620         * doc/posix-functions/fwide.texi: Likewise.
31621         * doc/posix-functions/fwprintf.texi: Likewise.
31622         * doc/posix-functions/fwscanf.texi: Likewise.
31623         * doc/posix-functions/getwchar.texi: Likewise.
31624         * doc/posix-functions/getwc.texi: Likewise.
31625         * doc/posix-functions/iswalnum.texi: Likewise.
31626         * doc/posix-functions/iswalpha.texi: Likewise.
31627         * doc/posix-functions/iswblank.texi: Likewise.
31628         * doc/posix-functions/iswcntrl.texi: Likewise.
31629         * doc/posix-functions/iswctype.texi: Likewise.
31630         * doc/posix-functions/iswdigit.texi: Likewise.
31631         * doc/posix-functions/iswgraph.texi: Likewise.
31632         * doc/posix-functions/iswlower.texi: Likewise.
31633         * doc/posix-functions/iswprint.texi: Likewise.
31634         * doc/posix-functions/iswpunct.texi: Likewise.
31635         * doc/posix-functions/iswspace.texi: Likewise.
31636         * doc/posix-functions/iswupper.texi: Likewise.
31637         * doc/posix-functions/iswxdigit.texi: Likewise.
31638         * doc/posix-functions/mbrtowc.texi: Likewise.
31639         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31640         * doc/posix-functions/mbstowcs.texi: Likewise.
31641         * doc/posix-functions/mbtowc.texi: Likewise.
31642         * doc/posix-functions/putwchar.texi: Likewise.
31643         * doc/posix-functions/putwc.texi: Likewise.
31644         * doc/posix-functions/swprintf.texi: Likewise.
31645         * doc/posix-functions/tolower.texi: Likewise.
31646         * doc/posix-functions/toupper.texi: Likewise.
31647         * doc/posix-functions/towctrans.texi: Likewise.
31648         * doc/posix-functions/ungetwc.texi: Likewise.
31649         * doc/posix-functions/vswprintf.texi: Likewise.
31650         * doc/posix-functions/wcrtomb.texi: Likewise.
31651         * doc/posix-functions/wcscat.texi: Likewise.
31652         * doc/posix-functions/wcschr.texi: Likewise.
31653         * doc/posix-functions/wcscmp.texi: Likewise.
31654         * doc/posix-functions/wcscoll.texi: Likewise.
31655         * doc/posix-functions/wcscpy.texi: Likewise.
31656         * doc/posix-functions/wcscspn.texi: Likewise.
31657         * doc/posix-functions/wcsftime.texi: Likewise.
31658         * doc/posix-functions/wcslen.texi: Likewise.
31659         * doc/posix-functions/wcsncat.texi: Likewise.
31660         * doc/posix-functions/wcsncmp.texi: Likewise.
31661         * doc/posix-functions/wcsncpy.texi: Likewise.
31662         * doc/posix-functions/wcspbrk.texi: Likewise.
31663         * doc/posix-functions/wcsrchr.texi: Likewise.
31664         * doc/posix-functions/wcsrtombs.texi: Likewise.
31665         * doc/posix-functions/wcsspn.texi: Likewise.
31666         * doc/posix-functions/wcsstr.texi: Likewise.
31667         * doc/posix-functions/wcstod.texi: Likewise.
31668         * doc/posix-functions/wcstof.texi: Likewise.
31669         * doc/posix-functions/wcstoimax.texi: Likewise.
31670         * doc/posix-functions/wcstok.texi: Likewise.
31671         * doc/posix-functions/wcstold.texi: Likewise.
31672         * doc/posix-functions/wcstoll.texi: Likewise.
31673         * doc/posix-functions/wcstol.texi: Likewise.
31674         * doc/posix-functions/wcstombs.texi: Likewise.
31675         * doc/posix-functions/wcstoull.texi: Likewise.
31676         * doc/posix-functions/wcstoul.texi: Likewise.
31677         * doc/posix-functions/wcstoumax.texi: Likewise.
31678         * doc/posix-functions/wcswidth.texi: Likewise.
31679         * doc/posix-functions/wcsxfrm.texi: Likewise.
31680         * doc/posix-functions/wctob.texi: Likewise.
31681         * doc/posix-functions/wctomb.texi: Likewise.
31682         * doc/posix-functions/wctrans.texi: Likewise.
31683         * doc/posix-functions/wctype.texi: Likewise.
31684         * doc/posix-functions/wcwidth.texi: Likewise.
31685         * doc/posix-functions/wmemchr.texi: Likewise.
31686         * doc/posix-functions/wmemcmp.texi: Likewise.
31687         * doc/posix-functions/wmemcpy.texi: Likewise.
31688         * doc/posix-functions/wmemmove.texi: Likewise.
31689         * doc/posix-functions/wmemset.texi: Likewise.
31690         * doc/posix-functions/wprintf.texi: Likewise.
31691         * doc/posix-functions/wscanf.texi: Likewise.
31692
31693 2008-12-21  Bruno Haible  <bruno@clisp.org>
31694
31695         Update doc for HP-UX 11.11.
31696         * doc/posix-functions/btowc.texi: Clarify that the function is missing
31697         in HP-UX version 11.00, not in all versions of HP-UX 11.
31698         * doc/posix-functions/fwide.texi: Likewise.
31699         * doc/posix-functions/fwprintf.texi: Likewise.
31700         * doc/posix-functions/fwscanf.texi: Likewise.
31701         * doc/posix-functions/inet_ntop.texi: Likewise.
31702         * doc/posix-functions/inet_pton.texi: Likewise.
31703         * doc/posix-functions/mbrlen.texi: Likewise.
31704         * doc/posix-functions/mbrtowc.texi: Likewise.
31705         * doc/posix-functions/mbsinit.texi: Likewise.
31706         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31707         * doc/posix-functions/swprintf.texi: Likewise.
31708         * doc/posix-functions/swscanf.texi: Likewise.
31709         * doc/posix-functions/towctrans.texi: Likewise.
31710         * doc/posix-functions/vfwprintf.texi: Likewise.
31711         * doc/posix-functions/vswprintf.texi: Likewise.
31712         * doc/posix-functions/vwprintf.texi: Likewise.
31713         * doc/posix-functions/wcrtomb.texi: Likewise.
31714         * doc/posix-functions/wcsrtombs.texi: Likewise.
31715         * doc/posix-functions/wcsstr.texi: Likewise.
31716         * doc/posix-functions/wctob.texi: Likewise.
31717         * doc/posix-functions/wctrans.texi: Likewise.
31718         * doc/posix-functions/wmemchr.texi: Likewise.
31719         * doc/posix-functions/wmemcmp.texi: Likewise.
31720         * doc/posix-functions/wmemcpy.texi: Likewise.
31721         * doc/posix-functions/wmemmove.texi: Likewise.
31722         * doc/posix-functions/wmemset.texi: Likewise.
31723         * doc/posix-functions/wprintf.texi: Likewise.
31724         * doc/posix-functions/wscanf.texi: Likewise.
31725
31726 2008-12-21  Bruno Haible  <bruno@clisp.org>
31727
31728         Work around a portability problem.
31729         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
31730         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
31731
31732 2008-12-20  Bruno Haible  <bruno@clisp.org>
31733
31734         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
31735         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
31736         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
31737         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
31738         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
31739
31740         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
31741         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
31742         set.
31743         (GNULIB_defined_mbstate_t): New macro.
31744         (mbsinit): Redefine if REPLACE_MBSINIT is set.
31745         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
31746         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
31747         reuses the system's mbrtowc function but works around the bugs.
31748         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
31749         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
31750         macros.
31751         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
31752         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
31753         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
31754         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
31755         REPLACE_MBSINIT if mbsinit needs to be overridden.
31756         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
31757         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31758         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
31759         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31760         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31761         m4/locale-zh.m4.
31762         (Depends): Add mbsinit.
31763         * modules/mbsinit (Depends): Add mbrtowc.
31764         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
31765
31766 2008-12-20  Bruno Haible  <bruno@clisp.org>
31767
31768         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
31769         so that there are no conversion errors on AIX.
31770         * tests/test-mbsrtowcs.c (main): LIkewise.
31771
31772 2008-12-20  Bruno Haible  <bruno@clisp.org>
31773
31774         Work around wctob bug on Solaris <= 9.
31775         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
31776         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
31777         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
31778         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
31779         * modules/wctob (Files): Add m4/locale-fr.m4.
31780         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
31781
31782 2008-12-20  Bruno Haible  <bruno@clisp.org>
31783
31784         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
31785         /dev/null.
31786         * tests/test-select-in.sh: Likewise.
31787         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31788
31789 2008-12-20  Bruno Haible  <bruno@clisp.org>
31790
31791         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
31792         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
31793         Cygwin 1.5.x.
31794
31795 2008-12-20  Bruno Haible  <bruno@clisp.org>
31796
31797         Ensure mbstate_t is defined on HP-UX 11.11.
31798         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
31799         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
31800         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
31801         AC_USE_SYSTEM_EXTENSIONS.
31802         * modules/fnmatch (Depends-on): Add extensions.
31803         * modules/mbrlen (Depends-on): Likewise.
31804         * modules/mbrtowc (Depends-on): Likewise.
31805         * modules/mbsinit (Depends-on): Likewise.
31806         * modules/mbsrtowcs (Depends-on): Likewise.
31807         * modules/mbswidth (Depends-on): Likewise.
31808         * modules/quotearg (Depends-on): Likewise.
31809         * modules/strftime (Depends-on): Likewise.
31810
31811 2008-12-20  Bruno Haible  <bruno@clisp.org>
31812
31813         Ensure wctob is declared on IRIX 6.5.
31814         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
31815         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
31816         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
31817         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
31818         of HAVE_WCTOB.
31819         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
31820         HAVE_WCTOB.
31821         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
31822
31823 2008-12-19  Bruno Haible  <bruno@clisp.org>
31824
31825         * modules/mbsrtowcs-tests: New file.
31826         * tests/test-mbsrtowcs1.sh: New file.
31827         * tests/test-mbsrtowcs2.sh: New file.
31828         * tests/test-mbsrtowcs3.sh: New file.
31829         * tests/test-mbsrtowcs4.sh: New file.
31830         * tests/test-mbsrtowcs.c: New file.
31831
31832         New module 'mbsrtowcs'.
31833         * lib/wchar.in.h (mbsrtowcs): New declaration.
31834         * lib/mbsrtowcs.c: New file.
31835         * m4/mbsrtowcs.m4: New file.
31836         * modules/mbsrtowcs: New file.
31837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
31838         HAVE_MBSRTOWCS.
31839         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
31840         HAVE_MBSRTOWCS.
31841         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
31842
31843 2008-12-19  Bruno Haible  <bruno@clisp.org>
31844
31845         New module 'mbrlen'.
31846         * lib/wchar.in.h (mbrlen): New declaration.
31847         * lib/mbrlen.c: New file.
31848         * m4/mbrlen.m4: New file.
31849         * modules/mbrlen: New file.
31850         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
31851         HAVE_MBRLEN.
31852         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
31853         HAVE_MBRLEN.
31854         * doc/posix-functions/mbrlen.texi: Document the new module.
31855
31856 2008-12-19  Bruno Haible  <bruno@clisp.org>
31857
31858         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
31859         * modules/mbrtowc (Depends-on): Add verify.
31860         Suggested by Paul Eggert.
31861
31862 2008-12-18  Bruno Haible  <bruno@clisp.org>
31863
31864         * modules/mbsinit-tests: New file.
31865         * tests/test-mbsinit.sh: New file.
31866         * tests/test-mbsinit.c: New file.
31867
31868 2008-12-18  Bruno Haible  <bruno@clisp.org>
31869
31870         * modules/mbrtowc-tests: New file.
31871         * tests/test-mbrtowc1.sh: New file.
31872         * tests/test-mbrtowc2.sh: New file.
31873         * tests/test-mbrtowc3.sh: New file.
31874         * tests/test-mbrtowc4.sh: New file.
31875         * tests/test-mbrtowc.c: New file.
31876
31877         New module 'mbrtowc'.
31878         * lib/wchar.in.h (mbstate_t): Override when the system does not have
31879         mbsinit and mbrtowc.
31880         (mbrtowc): New declaration.
31881         * lib/mbrtowc.c: New file.
31882         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
31883         * modules/mbrtowc: New file.
31884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
31885         HAVE_MBRTOWC.
31886         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
31887         HAVE_MBRTOWC.
31888         * doc/posix-functions/mbrtowc.texi: Document the new module.
31889
31890 2008-12-18  Bruno Haible  <bruno@clisp.org>
31891
31892         New module 'wctob'.
31893         * lib/wchar.in.h (wctob): New declaration.
31894         * lib/wctob.c: New file.
31895         * m4/wctob.m4: New file.
31896         * modules/wctob: New file.
31897         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
31898         HAVE_WCTOB.
31899         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
31900         * doc/posix-functions/wctob.texi: Document the new module.
31901
31902 2008-12-18  Bruno Haible  <bruno@clisp.org>
31903
31904         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
31905         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
31906
31907 2008-12-18  Simon Josefsson  <simon@josefsson.org>
31908
31909         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
31910         G. Christensen" <tgc@jupiterrise.com>.
31911
31912         * lib/flock.c: Need to include errno.h.  Reported by "Tom
31913         G. Christensen" <tgc@jupiterrise.com>.
31914
31915         * lib/flock.c: Need to include string.h.  Reported by "Tom
31916         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
31917         <ebb9@byu.net>.
31918
31919 2008-12-18  Bruno Haible  <bruno@clisp.org>
31920
31921         * m4/locale-ja.m4: New file, from GNU gettext.
31922
31923 2008-12-17  Bruno Haible  <bruno@clisp.org>
31924
31925         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
31926         Suggested by Eric Blake.
31927
31928 2008-12-17  Bruno Haible  <bruno@clisp.org>
31929
31930         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
31931
31932 2008-12-17  Bruno Haible  <bruno@clisp.org>
31933
31934         * lib/mbsinit.c: Include verify.h. Verify an assumption.
31935         * modules/mbsinit (Depends-on): Add verify.
31936         Suggested by Paul Eggert.
31937
31938 2008-12-17  Bruno Haible  <bruno@clisp.org>
31939
31940         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
31941         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
31942         gl_FUNC_MBRTOWC.
31943         * m4/mbiter.m4 (gl_MBITER): LIkewise.
31944         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
31945         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
31946         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
31947         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
31948         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
31949         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
31950         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
31951         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
31952         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
31953         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
31954         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
31955         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
31956         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
31957         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
31958         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31959         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
31960         * modules/trim (configure.ac): Likewise.
31961
31962 2008-12-17  Bruno Haible  <bruno@clisp.org>
31963
31964         * modules/btowc-tests: New file.
31965         * tests/test-btowc1.sh: New file.
31966         * tests/test-btowc2.sh: New file.
31967         * tests/test-btowc.c: New file.
31968
31969         New module 'btowc'.
31970         * lib/wchar.in.h (btowc): New declaration.
31971         * lib/btowc.c: New file.
31972         * m4/btowc.m4: New file.
31973         * modules/btowc: New file.
31974         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
31975         HAVE_BTOWC.
31976         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
31977         * doc/posix-functions/btowc.texi: Document the new module.
31978
31979 2008-12-17  Bruno Haible  <bruno@clisp.org>
31980
31981         New module 'mbsinit'.
31982         * lib/wchar.in.h (mbsinit): New declaration.
31983         * lib/mbsinit.c: New file.
31984         * m4/mbsinit.m4: New file.
31985         * modules/mbsinit: New file.
31986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
31987         HAVE_MBSINIT.
31988         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
31989         HAVE_MBSINIT.
31990         * doc/posix-functions/mbsinit.texi: Document the new module.
31991
31992 2008-12-16  Bruno Haible  <bruno@clisp.org>
31993
31994         * lib/unistd.in.h: Add comment.
31995         * tests/test-environ.c: Don't include <stdlib.h>.
31996
31997 2008-12-16  Bruno Haible  <bruno@clisp.org>
31998
31999         * lib/parse-duration.h (parse_duration): Document return value
32000         convention.
32001         * lib/parse-duration.c: Include specification header first. Add
32002         comments.
32003         (_): Remove macro.
32004         (parse_year_month_day, parse_hour_minute_second): Move side effects
32005         outside of strchr call.
32006         (parse_non_iso8601): Move side effects outside of isspace call.
32007         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32008         call.
32009
32010 2008-12-16  Bruno Haible  <bruno@clisp.org>
32011
32012         * tests/test-parse-duration.sh: Produce no output when the test
32013         succeeds.
32014
32015 2008-12-16  Bruno Haible  <bruno@clisp.org>
32016
32017         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32018         expressions.
32019
32020 2008-12-15  Bruno Haible  <bruno@clisp.org>
32021
32022         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32023         * doc/glibc-functions/flistxattr.texi: Likewise.
32024         * doc/glibc-functions/fopencookie.texi: Likewise.
32025         * doc/glibc-functions/fremovexattr.texi: Likewise.
32026         * doc/glibc-functions/fsetxattr.texi: Likewise.
32027         * doc/glibc-functions/getxattr.texi: Likewise.
32028         * doc/glibc-functions/lgetxattr.texi: Likewise.
32029         * doc/glibc-functions/listxattr.texi: Likewise.
32030         * doc/glibc-functions/llistxattr.texi: Likewise.
32031         * doc/glibc-functions/lremovexattr.texi: Likewise.
32032         * doc/glibc-functions/lsetxattr.texi: Likewise.
32033         * doc/glibc-functions/removexattr.texi: Likewise.
32034         * doc/glibc-functions/setxattr.texi: Likewise.
32035         * doc/posix-functions/open_memstream.texi: Likewise.
32036
32037 2008-12-15  Eric Blake  <ebb9@byu.net>
32038
32039         Update doc for cygwin 1.7.
32040         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32041         functions.
32042         * doc/posix-functions/fchmodat.texi: Likewise.
32043         * doc/posix-functions/fchownat.texi: Likewise.
32044         * doc/posix-functions/fdopendir.texi: Likewise.
32045         * doc/posix-functions/fmemopen.texi: Likewise.
32046         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32047         * doc/posix-functions/fstatat.texi: Likewise.
32048         * doc/posix-functions/futimens.texi: Likewise.
32049         * doc/posix-functions/gai_strerror.texi: Likewise.
32050         * doc/posix-functions/getaddrinfo.texi: Likewise.
32051         * doc/posix-functions/getnameinfo.texi: Likewise.
32052         * doc/posix-functions/if_freenameindex.texi: Likewise.
32053         * doc/posix-functions/if_indextoname.texi: Likewise.
32054         * doc/posix-functions/if_nameindex.texi: Likewise.
32055         * doc/posix-functions/if_nametoindex.texi: Likewise.
32056         * doc/posix-functions/insque.texi: Likewise.
32057         * doc/posix-functions/linkat.texi: Likewise.
32058         * doc/posix-functions/llrint.texi: Likewise.
32059         * doc/posix-functions/llrintf.texi: Likewise.
32060         * doc/posix-functions/llrintl.texi: Likewise.
32061         * doc/posix-functions/lockf.texi: Likewise.
32062         * doc/posix-functions/lrintl.texi: Likewise.
32063         * doc/posix-functions/mkdirat.texi: Likewise.
32064         * doc/posix-functions/mkfifoat.texi: Likewise.
32065         * doc/posix-functions/mknodat.texi: Likewise.
32066         * doc/posix-functions/mq_close.texi: Likewise.
32067         * doc/posix-functions/mq_getattr.texi: Likewise.
32068         * doc/posix-functions/mq_notify.texi: Likewise.
32069         * doc/posix-functions/mq_open.texi: Likewise.
32070         * doc/posix-functions/mq_receive.texi: Likewise.
32071         * doc/posix-functions/mq_send.texi: Likewise.
32072         * doc/posix-functions/mq_setattr.texi: Likewise.
32073         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32074         * doc/posix-functions/mq_timedsend.texi: Likewise.
32075         * doc/posix-functions/mq_unlink.texi: Likewise.
32076         * doc/posix-functions/open_memstream.texi: Likewise.
32077         * doc/posix-functions/openat.texi: Likewise.
32078         * doc/posix-functions/posix_fadvise.texi: Likewise.
32079         * doc/posix-functions/posix_fallocate.texi: Likewise.
32080         * doc/posix-functions/posix_madvise.texi: Likewise.
32081         * doc/posix-functions/posix_memalign.texi: Likewise.
32082         * doc/posix-functions/posix_openpt.texi: Likewise.
32083         * doc/posix-functions/readlinkat.texi: Likewise.
32084         * doc/posix-functions/remque.texi: Likewise.
32085         * doc/posix-functions/renameat.texi: Likewise.
32086         * doc/posix-functions/rintl.texi: Likewise.
32087         * doc/posix-functions/sem_unlink.texi: Likewise.
32088         * doc/posix-functions/shm_open.texi: Likewise.
32089         * doc/posix-functions/shm_unlink.texi: Likewise.
32090         * doc/posix-functions/signgam.texi: Likewise.
32091         * doc/posix-functions/sigset.texi: Likewise.
32092         * doc/posix-functions/stpcpy.texi: Likewise.
32093         * doc/posix-functions/stpncpy.texi: Likewise.
32094         * doc/posix-functions/strerror.texi: Likewise.
32095         * doc/posix-functions/strtod.texi: Likewise.
32096         * doc/posix-functions/symlinkat.texi: Likewise.
32097         * doc/posix-functions/unlinkat.texi: Likewise.
32098         * doc/posix-functions/utimensat.texi: Likewise.
32099         * doc/glibc-functions/bindresvport.texi: Likewise.
32100         * doc/glibc-functions/dn_expand.texi: Likewise.
32101         * doc/glibc-functions/exp10.texi: Likewise.
32102         * doc/glibc-functions/exp10f.texi: Likewise.
32103         * doc/glibc-functions/fgetxattr.texi: Likewise.
32104         * doc/glibc-functions/flistxattr.texi: Likewise.
32105         * doc/glibc-functions/fopencookie.texi: Likewise.
32106         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32107         * doc/glibc-functions/fremovexattr.texi: Likewise.
32108         * doc/glibc-functions/fsetxattr.texi: Likewise.
32109         * doc/glibc-functions/getifaddrs.texi: Likewise.
32110         * doc/glibc-functions/getxattr.texi: Likewise.
32111         * doc/glibc-functions/lgetxattr.texi: Likewise.
32112         * doc/glibc-functions/listxattr.texi: Likewise.
32113         * doc/glibc-functions/llistxattr.texi: Likewise.
32114         * doc/glibc-functions/lremovexattr.texi: Likewise.
32115         * doc/glibc-functions/lsetxattr.texi: Likewise.
32116         * doc/glibc-functions/pow10.texi: Likewise.
32117         * doc/glibc-functions/pow10f.texi: Likewise.
32118         * doc/glibc-functions/rcmd_af.texi: Likewise.
32119         * doc/glibc-functions/removexattr.texi: Likewise.
32120         * doc/glibc-functions/res_init.texi: Likewise.
32121         * doc/glibc-functions/res_mkquery.texi: Likewise.
32122         * doc/glibc-functions/res_query.texi: Likewise.
32123         * doc/glibc-functions/res_querydomain.texi: Likewise.
32124         * doc/glibc-functions/res_send.texi: Likewise.
32125         * doc/glibc-functions/rresvport_af.texi: Likewise.
32126         * doc/glibc-functions/setxattr.texi: Likewise.
32127         * doc/glibc-functions/strcasestr.texi: Likewise.
32128
32129 2008-12-15  Bruno Haible  <bruno@clisp.org>
32130
32131         Fix compilation error on OSF/1 4.0.
32132         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32133         <sys/time.h>, simply delegate to the system header.
32134         Reported by Daniel Richard G. <oss@teragram.com>.
32135
32136 2008-12-15  Bruno Haible  <bruno@clisp.org>
32137
32138         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32139         * doc/posix-functions/fchmodat.texi: Likewise.
32140         * doc/posix-functions/fchownat.texi: Likewise.
32141         * doc/posix-functions/fdopendir.texi: Likewise.
32142         * doc/posix-functions/fstatat.texi: Likewise.
32143         * doc/posix-functions/mkdirat.texi: Likewise.
32144         * doc/posix-functions/unlinkat.texi: Likewise.
32145
32146 2008-12-14  Bruno Haible  <bruno@clisp.org>
32147
32148         Update doc for POSIX:2008.
32149         * doc/posix-functions/faccessat.texi: New file.
32150         * doc/posix-functions/fchmodat.texi: New file.
32151         * doc/posix-functions/fchownat.texi: New file.
32152         * doc/posix-functions/fdopendir.texi: New file.
32153         * doc/posix-functions/fstatat.texi: New file.
32154         * doc/posix-functions/futimens.texi: New file.
32155         * doc/posix-functions/linkat.texi: New file.
32156         * doc/posix-functions/mkdirat.texi: New file.
32157         * doc/posix-functions/mkfifoat.texi: New file.
32158         * doc/posix-functions/mknodat.texi: New file.
32159         * doc/posix-functions/open_wmemstream.texi: New file.
32160         * doc/posix-functions/openat.texi: New file.
32161         * doc/posix-functions/psiginfo.texi: New file.
32162         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32163         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32164         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32165         * doc/posix-functions/readlinkat.texi: New file.
32166         * doc/posix-functions/renameat.texi: New file.
32167         * doc/posix-functions/strerror_l.texi: New file.
32168         * doc/posix-functions/symlinkat.texi: New file.
32169         * doc/posix-functions/unlinkat.texi: New file.
32170         * doc/posix-functions/utimensat.texi: New file.
32171         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32172
32173 2008-12-14  Bruno Haible  <bruno@clisp.org>
32174
32175         Update doc for POSIX:2008.
32176         * doc/posix-functions/alphasort.texi: Renamed from
32177         doc/glibc-functions/alphasort.texi.
32178         * doc/posix-functions/dirfd.texi: Renamed from
32179         doc/glibc-functions/dirfd.texi.
32180         * doc/posix-functions/dprintf.texi: Renamed from
32181         doc/glibc-functions/dprintf.texi.
32182         * doc/posix-functions/duplocale.texi: Renamed from
32183         doc/glibc-functions/duplocale.texi.
32184         * doc/posix-functions/fexecve.texi: Renamed from
32185         doc/glibc-functions/fexecve.texi.
32186         * doc/posix-functions/fmemopen.texi: Renamed from
32187         doc/glibc-functions/fmemopen.texi.
32188         * doc/posix-functions/freelocale.texi: Renamed from
32189         doc/glibc-functions/freelocale.texi.
32190         * doc/posix-functions/getdate_err.texi: Renamed from
32191         doc/glibc-functions/getdate_err.texi.
32192         * doc/posix-functions/isalnum_l.texi: Renamed from
32193         doc/glibc-functions/isalnum_l.texi.
32194         * doc/posix-functions/isalpha_l.texi: Renamed from
32195         doc/glibc-functions/isalpha_l.texi.
32196         * doc/posix-functions/isblank_l.texi: Renamed from
32197         doc/glibc-functions/isblank_l.texi.
32198         * doc/posix-functions/iscntrl_l.texi: Renamed from
32199         doc/glibc-functions/iscntrl_l.texi.
32200         * doc/posix-functions/isdigit_l.texi: Renamed from
32201         doc/glibc-functions/isdigit_l.texi.
32202         * doc/posix-functions/isgraph_l.texi: Renamed from
32203         doc/glibc-functions/isgraph_l.texi.
32204         * doc/posix-functions/islower_l.texi: Renamed from
32205         doc/glibc-functions/islower_l.texi.
32206         * doc/posix-functions/isprint_l.texi: Renamed from
32207         doc/glibc-functions/isprint_l.texi.
32208         * doc/posix-functions/ispunct_l.texi: Renamed from
32209         doc/glibc-functions/ispunct_l.texi.
32210         * doc/posix-functions/isspace_l.texi: Renamed from
32211         doc/glibc-functions/isspace_l.texi.
32212         * doc/posix-functions/isupper_l.texi: Renamed from
32213         doc/glibc-functions/isupper_l.texi.
32214         * doc/posix-functions/iswalnum_l.texi: Renamed from
32215         doc/glibc-functions/iswalnum_l.texi.
32216         * doc/posix-functions/iswalpha_l.texi: Renamed from
32217         doc/glibc-functions/iswalpha_l.texi.
32218         * doc/posix-functions/iswblank_l.texi: Renamed from
32219         doc/glibc-functions/iswblank_l.texi.
32220         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32221         doc/glibc-functions/iswcntrl_l.texi.
32222         * doc/posix-functions/iswctype_l.texi: Renamed from
32223         doc/glibc-functions/iswctype_l.texi.
32224         * doc/posix-functions/iswdigit_l.texi: Renamed from
32225         doc/glibc-functions/iswdigit_l.texi.
32226         * doc/posix-functions/iswgraph_l.texi: Renamed from
32227         doc/glibc-functions/iswgraph_l.texi.
32228         * doc/posix-functions/iswlower_l.texi: Renamed from
32229         doc/glibc-functions/iswlower_l.texi.
32230         * doc/posix-functions/iswprint_l.texi: Renamed from
32231         doc/glibc-functions/iswprint_l.texi.
32232         * doc/posix-functions/iswpunct_l.texi: Renamed from
32233         doc/glibc-functions/iswpunct_l.texi.
32234         * doc/posix-functions/iswspace_l.texi: Renamed from
32235         doc/glibc-functions/iswspace_l.texi.
32236         * doc/posix-functions/iswupper_l.texi: Renamed from
32237         doc/glibc-functions/iswupper_l.texi.
32238         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32239         doc/glibc-functions/iswxdigit_l.texi.
32240         * doc/posix-functions/isxdigit_l.texi: Renamed from
32241         doc/glibc-functions/isxdigit_l.texi.
32242         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32243         doc/glibc-functions/mbsnrtowcs.texi.
32244         * doc/posix-functions/mkdtemp.texi: Renamed from
32245         doc/glibc-functions/mkdtemp.texi.
32246         * doc/posix-functions/newlocale.texi: Renamed from
32247         doc/glibc-functions/newlocale.texi.
32248         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32249         doc/glibc-functions/nl_langinfo_l.texi.
32250         * doc/posix-functions/open_memstream.texi: Renamed from
32251         doc/glibc-functions/open_memstream.texi.
32252         * doc/posix-functions/opterr.texi: Renamed from
32253         doc/glibc-functions/opterr.texi.
32254         * doc/posix-functions/optind.texi: Renamed from
32255         doc/glibc-functions/optind.texi.
32256         * doc/posix-functions/optopt.texi: Renamed from
32257         doc/glibc-functions/optopt.texi.
32258         * doc/posix-functions/psignal.texi: Renamed from
32259         doc/glibc-functions/psignal.texi.
32260         * doc/posix-functions/scandir.texi: Renamed from
32261         doc/glibc-functions/scandir.texi.
32262         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32263         doc/glibc-functions/sched_get_priority_min.texi.
32264         * doc/posix-functions/signgam.texi: Renamed from
32265         doc/glibc-functions/signgam.texi.
32266         * doc/posix-functions/stpcpy.texi: Renamed from
32267         doc/glibc-functions/stpcpy.texi.
32268         * doc/posix-functions/stpncpy.texi: Renamed from
32269         doc/glibc-functions/stpncpy.texi.
32270         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32271         doc/glibc-functions/strcasecmp_l.texi.
32272         * doc/posix-functions/strcoll_l.texi: Renamed from
32273         doc/glibc-functions/strcoll_l.texi.
32274         * doc/posix-functions/strfmon_l.texi: Renamed from
32275         doc/glibc-functions/strfmon_l.texi.
32276         * doc/posix-functions/strftime_l.texi: Renamed from
32277         doc/glibc-functions/strftime_l.texi.
32278         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32279         doc/glibc-functions/strncasecmp_l.texi.
32280         * doc/posix-functions/strndup.texi: Renamed from
32281         doc/glibc-functions/strndup.texi.
32282         * doc/posix-functions/strnlen.texi: Renamed from
32283         doc/glibc-functions/strnlen.texi.
32284         * doc/posix-functions/strsignal.texi: Renamed from
32285         doc/glibc-functions/strsignal.texi.
32286         * doc/posix-functions/strxfrm_l.texi: Renamed from
32287         doc/glibc-functions/strxfrm_l.texi.
32288         * doc/posix-functions/timer_gettime.texi: Renamed from
32289         doc/glibc-functions/timer_gettime.texi.
32290         * doc/posix-functions/tolower_l.texi: Renamed from
32291         doc/glibc-functions/tolower_l.texi.
32292         * doc/posix-functions/toupper_l.texi: Renamed from
32293         doc/glibc-functions/toupper_l.texi.
32294         * doc/posix-functions/towctrans_l.texi: Renamed from
32295         doc/glibc-functions/towctrans_l.texi.
32296         * doc/posix-functions/towlower_l.texi: Renamed from
32297         doc/glibc-functions/towlower_l.texi.
32298         * doc/posix-functions/towupper_l.texi: Renamed from
32299         doc/glibc-functions/towupper_l.texi.
32300         * doc/posix-functions/uselocale.texi: Renamed from
32301         doc/glibc-functions/uselocale.texi.
32302         * doc/posix-functions/vdprintf.texi: Renamed from
32303         doc/glibc-functions/vdprintf.texi.
32304         * doc/posix-functions/wcpcpy.texi:
32305         Renamed from doc/glibc-functions/wcpcpy.texi.
32306         * doc/posix-functions/wcpncpy.texi: Renamed from
32307         doc/glibc-functions/wcpncpy.texi.
32308         * doc/posix-functions/wcscasecmp.texi: Renamed from
32309         doc/glibc-functions/wcscasecmp.texi.
32310         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32311         doc/glibc-functions/wcscasecmp_l.texi.
32312         * doc/posix-functions/wcscoll_l.texi: Renamed from
32313         doc/glibc-functions/wcscoll_l.texi.
32314         * doc/posix-functions/wcsdup.texi: Renamed from
32315         doc/glibc-functions/wcsdup.texi.
32316         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32317         doc/glibc-functions/wcsncasecmp.texi.
32318         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32319         doc/glibc-functions/wcsncasecmp_l.texi.
32320         * doc/posix-functions/wcsnlen.texi: Renamed from
32321         doc/glibc-functions/wcsnlen.texi.
32322         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32323         doc/glibc-functions/wcsnrtombs.texi.
32324         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32325         doc/glibc-functions/wcsxfrm_l.texi.
32326         * doc/posix-functions/wctrans_l.texi: Renamed from
32327         doc/glibc-functions/wctrans_l.texi.
32328         * doc/posix-functions/wctype_l.texi: Renamed from
32329         doc/glibc-functions/wctype_l.texi.
32330         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32331         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32332         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32333         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32334         these subsections.
32335         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32336         Remove sections.
32337
32338 2008-12-14  Bruno Haible  <bruno@clisp.org>
32339
32340         Update doc for POSIX:2008.
32341         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32342
32343 2008-12-14  Bruno Haible  <bruno@clisp.org>
32344
32345         Update doc for POSIX:2008.
32346         * doc/pastposix-functions/bcmp.texi: Renamed from
32347         doc/posix-functions/bcmp.texi.
32348         * doc/pastposix-functions/bcopy.texi: Renamed from
32349         doc/posix-functions/bcopy.texi.
32350         * doc/pastposix-functions/bsd_signal.texi: Renamed from
32351         doc/posix-functions/bsd_signal.texi.
32352         * doc/pastposix-functions/bzero.texi: Renamed from
32353         doc/posix-functions/bzero.texi.
32354         * doc/pastposix-functions/ecvt.texi: Renamed from
32355         doc/posix-functions/ecvt.texi.
32356         * doc/pastposix-functions/fcvt.texi: Renamed from
32357         doc/posix-functions/fcvt.texi.
32358         * doc/pastposix-functions/ftime.texi: Renamed from
32359         doc/posix-functions/ftime.texi.
32360         * doc/pastposix-functions/gcvt.texi: Renamed from
32361         doc/posix-functions/gcvt.texi.
32362         * doc/pastposix-functions/getcontext.texi: Renamed from
32363         doc/posix-functions/getcontext.texi.
32364         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32365         doc/posix-functions/gethostbyaddr.texi.
32366         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32367         doc/posix-functions/gethostbyname.texi.
32368         * doc/pastposix-functions/getwd.texi: Renamed from
32369         doc/posix-functions/getwd.texi.
32370         * doc/pastposix-functions/h_errno.texi: Renamed from
32371         doc/posix-functions/h_errno.texi.
32372         * doc/pastposix-functions/index.texi: Renamed from
32373         doc/posix-functions/index.texi.
32374         * doc/pastposix-functions/makecontext.texi: Renamed from
32375         doc/posix-functions/makecontext.texi.
32376         * doc/pastposix-functions/mktemp.texi: Renamed from
32377         doc/posix-functions/mktemp.texi.
32378         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32379         doc/posix-functions/pthread_attr_getstackaddr.texi.
32380         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32381         doc/posix-functions/pthread_attr_setstackaddr.texi.
32382         * doc/pastposix-functions/rindex.texi: Renamed from
32383         doc/posix-functions/rindex.texi.
32384         * doc/pastposix-functions/scalb.texi: Renamed from
32385         doc/posix-functions/scalb.texi.
32386         * doc/pastposix-functions/setcontext.texi: Renamed from
32387         doc/posix-functions/setcontext.texi.
32388         * doc/pastposix-functions/swapcontext.texi: Renamed from
32389         doc/posix-functions/swapcontext.texi.
32390         * doc/pastposix-functions/ualarm.texi: Renamed from
32391         doc/posix-functions/ualarm.texi.
32392         * doc/pastposix-functions/usleep.texi: Renamed from
32393         doc/posix-functions/usleep.texi.
32394         * doc/pastposix-functions/vfork.texi: Renamed from
32395         doc/posix-functions/vfork.texi.
32396         * doc/pastposix-functions/wcswcs.texi: Renamed from
32397         doc/posix-functions/wcswcs.texi.
32398         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32399         (Function Substitutes): Update.
32400
32401 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32402
32403         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32404         m4/strerror.m4.
32405
32406 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32407             Bruno Haible  <bruno@clisp.org>
32408
32409         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32410
32411 2008-12-13  Bruno Haible  <bruno@clisp.org>
32412
32413         * modules/strtoull (Depends-on): Remove unistd.
32414
32415 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32416
32417         * modules/strtoull (Depends-on): Add stdlib.
32418
32419 2008-12-11  Simon Josefsson  <simon@josefsson.org>
32420
32421         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
32422
32423 2008-12-10  Jim Meyering  <meyering@redhat.com>
32424
32425         gl_ASSERT: don't say assertions are disabled when they're not
32426         * m4/assert.m4 (gl_ASSERT): Do not make configure report
32427         "checking whether to enable assertions... no", when they are in
32428         fact enabled.  This is solely a bug in the output of configure.
32429         In spite of saying "no", NDEBUG was not defined in that case.
32430         Also, as noted by Eric Blake, leave assertions enabled upon
32431         --enable-assert=INVALID.
32432
32433 2008-12-10  Bruno Haible  <bruno@clisp.org>
32434
32435         Change MODULES.html to refer to POSIX:2008 where possible.
32436         * MODULES.html.sh (POSIX2008_URL): New variable.
32437         (posix_headers): Remove sys/timeb, ucontext.
32438         (posix2001_headers): New variable.
32439         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
32440         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
32441         index, makecontext, mktemp, pthread_attr_getstackaddr,
32442         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
32443         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
32444         (posix2001_functions): New variable.
32445         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
32446         otherwise.
32447
32448 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32449
32450         add missing include to parse-duration.c
32451         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
32452         * modules/parse-duration (Depends-on): Add xalloc.
32453
32454         fix sed script reading maint.mk
32455         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
32456         (syntax-check-rules): Use it.
32457
32458 2008-12-09  Bruno Haible  <bruno@clisp.org>
32459
32460         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
32461         MacOS X 10.4/PowerPC.
32462         Reported by Simon Josefsson.
32463
32464 2008-12-08  Jim Meyering  <meyering@redhat.com>
32465
32466         work around mingw's lack of some S_IF definitions
32467         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
32468         Reported by Simon Josefsson.
32469
32470 2008-12-08  Bruno Haible  <bruno@clisp.org>
32471
32472         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
32473         applied to variables. Needed on MacOS X 10.4/PowerPC.
32474         Reported by Simon Josefsson.
32475
32476 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
32477         and Eric Blake  <ebb9@byu.net>
32478
32479         assert: honor --enable-assert
32480         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
32481         order to honor --enable-assert, rather than treating it as a
32482         synonym for --disable-assert.
32483
32484 2008-12-08  Jim Meyering  <meyering@redhat.com>
32485
32486         * lib/posixtm.c: Remove now-useless declaration of mktime.
32487
32488         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
32489
32490 2008-12-07  Bruno Haible  <bruno@clisp.org>
32491
32492         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
32493         test_once): Mark functions as static.
32494         * tests/test-tls.c (test_tls): Likewise.
32495
32496 2008-12-07  Bruno Haible  <bruno@clisp.org>
32497
32498         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
32499         iconv_register_autodetect.
32500
32501 2008-12-07  Jim Meyering  <meyering@redhat.com>
32502
32503         posixtm.c: avoid a warning
32504         * lib/posixtm.c (posixtime): Don't initialize tm0.
32505         It's no longer needed to placate gcc4's -Wuninitialized,
32506         and the attempt to placate would elicit a new warning.
32507
32508         unicodeio.c: mark unused parameters
32509         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32510         (fallback_failure_callback): Likewise.
32511
32512 2008-12-07  Bruno Haible  <bruno@clisp.org>
32513
32514         * gnulib-tool (func_create_testdir): When building the tests
32515         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
32516         Reported by Simon Josefsson.
32517
32518 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32519
32520         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
32521
32522 2008-12-06  Bruno Haible  <bruno@clisp.org>
32523
32524         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
32525         Suggested by Eric Blake.
32526
32527 2008-12-06  Bruno Haible  <bruno@clisp.org>
32528
32529         Fix a c-stack test failure on MacOS X.
32530         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
32531         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
32532         handler for SIGBUS as well.
32533         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
32534         install a signal handler for SIGBUS as well.
32535         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
32536
32537 2008-12-06  Bruno Haible  <bruno@clisp.org>
32538
32539         Advocacy documentation.
32540         * doc/gnulib-intro.texi (Benefits): New section.
32541         * doc/gnulib.texi: Update.
32542
32543 2008-12-06  Bruno Haible  <bruno@clisp.org>
32544
32545         Document the 'manywarnings' module.
32546         * doc/manywarnings.texi: New file.
32547         * doc/gnulib.texi: Include it.
32548
32549 2008-12-05  Eric Blake  <ebb9@byu.net>
32550
32551         tests: silence some gcc warnings
32552         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
32553         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
32554         type mismatches.
32555
32556 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32557             Bruno Haible  <bruno@clisp.org>
32558
32559         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
32560
32561 2008-11-29  Jim Meyering  <meyering@redhat.com>
32562
32563         unicodeio.c: mark unused parameters
32564         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32565         (fallback_failure_callback): Likewise.
32566
32567         fts: fix a thinko
32568         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
32569         (set_stat_type): Return S_IF*-valued "type" directly.
32570         Prompted by James Youngman's spotting a related bug.
32571         Confirmed by further testing through find.
32572
32573         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
32574         * lib/fts.c (D_TYPE): Define.
32575         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
32576         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
32577         (s_ifmt_shift_bits): New function.
32578         (set_stat_type): New function.
32579         (fts_build): When not calling fts_stat, call set_stat_type
32580         to propagate dirent.d_type info to fts_read caller.
32581         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
32582         fts_statp->st_mode type information may be valid.
32583
32584 2008-11-28  Simon Josefsson  <simon@josefsson.org>
32585
32586         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
32587         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
32588         <sds@gnu.org>.
32589
32590 2008-11-20  Bruno Haible  <bruno@clisp.org>
32591
32592         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
32593         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
32594         INCLUDE_NEXT.
32595         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
32596         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
32597         * modules/math (Makefile.am): Substitute
32598         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
32599         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32600
32601 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32602             Bruno Haible  <bruno@clisp.org>
32603
32604         * lib/stdint.in.h: Define all type macros so that their expansion is
32605         a single typedef'ed token. Fixes a compilation failure in Boost which
32606         does "using ::int8_t;".
32607
32608 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32609
32610         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
32611         gl_MANYWARN_ALL_GCC.
32612         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
32613         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
32614         * modules/manywarnings: New file.
32615         * MODULES.html.sh: Mention manywarnings module.
32616
32617 2008-11-18  Bruno Haible  <bruno@clisp.org>
32618
32619         * doc/gnulib-tool.texi (Unit tests): New section.
32620
32621 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32622
32623         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
32624         paths like 'lib/po/foo.po'.
32625
32626 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32627
32628         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
32629         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
32630
32631 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32632
32633         * m4/warnings.m4: Use CPPFLAGS to really check whether the
32634         parameter works.
32635
32636 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32637
32638         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
32639
32640 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32641
32642         * modules/parse-duration-tests: New file.
32643         * tests/test-parse-duration.sh: New file.
32644         * tests/test-parse-duration.c: New file.
32645
32646         New module 'parse-duration'.
32647         * lib/parse-duration.h: New file.
32648         * lib/parse-duration.c: New file.
32649         * modules/parse-duration: New file.
32650
32651 2008-11-17  Bruno Haible  <bruno@clisp.org>
32652
32653         * tests/test-select-out.sh: Comment out the first pipe test.
32654         Reported by Simon Josefsson.
32655
32656 2008-11-17  Bruno Haible  <bruno@clisp.org>
32657
32658         * modules/getaddrinfo (Depends-on): Add servent, hostent.
32659         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
32660         gl_HOSTENT.
32661
32662 2008-11-17  Bruno Haible  <bruno@clisp.org>
32663
32664         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
32665         -lnetwork and -lnet. Needed for Haiku and BeOS.
32666
32667 2008-11-16  Bruno Haible  <bruno@clisp.org>
32668
32669         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
32670
32671 2008-11-16  Bruno Haible  <bruno@clisp.org>
32672
32673         Avoid test failure on Haiku.
32674         * tests/test-fsync.c: Include <errno.h>.
32675         (main): Don't require that fsync (0) fails.
32676
32677 2008-11-15  Bruno Haible  <bruno@clisp.org>
32678
32679         New module 'hostent'.
32680         * modules/hostent: New file.
32681         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
32682
32683 2008-11-15  Bruno Haible  <bruno@clisp.org>
32684
32685         New module 'servent'.
32686         * modules/servent: New file.
32687         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
32688
32689 2008-11-15  Bruno Haible  <bruno@clisp.org>
32690
32691         Avoid generating same test program with two different rules.
32692         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
32693         test-frexp to test-frexp-nolibm.
32694         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
32695         test-frexpl to test-frexpl-nolibm.
32696
32697 2008-11-15  Bruno Haible  <bruno@clisp.org>
32698
32699         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
32700         $(FREXPL_LIBM).
32701
32702 2008-11-15  Bruno Haible  <bruno@clisp.org>
32703
32704         * lib/netdb.in.h: Activate the definitions also when the system's
32705         <netdb.h> has 'struct addrinfo'.
32706         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
32707         EAI_OVERFLOW or AI_NUMERICSERV.
32708         * doc/posix-headers/netdb.texi: Document the problem.
32709
32710 2008-11-15  Bruno Haible  <bruno@clisp.org>
32711
32712         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
32713
32714         Make the 'sched' module work on platforms where <sched.h> exists but
32715         is incomplete (such as Haiku).
32716         * lib/sched.in.h; Include the system's <sched.h> if it exists.
32717         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
32718         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
32719         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
32720         HAVE_STRUCT_SCHED_PARAM.
32721         * modules/sched (Depends-on): Add include_next.
32722         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
32723         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
32724         * doc/posix-headers/sched.texi: Document the issue.
32725
32726 2008-11-13  Jim Meyering  <meyering@redhat.com>
32727
32728         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
32729         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
32730         test would fail due to the difference in the Report bugs to ...
32731         line.  The expected address is empty, "<>", while the actual
32732         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
32733
32734 2008-11-12  Bruno Haible  <bruno@clisp.org>
32735
32736         lstat: don't compile lstat.c on systems lacking lstat
32737         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
32738         which don't have lstat; this is handled by lib/sys_stat.in.h already.
32739         Reported by Daniel P. Berrange via Jim Meyering.
32740
32741 2008-11-12  Jim Meyering  <meyering@redhat.com>
32742
32743         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
32744
32745 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32746
32747         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
32748         instead.
32749
32750 2008-11-12  Bruno Haible  <bruno@clisp.org>
32751
32752         * lib/unicodeio.c: Include unistr.h.
32753         (utf8_wctomb): Remove function.
32754         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
32755
32756 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32757
32758         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
32759         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
32760         <bruno@clisp.org>.
32761         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
32762
32763 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32764
32765         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
32766         * doc/gnulib.texi: Add section for warnings.
32767
32768 2008-11-11  Bruno Haible  <bruno@clisp.org>
32769
32770         * lib/sockets.h: Add a comment.
32771
32772 2008-11-11  Karl Berry  <karl@gnu.org>
32773
32774         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
32775
32776 2008-11-11  Eric Blake  <ebb9@byu.net>
32777
32778         fdl.texi: avoid git symlinks
32779         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
32780
32781 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32782
32783         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
32784
32785 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32786
32787         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
32788         (gl_WARN_ADD): Substitute $2 if literal.
32789
32790 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32791
32792         * m4/warning.m4: Remove.
32793
32794 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32795
32796         * m4/warnings.m4: Almost complete rewrite. :-)
32797
32798 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32799
32800         * modules/warnings: New module.
32801         * m4/warnings.m4: New file.
32802         * MODULES.html.sh: Mention warnings module.
32803         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
32804         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32805
32806 2008-11-10  Eric Blake  <ebb9@byu.net>
32807
32808         fdl.texi: make a symlink to the latest version
32809         * doc/standards.texi: Revert today's earlier change.
32810         * doc/fdl-1.2.texi: Rename from old fdl.texi...
32811         * doc/fdl.texi: ...and replace this with a symlink to the newer
32812         fdl-1.3.texi.
32813
32814 2008-11-10  Bruno Haible  <bruno@clisp.org>
32815
32816         * tests/test-select-fd.c (main): Accept the result file name as fourth
32817         argument.
32818         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
32819         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
32820
32821 2008-11-10  Bruno Haible  <bruno@clisp.org>
32822
32823         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
32824         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
32825         as autoconf-substituted macros.
32826         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
32827         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
32828         gl_NETDB_H_DEFAULTS. Set these variables.
32829         * modules/netdb (Makefile.am): Substitute these variables.
32830
32831 2008-11-10  Eric Blake  <ebb9@byu.net>
32832
32833         standards.texi: include correct file for FDL 1.3
32834         * doc/standards.texi (GNU Free Documentation License): Change
32835         include file to pull in FDL 1.3, not 1.2.
32836
32837         fdl.texi: revert accidental change to license
32838         * doc/fdl.texi: This is FDL 1.2, not 1.3.
32839
32840 2008-11-10  Bruno Haible  <bruno@clisp.org>
32841
32842         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
32843         cross-compiling guesses also when the native compile gives no result.
32844
32845 2008-11-10  Bruno Haible  <bruno@clisp.org>
32846
32847         * lib/spawni.c (__spawni): Force variable into the stack.
32848
32849 2008-11-10  Bruno Haible  <bruno@clisp.org>
32850
32851         Add support for Haiku.
32852         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
32853         glibc and BeOS, but also on Haiku.
32854         * lib/fpurge.c (fpurge): Likewise.
32855         * lib/freadable.c (freadable): Likewise.
32856         * lib/freadahead.c (freadahead): Likewise.
32857         * lib/freading.c (freading): Likewise.
32858         * lib/freadptr.c (freadptr): Likewise.
32859         * lib/freadseek.c (freadptrinc): Likewise.
32860         * lib/fseeko.c (rpl_fseeko): Likewise.
32861         * lib/fseterr.c (fseterr): Likewise.
32862         * lib/fwritable.c (fwritable): Likewise.
32863         * lib/fwriting.c (fwriting): Likewise.
32864         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
32865
32866 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32867
32868         * lib/config.charset: Treat Haiku like BeOS.
32869
32870 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32871
32872         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
32873         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
32874
32875 2008-11-08  Bruno Haible  <bruno@clisp.org>
32876
32877         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
32878         AC_CACHE_CHECK.
32879
32880 2008-11-08  Bruno Haible  <bruno@clisp.org>
32881
32882         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
32883
32884 2008-11-08  Bruno Haible  <bruno@clisp.org>
32885
32886         * tests/test-select-fd.c: New file.
32887         * tests/test-select-in.sh: New file.
32888         * tests/test-select-out.sh: New file.
32889         * tests/test-select-stdin.c: New file.
32890         * modules/select-tests (Files): Add the new files.
32891         (Depends-on): Add gettimeofday.
32892         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
32893         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
32894         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
32895
32896 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
32897             Bruno Haible  <bruno@clisp.org>
32898
32899         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
32900
32901 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
32902
32903         * build-aux/pmccabe2html: Added support for C++ source files.
32904
32905 2008-11-05  Ben Pfaff  <blp@gnu.org>
32906
32907         Fix lib/close.c build on Windows.
32908         * modules/close (Files): Add lib/w32sock.h.
32909
32910 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
32911
32912         Accept Bison's NEWS format.
32913         * build-aux/announce-gen (print_news_deltas): Tweak
32914         $re_prefix.
32915
32916 2008-11-04  Bruno Haible  <bruno@clisp.org>
32917
32918         * modules/random_r (Maintainer): Add glibc.
32919
32920 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32921
32922         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
32923         by karl@freefriends.org (Karl Berry).
32924         * doc/alloca.texi: Likewise.
32925         * doc/c-ctype.texi: Likewise.
32926         * doc/c-strcase.texi: Likewise.
32927         * doc/c-strcaseeq.texi: Likewise.
32928         * doc/c-strcasestr.texi: Likewise.
32929         * doc/c-strstr.texi: Likewise.
32930         * doc/c-strtod.texi: Likewise.
32931         * doc/c-strtold.texi: Likewise.
32932         * doc/ctime.texi: Likewise.
32933         * doc/error.texi: Likewise.
32934         * doc/fdl.texi: Likewise.
32935         * doc/gcd.texi: Likewise.
32936         * doc/getdate.texi: Likewise.
32937         * doc/gnulib-intro.texi: Likewise.
32938         * doc/gnulib-tool.texi: Likewise.
32939         * doc/gnulib.texi: Likewise.
32940         * doc/inet_ntoa.texi: Likewise.
32941         * doc/maintain.texi: Likewise.
32942         * doc/make-stds.texi: Likewise.
32943         * doc/quote.texi: Likewise.
32944         * doc/regexprops-generic.texi: Likewise.
32945         * doc/standards.texi: Likewise.
32946         * doc/verify.texi: Likewise.
32947         * doc/visibility.texi: Likewise.
32948         * doc/gnulib.texi (GNU Free Documentation License): Include
32949         fdl-1.3.texi instead of fdl.texi.
32950
32951 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32952
32953         * doc/fdl-1.3.texi: New file, from
32954         <http://www.gnu.org/licenses/fdl-1.3.texi>.
32955         * modules/fdl-1.3: Add.
32956         * MODULES.html.sh: Add fdl-1.3.
32957
32958 2008-11-03  Bruno Haible  <bruno@clisp.org>
32959
32960         Make determination of absolute name of header file work with AIX xlc.
32961         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
32962         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
32963         preprocessing.
32964         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32965         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32966
32967 2008-11-03  Simon Josefsson  <simon@josefsson.org>
32968
32969         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
32970         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
32971         <ludo@gnu.org>.
32972
32973 2008-11-02  Bruno Haible  <bruno@clisp.org>
32974
32975         Mark 'strpbrk' obsolete.
32976         * modules/strpbrk (Status, Notice): New sections.
32977         * modules/strtok_r (Depends-on): Add strpbrk.
32978
32979 2008-11-02  Bruno Haible  <bruno@clisp.org>
32980
32981         Mark 'strdup' obsolete.
32982         * modules/strdup (Status, Notice): New sections.
32983         * modules/findprog (Depends-on): Add strdup.
32984         * modules/getaddrinfo (Depends-on): Likewise.
32985         * modules/localename (Depends-on): Likewise.
32986         * modules/relocatable-lib (Depends-on): Likewise.
32987         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
32988         * modules/relocatable-prog (Depends-on): Likewise.
32989         * modules/trim (Depends-on): Likewise.
32990         * modules/unictype/gen-ctype (Depends-on): Likewise.
32991         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32992
32993 2008-11-02  Bruno Haible  <bruno@clisp.org>
32994
32995         Mark 'strcspn' obsolete.
32996         * modules/strcspn (Status, Notice): New sections.
32997
32998 2008-11-02  Bruno Haible  <bruno@clisp.org>
32999
33000         Mark 'rmdir' obsolete.
33001         * modules/rmdir (Status, Notice): New sections.
33002         * modules/clean-temp (Depends-on): Add rmdir.
33003         * modules/openat (Depends-on): Likewise.
33004
33005 2008-11-02  Bruno Haible  <bruno@clisp.org>
33006
33007         Mark 'raise' obsolete.
33008         * modules/raise (Status, Notice): New sections.
33009         (Include): Specify <signal.h>.
33010         * modules/stdio (Depends-on): Add raise.
33011         * modules/write (Depends-on): Likewise.
33012
33013 2008-11-02  Bruno Haible  <bruno@clisp.org>
33014
33015         Mark 'memset' obsolete.
33016         * modules/memset (Status, Notice): New sections.
33017
33018 2008-11-02  Bruno Haible  <bruno@clisp.org>
33019
33020         Mark 'memmove' obsolete.
33021         * modules/memmove (Status, Notice): New sections.
33022         * modules/argp (Depends-on): Add memmove.
33023         * modules/argz (Depends-on): Likewise.
33024         * modules/canonicalize (Depends-on): Likewise.
33025         * modules/canonicalize-lgpl (Depends-on): Likewise.
33026         * modules/fts (Depends-on): Likewise.
33027         * modules/getcwd (Depends-on): Likewise.
33028         * modules/human (Depends-on): Likewise.
33029         * modules/regex (Depends-on): Likewise.
33030         * modules/striconveh (Depends-on): Likewise.
33031         * modules/trim (Depends-on): Likewise.
33032         * modules/unistr/u8-move (Depends-on): Likewise.
33033         * modules/unistr/u16-move (Depends-on): Likewise.
33034         * modules/unistr/u32-move (Depends-on): Likewise.
33035
33036 2008-11-02  Bruno Haible  <bruno@clisp.org>
33037
33038         Mark 'memcpy' obsolete.
33039         * modules/memcpy (Status, Notice): New sections.
33040
33041 2008-11-02  Bruno Haible  <bruno@clisp.org>
33042
33043         Mark 'memcmp' obsolete.
33044         * modules/memcmp (Status, Notice): New sections.
33045         * modules/argmatch (Depends-on): Add memchr.
33046         * modules/backupfile (Depends-on): Likewise.
33047         * modules/c-strcasestr (Depends-on): Likewise.
33048         * modules/crypto/des (Depends-on): Likewise.
33049         * modules/csharpcomp (Depends-on): Likewise.
33050         * modules/fnmatch (Depends-on): Likewise.
33051         * modules/git-merge-changelog (Depends-on): Likewise.
33052         * modules/isnand (Depends-on): Likewise.
33053         * modules/isnand-nolibm (Depends-on): Likewise.
33054         * modules/isnanf (Depends-on): Likewise.
33055         * modules/isnanf-nolibm (Depends-on): Likewise.
33056         * modules/isnanl (Depends-on): Likewise.
33057         * modules/isnanl-nolibm (Depends-on): Likewise.
33058         * modules/mbchar (Depends-on): Likewise.
33059         * modules/memcoll (Depends-on): Likewise.
33060         * modules/quotearg (Depends-on): Likewise.
33061         * modules/regex (Depends-on): Likewise.
33062         * modules/relocatable-prog (Depends-on): Likewise.
33063         * modules/same (Depends-on): Likewise.
33064         * modules/signbit (Depends-on): Likewise.
33065         * modules/strcasestr-simple (Depends-on): Likewise.
33066         * modules/unictype/gen-ctype (Depends-on): Likewise.
33067         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33068         * modules/uniname/uniname (Depends-on): Likewise.
33069         * modules/unistr/u8-cmp (Depends-on): Likewise.
33070
33071 2008-11-02  Bruno Haible  <bruno@clisp.org>
33072
33073         Mark 'memchr' obsolete.
33074         * modules/memchr (Status, Notice): New sections.
33075         * modules/argp (Depends-on): Add memchr.
33076         * modules/base64 (Depends-on): Likewise.
33077         * modules/c-strcasestr (Depends-on): Likewise.
33078         * modules/chdir-long (Depends-on): Likewise.
33079         * modules/fnmatch (Depends-on): Likewise.
33080         * modules/getsubopt (Depends-on): Likewise.
33081         * modules/git-merge-changelog (Depends-on): Likewise.
33082         * modules/glob (Depends-on): Likewise.
33083         * modules/strcasestr-simple (Depends-on): Likewise.
33084         * modules/strnlen (Depends-on): Likewise.
33085
33086 2008-11-02  Bruno Haible  <bruno@clisp.org>
33087
33088         Mark 'atexit' obsolete.
33089         * modules/atexit (Status, Notice): New sections.
33090         * modules/chdir-long (Depends-on): Add atexit.
33091         * modules/wait-process (Depends-on): Likewise.
33092
33093 2008-11-02  Bruno Haible  <bruno@clisp.org>
33094
33095         * gnulib-tool: New option --with-obsolete.
33096         (func_usage): Document it.
33097         (func_modules_transitive_closure): Drop obsolete dependencies if
33098         incobsolete is not true.
33099         (func_import): Read and save the incobsolete variable to the cache.
33100
33101 2008-11-02  Bruno Haible  <bruno@clisp.org>
33102
33103         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33104         * gnulib-tool: New option --extract-status.
33105         (func_usage): Document it.
33106         (sed_extract_prog): Recognize it.
33107         (func_get_status): New function.
33108
33109 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33110
33111         * modules/sockets (License): Change from LGPL to LGPLv2+.
33112
33113 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33114
33115         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33116
33117 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33118
33119         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33120         Mention times and sys_times.
33121         * modules/sys_times, modules/sys_times-tests: New modules.
33122         * modules/times, modules/times-tests: Likewise
33123         * m4/sys_times_h.m4: New file.
33124         * lib/sys_times.in.h: Likewise
33125         * lib/times.c: Likewise.
33126         * tests/test-sys_times.c: Likewise.
33127         * tests/test-times.c: Likewise.
33128         * doc/posix-headers/sys_times.texi: Update.
33129         * doc/posix-functions/times.texi: Update.
33130
33131 2008-10-28  Jim Meyering  <meyering@redhat.com>
33132
33133         * modules/tempname (Depends-on): Add lstat.
33134
33135         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33136
33137 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33138
33139         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33140         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33141         using idiom used elsewhere in gnulib.
33142
33143 2008-10-27  Jim Meyering  <meyering@redhat.com>
33144
33145         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33146
33147 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33148
33149         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33150         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33151         programs.
33152         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33153
33154 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33155
33156         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33157
33158 2008-10-27  Bruno Haible  <bruno@clisp.org>
33159
33160         * tests/test-lstat.c: Include <stdio.h>.
33161
33162 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33163
33164         * modules/lstat-tests: New module.
33165         * tests/test-lstat.c: New file.
33166
33167 2008-10-26  Jim Meyering  <meyering@redhat.com>
33168
33169         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33170
33171 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33172             Bruno Haible  <bruno@clisp.org>
33173
33174         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33175         * modules/configmake (Include): Add a note that the include must come
33176         after all system headers.
33177         * lib/javaversion.c: Include configmake.h after all other includes.
33178
33179 2008-10-26  Bruno Haible  <bruno@clisp.org>
33180
33181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33182         HAVE_STRUCT_RANDOM_DATA to 1.
33183         (gl_STDLIB_H): Simplify.
33184
33185 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33186
33187         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33188         substitute HAVE_STRUCT_RANDOM_DATA.
33189         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33190         random_data.
33191         * modules/stdlib (Makefile.am): Substitute
33192         HAVE_STRUCT_RANDOM_DATA.
33193
33194 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33195
33196         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33197         * doc/gnulib-intro.texi (Copyright): Likewise.
33198
33199 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33200
33201         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33202         findings.
33203
33204 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33205             Bruno Haible  <bruno@clisp.org>
33206
33207         * lib/unistd.in.h: Include <winsock2.h>.
33208         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33209         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33210         Provide dummy declarations.
33211         (gethostname): Override.
33212         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33213         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33214         gl_PREREQ_SYS_H_WINSOCK2.
33215         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33216         * doc/posix-functions/gethostname.texi: More details.
33217
33218 2008-10-25  Bruno Haible  <bruno@clisp.org>
33219
33220         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33221         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33222         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33223
33224         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33225         here ...
33226         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33227         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33228         gl_UNISTD_H_DEFAULTS.
33229
33230 2008-10-25  Eric Blake  <ebb9@byu.net>
33231
33232         signbit: avoid spurious compiler failure
33233         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33234         declarations inside function.
33235
33236 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33237             Bruno Haible  <bruno@clisp.org>
33238
33239         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33240         * modules/random_r (Depends-on): Add stdint.
33241
33242 2008-10-24  Bruno Haible  <bruno@clisp.org>
33243
33244         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33245         Eggert.
33246         * modules/strerror (License): Likewise.
33247
33248 2008-10-24  Jim Meyering  <meyering@redhat.com>
33249
33250         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33251         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33252
33253 2008-10-24  Eric Blake  <ebb9@byu.net>
33254
33255         getgroups: fix compilation when getgroups is available
33256         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33257         but with <config.h> override of getgroups disabled.
33258
33259 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33260
33261         * doc/gnulib.texi (Header files): Add note about C++ problems.
33262         Explained by Bruno Haible <bruno@clisp.org>.
33263
33264 2008-10-23  Bruno Haible  <bruno@clisp.org>
33265
33266         Define a dummy SA_NODEFER macro on Interix.
33267         * lib/signal.in.h (SA_NODEFER): Define fallback.
33268         Reported by Aleksey Cheusov <cheusov@tut.by> via
33269         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33270
33271 2008-10-23  Bruno Haible  <bruno@clisp.org>
33272
33273         * modules/freadahead (License): Change to LGPLv2+.
33274         Suggested by Simon Josefsson.
33275
33276 2008-10-23  Jim Meyering  <meyering@redhat.com>
33277
33278         random_r: new module
33279         * modules/random_r: New file.
33280         * m4/random_r.m4: New file.
33281         * lib/random_r.c: New file, from glibc.
33282         * modules/random_r-tests: New file.
33283         * tests/test-random_r.c: New file.
33284         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33285          Declare.
33286         (RAND_MAX): Define.
33287         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33288         * modules/stdlib: Substitute them, too.
33289         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33290         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33291         * doc/glibc-functions/random_r.texi: Likewise.
33292         * doc/glibc-functions/setstate_r.texi: Likewise.
33293         * doc/glibc-functions/srandom_r.texi: Likewise.
33294         * config/srclist.txt: Mention it.
33295
33296 2008-10-23  David Lutterkort  <lutter@redhat.com>
33297
33298         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33299         link requirement
33300
33301 2008-10-23  Jim Meyering  <meyering@redhat.com>
33302
33303         selinux-h: mark parameters of stub functions as intentionally unused
33304         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33305         * lib/se-context.in.h: Likewise.
33306
33307 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33308
33309         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33310
33311 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33312
33313         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33314
33315 2008-10-22  Eric Blake  <ebb9@byu.net>
33316
33317         glthread/thread: avoid compiler warning
33318         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33319         Add unreachable abort to silence compiler.
33320
33321 2008-10-22  Eric Blake  <ebb9@byu.net>
33322
33323         netdb: also supply struct addrinfo for cygwin 1.5.x
33324         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33325         older cygwin.
33326         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33327         cygwin.
33328         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33329
33330 2008-10-22  Bruno Haible  <bruno@clisp.org>
33331
33332         * users.txt: Update entry about pspp.
33333
33334 2008-10-21  Bruno Haible  <bruno@clisp.org>
33335
33336         Simplification.
33337         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33338         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33339
33340         Simplification.
33341         * lib/ioctl.c (ioctl): Don't undefine.
33342         * lib/socket.c (socket): Don't undefine.
33343
33344         Remove unused module indicator macros.
33345         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33346         GNULIB_$1 as a C macro.
33347
33348         * doc/posix-functions/close.texi: Undo last change.
33349         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33350         Windows platforms.
33351
33352 2008-10-21  Bruno Haible  <bruno@clisp.org>
33353
33354         Add gethostname() declaration to <unistd.h>.
33355         * lib/unistd.in.h (gethostname): New declaration.
33356         * lib/gethostname.c: Include <unistd.h>.
33357         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33358         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33360         and HAVE_GETHOSTNAME.
33361         * modules/gethostname (Depends-on): Add unistd.
33362         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33363         (Include): Specify <unistd.h>.
33364         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33365         HAVE_GETHOSTNAME.
33366         * tests/test-gethostname.c: Include <unistd.h> first.
33367
33368 2008-10-21  Bruno Haible  <bruno@clisp.org>
33369
33370         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33371         * modules/select-tests (Depends-on): Likewise.
33372         Reported by Simon Josefsson.
33373
33374 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33375
33376         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33377         * lib/accept.c: New file, based on winsock.c.
33378         * lib/bind.c: New file, based on winsock.c.
33379         * lib/connect.c: New file, based on winsock.c.
33380         * lib/getpeername.c: New file, based on winsock.c.
33381         * lib/getsockname.c: New file, based on winsock.c.
33382         * lib/getsockopt.c: New file, based on winsock.c.
33383         * lib/ioctl.c: New file, based on winsock.c.
33384         * lib/listen.c: New file, based on winsock.c.
33385         * lib/recv.c: New file, based on winsock.c.
33386         * lib/recvfrom.c: New file, based on winsock.c.
33387         * lib/send.c: New file, based on winsock.c.
33388         * lib/sendto.c: New file, based on winsock.c.
33389         * lib/setsockopt.c: New file, based on winsock.c.
33390         * lib/shutdown.c: New file, based on winsock.c.
33391         * lib/socket.c: New file, based on winsock.c.
33392         * lib/w32sock.h: New file, based on winsock.c.
33393         * lib/winsock.c: Remove file.
33394         * modules/accept: Likewise.
33395         * modules/bind: Likewise.
33396         * modules/connect: Likewise.
33397         * modules/getpeername: Likewise.
33398         * modules/getsockname: Likewise.
33399         * modules/getsockopt: Likewise.
33400         * modules/ioctl: Likewise.
33401         * modules/listen: Likewise.
33402         * modules/recv: Likewise.
33403         * modules/recvfrom: Likewise.
33404         * modules/send: Likewise.
33405         * modules/sendto: Likewise.
33406         * modules/setsockopt: Likewise.
33407         * modules/shutdown: Likewise.
33408         * modules/socket: Use socket.c instead of winsock.c.
33409         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33410         * doc/posix-functions/accept.texi: Doc fix.
33411         * doc/posix-functions/bind.texi: Doc fix.
33412         * doc/posix-functions/close.texi: Doc fix.
33413         * doc/posix-functions/connect.texi: Doc fix.
33414         * doc/posix-functions/getpeername.texi: Doc fix.
33415         * doc/posix-functions/getsockname.texi: Doc fix.
33416         * doc/posix-functions/getsockopt.texi: Doc fix.
33417         * doc/posix-functions/ioctl.texi: Doc fix.
33418         * doc/posix-functions/listen.texi: Doc fix.
33419         * doc/posix-functions/recv.texi: Doc fix.
33420         * doc/posix-functions/recvfrom.texi: Doc fix.
33421         * doc/posix-functions/send.texi: Doc fix.
33422         * doc/posix-functions/sendto.texi: Doc fix.
33423         * doc/posix-functions/setsockopt.texi: Doc fix.
33424         * doc/posix-functions/shutdown.texi: Doc fix.
33425         * doc/posix-functions/socket.texi: Doc fix.
33426
33427 2008-10-20  Bruno Haible  <bruno@clisp.org>
33428
33429         Take into account the role of SIGABRT_COMPAT on Windows 2008.
33430         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
33431         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
33432         as an alias for SIGABRT.
33433         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
33434         (sigaction): Map it to SIGABRT.
33435         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
33436
33437 2008-10-20  Bruno Haible  <bruno@clisp.org>
33438
33439         * lib/fts.c: Don't include lstat.h.
33440         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
33441
33442         Move the lstat() declaration to <sys/stat.h>.
33443         * lib/lstat.h: Remove file.
33444         * lib/sys_stat.in.h: Add special invocation convention.
33445         (lstat): New declaration.
33446         * lib/lstat.c (orig_lstat): New function.
33447         (rpl_lstat): Use orig_lstat instead of lstat.
33448         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
33449         AC_C_INLINE. Set REPLACE_LSTAT.
33450         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
33451         and REPLACE_LSTAT.
33452         * modules/lstat (Files): Remove lib/lstat.h.
33453         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33454         (Include): Specify <sys/stat.h> instead of lstat.h.
33455         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
33456         REPLACE_LSTAT.
33457         * NEWS: Mention the change.
33458
33459 2008-10-20  Bruno Haible  <bruno@clisp.org>
33460
33461         * modules/posix_spawn-tests: New file.
33462         * tests/test-posix_spawn3.c: New file.
33463
33464 2008-10-20  Bruno Haible  <bruno@clisp.org>
33465
33466         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
33467         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33468         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
33469         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33470         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
33471
33472 2008-10-20  Bruno Haible  <bruno@clisp.org>
33473
33474         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
33475         of posix_spawn on AIX 5.3.
33476
33477 2008-10-20  Bruno Haible  <bruno@clisp.org>
33478
33479         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
33480
33481 2008-10-20  Bruno Haible  <bruno@clisp.org>
33482
33483         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
33484         of AC_LANG_PROGRAM.
33485
33486 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33487
33488         * lib/netdb.in.h: Don't define GNU specific constants until they
33489         are supported or needed.  Reported by Bruno Haible
33490         <bruno@clisp.org>.
33491
33492 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33493
33494         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
33495
33496 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33497
33498         * lib/getaddrinfo.h: Remove file.
33499         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
33500         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
33501         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
33502         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
33503         * modules/netdb: Substitute GNULIB_GETADDRINFO.
33504         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
33505         * tests/test-getaddrinfo.c: Likewise.
33506         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
33507         * NEWS: Mention change.
33508
33509 2008-10-19  Bruno Haible  <bruno@clisp.org>
33510
33511         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
33512
33513 2008-10-19  Bruno Haible  <bruno@clisp.org>
33514
33515         * lib/wait-process.c: Include simply <sys/wait.h>.
33516         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
33517         WIFSTOPPED): Remove fallback definitions.
33518         * modules/wait-process (Depends-on): Add sys_wait.
33519
33520         New module 'sys_wait'.
33521         * modules/sys_wait: New file.
33522         * lib/sys_wait.in.h: New file, partially copied from
33523         lib/wait-process.c.
33524         * m4/sys_wait_h.m4: New file.
33525         * doc/posix-headers/sys_wait.texi: Mention the new module.
33526
33527 2008-10-19  Bruno Haible  <bruno@clisp.org>
33528
33529         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
33530
33531 2008-10-19  Bruno Haible  <bruno@clisp.org>
33532
33533         Assume that waitpid() fills an 'int' status, not a 'union wait'.
33534         * lib/wait-process.c (WAIT_T): Remove type.
33535         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
33536         (wait_subprocess): Update.
33537
33538 2008-10-19  Bruno Haible  <bruno@clisp.org>
33539
33540         New module 'atoll'.
33541         * modules/atoll: New file.
33542         * lib/stdlib.in.h (atoll): New declaration.
33543         * lib/atoll.c: New file, from glibc with modifications.
33544         * m4/atoll.m4: New file.
33545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
33546         HAVE_ATOLL.
33547         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
33548         * doc/posix-functions/atoll.texi: Mention the new module.
33549
33550 2008-10-19  Bruno Haible  <bruno@clisp.org>
33551
33552         Add strtoull() declaration to <stdlib.h>.
33553         * lib/stdlib.in.h (strtoull): New declaration.
33554         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33555         Set HAVE_STRTOULL.
33556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
33557         HAVE_STRTOULL.
33558         * modules/strtoull (Depends-on): Add stdlib.
33559         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33560         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
33561         HAVE_STRTOULL.
33562
33563 2008-10-19  Bruno Haible  <bruno@clisp.org>
33564
33565         Add strtoll() declaration to <stdlib.h>.
33566         * lib/stdlib.in.h (strtoll): New declaration.
33567         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33568         Set HAVE_STRTOLL.
33569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
33570         HAVE_STRTOLL.
33571         * modules/strtoll (Depends-on): Add stdlib.
33572         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33573         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
33574
33575 2008-10-19  Bruno Haible  <bruno@clisp.org>
33576
33577         * modules/bcopy (Depends-on): Add strings.
33578         (Include): Specify <strings.h>.
33579
33580 2008-10-19  Bruno Haible  <bruno@clisp.org>
33581
33582         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
33583
33584 2008-10-19  Bruno Haible  <bruno@clisp.org>
33585
33586         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
33587         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
33588         mingw.
33589
33590 2008-10-19  Bruno Haible  <bruno@clisp.org>
33591
33592         * lib/atanl.c: Don't include isnanl.h.
33593         * lib/cosl.c: Likewise.
33594         * lib/ldexpl.c: Likewise.
33595         * lib/logl.c: Likewise.
33596         * lib/sinl.c: Likewise.
33597         * lib/sqrtl.c: Likewise.
33598         * lib/tanl.c: Likewise.
33599
33600         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
33601         * lib/isnanf.h: Remove file.
33602         * lib/isnand.h: Remove file.
33603         * lib/isnanl.h: Remove file.
33604         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
33605         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
33606         macros.
33607         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
33608         HAVE_ISNANF, don't define it as a C macro.
33609         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
33610         HAVE_ISNAND, don't define it as a C macro.
33611         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
33612         HAVE_ISNANL, don't define it as a C macro.
33613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
33614         HAVE_ISNAN[FDL].
33615         * modules/isnanf (Files): Remove lib/isnanf.h.
33616         (Depends-on): Add math.
33617         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33618         (Include): Specify <math.h> instead of isnanf.h.
33619         * modules/isnand (Files): Remove lib/isnand.h.
33620         (Depends-on): Add math.
33621         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33622         (Include): Specify <math.h> instead of isnand.h.
33623         * modules/isnanl (Files): Remove lib/isnanl.h.
33624         (Depends-on): Add math.
33625         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33626         (Include): Specify <math.h> instead of isnanl.h.
33627         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
33628         HAVE_ISNAN[FDL].
33629         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
33630         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
33631         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
33632         * NEWS: Mention the change.
33633
33634 2008-10-18  Bruno Haible  <bruno@clisp.org>
33635
33636         Add getusershell(), setusershell(), endusershell() declarations to
33637         <unistd.h>.
33638         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
33639         declarations.
33640         * lib/getusershell.c: Include unistd.h.
33641         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
33642         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33643         HAVE_GETUSERSHELL.
33644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
33645         and HAVE_GETUSERSHELL.
33646         * modules/getusershell (Depends-on): Add unistd, extensions.
33647         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33648         (Include): Specify <unistd.h>.
33649         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
33650         HAVE_GETUSERSHELL.
33651
33652 2008-10-18  Bruno Haible  <bruno@clisp.org>
33653
33654         Add a getloadavg() declaration to <stdlib.h>.
33655         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
33656         getloadavg declaration.
33657         (getloadavg): New declaration.
33658         * lib/getloadavg.c: Include <stdlib.h> first.
33659         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
33660         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
33661         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
33662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
33663         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33664         * modules/getloadavg (Depends-on): Add stdlib, extensions.
33665         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33666         (Include): Specify <stdlib.h>.
33667         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
33668         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33669
33670 2008-10-18  Bruno Haible  <bruno@clisp.org>
33671
33672         * lib/dirchownmod.c: Don't include lchmod.h.
33673
33674         Move the lchmod() declaration to <sys/stat.h>.
33675         * lib/lchmod.h: Remove file.
33676         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
33677         (lchmod): New declaration, moved here from lib/lchown.h.
33678         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
33679         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
33680         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
33681         and HAVE_LCHMOD.
33682         * modules/lchmod (Files): Remove lib/lchmod.h.
33683         (Depends-on): Add sys_stat, extensions.
33684         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33685         (Include): Specify <sys/stat.h> instead of lchmod.h.
33686         * modules/sys_stat (Depends-on): Add link-warning.
33687         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
33688         definition of GL_LINK_WARNING.
33689         * NEWS: Mention the change.
33690
33691 2008-10-18  Bruno Haible  <bruno@clisp.org>
33692
33693         * lib/fchdir.c: Don't include dirfd.h.
33694         * lib/fts.c: Likewise.
33695         * lib/getcwd.c: Likewise.
33696         * lib/glob.c: Likewise.
33697
33698         Move the dirfd() declaration to <dirent.h>.
33699         * lib/dirfd.h: Remove file.
33700         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
33701         (dirfd): New declaration.
33702         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
33703         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
33704         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
33705         HAVE_DECL_DIRFD.
33706         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
33707         HAVE_DECL_DIRFD.
33708         * modules/dirfd (Files): Remove lib/dirfd.h.
33709         (Depends-on): Add dirent, extensions.
33710         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
33711         (Include): Specify <dirent.h> instead of dirfd.h.
33712         * modules/dirent (Depends-on): Add link-warning.
33713         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
33714         definition of GL_LINK_WARNING.
33715         * NEWS: Mention the change.
33716
33717 2008-10-18  Bruno Haible  <bruno@clisp.org>
33718
33719         Move the euidaccess() declaration to <unistd.h>.
33720         * lib/euidaccess.h: Remove file.
33721         * lib/unistd.in.h (euidaccess): New declaration.
33722         * lib/euidaccess.c: Don't include euidaccess.h.
33723         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
33724         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
33725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
33726         and HAVE_EUIDACCESS.
33727         * modules/euidaccess (Files): Remove lib/euidaccess.h.
33728         (Depends-on): Add unistd.
33729         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33730         (Include): Specify <unistd.h> instead of euidaccess.h.
33731         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
33732         HAVE_EUIDACCESS.
33733         * NEWS: Mention the change.
33734
33735 2008-10-18  Bruno Haible  <bruno@clisp.org>
33736
33737         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
33738
33739         Move the getdomainname() declaration to <unistd.h>.
33740         * lib/getdomainname.h: Remove file.
33741         * lib/unistd.in.h (getdomainname): New declaration.
33742         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
33743         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
33744         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33745         HAVE_GETDOMAINNAME.
33746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33747         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
33748         * modules/getdomainname (Files): Remove lib/getdomainname.h.
33749         (Depends-on): Add unistd, extensions.
33750         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33751         (Includes): Specify <unistd.h> instead of getdomainname.h.
33752         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
33753         HAVE_GETDOMAINNAME.
33754         * NEWS: Mention the change.
33755
33756 2008-10-18  Bruno Haible  <bruno@clisp.org>
33757
33758         * modules/dirent: New file.
33759         * m4/dirent_h.m4: New file.
33760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
33761         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
33762         * modules/fchdir (Files): Remove lib/dirent.in.h.
33763         (Depends-on): Add dirent.
33764         (Makefile.am): Move rules to modules/dirent.
33765         * doc/posix-headers/dirent.texi: Mention the new module.
33766
33767 2008-10-18  Bruno Haible  <bruno@clisp.org>
33768
33769         Avoid -Wunused-parameter warnings in public gnulib header files.
33770         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
33771         macro.
33772         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
33773
33774 2008-10-18  Bruno Haible  <bruno@clisp.org>
33775
33776         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
33777         * doc/glibc-functions/error.texi: Mention the module 'error'.
33778         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
33779         * doc/glibc-functions/getdomainname.texi: Mention the module
33780         'getdomainname'.
33781         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
33782         * doc/glibc-functions/getpagesize.texi: Mention the module
33783         'getpagesize'.
33784         * doc/glibc-functions/getusershell.texi: Mention the module
33785         'getusershell'.
33786         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
33787         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33788         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
33789         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
33790         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
33791         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
33792         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
33793         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
33794         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
33795         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
33796         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
33797         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
33798         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
33799         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
33800
33801 2008-10-17  Bruno Haible  <bruno@clisp.org>
33802
33803         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
33804         HP-UX and IRIX, use -0.0L.
33805         * tests/test-ceill.c (minus_zero): Likewise.
33806         * tests/test-floorl.c (minus_zero): Likewise.
33807         * tests/test-frexpl.c (minus_zero): Likewise.
33808         * tests/test-isnan.c (minus_zerol): Likewise.
33809         * tests/test-isnanl.h (minus_zero): Likewise.
33810         * tests/test-ldexpl.c (minus_zero): Likewise.
33811         * tests/test-roundl.c (minus_zero): Likewise.
33812         * tests/test-signbit.c (minus_zerol): Likewise.
33813         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33814         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33815         * tests/test-truncl.c (minus_zero): Likewise.
33816         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33817         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33818         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
33819         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33820
33821 2008-10-17  Bruno Haible  <bruno@clisp.org>
33822
33823         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
33824         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
33825         that it gets activated only for gcc >= 3.0.
33826         * lib/dirent.in.h: Likewise.
33827         * lib/errno.in.h: Likewise.
33828         * lib/fcntl.in.h: Likewise.
33829         * lib/float.in.h: Likewise.
33830         * lib/iconv.in.h: Likewise.
33831         * lib/inttypes.in.h: Likewise.
33832         * lib/locale.in.h: Likewise.
33833         * lib/math.in.h: Likewise.
33834         * lib/netdb.in.h: Likewise.
33835         * lib/netinet_in.in.h: Likewise.
33836         * lib/search.in.h: Likewise.
33837         * lib/signal.in.h: Likewise.
33838         * lib/spawn.in.h: Likewise.
33839         * lib/stdarg.in.h: Likewise.
33840         * lib/stdint.in.h: Likewise.
33841         * lib/stdio.in.h: Likewise.
33842         * lib/stdlib.in.h: Likewise.
33843         * lib/string.in.h: Likewise.
33844         * lib/strings.in.h: Likewise.
33845         * lib/sys_file.in.h: Likewise.
33846         * lib/sys_ioctl.in.h: Likewise.
33847         * lib/sys_select.in.h: Likewise.
33848         * lib/sys_socket.in.h: Likewise.
33849         * lib/sys_stat.in.h: Likewise.
33850         * lib/sys_time.in.h: Likewise.
33851         * lib/sysexits.in.h: Likewise.
33852         * lib/time.in.h: Likewise.
33853         * lib/unistd.in.h: Likewise.
33854         * lib/wchar.in.h: Likewise.
33855         * lib/wctype.in.h: Likewise.
33856         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33857
33858 2008-10-17  Jim Meyering  <meyering@redhat.com>
33859
33860         ignore-value: don't depend on inline module
33861         * modules/ignore-value (Depends-on): Remove 'inline'.
33862         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
33863         Suggestion from Bruno Haible.
33864
33865 2008-10-17  Bruno Haible  <bruno@clisp.org>
33866
33867         New implementation of condition variables for Win32.
33868         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
33869         (gl_linked_waitqueue_t): New type.
33870         (gl_cond_t): Use it.
33871         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
33872         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
33873         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
33874         (glthread_cond_init_func, glthread_cond_wait_func,
33875         glthread_cond_timedwait_func, glthread_cond_signal_func,
33876         glthread_cond_broadcast_func, glthread_cond_destroy_func):
33877         Reimplemented on the basis of gl_linked_waitqueue_t.
33878         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
33879         gl_waitqueue_t.
33880         (gl_rwlock_t): Update.
33881         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
33882
33883 2008-10-17  Simon Josefsson  <simon@josefsson.org>
33884
33885         * modules/recvfrom (Depends-on): Add dependency on getpeername.
33886         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33887
33888 2008-10-17  Jim Meyering  <meyering@redhat.com>
33889
33890         ignore-value: new module
33891         * modules/ignore-value: New file.
33892         * lib/ignore-value.h: New file.
33893         * MODULES.html.sh (Compiler warning management): New section,
33894         just for this module.  More to come.
33895
33896 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33897
33898         open-safer.c: avoid 'signed and unsigned in conditional...' warning
33899         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
33900         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
33901
33902 2008-10-16  Jim Meyering  <meyering@redhat.com>
33903
33904         openat-die.c: avoid 'no previous prototype' warning
33905         * lib/openat-die.c: Include "openat.h".
33906         Reported by Reuben Thomas <rrt@sc3d.org>.
33907
33908 2008-10-16  Simon Josefsson  <simon@josefsson.org>
33909
33910         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
33911         * lib/netdb.in.h: Fix typo.
33912         Reported by Bruno Haible  <bruno@clisp.org>
33913
33914         * lib/netdb.in.h: Include sys/socket.h for platforms without
33915         netdb.h, to get structures like hostent on MinGW.
33916         * modules/netdb (Depends-on): Add sys_socket.
33917
33918 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33919
33920         * modules/netdb, modules/netdb-tests: New file.
33921         * m4/netdb_h.m4: New file.
33922         * lib/netdb.in.h: Add, currently just an empty file pending
33923         definitions.
33924         * tests/test-netdb.c: New file.
33925         * doc/posix-headers/netdb.texi: Mention that we replace it if
33926         needed.
33927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33928         netdb.
33929
33930 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33931
33932         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
33933         with code.
33934
33935 2008-10-13  Bruno Haible  <bruno@clisp.org>
33936
33937         * lib/glthread/cond.c (glthread_cond_wait_func,
33938         glthread_cond_timedwait_func): Add a comment.
33939
33940 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33941
33942         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
33943         * tests/test-select.c: Likewise,
33944
33945 2008-10-13  Bruno Haible  <bruno@clisp.org>
33946
33947         * lib/glthread/cond.c (glthread_cond_wait_func,
33948         glthread_cond_timedwait_func): Fix variable name.
33949         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33950
33951 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
33952
33953         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
33954         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
33955         struct sockaddr.sa_len.
33956         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
33957
33958 2008-10-13  Simon Josefsson  <simon@josefsson.org>
33959
33960         * build-aux/pmccabe2html: Add css and css_url parameters.
33961
33962 2008-10-12  Bruno Haible  <bruno@clisp.org>
33963
33964         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
33965         calling aclx_get.
33966         Reported by Rainer Tammer <tammer@tammer.net>.
33967
33968 2008-10-12  Bruno Haible  <bruno@clisp.org>
33969
33970         Use msvcrt aware primitives for creation/termination of Win32 threads.
33971         * lib/glthread/thread.c: Include <process.h>.
33972         (glthread_create_func): Use _beginthreadex instead of CreateThread.
33973         (wrapper_func): Update signature.
33974         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
33975
33976 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33977             Bruno Haible  <bruno@clisp.org>
33978
33979         Provide a Win32 implementation of the 'cond' module.
33980         * lib/glthread/cond.h [USE_WIN32]: New implementation.
33981         * lib/glthread/cond.c (glthread_cond_init_func,
33982         glthread_cond_wait_func, glthread_cond_timedwait_func,
33983         glthread_cond_signal_func, glthread_cond_broadcast_func,
33984         glthread_cond_destroy_func) [USE_WIN32]: New functions.
33985         * modules/cond (Dependencies): Add gettimeofday.
33986
33987 2008-10-11  Bruno Haible  <bruno@clisp.org>
33988
33989         Make sleep work on older versions of mingw.
33990         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
33991         only whether it exists.
33992         * doc/posix-functions/sleep.texi: Mention the problem with older
33993         versions of mingw.
33994
33995 2008-10-11  Bruno Haible  <bruno@clisp.org>
33996
33997         New module 'shutdown'.
33998         * modules/shutdown: New file.
33999         * lib/sys_socket.in.h (shutdown): New declaration.
34000         * lib/winsock.c (shutdown): New function.
34001         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34002         GNULIB_SHUTDOWN.
34003         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34004         * doc/posix-functions/shutdown.texi: Document the new module.
34005
34006 2008-10-11  Jim Meyering  <meyering@redhat.com>
34007
34008         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34009
34010 2008-10-11  Bruno Haible  <bruno@clisp.org>
34011
34012         New module 'fclose'.
34013         * modules/fclose: New file.
34014         * lib/stdio.in.h (fclose): New declaration.
34015         * lib/fclose.c: New file.
34016         * m4/fclose.m4: New file.
34017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34018         REPLACE_FCLOSE.
34019         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34020         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34021         REPLACE_FCLOSE.
34022         * modules/close (Depends-on): fclose.
34023         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34024
34025 2008-10-11  Bruno Haible  <bruno@clisp.org>
34026
34027         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34028         set errno and don't call _close.
34029
34030 2008-10-10  Bruno Haible  <bruno@clisp.org>
34031
34032         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34033         ACL, not afterwards. Fixes test failure on Cygwin.
34034
34035 2008-10-09  Ben Pfaff  <blp@gnu.org>
34036
34037         * build-aux/announce-gen: Fix gnulib version related part of usage
34038         message.  Die with a useful error message if no tarballs are
34039         found.
34040
34041 2008-10-10  Jim Meyering  <meyering@redhat.com>
34042
34043         bootstrap: use git's --depth=N option only if it's supported
34044         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34045         recognize the --depth option.  Reported by Pádraig Brady.
34046
34047 2008-10-09  Bruno Haible  <bruno@clisp.org>
34048
34049         New module 'ioctl'.
34050         * modules/ioctl: New file.
34051         * lib/sys_socket.in.h (ioctl): Remove declaration.
34052         * lib/winsock.c: Include <sys/ioctl.h>.
34053         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34054         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34055         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34056         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34057         * doc/posix-functions/ioctl.texi: Mention the new module.
34058
34059 2008-10-09  Bruno Haible  <bruno@clisp.org>
34060
34061         New module 'sys_ioctl'.
34062         * lib/sys_ioctl.in.h: New file.
34063         * m4/sys_ioctl_h.m4: New file.
34064         * modules/sys_ioctl: New file.
34065         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34066
34067 2008-10-09  Bruno Haible  <bruno@clisp.org>
34068
34069         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34070         * lib/winsock.c: Include <stdarg.h>.
34071         (rpl_ioctl): Change to second argument 'int' and then varargs.
34072
34073 2008-10-09  Bruno Haible  <bruno@clisp.org>
34074
34075         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34076         when the sys_socket module is present and the system has <winsock2.h>.
34077
34078 2008-10-09  Bruno Haible  <bruno@clisp.org>
34079
34080         * doc/posix-functions/close.texi: Mention module 'close' instead of
34081         module 'sys_socket'.
34082
34083 2008-10-09  Bruno Haible  <bruno@clisp.org>
34084
34085         * doc/glibc-headers/sys_ioctl.texi: New file.
34086         * doc/gnulib.texi: Include it.
34087
34088 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34089             Bruno Haible  <bruno@clisp.org>
34090
34091         Combine the two replacements of 'close'.
34092         * lib/sys_socket.in.h (close): Define to a reminder to include
34093         <unistd.h>.
34094         (_gl_close_fd_maybe_socket): New declaration.
34095         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34096         * lib/winsock.c (close): Remove undefinition.
34097         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34098         needed for the gnulib module 'close'.
34099         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34100         define to an error symbol or to a warning, if suitable.
34101         * lib/close.c: Include <sys/socket.h>.
34102         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34103         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34104         UNISTD_H_HAVE_WINSOCK2_H.
34105         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34107         UNISTD_H_HAVE_WINSOCK2_H.
34108         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34109         (configure.ac): Set a module indicator.
34110         (Makefile.am): Substitute GNULIB_CLOSE.
34111         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34112         * modules/poll-tests (Depends-on): Add close.
34113         * modules/select-tests (Depends-on): Likewise.
34114
34115 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34116             Bruno Haible  <bruno@clisp.org>
34117
34118         New module 'close'.
34119         * modules/close: New file.
34120         * lib/unistd.in.h (close): Move declaration out of the
34121         FCHDIR_REPLACEMENT scope.
34122         (_gl_unregister_fd): New declaration.
34123         * lib/close.c: New file.
34124         * lib/fchdir.c (rpl_close): Remove function.
34125         * m4/close.m4: New file.
34126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34127         close.
34128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34129         REPLACE_CLOSE.
34130         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34131         REPLACE_CLOSE.
34132         * modules/fchdir (Depends-on): Add close.
34133
34134 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34135             Bruno Haible  <bruno@clisp.org>
34136
34137         * lib/fcntl.in.h (open): Simplify conditionals.
34138         (_gl_register_fd): New declaration.
34139         * lib/fchdir.c (rpl_open): Remove function.
34140         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34141         also.
34142         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34144         open.
34145
34146 2008-10-09  Jim Meyering  <meyering@redhat.com>
34147
34148         GNUmakefile: use the more name-space-friendly "_version"
34149         * top/GNUmakefile (_dummy): Update.
34150         (_version): Rename from "version".
34151
34152 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34153             Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34156         rpl_close.
34157         (_gl_register_fd): New function, extracted from rpl_open.
34158         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34159         (rpl_open, rpl_opendir): Use _gl_register_fd.
34160
34161 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34162
34163         Fix organization of 'open' replacement.
34164         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34165         (gl_FUNC_OPEN): Use it.
34166         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34167
34168 2008-10-08  Bruno Haible  <bruno@clisp.org>
34169
34170         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34171
34172 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34173
34174         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34175         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34176         listen).
34177
34178 2008-10-08  Eric Blake  <ebb9@byu.net>
34179
34180         GNUmakefile: add 'make version' target
34181         * top/GNUmakefile (_curr-ver): Split version update rules...
34182         (version): ...into a target.
34183
34184 2008-10-07  Bruno Haible  <bruno@clisp.org>
34185
34186         Use a more portable replacement expression for -0.0L.
34187         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34188         instead of -0.0L. Fix m4 quotation.
34189
34190         * tests/test-signbit.c: Include <float.h>.
34191         (minus_zero): New variable.
34192         (test_signbitl): Use minus_zero instead of -zero.
34193         * modules/signbit-tests (Depends-on): Add float.
34194
34195         * tests/test-ceill.c: Include <float.h>.
34196         (zero): Remove variable.
34197         (minus_zero): New variable.
34198         (main): Use minus_zero instead of -zero.
34199         * modules/ceill-tests (Depends-on): Add float.
34200
34201         * tests/test-floorl.c: Include <float.h>.
34202         (zero): Remove variable.
34203         (minus_zero): New variable.
34204         (main): Use minus_zero instead of -zero.
34205         * modules/floorl-tests (Depends-on): Add float.
34206
34207         * tests/test-roundl.c: Include <float.h>.
34208         (zero): Remove variable.
34209         (minus_zero): New variable.
34210         (main): Use minus_zero instead of -zero.
34211         * modules/roundl-tests (Depends-on): Add float.
34212
34213         * tests/test-truncl.c: Include <float.h>.
34214         (zero): Remove variable.
34215         (minus_zero): New variable.
34216         (main): Use minus_zero instead of -zero.
34217         * modules/truncl-tests (Depends-on): Add float.
34218
34219         * tests/test-frexpl.c (zero): Remove variable.
34220         (minus_zero): New variable.
34221         (main): Use minus_zero instead of -zero.
34222         * modules/frexpl-tests (Depends-on): Add float.
34223
34224         * tests/test-isnan.c (zerol): Remove variable.
34225         (minus_zerol): New variable.
34226         (test_long_double): Use minus_zerol instead of -zerol.
34227         * modules/isnan-tests (Depends-on): Add float.
34228
34229         * tests/test-isnanl.h (zero): Remove variable.
34230         (minus_zero): New variable.
34231         (main): Use minus_zero instead of -zero.
34232         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34233         * modules/isnanl-tests (Depends-on): Add float.
34234
34235         * tests/test-ldexpl.c (zero): Remove variable.
34236         (minus_zero): New variable.
34237         (main): Use minus_zero instead of -zero.
34238         * modules/ldexpl-tests (Depends-on): Add float.
34239
34240         * tests/test-snprintf-posix.h (zerol): Remove variable.
34241         (minus_zerol): New variable.
34242         (test_function): Use minus_zerol instead of -zerol.
34243         * modules/snprintf-posix-tests (Depends-on): Add float.
34244         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34245
34246         * tests/test-sprintf-posix.h (zerol): Remove variable.
34247         (minus_zerol): New variable.
34248         (test_function): Use minus_zerol instead of -zerol.
34249         * modules/sprintf-posix-tests (Depends-on): Add float.
34250         * modules/vsprintf-posix-tests (Depends-on): Add float.
34251
34252         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34253         (minus_zerol): New variable.
34254         (test_function): Use minus_zerol instead of -zerol.
34255         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34256
34257         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34258         (minus_zerol): New variable.
34259         (test_function): Use minus_zerol instead of -zerol.
34260         * modules/vasprintf-posix-tests (Depends-on): Add float.
34261
34262 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34263
34264         * MODULES.html.sh (Support for building documentation): Mention
34265         pmccabe2html.  Sort entries.
34266
34267         Add pmccabe2html module, from gnupdf.
34268         * build-aux/pmccabe.css: New file.
34269         * build-aux/pmccabe2html: New file.
34270         * m4/pmccabe2html.m4: New file.
34271         * modules/pmccabe2html: New file.
34272
34273 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34274
34275         flock: new module
34276         * MODULES.html.sh: Add to list of modules.
34277         * lib/flock.c: flock implementation for Windows and Unix systems
34278         which have fcntl.
34279         * doc/glibc-functions/flock.texi: Update documentation.
34280         * lib/sys_file.in.h: <sys/file.h> header file.
34281         * m4/flock.m4: M4 macros.
34282         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34283         * modules/flock: flock module.
34284         * modules/flock-tests: flock tests module.
34285         * modules/sys_file: sys/file.h module.
34286         * tests/test-flock.c: test suite for flock.
34287
34288 2008-10-06  Jim Meyering  <meyering@redhat.com>
34289
34290         bootstrap: check for LT_INIT more portably still ;-)
34291         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34292         Spotted by Bruno Haible.
34293
34294 2008-10-06  Eric Blake  <ebb9@byu.net>
34295
34296         test-signbit: avoid tripping Irix cc bug on -0.0L
34297         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34298         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34299         entire testsuite consistent and avoids an Irix 6.2 bug.
34300
34301 2008-10-05  Bruno Haible  <bruno@clisp.org>
34302             Jim Meyering  <jim@meyering.net>
34303
34304         Add an option for ignoring EPIPE during close_stdout.
34305         * lib/closeout.h: Include <stdbool.h>.
34306         (close_stdout_set_ignore_EPIPE): New declaration.
34307         * lib/closeout.c: Include <stdbool.h>.
34308         (ignore_EPIPE): New variable.
34309         (close_stdout_set_ignore_EPIPE): New function.
34310         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34311         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34312         failure.
34313         * modules/closeout (Depends-on): Add stdbool.
34314
34315 2008-10-05  Bruno Haible  <bruno@clisp.org>
34316
34317         * modules/accept: New file.
34318         * modules/bind: New file.
34319         * modules/connect: New file.
34320         * modules/getpeername: New file.
34321         * modules/getsockname: New file.
34322         * modules/getsockopt: New file.
34323         * modules/listen: New file.
34324         * modules/recv: New file.
34325         * modules/recvfrom: New file.
34326         * modules/send: New file.
34327         * modules/sendto: New file.
34328         * modules/setsockopt: New file.
34329         * modules/socket: New file.
34330         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34331         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34332         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34333         the particular module is requested. Add a link warning when the
34334         particular module is not requested.
34335         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34336         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34337         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34338         the particular module is requested.
34339         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34340         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34341         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34342         * modules/sys_socket (Depends-on): Add link-warning.
34343         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34344         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34345         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34346         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34347         GL_LINK_WARNING.
34348         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34349         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34350         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
34351         * doc/posix-functions/getpeername.texi: Mention the new module
34352         'getpeername'.
34353         * doc/posix-functions/getsockname.texi: Mention the new module
34354         'getsockname'.
34355         * doc/posix-functions/getsockopt.texi: Mention the new module
34356         'getsockopt'.
34357         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34358         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34359         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34360         * doc/posix-functions/send.texi: Mention the new module 'send'.
34361         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34362         * doc/posix-functions/setsockopt.texi: Mention the new module
34363         'setsockopt'.
34364         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34365         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34366         listen, connect, accept.
34367         * modules/select-tests (Depends-on): Likewise.
34368
34369 2008-10-05  Bruno Haible  <bruno@clisp.org>
34370
34371         * lib/winsock.c (strerror): Remove unused #undef.
34372         (rpl_close): Remove unused local variable.
34373
34374         * modules/sys_socket (Depends-on); Add errno.
34375
34376 2008-10-05  Bruno Haible  <bruno@clisp.org>
34377
34378         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34379         (select): Add a link warning when the 'select' module is not used.
34380         * modules/sys_select (Depends-on): Add link-warning.
34381         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34382         Suggested by Paolo Bonzini.
34383
34384 2008-10-05  Jim Meyering  <meyering@redhat.com>
34385
34386         bootstrap: check for LT_INIT more portably
34387         * build-aux/bootstrap: Avoid using grep -E, since it's not
34388         portable enough.  Suggestion from Bruno Haible.
34389
34390 2008-10-05  Bruno Haible  <bruno@clisp.org>
34391
34392         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34393         as being fixed by gnulib.
34394
34395 2008-10-05  Bruno Haible  <bruno@clisp.org>
34396
34397         * modules/select-tests: New file, mostly copied from
34398         modules/sys_select-tests.
34399         * tests/test-select.c: New file, mostly copied from
34400         tests/test-sys_select.c.
34401         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34402         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34403         (Makefile.am): Remove test_sys_select_LDADD.
34404
34405         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34406         to an undefined symbol, for an error message.
34407         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34408         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34409         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34410         winsock-select.c here.
34411         * modules/sys_select (Files): Remove lib/winsock-select.c.
34412         (Depends-on): Remove alloca.
34413         (Makefile.am): Substitute GNULIB_SELECT.
34414         * modules/select: New file.
34415         * doc/posix-functions/select.texi: Update.
34416
34417 2008-10-05  Bruno Haible  <bruno@clisp.org>
34418
34419         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
34420         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
34421         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
34422         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
34423         getdtablesize.
34424         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34425         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34426
34427 2008-10-05  Bruno Haible  <bruno@clisp.org>
34428
34429         * modules/getdtablesize-tests: New file.
34430         * tests/test-getdtablesize.c: New file.
34431
34432         New module 'getdtablesize'.
34433         * lib/unistd.in.h (getdtablesize): New declaration.
34434         * lib/getdtablesize.c: New file.
34435         * m4/getdtablesize.m4: New file.
34436         * modules/getdtablesize: New file.
34437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34438         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
34439         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
34440         HAVE_GETDTABLESIZE.
34441         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
34442
34443 2008-10-05  Bruno Haible  <bruno@clisp.org>
34444
34445         * modules/sched (Makefile.am): Fix typo.
34446         Reported by Simon Josefsson.
34447
34448 2008-10-05  Jim Meyering  <meyering@redhat.com>
34449
34450         bootstrap: check for LT_INIT, too
34451         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
34452         are deprecated.  Suggestion from Ralf Wildenhues.
34453
34454 2008-10-05  Bruno Haible  <bruno@clisp.org>
34455
34456         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
34457         overriding them by ours.
34458         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
34459
34460 2008-10-05  Jim Meyering  <meyering@redhat.com>
34461
34462         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
34463         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
34464         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
34465
34466 2008-10-04  Bruno Haible  <bruno@clisp.org>
34467
34468         * modules/dup2 (License): Change to LGPLv2+.
34469         * modules/sleep (License): Likewise.
34470         * modules/perror (License): Likewise.
34471         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
34472         Blake.
34473         * modules/signal (License): Likewise.
34474         * modules/sigprocmask (License): Likewise.
34475         * modules/raise (License): Change to LGPLv2+, with approval by Jim
34476         Meyering.
34477
34478 2008-10-04  Bruno Haible  <bruno@clisp.org>
34479
34480         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
34481         Reported by Rainer Tammer <tammer@tammer.net>.
34482
34483 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
34484             Bruno Haible  <bruno@clisp.org>
34485
34486         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
34487         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
34488         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
34489
34490 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
34491
34492         filevercmp: new module
34493         * lib/filevercmp.h: New function filevercmp comparing version strings.
34494         * lib/filevercmp.c: Implementation of filevercmp function.
34495         * modules/filevercmp: Module metadata.
34496         * tests/test-filevercmp.c: Unit test for new module.
34497         * modules/filevercmp-tests: Unit test metadata.
34498         * MODULES.html.sh: Add filevercmp module.
34499
34500 2008-10-03  Bruno Haible  <bruno@clisp.org>
34501
34502         * lib/c-ctype.h: Add comment.
34503         Reported by Jim Meyering.
34504
34505 2008-10-02  Bruno Haible  <bruno@clisp.org>
34506
34507         * modules/posix_spawn-internal (Depends-on): Add 'open'.
34508
34509 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34510
34511         * build-aux/bootstrap: Allow renaming bootstrap, and change the
34512         name of bootstrap.conf accordingly.
34513
34514 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34515
34516         * build-aux/bootstrap: Install git-merge-changelog configuration
34517         items into .gitconfig if needed.
34518
34519 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34520
34521         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
34522         git repository, and initialize/update it accordingly.
34523
34524 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
34525
34526         * modules/fsync-tests: New file.
34527         * tests/test-fsync.c: New file.
34528
34529         New module 'fsync'.
34530         * lib/fsync.c: New file.
34531         * m4/fsync.m4: New file.
34532         * modules/fsync: New file.
34533         * lib/unistd.in.h (fsync): New declaration.
34534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
34535         GNULIB_FSYNC and HAVE_FSYNC.
34536         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
34537         * MODULES.html.sh (posix_functions): Add fsync.
34538         * doc/posix-functions/fsync.texi: Mention the new module.
34539
34540 2008-10-02  Jim Meyering  <meyering@redhat.com>
34541
34542         fts.c: sync with similar code from coreutils' remove.c
34543         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
34544         Guard also with "#if defined __linux__", since for now at least,
34545         this code is Linux-kernel-specific.
34546
34547 2008-10-02  Jim Meyering  <meyering@redhat.com>
34548
34549         fts: bug fixes
34550         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
34551         Include <sys/vfs.h>, not <sys/statfs.h>.
34552
34553         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
34554         Include <sys/vfs.h>, not <sys/statfs.h>.
34555
34556 2008-10-01  Bruno Haible  <bruno@clisp.org>
34557
34558         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
34559         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
34560         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
34561         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
34562         * doc/posix-functions/posix_spawnp.texi: Likewise.
34563         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
34564         whether posix_spawn actually works.
34565         * m4/pipe.m4 (gl_PIPE): Likewise.
34566         * modules/execute (Files): Add m4/posix_spawn.m4.
34567         * modules/pipe (Files): Add m4/posix_spawn.m4.
34568         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
34569
34570 2008-10-01  Jim Meyering  <meyering@redhat.com>
34571
34572         remove trailing spaces
34573         * NEWS: Likewise.
34574         * lib/poll.c (poll): Likewise.
34575         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
34576         * lib/winsock.c (rpl_close): Likewise.
34577         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
34578         * modules/yield: Likewise.
34579         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
34580         * tests/test-sys_select.c (connect_to_socket): Likewise.
34581
34582         fts.c: adjust a new interface to be more generally useful
34583         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
34584         (fts_build): Adjust caller.
34585
34586 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34587
34588         * modules/cond-tests: New file.
34589         * tests/test-cond.c: New file.
34590
34591 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34592             Bruno Haible  <bruno@clisp.org>
34593
34594         * modules/cond (Dependencies): Add errno, time.
34595         * lib/glthread/cond.h: Include <time.h>.
34596         (gl_cond_define, gl_cond_define_initialized): Use the same definition
34597         across platforms.
34598
34599 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34600             Bruno Haible  <bruno@clisp.org>
34601
34602         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
34603
34604 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34605             Bruno Haible  <bruno@clisp.org>
34606
34607         * modules/tls-tests (Depends-on): Add thread, yield.
34608         (configure.ac): Remove all checks.
34609         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
34610         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34611         gl_thread_self): Remove definitions. Include glthread/thread.h and
34612         glthread/yield.h instead.
34613         (test_tls): Pass an additional NULL argument to gl_thread_join.
34614
34615 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34616             Bruno Haible  <bruno@clisp.org>
34617
34618         * modules/lock-tests (Depends-on): Add thread, yield.
34619         (configure.ac): Remove all checks.
34620         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
34621         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34622         gl_thread_self): Remove definitions. Include glthread/thread.h and
34623         glthread/yield.h instead.
34624         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
34625         additional NULL argument to gl_thread_join.
34626
34627 2008-09-30  Bruno Haible  <bruno@clisp.org>
34628
34629         Fix the Win32 implementation of the 'thread' module.
34630         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
34631         pointer type.
34632         (gl_thread_self): Invoke gl_thread_self_func.
34633         (gl_thread_self_func): New declaration.
34634         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
34635         (do_init_self_key, init_self_key): New functions.
34636         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
34637         Remove some fields.
34638         (running_threads, running_lock): Remove variables.
34639         (get_current_thread_handle): New function.
34640         (gl_thread_self_func, wrapper_func, glthread_create_func,
34641         glthread_join_func, gl_thread_exit_func): Largely rewritten and
34642         simplified.
34643
34644 2008-09-30  Bruno Haible  <bruno@clisp.org>
34645
34646         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
34647         files.
34648
34649 2008-09-30  Jim Meyering  <meyering@redhat.com>
34650
34651         fts.m4: correct the test for statfs.f_type
34652         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
34653         when checking for statfs.f_type.
34654
34655 2008-09-15  Simon Josefsson  <simon@josefsson.org>
34656
34657         tests: avoid some compiler warnings
34658         * tests/test-memchr.c (main): Pass NULL indirectly.
34659         * tests/test-getdate.c (main): Remove unused variable 'ret'.
34660
34661 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
34662
34663         getdate.y: disallow countable dayshifts like "4 yesterday ago"
34664         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
34665         exactly specified dayshifts.
34666         (dayshift): New rule.
34667         (rel): Add dayshift.
34668         (relative_time_table) [tomorrow, yesterday, today, now]:
34669         Use tDAY_SHIFT in place of tDAY_UNIT.
34670         * tests/test-getdate.c: Add tests for now-disallowed countable
34671         dayshifts, e.g., "4 yesterday ago".
34672
34673 2008-09-29  Bruno Haible  <bruno@clisp.org>
34674
34675         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
34676         * tests/test-posix_spawn1.in.sh: Renamed from
34677         tests/test-posix_spawn.in.sh.
34678         * tests/test-posix_spawn2.c: New file.
34679         * tests/test-posix_spawn2.in.sh: New file.
34680         * modules/posix_spawnp-tests (Files): Update.
34681         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
34682
34683 2008-09-29  Bruno Haible  <bruno@clisp.org>
34684
34685         Propagate effects of putenv/setenv/unsetenv to child processes.
34686         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
34687         * lib/pipe.c (create_pipe): Likewise.
34688
34689 2008-09-29  Bruno Haible  <bruno@clisp.org>
34690
34691         Enable use of shell scripts as executables in mingw.
34692         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
34693         run the program as a shell script.
34694         * lib/pipe.c (create_pipe): Likewise.
34695         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
34696         resulting array.
34697
34698 2008-09-29  Eric Blake  <ebb9@byu.net>
34699
34700         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
34701
34702 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
34703
34704         * doc/posix-functions/accept.texi: Update mingw problems.
34705         * doc/posix-functions/bind.texi: Update mingw problems.
34706         * doc/posix-functions/close.texi: Update mingw problems.
34707         * doc/posix-functions/connect.texi: Update mingw problems.
34708         * doc/posix-functions/getpeername.texi: Update mingw problems.
34709         * doc/posix-functions/getsockname.texi: Update mingw problems.
34710         * doc/posix-functions/getsockopt.texi: Update mingw problems.
34711         * doc/posix-functions/ioctl.texi: Update mingw problems.
34712         * doc/posix-functions/listen.texi: Update mingw problems.
34713         * doc/posix-functions/recv.texi: Update mingw problems.
34714         * doc/posix-functions/recvfrom.texi: Update mingw problems.
34715         * doc/posix-functions/select.texi: Update mingw problems.
34716         * doc/posix-functions/send.texi: Update mingw problems.
34717         * doc/posix-functions/sendto.texi: Update mingw problems.
34718         * doc/posix-functions/setsockopt.texi: Update mingw problems.
34719         * doc/posix-functions/socket.texi: Update mingw problems.
34720
34721 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
34722             Bruno Haible  <bruno@clisp.org>
34723
34724         * lib/sys_select.in.h: Include sys/time.h.
34725         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
34726         * modules/sys_select: Depend on sys_time.
34727         * tests/test-sys_select.c: Test that sys/select.h defines struct
34728         timeval fully.
34729
34730 2008-09-29  Bruno Haible  <bruno@clisp.org>
34731
34732         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
34733         * lib/sys_select.in.h: Likewise.
34734
34735 2008-09-29  Bruno Haible  <bruno@clisp.org>
34736
34737         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
34738
34739 2008-09-29  Bruno Haible  <bruno@clisp.org>
34740
34741         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
34742         Set LIBSOCKET instead of augmenting LIBS.
34743         * modules/sockets (Link): New section.
34744         * modules/sockets-tests (test_sockets_LDADD): New variable.
34745         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
34746         * modules/poll-tests (test_poll_LDADD): New variable.
34747         * NEWS: Document the change.
34748
34749 2008-09-29  Bruno Haible  <bruno@clisp.org>
34750
34751         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
34752         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
34753         ARPA_INET_H directly.
34754         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34755
34756 2008-09-28  Bruno Haible  <bruno@clisp.org>
34757
34758         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
34759         from gl_HEADER_SYS_SOCKET.
34760         (gl_HEADER_SYS_SOCKET): Invoke it.
34761         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34762
34763 2008-09-28  Bruno Haible  <bruno@clisp.org>
34764
34765         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
34766         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
34767         Needed on OSF/1 4.0.
34768
34769 2008-09-28  Bruno Haible  <bruno@clisp.org>
34770
34771         Override open more carefully.
34772         * lib/open.c (orig_open): New function.
34773         (rpl_open): Use orig_open instead of open.
34774         * lib/fcntl.in.h: Add special invocation convention.
34775         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
34776         (gl_FUNC_OPEN): Invoke it.
34777
34778         Override freopen more carefully.
34779         * lib/freopen.c (orig_freopen): New function.
34780         (rpl_freopen): Use orig_freopen instead of freopen.
34781         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
34782         (gl_FUNC_FREOPEN): Invoke it.
34783
34784         Override fopen more carefully.
34785         * lib/fopen.c (orig_fopen): New function.
34786         (rpl_fopen): Use orig_fopen instead of fopen.
34787         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
34788         (gl_FUNC_FOPEN): Invoke it.
34789         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
34790
34791 2008-09-28  Bruno Haible  <bruno@clisp.org>
34792
34793         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
34794         SIGPIPE.
34795
34796 2008-09-28  Bruno Haible  <bruno@clisp.org>
34797
34798         * tests/test-sigaction.c (handler, main): Disable the check whether
34799         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
34800         glibc systems with LinuxThreads.
34801
34802 2008-09-28  Bruno Haible  <bruno@clisp.org>
34803
34804         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
34805
34806         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
34807         with AIX xlc.
34808         * lib/fcntl.in.h (open): Likewise.
34809         Reported by Rainer Tammer <tammer@tammer.net>.
34810
34811 2008-09-28  Bruno Haible  <bruno@clisp.org>
34812
34813         * modules/posix_spawnp-tests: New file.
34814         * tests/test-posix_spawn.c: New file.
34815         * tests/test-posix_spawn.in.sh: New file.
34816
34817         New module 'posix_spawnp'.
34818         * modules/posix_spawnp: New file.
34819         * lib/spawnp.c: New file, from GNU libc with modifications.
34820         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
34821
34822         New module 'posix_spawn'.
34823         * modules/posix_spawn: New file.
34824         * lib/spawn.c: New file, from GNU libc with modifications.
34825         * doc/posix-functions/posix_spawn.texi: Mention the new module.
34826
34827         New module 'posix_spawnattr_destroy'.
34828         * modules/posix_spawnattr_destroy: New file.
34829         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
34830         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
34831         module.
34832
34833         New module 'posix_spawnattr_setsigmask'.
34834         * modules/posix_spawnattr_setsigmask: New file.
34835         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
34836         modifications.
34837         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
34838         new module.
34839
34840         New module 'posix_spawnattr_getsigmask'.
34841         * modules/posix_spawnattr_getsigmask: New file.
34842         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
34843         modifications.
34844         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
34845         new module.
34846
34847         New module 'posix_spawnattr_setsigdefault'.
34848         * modules/posix_spawnattr_setsigdefault: New file.
34849         * lib/spawnattr_setdefault.c: New file, from GNU libc with
34850         modifications.
34851         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
34852         new module.
34853
34854         New module 'posix_spawnattr_getsigdefault'.
34855         * modules/posix_spawnattr_getsigdefault: New file.
34856         * lib/spawnattr_getdefault.c: New file, from GNU libc with
34857         modifications.
34858         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
34859         new module.
34860
34861         New module 'posix_spawnattr_setschedpolicy'.
34862         * modules/posix_spawnattr_setschedpolicy: New file.
34863         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
34864         modifications.
34865         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
34866         new module.
34867
34868         New module 'posix_spawnattr_getschedpolicy'.
34869         * modules/posix_spawnattr_getschedpolicy: New file.
34870         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
34871         modifications.
34872         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
34873         new module.
34874
34875         New module 'posix_spawnattr_setschedparam'.
34876         * modules/posix_spawnattr_setschedparam: New file.
34877         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
34878         modifications.
34879         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
34880         new module.
34881
34882         New module 'posix_spawnattr_getschedparam'.
34883         * modules/posix_spawnattr_getschedparam: New file.
34884         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
34885         modifications.
34886         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
34887         new module.
34888
34889         New module 'posix_spawnattr_setpgroup'.
34890         * modules/posix_spawnattr_setpgroup: New file.
34891         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
34892         modifications.
34893         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
34894         module.
34895
34896         New module 'posix_spawnattr_getpgroup'.
34897         * modules/posix_spawnattr_getpgroup: New file.
34898         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
34899         modifications.
34900         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
34901         module.
34902
34903         New module 'posix_spawnattr_setflags'.
34904         * modules/posix_spawnattr_setflags: New file.
34905         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
34906         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
34907         module.
34908
34909         New module 'posix_spawnattr_getflags'.
34910         * modules/posix_spawnattr_getflags: New file.
34911         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
34912         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
34913         module.
34914
34915         New module 'posix_spawnattr_init'.
34916         * modules/posix_spawnattr_init: New file.
34917         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
34918         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
34919         module.
34920
34921         New module 'posix_spawn_file_actions_destroy'.
34922         * modules/posix_spawn_file_actions_destroy: New file.
34923         * lib/spawn_faction_destroy.c: New file, from GNU libc with
34924         modifications.
34925         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
34926         the new module.
34927
34928         New module 'posix_spawn_file_actions_addopen'.
34929         * modules/posix_spawn_file_actions_addopen: New file.
34930         * lib/spawn_faction_addopen.c: New file, from GNU libc with
34931         modifications.
34932         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
34933         the new module.
34934
34935         New module 'posix_spawn_file_actions_adddup2'.
34936         * modules/posix_spawn_file_actions_adddup2: New file.
34937         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
34938         modifications.
34939         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
34940         the new module.
34941
34942         New module 'posix_spawn_file_actions_addclose'.
34943         * modules/posix_spawn_file_actions_addclose: New file.
34944         * lib/spawn_faction_addclose.c: New file, from GNU libc with
34945         modifications.
34946         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
34947         the new module.
34948
34949         New module 'posix_spawn_file_actions_init'.
34950         * modules/posix_spawn_file_actions_init: New file.
34951         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
34952         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
34953         new module.
34954
34955         New module 'posix_spawn-internal'.
34956         * modules/posix_spawn-internal: New file.
34957         * lib/spawn_int.h: New file, from GNU libc with modifications.
34958         * lib/spawni.c: New file, from GNU libc with modifications.
34959         * m4/posix_spawn.m4: New file.
34960
34961         New module 'spawn'.
34962         * modules/spawn: New file.
34963         * lib/spawn.in.h: New file, from GNU libc with modifications.
34964         * m4/spawn_h.m4: New file.
34965         * doc/posix-headers/spawn.texi: Mention the new module.
34966
34967 2008-09-28  Bruno Haible  <bruno@clisp.org>
34968
34969         * modules/sched-tests: New file.
34970         * tests/test-sched.c: New file.
34971
34972         New module 'sched'.
34973         * modules/sched: New file.
34974         * lib/sched.in.h: New file.
34975         * m4/sched_h.m4: New file.
34976         * doc/posix-headers/sched.texi: Mention the new module.
34977
34978 2008-09-27  Eric Blake  <ebb9@byu.net>
34979
34980         Fix previous patch, and tweak references to $0.
34981         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
34982         (func_version, func_gnulib_dir): Don't call this program
34983         gnulib-tool.
34984         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
34985         with using $0 in function.
34986         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
34987         (func_fatal_error): Reuse the name the user invoked us with.
34988
34989 2008-09-27  Bruno Haible  <bruno@clisp.org>
34990
34991         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
34992         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
34993         (gl_ICONV_H): Not here.
34994         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34995         instead of assigning ICONV_H directly.
34996
34997         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
34998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
34999         WCHAR_H directly.
35000
35001 2008-09-27  Bruno Haible  <bruno@clisp.org>
35002
35003         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35004         * modules/arpa_inet (Depends-on): Add link-warning.
35005         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35006         * modules/unistd (Makefile.am): Likewise.
35007
35008 2008-09-26  Bruno Haible  <bruno@clisp.org>
35009
35010         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35011         variables.
35012         (func_version): Essentially copied from gnulib-tool.
35013         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35014         func_readlink): Copied from gnulib-tool.
35015
35016 2008-09-26  Bruno Haible  <bruno@clisp.org>
35017
35018         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35019         invoking git-version-gen.
35020
35021 2008-09-26  Bruno Haible  <bruno@clisp.org>
35022
35023         * posix-modules: Update to directory names changed on 2008-01-19.
35024         Remove commas in output before splitting into words. No more need to
35025         avoid 'ftruncate' since 2007-02-19.
35026
35027 2008-09-26  Bruno Haible  <bruno@clisp.org>
35028
35029         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35030
35031 2008-09-26  Bruno Haible  <bruno@clisp.org>
35032
35033         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35034         * modules/fwriteerror (Depends-on): Add errno.
35035
35036 2008-09-26  Bruno Haible  <bruno@clisp.org>
35037
35038         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35039         * tests/test-vc-list-files-cvs.sh: Likewise.
35040
35041 2008-09-26  Bruno Haible  <bruno@clisp.org>
35042
35043         * doc/posix-headers/sys_resource.texi: Reorder items.
35044
35045 2008-09-26  Jim Meyering  <meyering@redhat.com>
35046
35047         fts: tweak inode comparison function
35048         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35049         inode numbers, as documented.
35050
35051         fts: sort dirent entries on inode number before traversing
35052         This avoids a quadratic, seek-related performance penalty when
35053         operating on a directory containing many entries (measurable at 10k;
35054         3.5 hours at 2 million entries with a cold cache) on certain types
35055         of file systems, including ext3 and ext4, but not tmpfs.
35056         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35057         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35058         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35059         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35060         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35061         (fts_build): Set the stat.st_ino member from D_INO.
35062         If it is likely to be useful, sort dirent entries on inode number.
35063
35064         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35065         and the struct statfs.f_type member.
35066         * modules/fts (Depends-on): Add d-ino.
35067
35068 2008-09-26  Bruno Haible  <bruno@clisp.org>
35069
35070         * modules/sigpipe-die (Depends-on): Add sigpipe.
35071
35072         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35073         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35074         and GNULIB_STDIO_H_SIGPIPE are set.
35075         * lib/stdio-write.c: New file.
35076         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35077         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35078         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35079         REPLACE_STDIO_WRITE_FUNCS.
35080         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35081         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35082         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35083         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35084         * modules/stdio (Files): Add lib/stdio-write.c.
35085         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35086         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35087         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35088         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35089         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35090         REPLACE_FPRINTF_POSIX.
35091         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35092         REPLACE_PRINTF_POSIX.
35093         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35094         REPLACE_VFPRINTF_POSIX.
35095         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35096         REPLACE_VPRINTF_POSIX.
35097         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35098         SIGPIPE issue.
35099         * doc/posix-functions/fputc.texi: Likewise.
35100         * doc/posix-functions/fputs.texi: Likewise.
35101         * doc/posix-functions/fwrite.texi: Likewise.
35102         * doc/posix-functions/printf.texi: Likewise.
35103         * doc/posix-functions/putc.texi: Likewise.
35104         * doc/posix-functions/putchar.texi: Likewise.
35105         * doc/posix-functions/puts.texi: Likewise.
35106         * doc/posix-functions/vfprintf.texi: Likewise.
35107         * doc/posix-functions/vprintf.texi: Likewise.
35108
35109         * modules/safe-write (Depends-on): Add write.
35110
35111         * modules/sigpipe-tests: New file.
35112         * tests/test-sigpipe.c: New file.
35113         * tests/test-sigpipe.sh: New file.
35114
35115         * modules/write: New file.
35116         * lib/unistd.in.h: Include <sys/types.h>.
35117         (write): New declaration.
35118         * lib/write.c: New file.
35119         * m4/write.m4: New file.
35120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35121         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35122         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35123         GNULIB_WRITE, REPLACE_WRITE.
35124         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35125         and the SIGPIPE issue.
35126
35127         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35128         (raise): New declaration.
35129         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35130         (ext_signal): New function.
35131         (rpl_raise): New function.
35132         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35133         GNULIB_SIGNAL_H_SIGPIPE.
35134         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35135         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35136
35137         * modules/sigpipe: New file.
35138         * m4/sigpipe.m4: New file.
35139
35140 2008-09-25  Derek Price  <derek@ximbiot.com>
35141             Bruno Haible  <bruno@clisp.org>
35142
35143         * gnulib-tool (func_import): Report all license incompatibilities, not
35144         just the first one.
35145
35146 2008-09-25  Bruno Haible  <bruno@clisp.org>
35147
35148         * gnulib-tool (func_import): When computing the edits, consider not
35149         only the Makefile.ams that exist but also those that will be generated.
35150
35151 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35152
35153         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35154         fixes gnulib-tool --test warning about duplicate dependency.
35155
35156 2008-09-25  Bruno Haible  <bruno@clisp.org>
35157
35158         * gnulib-tool: Don't ask the user to perform edits in the generated
35159         Makefile.ams.
35160         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35161         apply to the Makefile.am being generated.
35162         (func_emit_tests_Makefile_am): Execute edits that apply to the
35163         Makefile.am being generated.
35164         (func_import): Setup list of Makefile.am edits before emitting the
35165         Makefile.ams, not at the end.
35166         (func_create_testdir): Update.
35167         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35168
35169 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35170
35171         * gnulib-tool (func_import): Store the --tests-base option in the
35172         comment in gnulib-cache.m4.
35173
35174 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35175
35176         * NEWS: Document increased portability that sys_select now provides.
35177
35178         * lib/sys_select.in.h: Install select wrapper.
35179         * lib/sys_socket.in.h: Use more descriptive name when there is no
35180         select wrapper.
35181         * lib/winsock-select.c: New.
35182         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35183         Require gl_HEADER_SYS_SOCKET.
35184         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35185         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35186         * tests/test-sys_select.c: Add functional tests.
35187
35188 2008-09-24  Eric Blake  <ebb9@byu.net>
35189
35190         open, fopen: close fd leak in last patch
35191         * lib/open.c (rpl_open): Close fd before returning error.
35192         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35193         * doc/posix-functions/open.texi (open): Document that Irix also
35194         has the bug.
35195         * doc/posix-functions/fopen.texi (fopen): Likewise.
35196         Reported by Paolo Bonzini.
35197
35198 2008-09-24  Bruno Haible  <bruno@clisp.org>
35199
35200         Ensure that a filename ending in a slash cannot be used to access a
35201         non-directory.
35202         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35203         to check whether it's really a directory.
35204         * lib/fopen.c: Include fcntl.h, unistd.h.
35205         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35206         and fdopen().
35207         * modules/fopen (Depends-on): Add unistd.
35208         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35209         * tests/test-fopen.c (main): Likewise.
35210         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35211         * doc/posix-functions/fopen.texi: Likewise.
35212         Reported by Eric Blake.
35213
35214 2008-09-23  Eric Blake  <ebb9@byu.net>
35215
35216         c-stack: avoid compiler optimizations when provoking overflow
35217         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35218         recursion harder to optimize, to ensure a stack overflow occurs.
35219         * tests/test-c-stack.c (recurse): Likewise.
35220         Borrowed from libsigsegv.
35221
35222         c-stack: work around Irix sigaltstack bug
35223         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35224         whether sigaltstack uses wrong end of stack_t (copied in part from
35225         libsigsegv).
35226         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35227         Irix bug, without requiring an over-allocation.
35228         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35229         bug.
35230
35231         fopen: document mingw bug on directories
35232         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35233         not allowing a stream visiting a directory, even though reading
35234         from such a stream is not portable.
35235
35236 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35237
35238         * lib/poll.c: Rewrite.
35239         * modules/poll: Depend on alloca.
35240
35241 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35242
35243         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35244         instead define prototypes for a full set of wrappers.  Ensure
35245         that Cygwin does not use the compatibility code, which is only
35246         for MinGW.
35247         * lib/winsock.c: New.
35248         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35249         * modules/sys_socket: Add lib/winsock.c.
35250
35251         * modules/poll-tests: Add errno and perror.
35252         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35253
35254 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35255
35256         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35257
35258 2008-09-23  Bruno Haible  <bruno@clisp.org>
35259
35260         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35261         * doc/glibc-functions/*: Likewise.
35262
35263 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35264
35265         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35266         success.
35267
35268 2008-09-22  Eric Blake  <ebb9@byu.net>
35269             Bruno Haible  <bruno@clisp.org>
35270
35271         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35272         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35273         supply %A but mishandle pseudo-NaN.
35274         Reported by Simon Josefsson.
35275
35276 2008-09-21  Bruno Haible  <bruno@clisp.org>
35277
35278         * tests/test-lock.c (main): Tweak skip message.
35279         * tests/test-tls.c (main): Likewise.
35280
35281 2008-09-21  Bruno Haible  <bruno@clisp.org>
35282
35283         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35284         whether 'struct sigaction' has sa_sigaction here...
35285         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35286         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35287
35288 2008-09-21  Bruno Haible  <bruno@clisp.org>
35289
35290         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35291         section.
35292         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35293         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35294         the new section.
35295         (Support for obsolete systems lacking POSIX:2001): New section.
35296         (String handling <string.h>): Move strdup to the new section.
35297         Suggested by Simon Josefsson and Paolo Bonzini.
35298
35299 2008-09-21  Bruno Haible  <bruno@clisp.org>
35300
35301         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35302         exponents in %e and %g results on 'long double'. Needed for mingw's
35303         improved *printf functions.
35304         * tests/test-vasprintf-posix.c (test_function): Likewise.
35305         * tests/test-snprintf-posix.h (test_function): Likewise.
35306         * tests/test-sprintf-posix.h (test_function): Likewise.
35307         Reported by Eric Blake.
35308
35309 2008-09-21  Bruno Haible  <bruno@clisp.org>
35310
35311         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35312         * tests/test-sprintf-posix.h (test_function): Likewise.
35313
35314 2008-09-21  Bruno Haible  <bruno@clisp.org>
35315
35316         * modules/getpass (Depends-on): Add strdup-posix.
35317
35318         New module 'strdup-posix'.
35319         * modules/strdup-posix: New file.
35320         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35321         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35323         REPLACE_STRDUP.
35324         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35325         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35326         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35327         strdup-posix.
35328
35329         * modules/strdup (Depends-on): Remove malloc-posix.
35330
35331 2008-09-20  Bruno Haible  <bruno@clisp.org>
35332
35333         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35334         Wildenhues.
35335
35336 2008-09-20  Bruno Haible  <bruno@clisp.org>
35337
35338         Ensure that wint_t gets defined on IRIX 5.3.
35339         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35340         * lib/wctype.in.h (wint_t): Likewise.
35341         (__wctype_wint_t): Remove type.
35342         (isw*): Use wint_t instead of __wctype_wint_t.
35343         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35344         * modules/wchar (Files): Add m4/wint_t.m4.
35345         (Makefile.am): Substitute HAVE_WINT_T.
35346         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35347         * tests/test-wctype.c: Check that wint_t is defined.
35348         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35349         * doc/posix-headers/wctype.texi: Likewise.
35350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35351
35352 2008-09-18  Bruno Haible  <bruno@clisp.org>
35353
35354         * gnulib-tool (func_exit): Update comment.
35355
35356 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35357
35358         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35359         assumes strdup exists and does not depend on strdup to return
35360         ENOMEM on out of memory conditions.
35361
35362 2008-09-18  Bruno Haible  <bruno@clisp.org>
35363
35364         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
35365         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35366         digits for the exponent.
35367
35368 2008-09-18  Jim Meyering  <meyering@redhat.com>
35369             Bruno Haible  <bruno@clisp.org>
35370
35371         * lib/vasnprintf.c (decimal_point_char): Define also if
35372         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35373
35374 2008-09-16  Bruno Haible  <bruno@clisp.org>
35375         and Eric Blake  <ebb9@byu.net>
35376
35377         vasnprintf: support Irix 5.3
35378         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35379         that mishandle long double infinity.
35380         Reported by Tom G. Christensen.
35381
35382 2008-09-16  Bruno Haible  <bruno@clisp.org>
35383
35384         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35385         Solaris 9.
35386         * doc/glibc-functions/alphasort.texi: Likewise.
35387         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35388
35389 2008-09-16  Jim Meyering  <meyering@redhat.com>
35390
35391         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35392         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35393         a umask modification leak out of a subshell.  Otherwise, the
35394         opensolaris /bin/sh would be accepted and thus cause unwarranted
35395         failures in the coreutils test suite.
35396
35397 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35398
35399         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35400         to succeed.
35401
35402 2008-09-16  Jim Meyering  <meyering@redhat.com>
35403
35404         avoid spurious test failure when library is built without ACL support
35405         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35406         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35407         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35408         * tests/test-copy-acl.sh: Likewise.
35409
35410 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35411
35412         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35413         based on character occurrence counts.
35414
35415 2008-09-15  Eric Blake  <ebb9@byu.net>
35416
35417         tests: avoid some compiler warnings
35418         * tests/test-memchr.c (main): Pass NULL indirectly.
35419         * tests/test-closein.c (main): Avoid unused variable.
35420
35421 2008-09-15  Bruno Haible  <bruno@clisp.org>
35422
35423         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
35424         are missing on OpenBSD 4.0 individually.
35425         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35426
35427 2008-09-15  Bruno Haible  <bruno@clisp.org>
35428
35429         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
35430         * doc/posix-functions/strerror.texi: Mention also Cygwin.
35431         * doc/posix-functions/perror.texi: Likewise.
35432         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
35433         is missing.
35434         Reported by Eric Blake.
35435
35436         * lib/errno.in.h: Use replacement values >= 2000.
35437         Reported by Eric Blake.
35438
35439 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35440
35441         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
35442         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
35443         limit.
35444         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
35445         compareseq was aborted.
35446
35447 2008-09-14  Bruno Haible  <bruno@clisp.org>
35448
35449         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
35450         yvec_edit_count.
35451         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
35452         (fstrcmp_bounded): Simplify result computation accordingly.
35453
35454 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35455
35456         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
35457         (fstrcmp): Define in terms of fstrcmp_bounded.
35458         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
35459         lower_bound argument.
35460         Return quickly if the result is certainly < lower_bound.
35461         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
35462
35463 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35464
35465         * lib/diffseq.h (EARLY_ABORT): New macro.
35466         (compareseq): Change return type to bool. Return true when EARLY_ABORT
35467         evaluates to true.
35468
35469 2008-09-14  Bruno Haible  <bruno@clisp.org>
35470
35471         * modules/perror-tests: New file.
35472         * tests/test-perror.sh: New file.
35473         * tests/test-perror.c: New file.
35474
35475         New module 'perror'.
35476         * lib/stdio.in.h (perror): New declaration.
35477         * lib/perror.c: New file.
35478         * m4/perror.m4: New file.
35479         * modules/perror: New file.
35480         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
35481         * doc/posix-functions/perror.texi: Mention the perror module.
35482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
35483         REPLACE_PERROR.
35484         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
35485         REPLACE_PERROR.
35486
35487 2008-09-14  Bruno Haible  <bruno@clisp.org>
35488
35489         * modules/stdio (Makefile.am): Reorder to match the order in
35490         lib/stdio.in.h.
35491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35492
35493 2008-09-13  Bruno Haible  <bruno@clisp.org>
35494
35495         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
35496
35497 2008-09-13  Bruno Haible  <bruno@clisp.org>
35498
35499         Extend strerror to cover the added errno values.
35500         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
35501         (rpl_strerror): Provide error messages for the added errno values and
35502         for the WSA* values.
35503         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
35504         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
35505         strerror.
35506         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
35507         * modules/strerror (Depends-on): Add errno.
35508         * doc/posix-functions/strerror.texi: Document the change.
35509         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
35510         and EOVERFLOW.
35511
35512 2008-09-13  Bruno Haible  <bruno@clisp.org>
35513
35514         * modules/EOVERFLOW: Remove file.
35515         * m4/eoverflow.m4: Remove file.
35516         * modules/EOVERFLOW-tests: Remove file.
35517         * tests/test-EOVERFLOW.c: Remove file.
35518         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
35519         * modules/ftell (Depends-on): Likewise.
35520         * modules/getdelim (Depends-on): Likewise.
35521         * modules/getugroups (Depends-on): Likewise.
35522         * modules/poll (Depends-on): Likewise.
35523         * modules/snprintf (Depends-on): Likewise.
35524         * modules/sprintf-posix (Depends-on): Likewise.
35525         * modules/vasnprintf (Depends-on): Likewise.
35526         * modules/vasprintf (Depends-on): Likewise.
35527         * modules/vfprintf-posix (Depends-on): Likewise.
35528         * modules/vsnprintf (Depends-on): Likewise.
35529         * modules/vsprintf-posix (Depends-on): Likewise.
35530         * modules/xvasprintf (Depends-on): Likewise.
35531         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35532         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
35533         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
35534         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
35535         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35536         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
35537         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
35538         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
35539         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35540         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
35541         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
35542         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
35543         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35544         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
35545         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
35546         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
35547         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35548         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
35549         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
35550         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
35551         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35552         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
35553         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
35554         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
35555         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
35556         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35557         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
35558         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
35559         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
35560         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
35561         * MODULES.html.sh: Remove EOVERFLOW.
35562         * NEWS: Mention the change.
35563
35564 2008-09-13  Bruno Haible  <bruno@clisp.org>
35565
35566         * modules/errno-tests: New file.
35567         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
35568
35569         * lib/errno.in.h: New file.
35570         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
35571         * modules/errno: New file.
35572         * doc/posix-headers/errno.texi: Update documentation.
35573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
35574
35575 2008-09-13  Bruno Haible  <bruno@clisp.org>
35576
35577         * tests/test-poll.c: Use #if for native Windows, rather than testing
35578         __MSVCRT__.
35579
35580 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35581             Bruno Haible  <bruno@clisp.org>
35582
35583         * lib/glob.c: Don't include <pwd.h> on native Windows.
35584         (WINDOWS32): New macro.
35585         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
35586
35587 2008-09-13  Bruno Haible  <bruno@clisp.org>
35588
35589         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
35590         (ETIMEDOUT): Remove macro.
35591         (glthread_cond_timedwait_multithreaded): New declaration.
35592         (glthread_cond_timedwait): Use it.
35593         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
35594         (glthread_cond_timedwait_multithreaded): New function.
35595
35596 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35597
35598         * modules/poll-tests: Do not check for io.h.
35599         * tests/test-poll.c: Check for __MSVCRT__ instead.
35600
35601 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35602
35603         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
35604         * modules/poll-tests: Add inet_pton, stdbool, sockets.
35605         * tests/test-poll.c: Use them.  Use _pipe on Windows.
35606
35607 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35608
35609         * modules/poll-tests: New.
35610         * tests/test-poll.c: New.
35611
35612 2008-09-12  Eric Blake  <ebb9@byu.net>
35613
35614         frexp: test for NetBSD failure on -0.0
35615         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
35616         not all, bugs from NetBSD 3.0 have been fixed.
35617         * doc/posix-functions/frexp.texi (frexp): Document bug.
35618         Reported by Thomas Klausner.
35619
35620         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
35621         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
35622         literal -0.0.
35623         Reported by Jonathan C. Patschke <jp@centtech.com>.
35624
35625 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35626
35627         * lib/glthread/cond.h: Use dummy implementation also if
35628         USE_WIN32_THREADS.
35629
35630 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35631
35632         * modules/fnmatch-posix (License): Change to LGPLv2+.
35633         * modules/fnmatch-gnu (License): Likewise.
35634
35635 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35636
35637         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
35638
35639 2008-09-11  Jim Meyering  <meyering@redhat.com>
35640
35641         * users.txt: Add gtk-vnc.
35642
35643 2008-09-08  Simon Josefsson  <simon@josefsson.org>
35644
35645         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
35646         rotate amounts.
35647
35648         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
35649         required for 16-bit and 8-bit rotates.
35650         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
35651         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
35652         UINT8_MAX instead of hard-coded constants.
35653         Suggested by Paul Eggert.
35654
35655 2008-09-07  Bruno Haible  <bruno@clisp.org>
35656
35657         * tests/test-striconveh.c (main): Check behaviour when converting from
35658         UTF-7.
35659
35660         Make striconveh work better with stateful encodings.
35661         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
35662         that iconv does not increment the inptr when returning -1/EINVAL.
35663
35664 2008-09-07  Bruno Haible  <bruno@clisp.org>
35665
35666         * build-aux/config.rpath: Update according to libtool-2.2.6.
35667         * build-aux/config.libpath: Likewise.
35668
35669 2008-09-06  Bruno Haible  <bruno@clisp.org>
35670
35671         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
35672         * lib/freadptr.c (freadptr): Likewise.
35673         * lib/freadseek.c (freadptrinc): Likewise.
35674         Reported by Simon Josefsson.
35675
35676 2008-09-06  Bruno Haible  <bruno@clisp.org>
35677
35678         * modules/freadptr (License): Change to LGPLv2+.
35679         * modules/freadseek (License): Likewise.
35680         Suggested by Eric Blake.
35681
35682         * modules/memchr2 (License): Change to LGPLv2+.
35683         Approved by Eric Blake.
35684
35685 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35686             Bruno Haible  <bruno@clisp.org>
35687
35688         Make gnulib-tool work with native 'sed' on AIX.
35689         * gnulib-tool (sed_noop): New variable.
35690         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
35691         func_add_or_update, func_create_testdir): Use it to initialize sed
35692         script variables.
35693         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35694
35695 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
35696             Bruno Haible  <bruno@clisp.org>
35697
35698         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
35699         also works after #include directives.
35700
35701 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
35702
35703         getdate.y: reject an out-of-range timezone value
35704         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
35705         the range [-24...+24].  When specified with only one or two digits,
35706         * tests/test-getdate.c: Tests for the fix.
35707         * doc/getdate.texi: Document this change.
35708
35709 2008-09-03  Bruno Haible  <bruno@clisp.org>
35710
35711         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
35712
35713 2008-09-02  Simon Josefsson  <simon@josefsson.org>
35714
35715         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
35716         <bruce.korb@gmail.com> with ideas from Ben Pfaff
35717         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
35718         Blake <ebb9@byu.net>.
35719
35720         * tests/test-bitrotate.c: Add more test vectors.
35721
35722 2008-09-02  Eric Blake  <ebb9@byu.net>
35723
35724         vasnprintf-posix: handle large precision via %.*d
35725         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
35726         when handling it ourselves.
35727         * tests/test-vasnprintf-posix.c (test_function): Add test.
35728         * tests/test-snprintf-posix.h (test_function): Likewise.
35729         * tests/test-sprintf-posix.h (test_function): Likewise.
35730         * tests/test-vasprintf-posix.c (test_function): Likewise.
35731         Reported by Alain Guibert.
35732
35733 2008-09-01  Eric Blake  <ebb9@byu.net>
35734
35735         c-stack: make configure-time check more robust
35736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
35737         successful sigaction call.
35738         Reported by Tom G. Christensen.
35739
35740 2008-09-01  Bruno Haible  <bruno@clisp.org>
35741
35742         New module 'findprog-lgpl'.
35743         * modules/findprog-lgpl: New file.
35744         * lib/findprog-lgpl.c: New file.
35745         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
35746         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
35747         to decide whether to use strdup or xstrdup, concatenated_filename or
35748         xconcatenated_filename.
35749
35750 2008-09-01  Bruno Haible  <bruno@clisp.org>
35751
35752         Split module 'concat-filename' into 'concat-filename' (LGPL) and
35753         'xconcat-filename' (GPL).
35754         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
35755         (License): Change to LGPLv2+.
35756         * modules/xconcat-filename: New file.
35757         * lib/concat-filename.h (concatenated_filename): Change specification.
35758         (xconcatenated_filename): New declaration.
35759         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
35760         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
35761         memory situations.
35762         * lib/xconcat-filename.c: New file.
35763         * NEWS: Mention the change.
35764         * lib/findprog.c: Include concat-filename.h, not filename.h.
35765         (find_in_path): Use xconcatenated_filename instead of
35766         concatenated_filename.
35767         * lib/javacomp.c: Include concat-filename.h, not filename.h.
35768         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35769         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35770         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35771         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
35772         instead of concatenated_filename.
35773         * lib/javaexec.c: Include concat-filename.h, not filename.h.
35774         (execute_java_class): Use xconcatenated_filename instead of
35775         concatenated_filename.
35776         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
35777         * modules/javacomp (Depends-on): Likewise.
35778         * modules/javaexec (Depends-on): Likewise.
35779
35780 2008-09-01  Bruno Haible  <bruno@clisp.org>
35781
35782         Split module 'filename' into 'filename' and 'concat-filename'.
35783         * modules/filename: Keep only lib/filename.h.
35784         (License): Change to LGPLv2+.
35785         * modules/concat-filename: New file, extracted from modules/filename.
35786         * lib/filename.h (concatenated_filename): Remove declaration.
35787         * lib/concat-filename.h: New file, extracted from lib/filename.h.
35788         * lib/concat-filename.c: Include concat-filename.h.
35789         * NEWS: Mention the change.
35790
35791 2008-09-01  Simon Josefsson  <simon@josefsson.org>
35792
35793         * lib/bitrotate.h (rotl8, rotr8): Add.
35794
35795         * modules/bitrotate (configure.ac): Need
35796         AC_REQUIRE([AC_C_INLINE]).
35797         (Description): Mention stdint.h.  Reported by Bruno Haible
35798         <bruno@clisp.org>.
35799
35800         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
35801         Paolo Bonzini <bonzini@gnu.org>.
35802
35803 2008-08-31  Bruno Haible  <bruno@clisp.org>
35804
35805         Assume Solaris specific bi-arch conventions on Solaris systems.
35806         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
35807         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
35808         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
35809         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
35810         like acl_libdirstem.
35811         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
35812         acl_libdirstem.
35813         * NEWS: Mention the change.
35814         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
35815
35816 2008-08-31  Jim Meyering  <meyering@redhat.com>
35817
35818         * lib/strftime.h: Add comments describing the two added arguments.
35819
35820         remove duplicate #include directives
35821         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
35822         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
35823
35824 2008-08-31  Bruno Haible  <bruno@clisp.org>
35825
35826         New module 'sigpipe-die'.
35827         * modules/sigpipe-die: New file.
35828         * lib/sigpipe-die.h: New file.
35829         * lib/sigpipe-die.c: New file.
35830         * MODULES.html.sh (Signal handling): Add sigpipe-die.
35831
35832 2008-08-31  Bruno Haible  <bruno@clisp.org>
35833
35834         Don't override previously installed signal handlers.
35835         * lib/fatal-signal.c (saved_sigactions): New variable.
35836         (uninstall_handlers): Reset the signal to the saved handler, not
35837         to SIG_DFL (except when ignored).
35838         (install_handlers): Save the previous handlers.
35839
35840 2008-08-30  Bruno Haible  <bruno@clisp.org>
35841
35842         * gnulib-tool (func_reset_sigpipe): New function.
35843         (func_get_automake_snippet, func_modules_transitive_closure,
35844         func_import): Invoke it before a join command that reads from stdin,
35845         to avoid "echo: write error: Broken pipe" error messages on stderr.
35846         Reported by Sam Steingold <sds@gnu.org>.
35847
35848 2008-08-30  Bruno Haible  <bruno@clisp.org>
35849
35850         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
35851         Code copied from m4/open.m4.
35852         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
35853         access and the filename ends in a slash. Code copied from lib/open.c.
35854         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
35855         * tests/test-fopen.c (main): Check against bug with trailing slash.
35856
35857 2008-08-29  Bruno Haible  <bruno@clisp.org>
35858
35859         Avoid some "gcc -pedantic" warnings.
35860         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
35861         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
35862         * lib/dirent.in.h: Likewise.
35863         * lib/fcntl.in.h: Likewise.
35864         * lib/float.in.h: Likewise.
35865         * lib/iconv.in.h: Likewise.
35866         * lib/inttypes.in.h: Likewise.
35867         * lib/locale.in.h: Likewise.
35868         * lib/math.in.h: Likewise.
35869         * lib/netinet_in.in.h: Likewise.
35870         * lib/search.in.h: Likewise.
35871         * lib/signal.in.h: Likewise.
35872         * lib/stdarg.in.h: Likewise.
35873         * lib/stdint.in.h: Likewise.
35874         * lib/stdio.in.h: Likewise.
35875         * lib/stdlib.in.h: Likewise.
35876         * lib/string.in.h: Likewise.
35877         * lib/strings.in.h: Likewise.
35878         * lib/sys_select.in.h: Likewise.
35879         * lib/sys_socket.in.h: Likewise.
35880         * lib/sys_stat.in.h: Likewise.
35881         * lib/sys_time.in.h: Likewise.
35882         * lib/sysexits.in.h: Likewise.
35883         * lib/time.in.h: Likewise.
35884         * lib/unistd.in.h: Likewise.
35885         * lib/wchar.in.h: Likewise.
35886         * lib/wctype.in.h: Likewise.
35887         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
35888         * modules/fchdir (Makefile.am): Likewise.
35889         * modules/fcntl (Makefile.am): Likewise.
35890         * modules/float (Makefile.am): Likewise.
35891         * modules/iconv_open (Makefile.am): Likewise.
35892         * modules/inttypes (Makefile.am): Likewise.
35893         * modules/locale (Makefile.am): Likewise.
35894         * modules/math (Makefile.am): Likewise.
35895         * modules/netinet_in (Makefile.am): Likewise.
35896         * modules/search (Makefile.am): Likewise.
35897         * modules/signal (Makefile.am): Likewise.
35898         * modules/stdarg (Makefile.am): Likewise.
35899         * modules/stdint (Makefile.am): Likewise.
35900         * modules/stdio (Makefile.am): Likewise.
35901         * modules/stdlib (Makefile.am): Likewise.
35902         * modules/string (Makefile.am): Likewise.
35903         * modules/strings (Makefile.am): Likewise.
35904         * modules/sys_select (Makefile.am): Likewise.
35905         * modules/sys_socket (Makefile.am): Likewise.
35906         * modules/sys_stat (Makefile.am): Likewise.
35907         * modules/sys_time (Makefile.am): Likewise.
35908         * modules/sysexits (Makefile.am): Likewise.
35909         * modules/time (Makefile.am): Likewise.
35910         * modules/unistd (Makefile.am): Likewise.
35911         * modules/wchar (Makefile.am): Likewise.
35912         * modules/wctype (Makefile.am): Likewise.
35913         Reported by Reuben Thomas <rrt@sc3d.org>.
35914
35915 2008-08-29  Bruno Haible  <bruno@clisp.org>
35916
35917         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
35918         any more.
35919
35920 2008-08-29  Simon Josefsson  <simon@josefsson.org>
35921
35922         * MODULES.html.sh (Misc): Add bitrotate.
35923
35924         * modules/bitrotate: New file.
35925
35926         * lib/bitrotate.h: New file.
35927
35928         * modules/bitrotate-tests: New file.
35929
35930         * tests/test-bitrotate.c: New file.
35931
35932         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
35933         on the bitrotate module.
35934
35935         * lib/arctwo.c: Use new bitrotate module.
35936
35937 2008-08-29  Jim Meyering  <meyering@redhat.com>
35938
35939         bootstrap: merge changes from coreutils
35940         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
35941         of copied files.  Remove a kludge, now that this is fixed.
35942         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
35943         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
35944         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
35945
35946 2008-08-29  Bruno Haible  <bruno@clisp.org>
35947
35948         * MODULES.html.sh: Remove --cvs-urls option.
35949
35950 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
35951
35952         maint.mk: adjust to file name change
35953         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
35954
35955 2008-08-28  Jim Meyering  <meyering@redhat.com>
35956
35957         * modules/getndelim2 (License): Relicense to LGPLv2+.
35958         Approved by Richard Stallman for the version of 1995, and by
35959         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
35960
35961 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
35962
35963         * lib/getdelim.c (flockfile, funlockfile): Make all of them
35964         dummy if one is not available.  Do not touch them if
35965         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
35966         (getc_maybe_unlocked): New.
35967         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
35968
35969 2008-08-26  Eric Blake  <ebb9@byu.net>
35970
35971         doc/INSTALL: resync from autoconf
35972         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
35973         (INSTALL_PRELUDE): Delete; this is done more efficiently by
35974         moving...
35975         * install.texi [!autoconf]: ...here.  Resync from autoconf.
35976         * INSTALL: Regenerate.
35977         * INSTALL.ISO: New file.
35978         * INSTALL.UTF-8: Likewise.
35979
35980 2008-08-26  Jim Meyering  <meyering@redhat.com>
35981
35982         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
35983         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
35984         these definitions conditional, so that they may be overridden, too.
35985
35986 2008-08-26  Bruno Haible  <bruno@clisp.org>
35987
35988         Generate INSTALL file variants with prettier quotes.
35989         * doc/Makefile (INSTALL_PRELUDE): New macro.
35990         (INSTALL): Use it.
35991         (INSTALL.ISO, INSTALL.UTF-8): New rules.
35992
35993 2008-08-26  Bruno Haible  <bruno@clisp.org>
35994
35995         Run makeinfo in an English locale.
35996         * doc/Makefile (MAKEINFO): New variable.
35997
35998 2008-08-26  Bruno Haible  <bruno@clisp.org>
35999
36000         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36001         Suggested by Eric Blake.
36002
36003 2008-08-25  Bruno Haible  <bruno@clisp.org>
36004
36005         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36006
36007 2008-08-25  Eric Blake  <ebb9@byu.net>
36008
36009         c-stack: test that stack overflow can be caught
36010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36011         that platform allows handling stack overflow; at least OS/2 EMX
36012         has sigaltstack, but crashes before transferring control to
36013         handler on stack overflow.
36014         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36015         check for HAVE_STACK_OVERFLOW_HANDLING.
36016         Reported by Elbert Pol.
36017
36018 2008-08-25  Bruno Haible  <bruno@clisp.org>
36019
36020         * doc/posix-functions/strftime.texi: Fix description of strftime
36021         module.
36022
36023 2008-08-24  Bruno Haible  <bruno@clisp.org>
36024
36025         * tests/uniwidth/test-uc_width2.c: New file.
36026         * tests/uniwidth/test-uc_width2.sh: New file.
36027         * modules/uniwidth/width-tests (Files): Add the new files.
36028         (TESTS): Add uniwidth/test-uc_width2.sh.
36029         (TESTS_ENVIRONMENT): New variable.
36030         (check_PROGRAMS): Add test-uc_width2.
36031         (test_uc_width2_SOURCES): New variable.
36032
36033         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36034         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36035         not 0x00AB.
36036         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36037
36038 2008-08-22  Eric Blake  <ebb9@byu.net>
36039
36040         test-lock, test-tls: mention why a test is skipped
36041         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36042         skipped.
36043         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36044
36045         count-one-bits: relax license
36046         * modules/count-one-bits (License): Relicense to LGPLv2+.
36047         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36048
36049 2008-08-22  Andreas Schwab  <schwab@suse.de>
36050
36051         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36052         Remove spurious space in assignment.
36053
36054 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36055
36056         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36057         Paul Eggert <eggert@CS.UCLA.EDU>.
36058
36059 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36060
36061         * modules/gettext: Add m4/threadlib.m4.
36062
36063 2008-08-19  Eric Blake  <ebb9@byu.net>
36064
36065         test-c-stack: fix compilation failure on FreeBSD 5.0
36066         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36067         headers before <sys/resource.h>.
36068         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36069         the bug.
36070         Reported by Nelson H. F. Beebe.
36071
36072         strverscmp: migrate from "strverscmp.h" to <string.h>
36073         * modules/string (Makefile.am): Add new hooks.
36074         * modules/strverscmp (Files): Remove strverscmp.h.
36075         (Depends-on): Add string.
36076         (configure.ac): Add indicator.
36077         (Include): Mention new header.
36078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36079         defaults.
36080         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36081         results.
36082         * lib/strverscmp.h: Delete.
36083         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36084         * tests/test-strverscmp.c (includes): Adjust client.
36085         * lib/check-version.c (includes): Likewise.
36086         * NEWS: Document the change.
36087
36088         strverscmp: add unit test
36089         * modules/strverscmp-tests: New file.
36090         * tests/test-strverscmp.c: Likewise.
36091
36092 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36093
36094         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36095         regarding Windows crypto stuff, from Mono.
36096
36097 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36098
36099         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36100         if present, for intel RND.  Return error on failures.
36101
36102 2008-08-18  Ben Pfaff  <blp@gnu.org>
36103
36104         gitlog-to-changelog: give better diagnostic for failed pipe-open
36105         * build-aux/gitlog-to-changelog: Improve error message: suggest
36106         that the version of Git may be too old.
36107
36108 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36109
36110         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36111         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36112
36113 2008-08-18  Bruno Haible  <bruno@clisp.org>
36114
36115         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36116         pthread_in_use().
36117
36118 2008-08-18  Bruno Haible  <bruno@clisp.org>
36119
36120         * lib/glthread/threadlib.c: Include <pthread.h>.
36121
36122 2008-08-18  Bruno Haible  <bruno@clisp.org>
36123
36124         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36125         glthread_recursive_lock_* macros.
36126         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36127         Fix syntax error.
36128
36129 2008-08-18  Bruno Haible  <bruno@clisp.org>
36130
36131         * lib/glthread/thread.c: Avoid forcing a context switch right after
36132         thread creation.
36133
36134 2008-08-17  Bruno Haible  <bruno@clisp.org>
36135
36136         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36137         * lib/glthread/thread.h: Provide Win32 specific implementation.
36138         * modules/thread (Files): Add lib/glthread/thread.c.
36139         (Depends-on): Add lock.
36140         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36141
36142 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36143
36144         New module 'yield'.
36145         * modules/yield: New file.
36146         * lib/glthread/yield.h: New file.
36147         * m4/yield.m4: New file.
36148         * MODULES.html.sh (Multithreading): Add yield.
36149
36150 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36151
36152         New module 'thread'.
36153         * modules/thread: New file.
36154         * lib/glthread/thread.h: New file.
36155         * m4/thread.m4: New file.
36156         * MODULES.html.sh (Multithreading): Add thread.
36157
36158 2008-08-17  Bruno Haible  <bruno@clisp.org>
36159
36160         * lib/glthread/lock.h: Include <stdlib.h> always.
36161         * lib/glthread/tls.h: Likewise.
36162         * lib/glthread/cond.h: Likewise.
36163
36164 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36165
36166         New module 'cond'.
36167         * modules/cond: New file.
36168         * lib/glthread/cond.h: New file.
36169         * lib/glthread/cond.c: New file.
36170         * m4/cond.m4: New file.
36171         * MODULES.html.sh (Multithreading): Add cond.
36172
36173 2008-08-16  Eric Blake  <ebb9@byu.net>
36174
36175         c-stack: fix regression on Irix 5.3 from 2008-06-21
36176         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36177         sa_sigaction...
36178         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36179         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36180         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36181         * modules/signal (Makefile.am): Use the value.
36182         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36183         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36184         * doc/posix-headers/signal.texi (signal.h): Document this
36185         portability issue.
36186         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36187         Reported by Tom G. Christensen.
36188
36189 2008-08-17  Bruno Haible  <bruno@clisp.org>
36190
36191         New module 'threadlib'.
36192         * modules/threadlib: New file.
36193         * lib/glthread/threadlib.c: New file, extracted from
36194         lib/glthread/lock.c.
36195         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36196         functions.
36197         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36198         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36199         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36200         macros.
36201         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36202         (gl_DISABLE_THREADS): Remove macro.
36203         * modules/lock (Files): Remove build-aux/config.rpath.
36204         (Depends-on): Remove havelib. Add threadlib.
36205         (configure.ac-early): Remove section.
36206         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36207         * modules/tls (Depends-on): Remove lock. Add threadlib.
36208         (Link): New section, copied from threadlib.
36209         * MODULES.html.sh (Multithreading): Add threadlib.
36210
36211 2008-08-14  Bruno Haible  <bruno@clisp.org>
36212
36213         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36214         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36215         glthread_rwlock_unlock, glthread_rwlock_destroy,
36216         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36217         glthread_recursive_lock_destroy): Define as macros always.
36218         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36219         glthread_lock_lock.
36220         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36221         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36222         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36223         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36224         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36225         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36226         (glthread_recursive_lock_lock_func): Renamed from
36227         glthread_recursive_lock_lock.
36228         (glthread_recursive_lock_unlock_func): Renamed from
36229         glthread_recursive_lock_unlock.
36230         (glthread_recursive_lock_destroy_func): Renamed from
36231         glthread_recursive_lock_destroy.
36232
36233 2008-08-14  Bruno Haible  <bruno@clisp.org>
36234
36235         * lib/glthread/lock.h: Renamed from lib/lock.h.
36236         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36237         * lib/glthread/tls.h: Renamed from lib/tls.h.
36238         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36239         * lib/fstrcmp.c: Update includes.
36240         * lib/strsignal.c: Update includes.
36241         * modules/lock (Files, Makefile.am): Update.
36242         (Include): Change to "glthread/lock.h".
36243         * modules/tls (Files, Makefile.am): Update.
36244         (Include): Change to "glthread/tls.h".
36245         * tests/test-lock.c: Update includes.
36246         * tests/test-tls.c: Update includes.
36247         * NEWS: Mention the renamed header files.
36248
36249 2008-08-11  Jim Meyering  <meyering@redhat.com>
36250
36251         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36252
36253 2008-08-11  Eric Blake  <ebb9@byu.net>
36254
36255         test-c-stack: avoid C99-ism
36256         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36257         before statement.
36258         Reported by Alain Guibert.
36259
36260 2008-08-10  Jim Meyering  <meyering@redhat.com>
36261
36262         ensure that return value of uinttostr et al are not ignored
36263         * lib/inttostr.h (__GNUC_PREREQ): Define.
36264         (__attribute_warn_unused_result__): Define.
36265         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36266
36267 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36268
36269         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36270         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36271
36272 2008-08-07  Jim Meyering  <meyering@redhat.com>
36273
36274         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36275
36276         * modules/mkstemp (License): Relicense under LGPLv2+.
36277         * modules/tempname (License): Likewise.
36278
36279 2008-08-06  Bruno Haible  <bruno@clisp.org>
36280
36281         * lib/poll.c (poll): Further micro-optimization.
36282
36283 2008-08-06  Jim Meyering  <meyering@redhat.com>
36284
36285         inet_pton.c: use locale-independent tolower
36286         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36287         (inet_pton6): Use c_tolower rather than tolower.
36288         * modules/inet_pton (Depends-on): Add c-ctype.
36289
36290 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36291
36292         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36293         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36294
36295 2008-08-06  Jim Meyering  <meyering@redhat.com>
36296
36297         * modules/inet_pton (License): Relicense under LGPLv2+.
36298
36299 2008-08-03  Bruno Haible  <bruno@clisp.org>
36300
36301         Additional non-aborting API for lock and tls.
36302         * lib/lock.h: Include <errno.h>.
36303         (glthread_lock_init): New macro/function.
36304         (gl_lock_init): Define as wrapper around glthread_lock_init.
36305         (glthread_lock_lock): New macro/function.
36306         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36307         (glthread_lock_unlock): New macro/function.
36308         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36309         (glthread_lock_destroy): New macro/function.
36310         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36311         (glthread_rwlock_init): New macro/function.
36312         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36313         (glthread_rwlock_rdlock): New macro/function.
36314         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36315         (glthread_rwlock_wrlock): New macro/function.
36316         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36317         (glthread_rwlock_unlock): New macro/function.
36318         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36319         (glthread_rwlock_destroy): New macro/function.
36320         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36321         (glthread_recursive_lock_init): New macro/function.
36322         (gl_recursive_lock_init): Define as wrapper around
36323         glthread_recursive_lock_init.
36324         (glthread_recursive_lock_lock): New macro/function.
36325         (gl_recursive_lock_lock): Define as wrapper around
36326         glthread_recursive_lock_lock.
36327         (glthread_recursive_lock_unlock): New macro/function.
36328         (gl_recursive_lock_unlock): Define as wrapper around
36329         glthread_recursive_lock_unlock.
36330         (glthread_recursive_lock_destroy): New macro/function.
36331         (gl_recursive_lock_destroy): Define as wrapper around
36332         glthread_recursive_lock_destroy.
36333         (glthread_once): New macro/function.
36334         (gl_once): Define as wrapper around glthread_once.
36335         Update function declarations.
36336         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36337         glthread_rwlock_init. Return error code.
36338         (glthread_rwlock_rdlock_multithreaded): Renamed from
36339         glthread_rwlock_rdlock. Return error code.
36340         (glthread_rwlock_wrlock_multithreaded): Renamed from
36341         glthread_rwlock_wrlock. Return error code.
36342         (glthread_rwlock_unlock_multithreaded): Renamed from
36343         glthread_rwlock_unlock. Return error code.
36344         (glthread_rwlock_destroy_multithreaded): Renamed from
36345         glthread_rwlock_destroy. Return error code.
36346         (glthread_recursive_lock_init_multithreaded): Renamed from
36347         glthread_recursive_lock_init. Return error code.
36348         (glthread_recursive_lock_lock_multithreaded): Renamed from
36349         glthread_recursive_lock_lock. Return error code.
36350         (glthread_recursive_lock_unlock_multithreaded): Renamed from
36351         glthread_recursive_lock_unlock. Return error code.
36352         (glthread_recursive_lock_destroy_multithreaded): Renamed from
36353         glthread_recursive_lock_destroy. Return error code.
36354         (glthread_once_call): Make static.
36355         (glthread_once_multithreaded): Renamed from glthread_once.
36356         * lib/tls.h: Include <errno.h>.
36357         (glthread_tls_key_init): New macro/function.
36358         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36359         (glthread_tls_set): New macro/function.
36360         (gl_tls_set): Define as wrapper around glthread_tls_set.
36361         (glthread_tls_key_destroy): New macro/function.
36362         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36363         Update function declarations.
36364         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36365         glthread_tls_get.
36366         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36367
36368 2008-08-04  Eric Blake  <ebb9@byu.net>
36369
36370         gnumakefile: use space, not TAB, outside of targets
36371         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36372
36373 2008-08-02  Jim Meyering  <meyering@redhat.com>
36374
36375         getdate.y: avoid locale-dependent date parsing failure
36376         In Turkish locales, getdate would fail to recognize keywords
36377         containing a lowercase "i".  The solution is not to rely on
36378         locale-sensitive case-conversion.
36379         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36380         (lookup_word): Use c_toupper in place of toupper.
36381         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36382         Reported by Vefa Bicakci <bicave@superonline.com> in
36383         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36384         * modules/getdate (Depends-on): Add c-ctype.
36385
36386 2008-08-02  Bruno Haible  <bruno@clisp.org>
36387
36388         * gnulib-tool (func_import): When updating or creating a .gitignore
36389         file, prepend each added line with a slash, and ignore leading slashes
36390         from the existing lines.
36391         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36392
36393 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36394
36395         Portability fix for GNU make 3.79.1.
36396         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36397         versions do not understand.
36398
36399 2008-08-01  Bruno Haible  <bruno@clisp.org>
36400
36401         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36402         * tests/test-isnanf.h (zero): New variable.
36403         (main): Avoid literal -0.0f.
36404         * tests/test-isnand.h (zero): New variable.
36405         (main): Avoid literal -0.0.
36406         * tests/test-isnanl.h (zero): New variable.
36407         (main): Avoid literal -0.0L.
36408         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36409         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36410         -0.0, -0.0L.
36411         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36412         (test_signbitd): Avoid literal -0.0.
36413         (test_signbitl): Avoid literal -0.0L.
36414         * tests/test-ceilf1.c (zero): New variable.
36415         (main): Avoid literal -0.0f.
36416         * tests/test-ceill.c (zero): New variable.
36417         (main): Avoid literal -0.0L.
36418         * tests/test-floorf1.c (zero): New variable.
36419         (main): Avoid literal -0.0f.
36420         * tests/test-floorl.c (zero): New variable.
36421         (main): Avoid literal -0.0L.
36422         * tests/test-roundf1.c (zero): New variable.
36423         (main): Avoid literal -0.0f.
36424         * tests/test-round1.c (zero): New variable.
36425         (main): Avoid literal -0.0.
36426         * tests/test-roundl.c (zero): New variable.
36427         (main): Avoid literal -0.0L.
36428         * tests/test-truncf1.c (zero): New variable.
36429         (main): Avoid literal -0.0f.
36430         * tests/test-trunc1.c (zero): New variable.
36431         (main): Avoid literal -0.0.
36432         * tests/test-truncl.c (zero): New variable.
36433         (main): Avoid literal -0.0L.
36434         * tests/test-frexp.c (zero): New variable.
36435         (main): Avoid literal -0.0.
36436         * tests/test-frexpl.c (zero): New variable.
36437         (main): Avoid literal -0.0L.
36438         * tests/test-ldexpl.c (zero): New variable.
36439         (main): Avoid literal -0.0L.
36440         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36441         (zerod, zerol): New variables.
36442         (test_function): Avoid literals -0.0, -0.0L.
36443         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36444         (zerod, zerol): New variables.
36445         (test_function): Avoid literals -0.0, -0.0L.
36446         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36447         (zerod, zerol): New variables.
36448         (test_function): Avoid literals -0.0, -0.0L.
36449         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36450         (zerod, zerol): New variables.
36451         (test_function): Avoid literals -0.0, -0.0L.
36452         * tests/test-strtod.c (zero): New variable.
36453         (main): Avoid literal -0.0.
36454         Reported by Jonathan C. Patschke <jp@centtech.com>.
36455
36456 2008-07-31  Jim Meyering  <meyering@redhat.com>
36457
36458         sha256.h: correct definition of SHA224_DIGEST_SIZE
36459         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
36460         Reported by Paulie Pena IV <paulie4@gmail.com>.
36461         Define as 224 / 8, rather than as a literal.
36462         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
36463         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
36464         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
36465
36466 2008-07-31  Bruno Haible  <bruno@clisp.org>
36467
36468         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
36469         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
36470         Reported by Jonathan Patschke <jp@centtech.com>.
36471
36472 2008-07-31  Bruno Haible  <bruno@clisp.org>
36473
36474         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
36475         Reported by Paolo Bonzini <bonzini@gnu.org>.
36476
36477 2008-07-30  Eric Blake  <ebb9@byu.net>
36478
36479         test-strtod: allow compilation without -lm
36480         * tests/test-strtod.c (main): Avoid link dependence on fabs.
36481         Reported by Dennis Clarke <blastwave@gmail.com>.
36482
36483 2008-07-28  Jim Meyering  <meyering@redhat.com>
36484
36485         bootstrap: work also when there are no .po files in po/
36486         * build-aux/bootstrap (update_po_files): Complete the change
36487         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
36488
36489 2008-07-27  Jim Meyering  <meyering@redhat.com>
36490
36491         * users.txt: Add zile.
36492
36493 2008-07-26  Ben Pfaff  <blp@gnu.org>
36494
36495         Add missing dependencies on new m4/exponent[fdl].m4 files.
36496         * modules/isnanf-nolibm: Add m4/exponentf.m4.
36497         * modules/isnand-nolibm: Add m4/exponentd.m4.
36498         * modules/isnanl-nolibm: Add m4/exponentl.m4.
36499         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
36500         m4/isnan[fdl].m4, because the macros actually used moved.
36501         Reported by Jim Meyering.
36502
36503 2008-07-14  Ben Pfaff  <blp@gnu.org>
36504
36505         Add isinf module.
36506         * lib/isinf.c: New file.
36507         * lib/math.in.h: Define isinf macro if we have decided to replace
36508         it.
36509         * m4/isinf.m4: New file.
36510         * m4/math_h.m4: Initialize and substitute variables for isinf
36511         module.
36512         * modules/isinf: New file.
36513         * modules/isinf-tests: New file.
36514         * modules/math: Add substitutions for new module.
36515         * tests/test-isinf.c: New file.
36516         * doc/posix-functions/isinf.texi: Mention new module.
36517         * MODULES.html.sh: Mention new module.
36518
36519 2008-07-14  Ben Pfaff  <blp@gnu.org>
36520
36521         Factor out some macros for use by additional modules.
36522         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
36523         exponentf.m4.
36524         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
36525         exponentd.m4.
36526         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
36527         file exponentl.m4.
36528         * m4/exponentf.m4: New file.
36529         * m4/exponentd.m4: New file.
36530         * m4/exponentl.m4: New file.
36531         * modules/isnanf: Use new file m4/exponentf.m4.
36532         * modules/isnand: Use new file m4/exponentd.m4.
36533         * modules/isnanl: Use new file m4/exponentl.m4.
36534
36535 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
36536
36537         mktime.c: normalize tp->tm_isdst value to -1/0/1.
36538         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
36539         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
36540         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
36541
36542         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
36543         readlink on platforms without PATH_MAX.
36544
36545 2008-07-21  Eric Blake  <ebb9@byu.net>
36546
36547         Warn, not fail, on stale version.
36548         * top/GNUmakefile (_curr-ver): Tone down previous patch.
36549
36550         Don't allow installation with stale devel version number.
36551         * top/GNUmakefile (_is-install-target): New macro.
36552         (_curr-ver): Forbid installation with stale version number.
36553
36554 2008-07-20  Bruno Haible  <bruno@clisp.org>
36555
36556         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
36557         TESTS_ENVIRONMENT.
36558         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
36559
36560 2008-07-20  Bruno Haible  <bruno@clisp.org>
36561
36562         * lib/c-stack.h (c_stack_action): Add documentation.
36563         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
36564
36565 2008-07-20  Bruno Haible  <bruno@clisp.org>
36566
36567         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
36568         * modules/readlink (License): Likewise.
36569
36570 2008-07-17  Eric Blake  <ebb9@byu.net>
36571
36572         * modules/c-stack (Link): Fix typo.
36573
36574         Make c-stack use libsigsegv, when available.
36575         * modules/c-stack (Depends-on): Add libsigsegv.
36576         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
36577         needed.
36578         * lib/c-stack.c (SIGSTKSZ): Define fallback.
36579         (segv_handler, overflow_handler, c_stack_action)
36580         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
36581         implementation when libsigsegv is available, but only when using
36582         the library is necessary.
36583         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
36584         comment, explaining why XSI check fails on Linux.
36585         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
36586         * tests/test-c-stack2.sh: Tweak skip message.
36587         * NEWS: Document new link-time requirements.
36588
36589 2008-07-16  Eric Blake  <ebb9@byu.net>
36590
36591         c-stack: Expose false positives when not using libsigsegv.
36592         * modules/c-stack-tests (Files): Expand test.
36593         * tests/test-c-stack.c (main): Add means to conditionally trigger
36594         non-overflow SIGSEGV.
36595         * tests/test-c-stack2.sh: New file.
36596
36597 2008-07-14  Bruno Haible  <bruno@clisp.org>
36598
36599         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
36600         Reported by Eric Blake.
36601
36602 2008-07-14  Sam Steingold  <sds@gnu.org>
36603             Bruno Haible  <bruno@clisp.org>
36604
36605         New module libsigsegv.
36606         * modules/libsigsegv: New file.
36607         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
36608         modifications.
36609         * MODULES.html.sh (Signal handling): New section.
36610
36611 2008-07-14  Bruno Haible  <bruno@clisp.org>
36612
36613         * modules/unictype/ctype-* (Description): Add the word "function".
36614         Improves the resulting doc in MODULES.html.
36615
36616 2008-07-12  Ben Pfaff  <blp@gnu.org>
36617
36618         Add longlong module.
36619         * modules/longlong: New file.
36620
36621 2008-07-12  Bruno Haible  <bruno@clisp.org>
36622
36623         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
36624         to empty.
36625
36626 2008-07-10  Ben Pfaff  <blp@gnu.org>
36627
36628         Add isnan module.
36629         * doc/posix-functions/isnan.texi: Mention new module.
36630         * lib/math.in.h: Define isnan macro if we have decided to replace
36631         it.
36632         * m4/isnan.m4: New file.
36633         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
36634         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
36635         also.
36636         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
36637         redundancy.
36638         * m4/math_h.m4: Initialize and substitute variables for isnan
36639         module.
36640         * modules/isnan: New file.
36641         * modules/isnan-tests: New file.
36642         * modules/math: Add substitutions for new module.
36643         * tests/test-isnan.c: New file.
36644         * MODULES.html.sh: Mention new module.
36645
36646 2008-07-10  Ben Pfaff  <blp@gnu.org>
36647
36648         Add isnanf module.
36649         * lib/isnanf.m4: New file.
36650         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
36651         (gl_HAVE_ISNANF_IN_LIBM): New macro.
36652         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
36653         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
36654         * modules/isnanf: New file.
36655         * modules/isnanf-tests: New file.
36656         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
36657         files.
36658         * tests/test-isnanf-nolibm.c: factored most of its contents into
36659         new file tests/test-isnanf.h.
36660         * tests/test-isnanf.h: New file.
36661         * tests/test-isnanf.c: New file.
36662         * MODULES.html.sh: Mention new module.
36663         * doc/glibc-functions/isnanf.texi: Mention new module.
36664
36665 2008-07-10  Ben Pfaff  <blp@gnu.org>
36666
36667         Add isnand module.
36668         * lib/isnand.h: New file.
36669         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
36670         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
36671         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
36672         functionality also.
36673         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
36674         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
36675         (gl_HAVE_ISNAND_IN_LIBM): New macro.
36676         * modules/isnand: New file.
36677         * modules/isnand-tests: New file.
36678         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
36679         files.
36680         * tests/test-isnand-nolibm.c: factored most of its contents into
36681         new file tests/test-isnand.h.
36682         * tests/test-isnand.h: New file.
36683         * tests/test-isnand.c: New file.
36684         * MODULES.html.sh: Mention new module.
36685
36686 2008-07-10  Ben Pfaff  <blp@gnu.org>
36687
36688         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
36689         * lib/isnand.h: Rename lib/isnand-nolibm.h.
36690         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
36691         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
36692         * modules/isnanf-nolibm: Update references to renamed files.
36693         * modules/isnand-nolibm: Likewise.
36694         * modules/isnanf-nolibm-tests: Likewise.
36695         * modules/isnand-nolibm-tests: Likewise.
36696         * lib/frexp.c: Likewise.
36697         * lib/isfinite.c: Likewise.
36698         * lib/signbitd.c: Likewise.
36699         * lib/signbitf.c: Likewise.
36700         * lib/vasnprintf.c: Likewise.
36701         * tests/test-ceilf1.c: Likewise.
36702         * tests/test-ceilf2.c: Likewise.
36703         * tests/test-floorf1.c: Likewise.
36704         * tests/test-floorf2.c: Likewise.
36705         * tests/test-frexp.c: Likewise.
36706         * tests/test-round1.c: Likewise.
36707         * tests/test-round2.c: Likewise.
36708         * tests/test-roundf1.c: Likewise.
36709         * tests/test-strtod.c: Likewise.
36710         * tests/test-trunc1.c: Likewise.
36711         * tests/test-trunc2.c: Likewise.
36712         * tests/test-truncf1.c: Likewise.
36713         * tests/test-truncf2.c: Likewise.
36714         * NEWS: Mention the renamed header files.
36715
36716 2008-07-11  Jim Meyering  <meyering@redhat.com>
36717
36718         vc-list-files: make the last-resort awk code more portable
36719         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
36720         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
36721         does not support it.
36722
36723 2008-07-10  Eric Blake  <ebb9@byu.net>
36724
36725         Work with tar's bootstrap.
36726         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
36727         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
36728         an m4 comment.
36729
36730 2008-07-09  Jim Meyering  <meyering@redhat.com>
36731
36732         posix-shell.m4: fix typo that made this test malfunction
36733         * m4/posix-shell.m4: Remove capitalization in variable name.
36734
36735 2008-07-08  Bruno Haible  <bruno@clisp.org>
36736
36737         * m4/onceonly.m4: Update comments.
36738         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36739
36740 2008-07-04  Jim Meyering  <meyering@redhat.com>
36741
36742         * users.txt: Add vc-dwim.
36743         (bison, coreutils): Use the gitweb URL.
36744
36745 2008-07-03  Jim Meyering  <meyering@redhat.com>
36746
36747         * users.txt: Add libffcall.  From Sam Steingold.
36748
36749 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
36750
36751         getdate.y: do not ignore TZ with relative day, month or year offset
36752         * lib/getdate.y (get_date): Move the tz-handling block to follow the
36753         relative-date-handling, since otherwise, the latter would clobber the
36754         sole output (an updated Start value) of the tz-handling block.
36755         * tests/test-getdate.c: Tests for the fix
36756
36757 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36758
36759         Recognize 'foo_LIBRARIES += libgnu.a'.
36760         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
36761         makefile snippet has already specified an installation location,
36762         also using '+='.
36763
36764 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
36765
36766         getdate.y: factor out common actions
36767         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
36768         Use them in place of open-coded actions.
36769
36770 2008-07-01  Simon Josefsson  <simon@josefsson.org>
36771
36772         Add self-test for getdate module.
36773         * modules/getdate-tests: New file.
36774         * tests/test-getdate.c: New file.
36775
36776 2008-06-29  Bruno Haible  <bruno@clisp.org>
36777
36778         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
36779         .gitignore.
36780         Reported by Sylvain Beucler <beuc@beuc.net>.
36781
36782 2008-06-29  Bruno Haible  <bruno@clisp.org>
36783
36784         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
36785         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
36786
36787 2008-06-29  Bruno Haible  <bruno@clisp.org>
36788
36789         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
36790         EXTRA_DIST.
36791         Reported by Sylvain Beucler <beuc@beuc.net>.
36792
36793 2008-06-26  Jim Meyering  <meyering@redhat.com>
36794
36795         make several modules depend on the "open" module
36796         This provides slightly increased consistency when opening-for-write
36797         the name of a non-directory spelled with a trailing slash.
36798         * modules/chdir-safer: Likewise.
36799         * modules/chown: Likewise.
36800         * modules/clean-temp: Likewise.
36801         * modules/copy-file: Likewise.
36802         * modules/fchdir: Likewise.
36803         * modules/fcntl-safer: Likewise.
36804         * modules/pipe: Likewise.
36805         * modules/utime: Likewise.
36806         Prompted by Eric Blake and Bruno Haible.
36807
36808 2008-06-24  Andreas Schwab  <schwab@suse.de>
36809
36810         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
36811         literals can be used as initializers for global variables.
36812
36813 2008-06-23  Eric Blake  <ebb9@byu.net>
36814
36815         Make gnulib-cache.m4 easier to diff.
36816         * gnulib-tool (func_import): Allow newlines when reading cached
36817         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
36818
36819 2008-06-23  Bruno Haible  <bruno@clisp.org>
36820
36821         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
36822         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
36823         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
36824         m4/signalblocking.m4.
36825         (gl_PREREQ_SIGACTION): Don't invoke it.
36826         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
36827         gl_PREREQ_SIG_HANDLER_H.
36828         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36829         Don't check for sigaction here.
36830
36831 2008-06-23  Bruno Haible  <bruno@clisp.org>
36832
36833         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
36834         (install_handlers): Don't set the SA_RESETHAND flag.
36835
36836 2008-06-23  Bruno Haible  <bruno@clisp.org>
36837
36838         * m4/sigaction.m4: Comment fixes.
36839         * lib/signal.in.h: Likewise.
36840
36841 2008-06-23  Eric Blake  <ebb9@byu.net>
36842
36843         Fix typo.
36844         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
36845
36846         Avoid SA_ namespace.
36847         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
36848         Reported by Ralf Wildenhues.
36849
36850         Avoid test failure due to SA_RESTORER.
36851         * tests/test-sigaction.c (SA_MASK): New macro.
36852         (main): Avoid failing due to extension flags being set.
36853         Reported by Jim Meyering.
36854
36855         Revert use of sig-handler.h in sigprocmask.c.
36856         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
36857         it requires the existence of struct sigaction.
36858         * lib/sigprocmask.c (handler_t): Restore typedef.
36859         (rpl_signal, old_handlers): Use local type.
36860
36861 2008-06-22  Bruno Haible  <bruno@clisp.org>
36862
36863         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
36864         conditionally.
36865         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36866
36867 2008-06-22  Bruno Haible  <bruno@clisp.org>
36868
36869         * doc/posix-functions/siginterrupt.texi: Move note.
36870
36871         * lib/signal.in.h (SA_RESTART): New macro.
36872         * lib/sigaction.c: Update comment.
36873
36874         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
36875
36876         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
36877         (gl_PREREQ_SIGPROCMASK): Invoke it.
36878         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
36879
36880         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
36881
36882         * lib/sigprocmask.c: Update a comment.
36883
36884 2008-06-21  Eric Blake  <ebb9@byu.net>
36885
36886         Use sigaction module rather than signal().
36887         * modules/c-stack (Depends-on): Add sigaction.
36888         * modules/fatal-signal (Depends-on): Likewise.
36889         * modules/nanosleep (Depends-on): Likewise.
36890         * modules/sigprocmask (Files): Add sig-handler.h.
36891         * modules/sigaction (Files): Likewise.
36892         * lib/sig-handler.h (get_handler): New file, suggested by Paul
36893         Eggert.
36894         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
36895         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
36896         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
36897         (init_fatal_signals): Likewise.
36898         * lib/nanosleep.c (rpl_nanosleep): Likewise.
36899         (siginterrupt): Delete fallback.
36900         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
36901         instead.
36902         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
36903         siginterrupt.
36904
36905         New module sigaction, for mingw.
36906         * modules/sigaction: New module...
36907         * modules/sigaction-tests: ...and its test.
36908         * m4/sigaction.m4: New file.
36909         * lib/sigaction.c: Likewise.
36910         * tests/test-sigaction.c: Likewise.
36911         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
36912         * modules/signal (Makefile.am): Likewise.
36913         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
36914         needed.
36915         * doc/posix-headers/signal.texi (signal.h): Mention provided
36916         types.
36917         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
36918         that sigaction is preferable.
36919         * doc/posix-functions/sigaction.texi (sigaction): Mention new
36920         module.
36921         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36922         sigaction.
36923
36924         Improve robustness of sigprocmask by overriding signal.
36925         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
36926         is in use.
36927         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
36928         (SIGKILL, SIGSTOP): Provide fallbacks.
36929         (rpl_signal): Implement.
36930         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
36931         signal can be called inside handlers.
36932
36933         Fix nanosleep module on mingw.
36934         * modules/nanosleep (Depends-on): Add sys_select.
36935         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
36936
36937         Fix licensing of sigprocmask.
36938         * modules/raise (License): Relicense as LGPL.
36939
36940 2008-06-21  Bruno Haible  <bruno@clisp.org>
36941
36942         * lib/propername.c (proper_name_utf8): Don't use the transliterated
36943         result if it contains question marks.
36944         Reported by Michael Geng <linux@michaelgeng.de>.
36945
36946 2008-06-19  Bruno Haible  <bruno@clisp.org>
36947
36948         Fix CVS-ism.
36949         * doc/gnulib.texi: Include updated-stamp.texi.
36950         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
36951         (updated-stamp.texi): New rule.
36952         (gnulib.info): Depend on it.
36953         * doc/.gitignore: Add updated-stamp.texi.
36954         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
36955
36956 2008-06-19  Bruno Haible  <bruno@clisp.org>
36957
36958         * doc/Makefile (gnulib.info): Update and simplify dependencies.
36959         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36960
36961 2008-06-19  Eric Blake  <ebb9@byu.net>
36962
36963         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
36964         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
36965         Reported by Stepan Kasal.
36966
36967 2008-06-18  Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/fatal-signal.c (init_fatal_signals): Add comment.
36970         Reported by Eric Blake.
36971
36972 2008-06-18  Eric Blake  <ebb9@byu.net>
36973
36974         Work around cygwin 1.5.25 strsignal bug.
36975         * tests/test-strsignal.c: Allow for const char *.
36976         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
36977
36978 2008-06-18  Simon Josefsson  <simon@josefsson.org>
36979
36980         * users.txt: Update URL to article and add author/date
36981         information.
36982
36983 2008-06-17  Bruno Haible  <bruno@clisp.org>
36984
36985         New macro gl_DISABLE_THREADS.
36986         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
36987         if the user did not pass --enable-threads or --disable-threads option.
36988         (gl_DISABLE_THREADS): New macro.
36989         Reported by Eric Blake <ebb9@byu.net>.
36990
36991 2008-06-17  Bruno Haible  <bruno@clisp.org>
36992
36993         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
36994         when the macro ignores it.
36995         Based on a patch by Eric Blake <ebb9@byu.net>.
36996
36997 2008-06-17  Bruno Haible  <bruno@clisp.org>
36998
36999         * modules/tls (License): Change to LGPLv2+.
37000         Reported by Eric Blake.
37001
37002 2008-06-17  Eric Blake  <ebb9@byu.net>
37003
37004         Simplify c-stack prerequisites.
37005         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37006         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37007         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37008         check.
37009         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37010         <sys/resource.h>.
37011
37012         Move c-stack test into testsuite.
37013         * modules/c-stack-tests: New file.
37014         * lib/c-stack.c [DEBUG]: Move test program...
37015         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37016         fail test if sigaltstack is lacking.
37017         * tests/test-c-stack.sh: New driver file.
37018
37019 2008-06-16  Eric Blake  <ebb9@byu.net>
37020
37021         Use raise module consistently.
37022         * modules/fatal-signal (Depends-on): Add raise.
37023         * modules/sigprocmask (Depends-on): Likewise.
37024         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37025         * lib/sigprocmask.c (sigprocmask): Likewise.
37026         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37027         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37028
37029         Fix compliance bug in sigpending.
37030         * lib/sigprocmask.c (sigpending): Return pending array via
37031         parameter, not return value.
37032
37033 2008-06-14  Eric Blake  <ebb9@byu.net>
37034
37035         Improve obstack-printf test code.
37036         * tests/test-obstack-printf.c (test_function): Fix comment, and
37037         simplify usage of obstack_* in macros.  Add a test for coverage.
37038         Reported by Bruno Haible.
37039
37040 2008-06-14  Bruno Haible  <bruno@clisp.org>
37041
37042         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37043         array size as a constant, not as a const variable.
37044         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37045         AC_USE_SYSTEM_EXTENSIONS.
37046         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37047         Test whether the obstack_printf function actually exists.
37048         * modules/obstack-printf (Depends-on): Add extensions.
37049         (Include): Remove obstack.h.
37050         * modules/obstack-printf-posix (Depends-on): Add extensions.
37051         (Include): Remove obstack.h.
37052
37053 2008-06-13  Eric Blake  <ebb9@byu.net>
37054
37055         Add obstack-printf and obstack-printf-posix modules.
37056         * modules/obstack-printf: New file.
37057         * modules/obstack-printf-posix: Likewise.
37058         * MODULES.html.sh (Misc): Mention them.
37059         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37060         Likewise.
37061         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37062         Likewise.
37063         * modules/stdio (Makefile.am): Accomodate new modules.
37064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37065         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37066         Declare.
37067         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37068         functions.
37069         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37070         (gl_REPLACE_OBSTACK_PRINTF): New macros
37071         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37072         * tests/test-obstack-printf.c: New file.
37073         * modules/obstack-printf-tests: Likewise.
37074         * modules/obstack-printf-posix-tests: Likewise.
37075
37076 2008-06-11  Bruno Haible  <bruno@clisp.org>
37077
37078         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37079         * lib/open.c: Include errno.h.
37080         (open): Fail when attempting to write to a file that has a trailing
37081         slash.
37082         * tests/test-open.c (main): Test against trailing slash bug.
37083         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37084
37085 2008-06-10  Bruno Haible  <bruno@clisp.org>
37086
37087         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37088         for $? to work inside the trap command, with various /bin/sh-s.
37089         * tests/test-vc-list-files-cvs.sh: Likewise.
37090
37091 2008-06-10  Bruno Haible  <bruno@clisp.org>
37092
37093         * lib/acl-internal.h: Don't include gettext.h here.
37094         * lib/set-mode-acl.c: Include gettext.h here.
37095         * lib/copy-acl.c: Likewise.
37096
37097 2008-06-10  Bruno Haible  <bruno@clisp.org>
37098
37099         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37100         * lib/wait-process.c (wait_subprocess): Likewise.
37101         * lib/execute.h (execute): Add termsigp argument.
37102         * lib/execute.c (execute): Likewise.
37103         * lib/csharpcomp.c (compile_csharp_using_pnet,
37104         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37105         * lib/csharpexec.c (execute_csharp_using_pnet,
37106         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37107         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37108         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37109         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37110         is_jikes_present): Update.
37111         * lib/javaexec.c (execute_java_class): Update.
37112         * lib/javaversion.c (execute_and_read_line): Update.
37113         * NEWS: Document the changes.
37114         Reported by Eric Blake.
37115
37116 2008-06-10  Eric Blake  <ebb9@byu.net>
37117
37118         Add missing include.
37119         * tests/test-strstr.c (includes): Add <signal.h>.
37120         * tests/test-strcasestr.c (includes): Likewise.
37121         * tests/test-memmem.c (includes): Likewise.
37122
37123 2008-06-10  Bruno Haible  <bruno@clisp.org>
37124
37125         * lib/wait-process.c (wait_subprocess): Add an assertion.
37126
37127 2008-06-10  Bruno Haible  <bruno@clisp.org>
37128
37129         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37130
37131 2008-06-10  Bruno Haible  <bruno@clisp.org>
37132
37133         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37134         using alarm().
37135         * tests/test-strcasestr.c (main): Likewise.
37136         * tests/test-strstr.c (main): Likewise.
37137
37138 2008-06-09  Bruno Haible  <bruno@clisp.org>
37139
37140         Work around the Solaris 10 ACE ACLs ABI change.
37141         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37142         declare if ACL_NO_TRIVIAL is present.
37143         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37144         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37145         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37146         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37147         define if ACL_NO_TRIVIAL is present.
37148         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37149         and use the current ABI.
37150         (file_has_acl): Use same #if condition as elsewhere.
37151         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37152         in use, and use the current ABI.
37153         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37154         Reported by Jim Meyering.
37155
37156 2008-06-09  Eric Blake  <ebb9@byu.net>
37157
37158         Work around environments that (stupidly) ignore SIGALRM.
37159         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37160         before using alarm().
37161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37162         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37163         Reported by Ian Beckwith <ianb@erislabs.net>.
37164
37165         Produce autobuild blurb earlier in log.
37166         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37167
37168 2008-06-09  Jim Meyering  <meyering@redhat.com>
37169         and OndÅ™ej Vašík  <ovasik@redhat.com>
37170
37171         utimens.c: correct kernel bug work-around
37172         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37173         failure, not success, and the kernel bug we're trying to work
37174         around affects not just the utimensat call, but also the fallback
37175         futimens call.
37176         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37177         not success.
37178         [HAVE_FUTIMENS]: Use the same work-around, here.
37179
37180 2008-06-09  Jim Meyering  <meyering@redhat.com>
37181
37182         add more guards around definition of ACE_-related code
37183         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37184         ALLOW and ACE_OWNER are also defined.
37185
37186 2008-06-08  Bruno Haible  <bruno@clisp.org>
37187
37188         * lib/acl-internal.h: Add me as co-author.
37189         * lib/file-has-acl.c: Likewise.
37190         * lib/set-mode-acl.c: Likewise.
37191         * lib/copy-acl.c: Likewise.
37192
37193 2008-06-08  Bruno Haible  <bruno@clisp.org>
37194
37195         Add support for AIX ACLs.
37196         * lib/acl-internal.h (acl_nontrivial): New declaration.
37197         * lib/file-has-acl.c (acl_nontrivial): New function.
37198         (file_has_acl): Add implementation using AIX 4 ACL API.
37199         * lib/set-mode-acl.c (qset_acl): Likewise.
37200         * lib/copy-acl.c (qcopy_acl): Likewise.
37201
37202 2008-06-08  Bruno Haible  <bruno@clisp.org>
37203
37204         Add support for HP-UX ACLs.
37205         * lib/acl-internal.h (acl_nontrivial): New declaration.
37206         * lib/file-has-acl.c (acl_nontrivial): New function.
37207         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37208         * lib/set-mode-acl.c (qset_acl): Likewise.
37209         * lib/copy-acl.c (qcopy_acl): Likewise.
37210
37211 2008-06-08  Bruno Haible  <bruno@clisp.org>
37212
37213         Add support for Cygwin ACLs.
37214         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37215         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37216         the chmod_or_fchmod call.
37217         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37218
37219 2008-06-08  Bruno Haible  <bruno@clisp.org>
37220
37221         Fix bug with setuid modes in Solaris 10+ code.
37222         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37223         succeeded, when the mode contains some special bits.
37224
37225 2008-06-08  Bruno Haible  <bruno@clisp.org>
37226
37227         Add support for Solaris 7..10 ACLs.
37228         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37229         declarations.
37230         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37231         functions.
37232         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37233         * lib/set-mode-acl.c (qset_acl): Likewise.
37234         * lib/copy-acl.c (qcopy_acl): Likewise.
37235
37236 2008-06-08  Bruno Haible  <bruno@clisp.org>
37237
37238         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37239         declaration.
37240         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37241         (acl_access_nontrivial): Remove MacOS X case.
37242         (file_has_acl): Use acl_extended_nontrivial.
37243         * lib/copy-acl.c (qcopy_acl): Likewise.
37244
37245 2008-06-08  Bruno Haible  <bruno@clisp.org>
37246
37247         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37248
37249 2008-06-08  Jim Meyering  <meyering@redhat.com>
37250
37251         * modules/acl (Maintainer): Add Bruno Haible.
37252
37253 2008-06-07  Bruno Haible  <bruno@clisp.org>
37254
37255         Improve support for Tru64 ACLs.
37256         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37257         ACL on OSF/1.
37258
37259 2008-06-07  Bruno Haible  <bruno@clisp.org>
37260
37261         Add support for MacOS X ACLs.
37262         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37263         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37264         * lib/set-mode-acl.c (qset_acl): Likewise.
37265         * lib/copy-acl.c (qcopy_acl): Likewise.
37266
37267 2008-06-07  Bruno Haible  <bruno@clisp.org>
37268
37269         Fix memory leak introduced on 2008-05-22.
37270         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37271         use.
37272
37273 2008-06-07  Bruno Haible  <bruno@clisp.org>
37274
37275         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37276         to construct an empty ACL.
37277
37278 2008-06-07  Bruno Haible  <bruno@clisp.org>
37279
37280         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37281         precisely.
37282         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37283
37284 2008-06-07  Bruno Haible  <bruno@clisp.org>
37285
37286         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37287         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37288
37289 2008-06-07  Bruno Haible  <bruno@clisp.org>
37290
37291         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37292         regardless of POSIX.
37293         * doc/posix-functions/_longjmp.texi: Likewise.
37294         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37295         SystemV platform in this case.
37296
37297 2008-06-06  Eric Blake  <ebb9@byu.net>
37298
37299         Document abort() bugs.
37300         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37301
37302         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37303         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37304         sigsetjmp.
37305         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37306         siglongjmp, but only as a macro.
37307         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37308         is obsolete.
37309         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37310
37311         Tweak documentation to cover cygwin argz bugs.
37312         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37313         argz bug fix; no code change needed since no cygwin releases
37314         occurred between the last fix and the bug being tested.
37315         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37316         module and recently fixed cygwin bugs.
37317         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37318         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37319         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37320         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37321         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37322         Likewise.
37323         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37324         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37325         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37326         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37327         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37328         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37329         Likewise.
37330
37331         Avoid gcc warning on cygwin.
37332         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37333         !ACL_NO_TRIVIAL]: Avoid unused variable.
37334
37335 2008-06-05  Eric Blake  <ebb9@byu.net>
37336
37337         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37338         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37339         git-version-gen fails to come up with a version.
37340         Reported by Simon Josefsson.
37341
37342 2008-06-05  Jim Meyering  <meyering@redhat.com>
37343             Paul Eggert  <eggert@cs.ucla.edu>
37344
37345         utimens.c: work around a probable Linux kernel bug
37346         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37347         appears to be a kernel bug that causes utimensat to return 280
37348         instead of 0, indicating success.
37349
37350 2008-06-04  Bruno Haible  <bruno@clisp.org>
37351
37352         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
37353         2008-06-01 commit.
37354
37355 2008-06-04  Bruno Haible  <bruno@clisp.org>
37356
37357         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37358         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37359         (file_has_acl): Use it. Save errno afterwards.
37360         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37361
37362 2008-06-03  Bruno Haible  <bruno@clisp.org>
37363
37364         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37365         draft code. Simplify #ifs.
37366         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37367         Put Solaris code after POSIX-draft code. Fix comments regarding
37368         Solaris 10, HP-UX. Mention Cygwin.
37369         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37370
37371 2008-06-03  Eric Blake  <ebb9@byu.net>
37372
37373         Provide fallback for older kernels.
37374         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37375         Provide runtime fallback if kernel lacks support.
37376         Reported by Mike Frysinger.
37377
37378 2008-06-02  Bruno Haible  <bruno@clisp.org>
37379
37380         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37381         it exists.
37382
37383 2008-06-02  Bruno Haible  <bruno@clisp.org>
37384
37385         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37386         * lib/copy-acl.c (qcopy_acl): Update comment.
37387
37388 2008-06-02  Bruno Haible  <bruno@clisp.org>
37389
37390         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37391         like ACL APIs.
37392
37393 2008-06-02  Bruno Haible  <bruno@clisp.org>
37394
37395         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37396         * tests/test-set-mode-acl.sh: Likewise.
37397         * tests/test-copy-acl.sh: Likewise.
37398         * tests/test-copy-file.sh: Likewise.
37399
37400 2008-06-02  Bruno Haible  <bruno@clisp.org>
37401
37402         * tests/test-file-has-acl.sh: Remove unused code.
37403
37404 2008-06-01  Bruno Haible  <bruno@clisp.org>
37405
37406         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37407         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37408         messages.
37409         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37410
37411 2008-06-01  Bruno Haible  <bruno@clisp.org>
37412
37413         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37414         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37415         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37416         APIs.
37417         * modules/acl-tests (configure.ac): Remove tests now contained in
37418         m4/acl.m4.
37419
37420 2008-06-02  Jim Meyering  <meyering@redhat.com>
37421
37422         announce-gen: use a better key-server host name
37423         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
37424         it may be more consistently reliable.  Suggested by Werner Koch
37425         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
37426
37427 2008-06-01  Bruno Haible  <bruno@clisp.org>
37428
37429         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
37430         Reported by Voroskoi Andras <voroskoi@gmail.com>.
37431
37432 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
37433
37434         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
37435
37436 2008-06-01  Bruno Haible  <bruno@clisp.org>
37437
37438         New ACL tests.
37439         * tests/test-file-has-acl.sh: New file.
37440         * tests/test-file-has-acl.c: New file.
37441         * tests/test-set-mode-acl.sh: New file.
37442         * tests/test-set-mode-acl.c: New file.
37443         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
37444         * tests/test-copy-acl.c: New file.
37445         * modules/acl-tests: New file, based on modules/copy-file-tests.
37446         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
37447         (Depends-on): Add acl-tests.
37448         (configure.ac): Remove checks.
37449         (Makefile.am): Don't create test-sameacls program here any more.
37450
37451 2008-06-01  Bruno Haible  <bruno@clisp.org>
37452
37453         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
37454         * tests/test-sameacls.c: Include progname.h.
37455         (main): Invoke set_program_name. Portability fixes for MacOS X,
37456         Solaris, HP-UX.
37457
37458 2008-06-01  Bruno Haible  <bruno@clisp.org>
37459
37460         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
37461         function.
37462         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
37463
37464 2008-06-01  Bruno Haible  <bruno@clisp.org>
37465
37466         * modules/rpmatch (Depends-on): Add strdup.
37467
37468 2008-06-01  Bruno Haible  <bruno@clisp.org>
37469
37470         * lib/pipe.c: Include unistd-safer.h.
37471         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
37472         * modules/pipe (Depends-on): Add unistd-safer.
37473
37474 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37475
37476         * modules/autobuild (configure.ac): Call AB_INIT.
37477
37478 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37479
37480         * tests/test-getaddrinfo.c: Don't print debug messages by default.
37481         Suggested by Bruno Haible <bruno@clisp.org>.
37482
37483 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37484
37485         * tests/test-base64.c: Cast size_t to unsigned long when invoking
37486         printf.  Use %lu instead of %d.  Reported by Bruno Haible
37487         <bruno@clisp.org>.
37488
37489 2008-05-29  Eric Blake  <ebb9@byu.net>
37490
37491         Prefer new POSIX 200x interfaces over futimesat.
37492         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
37493         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
37494         when available.
37495         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
37496
37497 2008-05-28  Bruno Haible  <bruno@clisp.org>
37498
37499         * modules/stpcpy (License): Change to LGPLv2+.
37500         Requested by David Lutterkort <dlutter@redhat.com>.
37501
37502 2008-05-27  Bruno Haible  <bruno@clisp.org>
37503
37504         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
37505         current mingw.
37506         Reported by Jose E. Marchesi <jemarch@gnu.org>.
37507
37508 2008-05-27  Bruno Haible  <bruno@clisp.org>
37509
37510         * modules/iconv_open (Link): New section, from module 'iconv'.
37511         * modules/striconv (Link): Likewise.
37512         * modules/striconveh (Link): Likewise.
37513         * modules/xstriconv (Link): Likewise.
37514         * modules/unicodeio (Link): Likewise.
37515         * modules/propername (Link): Likewise.
37516         Reported by Jim Meyering.
37517
37518 2008-05-26  Jim Meyering  <meyering@redhat.com>
37519
37520         sha256: do not artificially restrict buffer length to be < 2^32
37521         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
37522         uint32_t to size_t.
37523         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
37524         to match.
37525
37526         avoid unaligned access errors, e.g., on sparc
37527         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
37528         direct access through a possibly-unaligned uint64* pointer.
37529         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
37530         direct access through a possibly-unaligned uint32* pointer.
37531         Prompted by this patch from Tom "spot" Callaway:
37532         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
37533
37534         sha512.c: fix typo in comment
37535         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
37536
37537 2008-05-25  Bruno Haible  <bruno@clisp.org>
37538
37539         * lib/set-mode-acl.c: Renamed from lib/acl.c.
37540         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
37541         (Makefile.am): Update lib_SOURCES.
37542
37543 2008-05-25  Bruno Haible  <bruno@clisp.org>
37544
37545         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
37546
37547 2008-05-25  Jim Meyering  <meyering@redhat.com>
37548
37549         useless-if-before-free: freed expr may have white-space differences
37550         * build-aux/useless-if-before-free: Recognize cases in which the
37551         freed expression differs from the tested one in embedded white
37552         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
37553         $1 was used, so we can't make any regexp shy.  Improved tests now
37554         detect this.
37555
37556         useless-if-before-free: accept white space in the expression.
37557         * build-aux/useless-if-before-free: For now, any white space
37558         in the expression must be identical in the free argument.
37559
37560         useless-if-before-free: efficiency tweak
37561         * build-aux/useless-if-before-free: Make the expression-matching
37562         regexp "shy".
37563         Make the *outer* regexp shy, not the expr-matching one.
37564
37565         update code-in-comment to accept cast of free arg
37566         * build-aux/useless-if-before-free: Update regexp.
37567
37568 2008-05-25  Bruno Haible  <bruno@clisp.org>
37569
37570         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
37571         * modules/copy-file-tests (Files, Makefile.am): Update.
37572         * tests/test-copy-file.c (func_test_copy): Update.
37573
37574 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
37575
37576         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
37577
37578 2008-05-23  Bruno Haible  <bruno@clisp.org>
37579
37580         Improve support for ACLs on OSF/1.
37581         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
37582         Remove fallback for unknown flavors of ACLs.
37583
37584 2008-05-22  Bruno Haible  <bruno@clisp.org>
37585
37586         Add support for ACLs on OSF/1.
37587         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
37588         replacements.
37589         (acl_free_text): New macro fallback.
37590         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
37591         acl_free.
37592         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
37593         acl_free_text function. Require AC_C_INLINE.
37594
37595 2008-05-22  Bruno Haible  <bruno@clisp.org>
37596
37597         Make copy_acl work on MacOS X 10.5.
37598         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
37599         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
37600         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
37601         If MODE_INSIDE_ACL, don't assume that every system has the same text
37602         representation for ACLs as FreeBSD.
37603         * lib/copy-acl.c (copy_acl): Add support for platforms with
37604         !MODE_INSIDE_ACL.
37605         * lib/file-has-acl.c (file_has_acl): Likewise.
37606         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
37607         FreeBSD, MacOS X, or IRIX, respectively.
37608
37609 2008-05-22  Bruno Haible  <bruno@clisp.org>
37610
37611         * lib/acl.h: Don't include <sys/acl.h>.
37612         (GETACLCNT): Move fallback to lib/acl-internal.h.
37613         * lib/acl-internal.h: Include <sys/acl.h> here.
37614         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
37615
37616 2008-05-22  Bruno Haible  <bruno@clisp.org>
37617
37618         Split off copy_acl function to separate file.
37619         * lib/copy-acl.c: New file, extracted from lib/acl.c.
37620         * lib/acl.c (copy_acl): Moved function to separate file.
37621         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
37622         * modules/acl (Files): Add lib/copy-acl.c.
37623         (Makefiles.am): Augment lib_SOURCES.
37624
37625 2008-05-22  Bruno Haible  <bruno@clisp.org>
37626
37627         * modules/copy-file-tests: New file.
37628         * tests/test-copy-file.sh: New file.
37629         * tests/test-copy-file.c: New file.
37630         * tests/test-copy-file-sameacls.c: New file.
37631
37632 2008-05-22  Eric Blake  <ebb9@byu.net>
37633
37634         Avoid gcc warning.
37635         * tests/test-memcmp.c (main): Pass NULL indirectly.
37636
37637 2008-05-21  Bruno Haible  <bruno@clisp.org>
37638
37639         Add reference doc about ACLs.
37640         * doc/acl-resources.txt: New file.
37641         * doc/acl-cygwin.txt: New file.
37642
37643 2008-05-21  Bruno Haible  <bruno@clisp.org>
37644
37645         Avoid one more warning from gcc.
37646         * lib/vasnprintf.c (IF_LINT): Update comments.
37647         (VASNPRINTF): Use it also for the 'prefix' array initializer.
37648
37649 2008-05-21  Jim Meyering  <meyering@redhat.com>
37650
37651         avoid a warning from gcc
37652         * lib/vasnprintf.c (IF_LINT): Define.
37653         (scale10_round_decimal_long_double):
37654         Use it to avoid a "may be used uninitialized" warning.
37655         (scale10_round_decimal_double): Likewise.
37656
37657 2008-05-21  Simon Josefsson  <simon@josefsson.org>
37658
37659         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
37660         declared.
37661
37662 2008-05-20  Bruno Haible  <bruno@clisp.org>
37663
37664         * tests/test-memcmp.c (main): Test also the sign of the result. Test
37665         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
37666
37667 2008-05-20  Simon Josefsson  <simon@josefsson.org>
37668
37669         * modules/memcmp-tests: New file.
37670         * tests/test-memcmp.c: New file.
37671
37672 2008-05-19  Bruno Haible  <bruno@clisp.org>
37673
37674         * modules/propername (Notice, configure.ac): Put quoted "..." into
37675         --keyword option.
37676         * lib/propername.h: Update comments accordingly.
37677         Reported by Eric Blake.
37678
37679 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
37680
37681         * modules/getpass-gnu (Depends-on): Add fseeko.
37682
37683 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37684
37685         * modules/base64-tests: New file.
37686
37687 2008-05-19  Bo Borgerson <gigabo@gmail.com>
37688
37689         * lib/base64.c (base64_decode_ctx): If a decode context structure
37690         was passed in use it to ignore newlines.  If a context structure
37691         was _not_ passed in, continue to treat newlines as garbage (this
37692         is the historical behavior).  Formerly base64_decode.
37693         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37694         takes a decode context structure.
37695         * lib/base64.h (base64_decode): Macro for four-argument calls.
37696         (base64_decode_alloc): Likewise.
37697         * lib/base64.c (base64_decode_ctx): If a decode context structure
37698         was passed in use it to ignore newlines.  If a context structure
37699         was _not_ passed in, continue to treat newlines as garbage (this
37700         is the historical behavior).  Formerly base64_decode.
37701         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37702         takes a decode context structure.
37703         * lib/base64.h (base64_decode): Macro for four-argument calls.
37704         (base64_decode_alloc): Likewise.
37705
37706 2008-05-19  Jim Meyering  <meyering@redhat.com>
37707
37708         avoid a warning from gcc
37709         * lib/trim.c (IF_LINT): Define.
37710         (trim2): Use it to avoid a "may be used uninitialized" warning.
37711
37712         Fix doc typo.
37713         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
37714
37715 2008-05-19  Bruno Haible  <bruno@clisp.org>
37716
37717         * doc/glibc-functions/getpass.texi: Document limits of other
37718         implementations.
37719
37720 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37721             Bruno Haible <bruno@clisp.org>
37722
37723         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
37724
37725 2008-05-18  Bruno Haible  <bruno@clisp.org>
37726
37727         * modules/propername: New file, from GNU gettext.
37728         * lib/propername.h: New file, from GNU gettext.
37729         * lib/propername.c: New file, from GNU gettext.
37730         * MODULES.html.sh (Internationalization functions): Add propername.
37731
37732 2008-05-16  Jim Meyering  <meyering@redhat.com>
37733             Bruno Haible  <bruno@clisp.org>
37734
37735         Avoid some warnings from "gcc -Wshadow".
37736         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
37737
37738 2008-05-15  Eric Blake  <ebb9@byu.net>
37739
37740         Extend previous patch to cygwin 1.7.0.
37741         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
37742         fast implementation in cygwin >= 1.7.0.
37743         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37745
37746 2008-05-15  Bruno Haible  <bruno@clisp.org>
37747
37748         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
37749         implementation in glibc >= 2.9.
37750         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37751         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37752
37753 2008-05-15  Bruno Haible  <bruno@clisp.org>
37754
37755         * MODULES.html.sh (Internationalization functions): Remove linebreak.
37756         (Unicode string functions): Add unilbrk/*.
37757         Reported by Karl Berry.
37758
37759 2008-05-15  Eric Blake  <ebb9@byu.net>
37760
37761         Fix violation of <stdbool.h> replacement in regex.
37762         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
37763         * lib/regexec.c (re_search_internal): Likewise.
37764         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
37765
37766 2008-05-15  Jim Meyering  <meyering@redhat.com>
37767
37768         avoid distracting test output when git or cvs is not found
37769         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
37770         * tests/test-vc-list-files-git.sh: Likewise.
37771
37772 2008-05-15  Eric Blake  <ebb9@byu.net>
37773
37774         Glibc finally accepted the memmem speedup code, bugzilla #5514.
37775         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
37776         glibc version.
37777         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37778         * doc/posix-functions/strstr.texi (strstr): Likewise.
37779         * lib/str-two-way.h (MAX): Sychronize with glibc.
37780
37781 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
37782
37783         * lib/regcomp.c (optimize_utf8): Add a note on why we test
37784         opr.ctx_type.
37785         (calc_first): Initialize constraint field.
37786         (duplicate_node_closure): Use it instead of special casing ANCHORS.
37787         Fix grammar.
37788         (duplicate_node): Merge constraint field for all node types.
37789         (calc_eclosure_iter): Look at constraint field for all node types.
37790         * lib/regex_internal.c (create_cd_newstate): Don't look at
37791         opr.ctx_type.
37792
37793 2008-05-14  Bruno Haible  <bruno@clisp.org>
37794
37795         Help GCC to do better code generation.
37796         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
37797         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
37798         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
37799         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
37800         Declare with attribute 'malloc' if supported.
37801
37802 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
37803
37804         use "echo STR|wc -c" rather than unportable "expr length STR"
37805         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
37806         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
37807
37808 2008-05-14  Jim Meyering  <meyering@redhat.com>
37809
37810         use dd ibs=$n count=1 ... rather than less-portable head -c$n
37811         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
37812         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
37813         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
37814         via Collin Lasse.
37815
37816 2008-05-14  Eric Blake  <ebb9@byu.net>
37817
37818         Avoid quadratic growth in gl_LIBSOURCES.
37819         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
37820         Suggested by Bruno Haible.
37821
37822         Test xmemdup0.
37823         * modules/xmemdup0-tests: New file.
37824         * tests/test-xmemdup0.c: Likewise.
37825
37826 2008-05-13  Eric Blake  <ebb9@byu.net>
37827
37828         Split xmemdup0 into its own module.
37829         * modules/xmemdup0: New file.
37830         * lib/xmemdup0.h: Likewise.
37831         * lib/xmemdup0.c: Likewise.
37832         * MODULES.html.sh (Memory management functions): Add xmemdup0.
37833         * lib/xalloc.h (xmemdup0): Remove.
37834         * lib/xmalloc.c (xmemdup0): Likewise.
37835
37836 2008-05-13  Eric Blake  <ebb9@byu.net>
37837             Bruno Haible  <bruno@clisp.org>
37838
37839         Reduce number of forks required during autoconf.
37840         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
37841         and gl_LIBSOURCES_DIR.
37842         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
37843         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
37844         m4_syscmd per file.
37845         <m4_foreach_w>: Move...
37846         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
37847
37848 2008-05-13  Eric Blake  <ebb9@byu.net>
37849
37850         * gnulib-tool: Fix various comment typos.
37851
37852 2008-05-12  Bruno Haible  <bruno@clisp.org>
37853
37854         Tailor the linebreaking algorithm.
37855         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
37856
37857 2008-05-12  Bruno Haible  <bruno@clisp.org>
37858
37859         Update to Unicode 5.0.0.
37860         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37861         LBP_JV, LBP_JT. Redistribute values.
37862         (unilbrk_table): Change size.
37863         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
37864         Unicode TR#14 rev. 22.
37865         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37866         LBP_JV, LBP_JT. Redistribute values.
37867         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
37868         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
37869         Update.
37870         * lib/unilbrk/lbrkprop1.h: Regenerated.
37871         * lib/unilbrk/lbrkprop2.h: Regenerated.
37872         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
37873         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
37874         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
37875         Likewise.
37876         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
37877         Likewise.
37878         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
37879         result.
37880         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37881         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37882         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37883         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
37884         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
37885         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
37886
37887 2008-05-11  Bruno Haible  <bruno@clisp.org>
37888
37889         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
37890
37891 2008-05-11  Bruno Haible  <bruno@clisp.org>
37892
37893         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
37894         * modules/unilbrk/gen-lbrk: New file.
37895
37896 2008-05-11  Bruno Haible  <bruno@clisp.org>
37897
37898         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
37899         * m4/sha512.m4 (gl_SHA512): Likewise.
37900
37901 2008-05-11  Jim Meyering  <meyering@redhat.com>
37902
37903         New modules: crypto/sha256, crypto/sha512 (from coreutils)
37904         * modules/crypto/sha256: New file.
37905         * modules/crypto/sha512: Likewise.
37906         * lib/sha256.c: Likewise.
37907         * lib/sha256.h: Likewise.
37908         * lib/sha512.c: Likewise.
37909         * lib/sha512.h: Likewise.
37910         * lib/u64.h: Likewise.
37911         * m4/sha256.m4: Likewise.
37912         * m4/sha512.m4: Likewise.
37913         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
37914
37915 2008-05-10  Bruno Haible  <bruno@clisp.org>
37916
37917         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
37918         (Input/Output <stdio.h>): Add xprintf.
37919         (Signal handling <signal.h>): Add strsignal.
37920         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
37921         (Core language properties): Add func.
37922         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
37923         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
37924         strings.
37925         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
37926         (Input/output): New section.
37927         (File system functions): Add openat-die, stat-macros.
37928         (Networking functions): Add sockets.
37929         (Unicode string functions): Add unictype/*.
37930         (Support for building libraries and executables): Add gperf.
37931         (Support for building documentation): Add agpl-3.0.
37932         (Misc): Add nocrash.
37933
37934 2008-05-10  Bruno Haible  <bruno@clisp.org>
37935
37936         * modules/unictype/gen-ctype: New file.
37937
37938 2008-05-10  Jim Meyering  <meyering@redhat.com>
37939
37940         Make chdir-safer.c more efficient on a system with no symlinks.
37941         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
37942         also if ELOOP is zero.  Suggested by Bruno Haible.
37943
37944         Make chdir-safer.c slightly safer.
37945         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
37946         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
37947
37948         Avoid compile failure on systems without ELOOP (like mingw).
37949         * lib/chdir-safer.c (ELOOP): Define if not already defined.
37950         Reported by Bruno Haible.
37951
37952 2008-05-10  Bruno Haible  <bruno@clisp.org>
37953
37954         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
37955         (is_utf8_encoding): Use a case-insensitive comparison.
37956         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
37957         streq.
37958
37959 2008-05-10  Bruno Haible  <bruno@clisp.org>
37960
37961         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
37962         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
37963         * lib/unilbrk/ulc-common.h (iconv_string_length,
37964         iconv_string_keeping_offsets): Remove declarations.
37965         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
37966         Don't include <iconv.h>, streq.h, xsize.h.
37967         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
37968         conversion.
37969         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
37970         <iconv.h>, streq.h, xsize.h.
37971         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
37972         conversion.
37973         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
37974         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
37975         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
37976         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
37977
37978 2008-05-10  Bruno Haible  <bruno@clisp.org>
37979
37980         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
37981         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
37982
37983         * modules/unilbrk/u32-width-linebreaks-tests: New file.
37984         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
37985
37986         * modules/unilbrk/u16-width-linebreaks-tests: New file.
37987         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
37988
37989         * modules/unilbrk/u8-width-linebreaks-tests: New file.
37990         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
37991
37992         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
37993         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
37994
37995         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
37996         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
37997
37998         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
37999         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38000
38001         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38002         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38003
38004 2008-05-10  Bruno Haible  <bruno@clisp.org>
38005
38006         Split up 'linebreak' module.
38007         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38008         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38009         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38010         modifications.
38011         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38012         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38013         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38014         lib/linebreak.c.
38015         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38016         lib/linebreak.c.
38017         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38018         lib/linebreak.c.
38019         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38020         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38021         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38022         lib/linebreak.c.
38023         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38024         lib/linebreak.c.
38025         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38026         lib/linebreak.c.
38027         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38028         lib/linebreak.c.
38029         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38030         lib/linebreak.c.
38031         * modules/unilbrk/base: New file.
38032         * modules/unilbrk/tables: New file.
38033         * modules/unilbrk/u8-possible-linebreaks: New file.
38034         * modules/unilbrk/u16-possible-linebreaks: New file.
38035         * modules/unilbrk/u32-possible-linebreaks: New file.
38036         * modules/unilbrk/ulc-common: New file.
38037         * modules/unilbrk/ulc-possible-linebreaks: New file.
38038         * modules/unilbrk/u8-width-linebreaks: New file.
38039         * modules/unilbrk/u16-width-linebreaks: New file.
38040         * modules/unilbrk/u32-width-linebreaks: New file.
38041         * modules/unilbrk/ulc-width-linebreaks: New file.
38042         * lib/linebreak.h: Remove file.
38043         * lib/linebreak.c: Remove file.
38044         * m4/linebreak.m4: Remove file.
38045         * modules/linebreak: Remove file.
38046         * NEWS: Mention the changes.
38047
38048 2008-05-09  Eric Blake  <ebb9@byu.net>
38049
38050         Add xmemdup0.
38051         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38052         implementation.
38053         * lib/xmalloc.c (xmemdup0): New C implementation.
38054
38055 2008-05-08  Bruno Haible  <bruno@clisp.org>
38056
38057         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38058
38059 2008-05-07  Eric Blake  <ebb9@byu.net>
38060
38061         Support cross-compilation of <wctype.h>.
38062         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38063         AC_CACHE_CHECK.
38064
38065 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38066
38067         * build-aux/vc-list-files: Add support for bzr.
38068
38069 2008-05-03  Jim Meyering  <meyering@redhat.com>
38070
38071         avoid failed assertion with tight malloc
38072         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38073
38074 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38075
38076         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38077         are needed from arpa/inet.h.
38078         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38079         Reported by Bruno Haible.
38080
38081 2008-05-02  Jim Meyering  <meyering@redhat.com>
38082
38083         avoid compilation error on FreeBSD 6
38084         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38085
38086 2008-05-01  Jim Meyering  <meyering@redhat.com>
38087
38088         useless-if-before-free: correct --help's exit status description
38089         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38090         for one or more matches, etc.  Reported by Bruno Haible.
38091
38092         vc-list-files: make the stand-alone gnulib test work
38093         * modules/vc-list-files-tests (configure.ac):
38094         Define and AC_SUBST abs_aux_dir.
38095         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38096         $(abs_top_srcdir) to each script and having each of them
38097         duplicate the work of setting PATH, set PATH here, using
38098         the new variable, abs_aux_dir instead.
38099         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38100         * tests/test-vc-list-files-git.sh: Likewise.
38101         Reported by Bruno Haible.
38102
38103 2008-05-01  Bruno Haible  <bruno@clisp.org>
38104
38105         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38106         reallocation. Rename 'done' to 'found_delimiter'.
38107
38108 2008-05-01  Jim Meyering  <meyering@redhat.com>
38109
38110         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38111         * build-aux/vc-list-files: Use `...`, not $(...).
38112
38113 2008-04-30  Jim Meyering  <meyering@redhat.com>
38114
38115         add tests for vc-list-files
38116         * modules/vc-list-files-tests: New module.
38117         * tests/test-vc-list-files-cvs.sh: New file.
38118         * tests/test-vc-list-files-git.sh: New file.
38119
38120         avoid a warning from gcc
38121         * lib/getndelim2.c (IF_LINT): Define.
38122         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38123
38124         vc-list-files: work properly with build-aux/cvsu, too
38125         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38126         to all cvs-based clauses.
38127
38128         vc-list-files: work properly in the CVS+awk case, too
38129         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38130
38131         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38132         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38133         take more than one file argument, so .  Add quotes, just in case $dir
38134         ever contains a shell meta-character.  Prompted by Soren Hansen in
38135         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38136
38137 2008-04-29  Eric Blake  <ebb9@byu.net>
38138
38139         Optimize getndelim2 to use block operations when possible.
38140         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38141         freadseek, and memchr2.
38142         * lib/getndelim2.c (getndelim2): Use them for block reads.
38143
38144 2008-04-29  Bruno Haible  <bruno@clisp.org>
38145
38146         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38147         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38148         * modules/inet_ntop (Depends-on): Add extensions.
38149         * modules/inet_pton (Depends-on): Likewise.
38150         Reported by Simon Josefsson.
38151
38152 2008-04-29  Jim Meyering  <meyering@redhat.com>
38153
38154         When the is more than one match in a block, match all of them.
38155         * build-aux/useless-if-before-free: Iterate through each block
38156         until there are no more matches.
38157
38158         Fix broken useless-if-before-free script.
38159         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38160         the expression to match cast of argument to free-like function.
38161
38162 2008-04-29  Eric Blake  <ebb9@byu.net>
38163
38164         Use new header.
38165         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38166
38167 2008-04-29  Jim Meyering  <meyering@redhat.com>
38168
38169         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38170         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38171         by gnulib to exist and to declare e.g., inet_ntop.
38172         Don't include "inet_ntop.h", now removed.
38173
38174         * m4/arpa_inet_h.m4: Remove trailing blanks.
38175
38176 2008-04-29  Eric Blake  <ebb9@byu.net>
38177
38178         Silence valgrind on safe reads beyond potential array bounds.
38179         * lib/rawmemchr.valgrind: New file.
38180         * lib/strchrnul.valgrind: Likewise.
38181         * modules/rawmemchr (Files): Distribute new file.
38182         * modules/strchrnul (Files): Likewise.
38183         Suggested by Bruno Haible.
38184
38185 2008-04-29  Bruno Haible  <bruno@clisp.org>
38186
38187         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38188         (inet_ntop, inet_pton): Change portability warning's wording.
38189         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38190         Invoke gl_CHECK_NEXT_HEADERS.
38191         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38192         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38193         set ARPA_INET_H.
38194         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38195         * modules/arpa_inet (Description): No longer only for systems that
38196         lack it.
38197         (Depends-on): Add include_next.
38198         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38199         HAVE_ARPA_INET_H.
38200
38201 2008-04-29  Jim Meyering  <meyering@redhat.com>
38202
38203         * modules/mkdir (License): Re-license as LGPLv2+.
38204
38205 2008-04-29  Bruno Haible  <bruno@clisp.org>
38206
38207         * modules/rawmemchr (Maintainer): Set to Eric.
38208         * modules/strchrnul (Maintainer): Likewise.
38209
38210 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38211
38212         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38213         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38214
38215         * modules/arpa_inet (arpa/inet.h): Use them.
38216
38217 2008-04-28  Eric Blake  <ebb9@byu.net>
38218
38219         Test getndelim2.
38220         * modules/getndelim2-tests: New file.
38221         * tests/test-getndelim2.c: Likewise.
38222         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38223         stream.
38224         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38225
38226         * MODULES.html.sh: Document new module.
38227
38228 2008-04-20  Bruno Haible  <bruno@clisp.org>
38229
38230         * lib/c-stack.c (die): Use raise.
38231         * modules/c-stack (Depends-on): Add raise.
38232
38233 2008-04-28  Bruno Haible  <bruno@clisp.org>
38234
38235         Expect rpmatch to be declared.
38236         * lib/yesno.c (rpmatch): Remove declaration.
38237
38238         Declare rpmatch.
38239         * lib/stdlib.in.h (rpmatch): New declaration.
38240         * lib/rpmatch.c: Include <stdlib.h> first.
38241         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38242         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38244         HAVE_RPMATCH.
38245         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38246         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38247         (Include): Set to <stdlib.h>.
38248         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38249         HAVE_RPMATCH.
38250         * NEWS: Document the change.
38251
38252 2008-04-28  Bruno Haible  <bruno@clisp.org>
38253
38254         Change rpmatch to use nl_langinfo when appropriate.
38255         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38256         (N_): New macro.
38257         (localized_pattern): New function/macro.
38258         (try): Remove match, nomatch arguments. Copy the pattern into safe
38259         memory before caching it.
38260         (rpmatch): Use localized_pattern. Add translator comments.
38261         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38262         Suggested by Eric Blake.
38263         * modules/rpmatch (Depends-on): Add stdbool.
38264
38265 2008-04-28  Eric Blake  <ebb9@byu.net>
38266
38267         Add rawmemchr module, matching glibc.
38268         * modules/string (Makefile.am): New indicator.
38269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38270         * lib/string.in.h (rawmemchr): Declare when appropriate.
38271         * modules/rawmemchr: New file.
38272         * m4/rawmemchr.m4: Likewise.
38273         * lib/rawmemchr.c: Likewise.
38274         * modules/rawmemchr-tests: Likewise.
38275         * tests/test-rawmemchr.c: Likewise.
38276         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38277         module.
38278         * modules/strchrnul (Depends-on): Add rawmemchr.
38279         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38280
38281         Whitespace cleanup.
38282         * tests/test-strchrnul.c: Reindent.
38283         * lib/strchrnul.c: Likewise.
38284
38285         Optimize and test strchrnul.
38286         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38287         * modules/strchrnul-tests: New file.
38288         * tests/test-strchrnul.c: Likewise.
38289
38290         Remove intprops dependency.
38291         * modules/memchr (Depends-on): Remove intprops.
38292         * modules/memrchr (Depends-on): Likewise.
38293         * modules/memchr2 (Depends-on): Likewise.
38294         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38295         * lib/memrchr.c (__memrchr): Likewise.
38296         * lib/memrchr2.c (memchr2): Likewise.
38297         Reported by Simon Josefsson.
38298
38299 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38300
38301         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38302         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38303
38304 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38305
38306         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38307
38308         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38309
38310         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38311
38312         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38313         declarations.
38314         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38315
38316         * m4/inet_pton.m4: Don't check for header files.
38317
38318         * m4/inet_ntop.m4: Don't check for header files.
38319
38320 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38321
38322         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38323         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38324         trigger for cygwin).
38325         Reported by Bruno Haible  <bruno@clisp.org>.
38326
38327 2008-04-28  Bruno Haible  <bruno@clisp.org>
38328
38329         * doc/posix-functions/strdup.texi: Mention mingw problem.
38330
38331 2008-04-27  Bruno Haible  <bruno@clisp.org>
38332
38333         * modules/stat-time-tests (Depends-on): Add sleep.
38334         * tests/test-stat-time.c (force_unlink): New function.
38335         (cleanup): Use it.
38336         (test_mtime): Remove the ctime related tests.
38337         (test_ctime): New function, containing the ctime related tests.
38338         (main): Call test_ctime, except on native Windows platforms.
38339
38340 2008-04-27  Bruno Haible  <bruno@clisp.org>
38341
38342         * lib/rpmatch.c (rpmatch): Add some comments.
38343         Reported by James Youngman <jay@gnu.org>.
38344
38345 2008-04-27  Bruno Haible  <bruno@clisp.org>
38346
38347         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38348         quiet NaNs.
38349
38350 2008-04-27  Bruno Haible  <bruno@clisp.org>
38351
38352         Make test-yesno.sh work on mingw.
38353         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38354         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38355         (main): Set stdin to binary mode.
38356         * modules/yesno-tests (Depends-on): Add binary-io.
38357
38358 2008-04-27  Bruno Haible  <bruno@clisp.org>
38359
38360         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38361         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38362         argument that lie outside the IEEE 854 domain.
38363         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38364         (gl_ISFINITE): Use it.
38365         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38366
38367 2008-04-27  Bruno Haible  <bruno@clisp.org>
38368
38369         Allow local renaming in config.h.
38370         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38371
38372 2008-04-27  Bruno Haible  <bruno@clisp.org>
38373
38374         * lib/memchr.c (__memchr): Change type of 'i'.
38375         * lib/memchr2.c (memchr2): Likewise.
38376
38377 2008-04-26  Eric Blake  <ebb9@byu.net>
38378         and Bruno Haible  <bruno@clisp.org>
38379
38380         Optimize and test memrchr.
38381         * modules/memrchr (Depends-on): Add intprops.
38382         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38383         * modules/memrchr-tests: New file.
38384         * tests/test-memrchr.c: New file.
38385
38386 2008-04-26  Bruno Haible  <bruno@clisp.org>
38387
38388         Add tentative support for DragonFly BSD.
38389         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38390         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38391         fp.
38392         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38393         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38394         * lib/fpurge.c (fpurge): Likewise.
38395         * lib/freadable.c (freaadable): Likewise.
38396         * lib/freadahead.c (freadahead): Likewise.
38397         * lib/freading.c (freading): Likewise.
38398         * lib/freadptr.c (freadptr): Likewise.
38399         * lib/freadseek.c (freadptrinc): Likewise.
38400         * lib/fseeko.c (fseeko): Likewise.
38401         * lib/fseterr.c (fseterr): Likewise.
38402         * lib/fwritable.c (fwritable): Likewise.
38403         * lib/fwriting.c (fwriting): Likewise.
38404
38405 2008-04-26  Bruno Haible  <bruno@clisp.org>
38406
38407         * lib/stdio-impl.h: New file.
38408         * lib/fbufmode.c: Include stdio-impl.h.
38409         (fbufmode): Use fp_, remove redundant #defines.
38410         * lib/fflush.c: Include stdio-impl.h.
38411         (clear_ungetc_buffer): Remove redundant #defines.
38412         * lib/fpurge.c: Include stdio-impl.h.
38413         (fpurge): Remove redundant #defines.
38414         * lib/freadable.c: Include stdio-impl.h.
38415         (freadable): Remove redundant #defines.
38416         * lib/freadahead.c: Include stdio-impl.h.
38417         (freadahead): Remove redundant #defines.
38418         * lib/freading.c: Include stdio-impl.h.
38419         (freading): Remove redundant #defines.
38420         * lib/freadptr.c: Include stdio-impl.h.
38421         (freadptr): Remove redundant #defines.
38422         * lib/freadseek.c: Include stdio-impl.h.
38423         (freadptrinc): Remove redundant #defines.
38424         * lib/fseeko.c: Include stdio-impl.h.
38425         (rpl_fseeko): Remove redundant #defines.
38426         * lib/fseterr.c: Include stdio-impl.h.
38427         (fseterr): Remove redundant #defines.
38428         * lib/fwritable.c: Include stdio-impl.h.
38429         (fwritable: Remove redundant #defines.
38430         * lib/fwriting.c: Include stdio-impl.h.
38431         (fwriting): Remove redundant #defines.
38432         * modules/fbufmode (Files): Add lib/stdio-impl.h.
38433         * modules/fflush (Files): Likewise.
38434         * modules/fpurge (Files): Likewise.
38435         * modules/freadable (Files): Likewise.
38436         * modules/freadahead (Files): Likewise.
38437         * modules/freading (Files): Likewise.
38438         * modules/freadptr (Files): Likewise.
38439         * modules/freadseek (Files): Likewise.
38440         * modules/fseeko (Files): Likewise.
38441         * modules/fseterr (Files): Likewise.
38442         * modules/fwritable (Files): Likewise.
38443         * modules/fwriting (Files): Likewise.
38444
38445 2008-04-26  Bruno Haible  <bruno@clisp.org>
38446
38447         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38448         restore_seek_optimization, update_fpos_cache): New functions, extracted
38449         from rpl_fflush.
38450         (rpl_fflush): Use them.
38451         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
38452         (gl_REPLACE_FFLUSH): Use it.
38453
38454 2008-04-26  Bruno Haible  <bruno@clisp.org>
38455
38456         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
38457         on Solaris.
38458         * tests/test-xstrtoimax.sh: Likewise.
38459         * tests/test-xstrtoumax.sh: Likewise.
38460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38461
38462 2008-04-26  Bruno Haible  <bruno@clisp.org>
38463
38464         * modules/memchr-tests: New file.
38465         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
38466
38467 2008-04-26  Eric Blake  <ebb9@byu.net>
38468             Bruno Haible  <bruno@clisp.org>
38469
38470         * lib/memchr.c: Include intprops.h.
38471         (__memchr): Optimize parallel detection of matching bytes. Rename local
38472         variables. Add explanatory comments.
38473
38474 2008-04-26  Bruno Haible  <bruno@clisp.org>
38475
38476         Fix module 'memchr', broken since 2000-10-28.
38477         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
38478
38479 2008-04-26  Bruno Haible  <bruno@clisp.org>
38480
38481         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
38482         comments.
38483
38484 2008-04-25  Eric Blake  <ebb9@byu.net>
38485
38486         Use native fstatat on cygwin 1.7.0.
38487         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
38488         first.
38489
38490 2008-04-23  Eric Blake  <ebb9@byu.net>
38491
38492         Improve memchr2 performance.
38493         * lib/memchr2.c (memchr2): Further optimize parallel detection of
38494         NUL bytes.
38495         * modules/memchr2 (Depends-on): Use intprops.h.
38496
38497 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38498
38499         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
38500         an inline function instead of a CPP macro.  Patch by Ben Pfaff
38501         <blp@cs.stanford.edu>.
38502
38503 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38504
38505         * lib/arpa_inet.in.h: New file.
38506
38507         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
38508         (Makefile.am): Sed in substitute header file.
38509
38510         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
38511         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
38512
38513         * modules/inet_ntop (configure.ac): Use
38514         gl_ARPA_INET_MODULE_INDICATOR.
38515
38516         * modules/inet_pton (configure.ac): Use
38517         gl_ARPA_INET_MODULE_INDICATOR.
38518
38519 2008-04-22  Jim Meyering  <meyering@redhat.com>
38520
38521         * modules/verify (License): Re-license as LGPLv2+.
38522
38523 2008-04-22  Simon Josefsson  <simon@josefsson.org>
38524
38525         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
38526         parameter to void* as per POSIX standard (MinGW uses char*).
38527
38528 2008-04-21  Bruno Haible  <bruno@clisp.org>
38529
38530         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38531         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38532         Define to replacements if REPLACE_ISWCNTRL is 1.
38533         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
38534         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
38535         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
38536         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
38537         what it fixes.
38538         * doc/posix-functions/iswalpha.texi: Likewise.
38539         * doc/posix-functions/iswblank.texi: Likewise.
38540         * doc/posix-functions/iswcntrl.texi: Likewise.
38541         * doc/posix-functions/iswdigit.texi: Likewise.
38542         * doc/posix-functions/iswgraph.texi: Likewise.
38543         * doc/posix-functions/iswlower.texi: Likewise.
38544         * doc/posix-functions/iswprint.texi: Likewise.
38545         * doc/posix-functions/iswpunct.texi: Likewise.
38546         * doc/posix-functions/iswspace.texi: Likewise.
38547         * doc/posix-functions/iswupper.texi: Likewise.
38548         * doc/posix-functions/iswxdigit.texi: Likewise.
38549         Reported by Alain Guibert.
38550
38551 2008-04-21  Bruno Haible  <bruno@clisp.org>
38552
38553         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
38554         Patch by Alain Guibert.
38555
38556 2008-04-21  Bruno Haible  <bruno@clisp.org>
38557
38558         Fix test failures on mingw.
38559         * tests/test-xstrtol.c (print_no_progname): New function.
38560         (main): Install it in error_print_progname hook.
38561         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
38562         * tests/test-xstrtoimax.sh: Likewise.
38563         * tests/test-xstrtoumax.sh: Likewise.
38564
38565 2008-04-21  Bruno Haible  <bruno@clisp.org>
38566
38567         Fix test failure on mingw.
38568         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
38569
38570 2008-04-21  Bruno Haible  <bruno@clisp.org>
38571
38572         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
38573         Actually assign a value.
38574
38575 2008-04-20  Bruno Haible  <bruno@clisp.org>
38576
38577         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
38578         take 2.
38579         * lib/canonicalize.c (canonicalize_file_name): Elide if the
38580         'canonicalize-lgpl' module is also used.
38581         * lib/canonicalize-lgpl.c: Undo last change.
38582         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
38583
38584 2008-04-20  Bruno Haible  <bruno@clisp.org>
38585
38586         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
38587         config.h. Provide _mkdir based fallback for mingw.
38588         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
38589         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
38590         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
38591         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
38592         rather than defining mkdir in config.h.
38593         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
38594         (gl_SYS_STAT_H_DEFAULTS): New macro.
38595         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
38596         HAVE_IO_H any more.
38597         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
38598         HAVE_DECL_MKDIR and HAVE_IO_H.
38599
38600 2008-04-20  Bruno Haible  <bruno@clisp.org>
38601
38602         * lib/isapipe.c: Port to native Windows platforms.
38603
38604 2008-04-20  Bruno Haible  <bruno@clisp.org>
38605
38606         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
38607
38608 2008-04-21  Eric Blake  <ebb9@byu.net>
38609
38610         Work around preprocessors that don't handle UINTMAX_MAX.
38611         * lib/memchr2.c (memchr2): Avoid embedded #if.
38612         Reported by Alain Guibert, fix suggested by Bruno Haible.
38613
38614 2008-04-21  Simon Josefsson  <simon@josefsson.org>
38615
38616         * doc/posix-functions/strftime.texi (strftime): Explain better
38617         Windows incompatibility.  Suggested by Micah Cowan
38618         <micah@cowan.name>.
38619
38620 2008-04-20  Bruno Haible  <bruno@clisp.org>
38621
38622         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
38623         unistr/u8-mblen.
38624
38625 2008-04-20  Bruno Haible  <bruno@clisp.org>
38626
38627         Fix test failure on platforms with non-GNU iconv.
38628         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
38629         (U_TO_U8): Use it, rather than u16_to_u8.
38630         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
38631         units at the end of the input string.
38632         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
38633
38634 2008-04-20  Bruno Haible  <bruno@clisp.org>
38635
38636         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
38637         when the resulting length is 0.
38638         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
38639
38640 2008-04-20  Bruno Haible  <bruno@clisp.org>
38641
38642         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
38643         works.
38644         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
38645
38646 2008-04-20  Bruno Haible  <bruno@clisp.org>
38647
38648         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
38649         * modules/tsearch-tests (configure.ac): Test for initstate function.
38650
38651 2008-04-20  Bruno Haible  <bruno@clisp.org>
38652
38653         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
38654         for nlink_t if missing.
38655         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
38656
38657 2008-04-19  Bruno Haible  <bruno@clisp.org>
38658
38659         Work around snprintf bug on Linux libc5.
38660         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
38661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38662         gl_SNPRINTF_SIZE1.
38663         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38664         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
38665         that test failed.
38666         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
38667         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
38668         * modules/snprintf (Files): Add m4/printf.m4.
38669         * modules/vsnprintf (Files): Likewise.
38670         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
38671         * doc/posix-functions/vsnprintf.texi: Likewise.
38672
38673 2008-04-19  Bruno Haible  <bruno@clisp.org>
38674
38675         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
38676         from 0.0058 to less than 10^-7.
38677
38678 2008-04-19  Bruno Haible  <bruno@clisp.org>
38679
38680         Fix rounding when a precision is given.
38681         * lib/vasnprintf.c (is_borderline): New function.
38682         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
38683         9...9x.
38684         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
38685         %e, %g.
38686         * tests/test-vasprintf-posix.c (test_function): Likewise.
38687         * tests/test-snprintf-posix.h (test_function): Likewise.
38688         * tests/test-sprintf-posix.h (test_function): Likewise.
38689         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
38690         * tests/test-printf-posix.h (test_function): Likewise.
38691         * tests/test-printf-posix.output: Update.
38692         Reported by John Darrington <john@darrington.wattle.id.au> via
38693         Ben Pfaff <blp@cs.stanford.edu>.
38694
38695 2008-04-18  Simon Josefsson  <simon@josefsson.org>
38696
38697         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
38698         Suggested by Bruno Haible <bruno@clisp.org>.
38699
38700 2008-04-17  Bruno Haible  <bruno@clisp.org>
38701
38702         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
38703         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
38704         implementation.
38705         Patch by Bruce Merry <bmerry@gmail.com>.
38706
38707 2008-04-17  Simon Josefsson  <simon@josefsson.org>
38708
38709         * doc/posix-functions/strftime.texi (strftime): Mention that %e
38710         doesn't work under Windows.
38711
38712 2008-04-16  Bruno Haible  <bruno@clisp.org>
38713
38714         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
38715         New macros.
38716         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
38717         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
38718         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
38719         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
38720         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
38721         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
38722         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
38723         macros.
38724         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
38725         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
38726         Northern Sotho, Uighur.
38727
38728 2008-04-16  Bruno Haible  <bruno@clisp.org>
38729
38730         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
38731         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
38732         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
38733         Reported by Daniel Bergström <daniel@octocode.com>.
38734
38735 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
38736             Bruno Haible  <bruno@clisp.org>
38737
38738         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
38739         function.
38740         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
38741         New functions, mostly extracted from gl_locale_name_default.
38742         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
38743
38744 2008-04-16  Eric Blake  <ebb9@byu.net>
38745
38746         Adjust strtod detection to catch glibc 2.7 bug.
38747         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
38748         Reported by John Gatewood Ham.
38749
38750 2008-04-16  Bruno Haible  <bruno@clisp.org>
38751
38752         Add tentative support for Linux libc5.
38753         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
38754         * lib/fpurge.c (fpurge): Likewise.
38755         * lib/freadable.c (freadable): Likewise.
38756         * lib/freadahead.c (freadahead): Likewise.
38757         * lib/freading.c (freading): Likewise.
38758         * lib/freadptr.c (freadptr): Likewise.
38759         * lib/freadseek.c (freadptrinc): Likewise.
38760         * lib/fseeko.c (rpl_fseeko): Likewise.
38761         * lib/fseterr.c (fseterr): Likewise.
38762         * lib/fwritable.c (fwritable): Likewise.
38763         * lib/fwriting.c (fwriting): Likewise.
38764         Reported by Alain Guibert <alguibert+bts@free.fr>.
38765
38766 2008-04-15  Bruno Haible  <bruno@clisp.org>
38767
38768         * modules/mathl (configure.ac): Define module indicator.
38769
38770 2008-04-15  Bruno Haible  <bruno@clisp.org>
38771
38772         * lib/logl.c (logl): Remove unused variables.
38773
38774 2008-04-15  Bruno Haible  <bruno@clisp.org>
38775
38776         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
38777         fails.
38778
38779 2008-04-15  Bruno Haible  <bruno@clisp.org>
38780
38781         * lib/trim.c (trim2): Fix argument of isspace() macro.
38782
38783 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
38784
38785         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
38786         to 0.
38787         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
38788
38789 2008-04-14  Bruno Haible  <bruno@clisp.org>
38790
38791         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
38792         AC_LANG_PROGRAM argument.
38793         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
38794         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
38795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38796         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38797         * m4/math_h.m4 (gl_MATH_H): Likewise.
38798         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38799         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38800         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38801         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
38802         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38803         * m4/regex.m4 (gl_REGEX): Likewise.
38804         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
38805         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
38806         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38807         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
38808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38809         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38810         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38811         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38812
38813 2008-04-14  Jim Meyering  <meyering@redhat.com>
38814
38815         test-strtod: fix typos: s/abs/fabs/
38816         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
38817
38818 2008-04-13  Bruno Haible  <bruno@clisp.org>
38819
38820         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
38821         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
38822         module is also used and while not building the reloc-wrapper.
38823
38824 2008-04-13  Bruno Haible  <bruno@clisp.org>
38825
38826         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
38827
38828 2008-04-13  Bruno Haible  <bruno@clisp.org>
38829
38830         Fix AIX compilation failure introduced on 2008-04-02.
38831         * tests/test-frexp.c (exp): Undefine before redefining.
38832         * tests/test-frexpl.c (exp): Likewise.
38833
38834 2008-04-13  Bruno Haible  <bruno@clisp.org>
38835
38836         Work around a HP-UX stdio bug.
38837         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
38838         * tests/test-ftello.c (main): Likewise.
38839         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
38840         * doc/posix-functions/ftello.texi: Likewise.
38841
38842 2008-04-13  Bruno Haible  <bruno@clisp.org>
38843
38844         Make test-signbit pass on HP-UX/hppa.
38845         * tests/test-signbit.c (minus_zerol): New variable.
38846         (test_signbitl): Use it.
38847
38848 2008-04-13  Bruno Haible  <bruno@clisp.org>
38849
38850         Make truncl work on OSF/1 4.0.
38851         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
38852         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38853         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
38855         HAVE_DECL_TRUNCL.
38856         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
38857         HAVE_DECL_TRUNCL.
38858         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
38859
38860 2008-04-13  Bruno Haible  <bruno@clisp.org>
38861
38862         * lib/unictype.h: Remove trailing comma from enumeration definitions.
38863
38864 2008-04-13  Bruno Haible  <bruno@clisp.org>
38865
38866         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
38867         expression, so as to avoid HP-UX 11 cc compiler bug.
38868
38869 2008-04-13  Bruno Haible  <bruno@clisp.org>
38870
38871         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
38872
38873 2008-04-13  Bruno Haible  <bruno@clisp.org>
38874
38875         * lib/git-merge-changelog.c: Remove empty declaration outside of
38876         functions.
38877
38878 2008-04-13  Bruno Haible  <bruno@clisp.org>
38879
38880         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
38881
38882 2008-04-13  Bruno Haible  <bruno@clisp.org>
38883
38884         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
38885         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
38886         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
38887         also if it exists but lacks definitions of the SHUT_* macros.
38888         * modules/sys_socket (Description): Update.
38889         Reported by Elbert Pol <e.pol@chello.nl>.
38890
38891 2008-04-13  Bruno Haible  <bruno@clisp.org>
38892
38893         * lib/localcharset.c (OS2): Don't redefine if already defined.
38894         Reported by Elbert Pol <e.pol@chello.nl>.
38895
38896 2008-04-13  Bruno Haible  <bruno@clisp.org>
38897
38898         * lib/binary-io.h [__EMX__]: Include <io.h>.
38899         Reported by Elbert Pol <e.pol@chello.nl>.
38900
38901 2008-04-12  Bruno Haible  <bruno@clisp.org>
38902
38903         * lib/fpucw.h: Enable the definitions also for x86_64.
38904         Needed for NetBSD/x86_64.
38905         Reported by Thomas Klausner <tk@giga.or.at>.
38906
38907 2008-04-12  Bruno Haible  <bruno@clisp.org>
38908
38909         * tests/test-strtod.c: Include isnand.h.
38910         (main): Use isnand instead of isnan.
38911         Reported by Jim Meyering.
38912
38913 2008-04-12  Bruno Haible  <bruno@clisp.org>
38914
38915         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
38916         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38917
38918 2008-04-12  Jim Meyering  <meyering@redhat.com>
38919
38920         * m4/math_h.m4 (gl_MATH_H): Fix typos.
38921
38922 2008-04-12  Bruno Haible  <bruno@clisp.org>
38923
38924         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
38925         Reported by Elbert Pol <e.pol@chello.nl>.
38926
38927 2008-04-12  Eric Blake  <ebb9@byu.net>
38928
38929         Work around Solaris 10 math.h bug.
38930         * m4/math_h.m4 (gl_MATH_H): Check for bug.
38931         (gl_MATH_H_DEFAULTS): Set up default.
38932         * modules/math (Makefile.am): Replace new indicators.
38933         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
38934         * tests/test-math.c (main): Test this.
38935         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
38936         * doc/posix-headers/math.texi (math.h): Mention bug.
38937         Reported by Nelson H. F. Beebe and Jim Meyering.
38938
38939 2008-04-11  Bruno Haible  <bruno@clisp.org>
38940
38941         Adapt to future versions of Apple GCC.
38942         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
38943         Reported by Peter O'Gorman <peter@pogma.com>.
38944
38945 2008-04-11  Bruno Haible  <bruno@clisp.org>
38946
38947         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
38948
38949 2008-04-11  Bruno Haible  <bruno@clisp.org>
38950
38951         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
38952
38953         * modules/getaddrinfo-tests (Makefile.am): Define
38954         test_getaddrinfo_LDADD.
38955
38956 2008-04-11  Bruno Haible  <bruno@clisp.org>
38957
38958         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
38959         (init): Fix syntax error.
38960         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
38961         is declared.
38962
38963 2008-04-11  Bruno Haible  <bruno@clisp.org>
38964
38965         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
38966         * modules/glob (Depends-on): Add stdbool.
38967
38968 2008-04-11  Bruno Haible  <bruno@clisp.org>
38969
38970         * lib/trim.c: Include <string.h>.
38971
38972 2008-04-11  Eric Blake  <ebb9@byu.net>
38973
38974         Avoid compile failure on OS/2.
38975         * lib/regex_internal.h (internal_function): Disable optimization
38976         on OS/2 (__EMX__), where it caused compiler error.
38977         Reported by Elbert Pol.
38978
38979 2008-04-11  Bruno Haible  <bruno@clisp.org>
38980
38981         Flush the standard error stream before aborting. Needed on mingw.
38982         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
38983         * tests/test-array_list.c (ASSERT): Likewise.
38984         * tests/test-array_oset.c (ASSERT): Likewise.
38985         * tests/test-avltree_list.c (ASSERT): Likewise.
38986         * tests/test-avltree_oset.c (ASSERT): Likewise.
38987         * tests/test-avltreehash_list.c (ASSERT): Likewise.
38988         * tests/test-binary-io.c (ASSERT): Likewise.
38989         * tests/test-byteswap.c (ASSERT): Likewise.
38990         * tests/test-c-ctype.c (ASSERT): Likewise.
38991         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
38992         * tests/test-c-strcasestr.c (ASSERT): Likewise.
38993         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
38994         * tests/test-c-strstr.c (ASSERT): Likewise.
38995         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
38996         * tests/test-canonicalize.c (ASSERT): Likewise.
38997         * tests/test-carray_list.c (ASSERT): Likewise.
38998         * tests/test-ceilf1.c (ASSERT): Likewise.
38999         * tests/test-ceilf2.c (ASSERT): Likewise.
39000         * tests/test-ceill.c (ASSERT): Likewise.
39001         * tests/test-count-one-bits.c (ASSERT): Likewise.
39002         * tests/test-fbufmode.c (ASSERT): Likewise.
39003         * tests/test-fflush2.c (ASSERT): Likewise.
39004         * tests/test-floorf1.c (ASSERT): Likewise.
39005         * tests/test-floorf2.c (ASSERT): Likewise.
39006         * tests/test-floorl.c (ASSERT): Likewise.
39007         * tests/test-fopen.c (ASSERT): Likewise.
39008         * tests/test-fpending.c (ASSERT): Likewise.
39009         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39010         * tests/test-fpurge.c (ASSERT): Likewise.
39011         * tests/test-freadable.c (ASSERT): Likewise.
39012         * tests/test-freadahead.c (ASSERT): Likewise.
39013         * tests/test-freading.c (ASSERT): Likewise.
39014         * tests/test-freadptr.c (ASSERT): Likewise.
39015         * tests/test-freadptr2.c (ASSERT): Likewise.
39016         * tests/test-freadseek.c (ASSERT): Likewise.
39017         * tests/test-freopen.c (ASSERT): Likewise.
39018         * tests/test-frexp.c (ASSERT): Likewise.
39019         * tests/test-frexpl.c (ASSERT): Likewise.
39020         * tests/test-fseek.c (ASSERT): Likewise.
39021         * tests/test-fseeko.c (ASSERT): Likewise.
39022         * tests/test-fstrcmp.c (ASSERT): Likewise.
39023         * tests/test-ftell.c (ASSERT): Likewise.
39024         * tests/test-ftello.c (ASSERT): Likewise.
39025         * tests/test-func.c (ASSERT): Likewise.
39026         * tests/test-fwritable.c (ASSERT): Likewise.
39027         * tests/test-fwriting.c (ASSERT): Likewise.
39028         * tests/test-getdelim.c (ASSERT): Likewise.
39029         * tests/test-getline.c (ASSERT): Likewise.
39030         * tests/test-i-ring.c (ASSERT): Likewise.
39031         * tests/test-iconv-utf.c (ASSERT): Likewise.
39032         * tests/test-iconv.c (ASSERT): Likewise.
39033         * tests/test-isfinite.c (ASSERT): Likewise.
39034         * tests/test-isnand.c (ASSERT): Likewise.
39035         * tests/test-isnanf.c (ASSERT): Likewise.
39036         * tests/test-isnanl.h (ASSERT): Likewise.
39037         * tests/test-ldexpl.c (ASSERT): Likewise.
39038         * tests/test-linked_list.c (ASSERT): Likewise.
39039         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39040         * tests/test-localename.c (ASSERT): Likewise.
39041         * tests/test-lseek.c (ASSERT): Likewise.
39042         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39043         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39044         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39045         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39046         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39047         * tests/test-mbschr.c (ASSERT): Likewise.
39048         * tests/test-mbscspn.c (ASSERT): Likewise.
39049         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39050         * tests/test-mbspbrk.c (ASSERT): Likewise.
39051         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39052         * tests/test-mbsrchr.c (ASSERT): Likewise.
39053         * tests/test-mbsspn.c (ASSERT): Likewise.
39054         * tests/test-mbsstr1.c (ASSERT): Likewise.
39055         * tests/test-mbsstr2.c (ASSERT): Likewise.
39056         * tests/test-mbsstr3.c (ASSERT): Likewise.
39057         * tests/test-memchr2.c (ASSERT): Likewise.
39058         * tests/test-memmem.c (ASSERT): Likewise.
39059         * tests/test-open.c (ASSERT): Likewise.
39060         * tests/test-printf-frexp.c (ASSERT): Likewise.
39061         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39062         * tests/test-printf-posix.c (ASSERT): Likewise.
39063         * tests/test-quotearg.c (ASSERT): Likewise.
39064         * tests/test-rbtree_list.c (ASSERT): Likewise.
39065         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39066         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39067         * tests/test-round1.c (ASSERT): Likewise.
39068         * tests/test-roundf1.c (ASSERT): Likewise.
39069         * tests/test-roundl.c (ASSERT): Likewise.
39070         * tests/test-signbit.c (ASSERT): Likewise.
39071         * tests/test-sleep.c (ASSERT): Likewise.
39072         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39073         * tests/test-snprintf.c (ASSERT): Likewise.
39074         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39075         * tests/test-stat-time.c (ASSERT): Likewise.
39076         * tests/test-strcasestr.c (ASSERT): Likewise.
39077         * tests/test-strerror.c (ASSERT): Likewise.
39078         * tests/test-striconv.c (ASSERT): Likewise.
39079         * tests/test-striconveh.c (ASSERT): Likewise.
39080         * tests/test-striconveha.c (ASSERT): Likewise.
39081         * tests/test-strsignal.c (ASSERT): Likewise.
39082         * tests/test-strstr.c (ASSERT): Likewise.
39083         * tests/test-strtod.c (ASSERT): Likewise.
39084         * tests/test-trunc1.c (ASSERT): Likewise.
39085         * tests/test-trunc2.c (ASSERT): Likewise.
39086         * tests/test-truncf1.c (ASSERT): Likewise.
39087         * tests/test-truncf2.c (ASSERT): Likewise.
39088         * tests/test-truncl.c (ASSERT): Likewise.
39089         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39090         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39091         * tests/test-vasnprintf.c (ASSERT): Likewise.
39092         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39093         * tests/test-vasprintf.c (ASSERT): Likewise.
39094         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39095         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39096         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39097         * tests/test-vsnprintf.c (ASSERT): Likewise.
39098         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39099         * tests/test-wcwidth.c (ASSERT): Likewise.
39100         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39101         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39102         * tests/test-xvasprintf.c (ASSERT): Likewise.
39103         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39104         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39105         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39106         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39107         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39108         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39109         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39110         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39111         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39112         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39113         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39114         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39115         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39116         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39117         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39118         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39119         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39120         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39121         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39122         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39123         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39124         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39125         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39126         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39127         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39128         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39129         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39130         * tests/unictype/test-combining.c (ASSERT): Likewise.
39131         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39132         * tests/unictype/test-digit.c (ASSERT): Likewise.
39133         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39134         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39135         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39136         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39137         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39138         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39139         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39140         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39141         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39142         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39143         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39144         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39145         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39146         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39147         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39148         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39149         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39150         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39151         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39152         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39153         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39154         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39155         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39156         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39157         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39158         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39159         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39160         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39161         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39162         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39163         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39164         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39165         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39166         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39167         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39168         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39169         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39170         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39171         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39172         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39173         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39174         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39175         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39176         Reported by Eric Blake.
39177
39178 2008-04-11  Bruno Haible  <bruno@clisp.org>
39179
39180         * lib/wchar.in.h: Tweak comment.
39181
39182 2008-04-11  Bruno Haible  <bruno@clisp.org>
39183
39184         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39185         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39186         gl_COMMON.
39187         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39188
39189 2008-04-11  Bruno Haible  <bruno@clisp.org>
39190
39191         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39192
39193 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39194
39195         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39196         of attempting to use non-existing /dev/*random.  Based on patch
39197         from Adam Strzelecki <ono@java.pl> in
39198         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39199
39200 2008-04-08  Bruno Haible  <bruno@clisp.org>
39201
39202         Add tentative support for emx+gcc.
39203         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39204         * lib/fpurge.c (fpurge): Likewise.
39205         * lib/freadable.c (freadable): Likewise.
39206         * lib/freadahead.c (freadahead): Likewise.
39207         * lib/freading.c (freading): Likewise.
39208         * lib/freadptr.c (freadptr): Likewise.
39209         * lib/freadseek.c (freadptrinc): Likewise.
39210         * lib/fseeko.c (rpl_fseeko): Likewise.
39211         * lib/fseterr.c (fseterr): Likewise.
39212         * lib/fwritable.c (fwritable): Likewise.
39213         * lib/fwriting.c (fwriting): Likewise.
39214         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39215
39216 2008-04-09  Eric Blake  <ebb9@byu.net>
39217
39218         Avoid some autoconf warnings.
39219         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39220         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39221         * m4/afs.m4 (gl_AFS): Likewise.
39222         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39223         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39224         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39225         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39226         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39227         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39228         (AC_CHECK_DECLS_ONCE): Likewise.
39229         Rename file...
39230         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39231         gnulib-tool requires autoconf 2.59 or better.
39232         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39233
39234 2008-04-08  Eric Blake  <ebb9@byu.net>
39235
39236         Use 'git describe --match' if present (added in git 1.5.5).
39237         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39238         if possible.
39239
39240 2008-04-08  Bruno Haible  <bruno@clisp.org>
39241
39242         Add tentative support for OpenServer.
39243         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39244         _ptr, _cnt.
39245         * lib/fpurge.c (fpurge): Likewise.
39246         * lib/freadable.c (freadable): Likewise.
39247         * lib/freadahead.c (freadahead): Likewise.
39248         * lib/freading.c (freading): Likewise.
39249         * lib/freadptr.c (freadptr): Likewise.
39250         * lib/freadseek.c (freadptrinc): Likewise.
39251         * lib/fseeko.c (rpl_fseeko): Likewise.
39252         * lib/fseterr.c (fseterr): Likewise.
39253         * lib/fwritable.c (fwritable): Likewise.
39254         * lib/fwriting.c (fwriting): Likewise.
39255         Reported by Roger Cornelius <rac@tenzing.org> and
39256         Brian K. White <brian@aljex.com>.
39257
39258 2008-04-06  Jim Meyering  <meyering@redhat.com>
39259
39260         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39261
39262 2008-04-06  Bruno Haible  <bruno@clisp.org>
39263
39264         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39265         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39266         * tests/test-printf-posix.sh: Likewise.
39267         * tests/test-vfprintf-posix.sh: Likewise.
39268         * tests/test-vprintf-posix.sh: Likewise.
39269         * tests/test-xprintf-posix.sh: Likewise.
39270
39271 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39272
39273         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39274         hide error from 'ls', needed on OS/2.
39275         Report by Elbert Pol <elbert.pol@gmail.com>.
39276
39277 2008-04-04  Eric Blake  <ebb9@byu.net>
39278
39279         Make test-fseeko.c failures meaningful.
39280         * tests/test-fseeko.c: Print line number on failure.
39281         * tests/test-fseek.c: Likewise.
39282         Reported by Nelson H. F. Beebe.
39283
39284         Improve strtod bug detection check.
39285         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39286         required for Solaris 10.
39287         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39288
39289 2008-04-04  Bruno Haible  <bruno@clisp.org>
39290
39291         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39292         by m4/setenv.m4.
39293
39294 2008-04-03  Eric Blake  <ebb9@byu.net>
39295
39296         Ensure sane .version contents.
39297         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39298         version string.
39299         * build-aux/git-version-gen: Improve documentation.
39300
39301         Make GNU make output nicer.
39302         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39303         MAKECMDGOALS to enforce message for all command line targets.  Set
39304         srcdir for use in maint.mk.
39305
39306         Another maintainer tweak.
39307         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39308         a target that regenerates version.
39309
39310 2008-04-03  Jim Meyering  <meyering@redhat.com>
39311
39312         vc-list-files: don't cause coreutils "make po-check" failure
39313         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39314
39315 2008-04-03  Eric Blake  <ebb9@byu.net>
39316
39317         Allow VPATH usage of vc-list-files.
39318         * build-aux/vc-list-files (scriptversion): Add timestamp.
39319         (options): Add --help, --version, -C.
39320         (CVS): Support installed cvsu.
39321
39322 2008-04-02  Bruno Haible  <bruno@clisp.org>
39323
39324         Avoid some "statement with no effect" warnings from gcc.
39325         * tests/test-wctype.c (main): Explicitly ignore unused values.
39326         Reported by Jim Meyering.
39327
39328 2008-04-02  Jim Meyering  <meyering@redhat.com>
39329
39330         Avoid some warnings from "gcc -Wshadow".
39331         * tests/test-frexp.c (exp): Define to a different identifier.
39332         * tests/test-frexpl.c (exp): Likewise.
39333
39334 2008-04-03  Jim Meyering  <meyering@redhat.com>
39335
39336         bootstrap: remove dangling *.[ch] symlinks from lib
39337         * build-aux/bootstrap [dangling symlink removal]: Move find's
39338         -depth option to precede all others, to avoid a warning.
39339         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39340
39341 2008-04-02  Bruno Haible  <bruno@clisp.org>
39342
39343         Avoid some warnings from "gcc -Wshadow".
39344         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39345         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39346         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39347         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39348         Reported by Jim Meyering.
39349
39350 2008-04-01  Bruno Haible  <bruno@clisp.org>
39351
39352         Fix test to work on IRIX 6.5 with cc.
39353         * tests/test-math.c (numeric_equal): New function.
39354         (main): Use it.
39355
39356 2008-04-01  Bruno Haible  <bruno@clisp.org>
39357
39358         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39359
39360 2008-04-01  Bruno Haible  <bruno@clisp.org>
39361
39362         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39363         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39364         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39365         (Depends-on): Remove math.
39366
39367         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39368         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39369         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39370         (Depends-on): Remove math.
39371
39372         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39373         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39374         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39375         (Depends-on): Remove math.
39376         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39377         (Depends-on): Remove math.
39378
39379         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39380         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39381         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39382         (Depends-on): Remove math.
39383         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39384         (Depends-on): Remove math.
39385
39386         * tests/test-round1.c: Include nan.h.
39387         (main): Use NaNd instead of NAN.
39388         * modules/round-tests (Files): Add tests/nan.h.
39389
39390         * tests/test-trunc1.c: Include nan.h.
39391         (main): Use NaNd instead of NAN.
39392         * modules/trunc-tests (Files): Add tests/nan.h.
39393
39394         * tests/test-roundf1.c: Include nan.h.
39395         (main): Use NaNf instead of NAN.
39396         * modules/roundf-tests (Files): Add tests/nan.h.
39397
39398         * tests/test-truncf1.c: Include nan.h.
39399         (main): Use NaNf instead of NAN.
39400         * modules/truncf-tests (Files): Add tests/nan.h.
39401
39402         * tests/test-ceilf1.c: Include nan.h.
39403         (main): Use NaNf instead of NAN.
39404         * modules/ceilf-tests (Files): Add tests/nan.h.
39405
39406         * tests/test-floorf1.c: Include nan.h.
39407         (main): Use NaNf instead of NAN.
39408         * modules/floorf-tests (Files): Add tests/nan.h.
39409
39410         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39411         (main): Use NaNf instead of NAN.
39412         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39413
39414         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39415         (main): Use NaNd instead of NAN.
39416         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
39417
39418         * tests/test-frexp.c: Include nan.h.
39419         (main): Use NaNd instead of NAN.
39420         * modules/frexp-tests (Files): Add tests/nan.h.
39421
39422         * lib/isnan.c: Don't include <math.h>.
39423         (FUNC): Don't use NAN macro.
39424         * modules/isnand-nolibm (Depends-on): Remove math.
39425         * modules/isnanf-nolibm (Depends-on): Remove math.
39426         * modules/isnanl (Depends-on): Remove math.
39427         * modules/isnanl-nolibm (Depends-on): Remove math.
39428
39429         * tests/nan.h: New file.
39430
39431 2008-04-01  Eric Blake  <ebb9@byu.net>
39432
39433         Fix typos.
39434         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
39435         values to be the right type.
39436
39437         For now, cater to gnulib strtod inaccuracies.
39438         * tests/test-strtod.c (main): Allow 1-ulp error on expected
39439         fractional results.  While not as nice from a QoI perspective, it
39440         is a quicker patch than correctly implementing decimal to binary
39441         rounding.
39442
39443 2008-03-31  Eric Blake  <ebb9@byu.net>
39444
39445         Guarantee a definition of NAN.
39446         * lib/math.in.h (NAN): Define if missing.
39447         * tests/test-math.c (main): Test it.
39448         * doc/posix-headers/math.texi (math.h): Document this.
39449         * lib/isnan.c (rpl_isnand): Use it.
39450         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
39451         * tests/test-floorf1.c (NaN): Likewise.
39452         * tests/test-frexp.c (NaN): Likewise.
39453         * tests/test-isnand.c (NaN): Likewise.
39454         * tests/test-isnanf.c (NaN): Likewise.
39455         * tests/test-round1.c (NaN): Likewise.
39456         * tests/test-roundf1.c (NaN): Likewise.
39457         * tests/test-snprintf-posix.h (NaN): Likewise.
39458         * tests/test-sprintf-posix.h (NaN): Likewise.
39459         * tests/test-trunc1.c (NaN): Likewise.
39460         * tests/test-truncf1.c (NaN): Likewise.
39461         * tests/test-vasnprintf-posix.c (NaN): Likewise.
39462         * tests/test-vasprintf-posix.c (NaN): Likewise.
39463         * modules/isnand-nolibm (Depends-on): Add math.
39464         * modules/isnanf-nolibm (Depends-on): Likewise.
39465         * modules/isnanl (Depends-on): Likewise.
39466         * modules/isnanl-nolibm (Depends-on): Likewise.
39467         * modules/snprintf-posix-tests (Depends-on): Likewise.
39468         * modules/sprintf-posix-tests (Depends-on): Likewise.
39469         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
39470         * modules/vsprintf-posix-tests (Depends-on): Likewise.
39471         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
39472         * modules/vasprintf-posix-tests (Depends-on): Likewise.
39473
39474 2008-03-31  Bruno Haible  <bruno@clisp.org>
39475
39476         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
39477         * doc/posix-functions/strtod.texi: Likewise.
39478
39479 2008-03-31  Bruno Haible  <bruno@clisp.org>
39480
39481         * tests/test-strtod.c (main): Don't use C99 syntax.
39482
39483 2008-03-31  Bruno Haible  <bruno@clisp.org>
39484
39485         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
39486         Reported by Eric Blake.
39487
39488 2008-03-31  Jim Meyering  <meyering@redhat.com>
39489
39490         Don't compare actual signbit return values.
39491         * tests/test-strtod.c (main): Rather, compare only their
39492         zero/non-zero nature.
39493
39494 2008-03-31  Eric Blake  <ebb9@byu.net>
39495
39496         More strtod documentation.
39497         * doc/posix-functions/strtod.texi (strtod): Interpret more test
39498         failures as distinct bugs.
39499
39500 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39501
39502         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
39503         Problem reported by Erik Benada in
39504         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
39505
39506 2008-03-30  Bruno Haible  <bruno@clisp.org>
39507
39508         * tests/test-strtod.c: Add comments about which assertion fails on which
39509         platform.
39510         * doc/posix-functions/strtod.texi: Add info about many more platforms.
39511
39512 2008-03-30  Eric Blake  <ebb9@byu.net>
39513
39514         Test signbit behavior on zeros.
39515         * tests/test-signbit.c (test_signbitf): Add tests for zero.
39516         (test_signbitd, test_signbitl): Likewise.
39517
39518         More strtod touchups.
39519         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
39520         sign of negative underflow, for now.  Use .5, not .1.
39521         * doc/posix-functions/strtod.texi (strtod): Mention these
39522         limitations.
39523         Reported by Jim Meyering.
39524
39525 2008-03-30  Bruno Haible  <bruno@clisp.org>
39526
39527         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
39528         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
39529
39530 2008-03-30  Bruno Haible  <bruno@clisp.org>
39531
39532         Avoid failure when attempting to return empty iconv results on some
39533         platforms.
39534         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
39535         allocation, don't report ENOMEM when the resulting string is empty.
39536
39537 2008-03-30  Bruno Haible  <bruno@clisp.org>
39538
39539         Fix buffer overrun.
39540         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
39541         Don't consider the width for tmp_length. Check count against tmp_length
39542         before doing the padding. Ensure enough allocation during padding.
39543
39544 2008-03-30  Eric Blake  <ebb9@byu.net>
39545
39546         strtod touchups.
39547         * lib/strtod.c (strtod): Avoid compiler warnings.
39548         Reported by Jim Meyering.
39549
39550 2008-03-30  Bruno Haible  <bruno@clisp.org>
39551
39552         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
39553         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
39554         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
39555         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
39556         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
39557         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
39558         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
39559         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
39560
39561         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
39562         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
39563         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
39564         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
39565         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
39566         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
39567         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
39568         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
39569
39570         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
39571         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
39572         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
39573         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
39574         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
39575         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
39576         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
39577         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
39578
39579         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
39580         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
39581
39582         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
39583         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
39584
39585         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
39586         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
39587
39588         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
39589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
39590         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
39591
39592         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
39593         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
39594         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
39595
39596         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
39597         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
39598         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
39599
39600         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
39601         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
39602         * modules/vasprintf (Depends-on): Add EOVERFLOW.
39603
39604         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
39605         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
39606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
39607         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
39608         (Depends-on): Add EOVERFLOW.
39609         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
39610         (Depends-on): Add EOVERFLOW.
39611         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39612         (Depends-on): Add EOVERFLOW.
39613         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39614         (Depends-on): Add EOVERFLOW.
39615         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39616         (Depends-on): Add EOVERFLOW.
39617         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39618         (Depends-on): Add EOVERFLOW.
39619         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39620         (Depends-on): Add EOVERFLOW.
39621         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39622         (Depends-on): Add EOVERFLOW.
39623
39624         * lib/sprintf.c (EOVERFLOW): Remove fallback.
39625         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
39626         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
39627
39628         * lib/snprintf.c (EOVERFLOW): Remove fallback.
39629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
39630         * modules/snprintf (Depends-on): Add EOVERFLOW.
39631
39632         * lib/poll.c (EOVERFLOW): Remove fallback.
39633         * modules/poll (Depends-on): Add EOVERFLOW.
39634
39635         * lib/getugroups.c (EOVERFLOW): Remove fallback.
39636         * modules/getugroups (Depends-on): Add EOVERFLOW.
39637
39638         * lib/getdelim.c (EOVERFLOW): Remove fallback.
39639         * modules/getdelim (Depends-on): Add EOVERFLOW.
39640
39641         * lib/ftell.c (EOVERFLOW): Remove fallback.
39642         * modules/ftell (Depends-on): Add EOVERFLOW.
39643
39644         * lib/fprintf.c (EOVERFLOW): Remove fallback.
39645         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
39646         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
39647
39648         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
39649
39650         * modules/EOVERFLOW-tests: New file.
39651         * tests/test-EOVERFLOW.c: New file.
39652
39653         * modules/EOVERFLOW: New file.
39654         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
39655
39656 2008-03-30  Bruno Haible  <bruno@clisp.org>
39657
39658         Fix bug introduced on 2007-06-10.
39659         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
39660         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
39661
39662 2008-03-30  Bruno Haible  <bruno@clisp.org>
39663
39664         Improve freadseek's efficiency after ungetc.
39665         * lib/freadseek.c: Include freadahead.h.
39666         (freadptrinc): New function, extracted from freadseek.
39667         (freadseek): Use it in a loop. Use freadahead to determine the number
39668         of loop iterations.
39669         * modules/freadseek (Depends-on): Add freadahead.
39670         (configure.ac): Require AC_C_INLINE.
39671
39672 2008-03-30  Bruno Haible  <bruno@clisp.org>
39673
39674         * lib/freadseek.c (freadseek): Don't ignore the return value of
39675         freadptr.
39676
39677 2008-03-29  Eric Blake  <ebb9@byu.net>
39678
39679         Add hex float support.
39680         * modules/strtod (Depends-on): Add c-ctype.
39681         (Link): Mention POW_LIB.
39682         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
39683         whitespace between 'e' and exponent.
39684         * tests/test-strtod.c (main): Enable hex float tests.
39685         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
39686         now provides.
39687
39688         Document various strtod bugs, with some fixes.
39689         * doc/posix-functions/strtod.texi (strtod): Document bugs with
39690         "-0x", "inf", "nan", and hex constants.
39691         * doc/posix-functions/atof.texi (atof): Likewise.
39692         * modules/stdlib (Makefile.am): Support strtod.
39693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39694         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
39695         detect additional strtod bugs.
39696         * lib/stdlib.in.h (rpl_strtod): Add declarations.
39697         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
39698         bool where appropriate.  Parse 'inf' and 'nan'.
39699         * tests/test-strtod.c: New file.
39700         * modules/strtod (Depends-on): Add stdbool, stdlib.
39701         (configure.ac): Turn on module indicator.
39702         * modules/strtod-tests: New module.
39703
39704 2008-03-29  Eric Blake  <ebb9@byu.net>
39705
39706         Fix ftell on mingw.
39707         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
39708         * modules/ftell-tests (Depends-on): Add binary-io.
39709         * modules/ftello-tests (Depends-on): Likewise.
39710         * tests/test-ftell.c (main): Enhance test to cover behavior after
39711         ungetc.  Enforce binary mode.
39712         * tests/test-ftello.c (main): Likewise.
39713
39714         Pass test-freadseek on cygwin.
39715         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
39716         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
39717         ungetc buffer.
39718
39719         * tests/test-fflush2.c (main): Fix typo.
39720
39721 2008-03-29  Bruno Haible  <bruno@clisp.org>
39722
39723         * tests/test-fflush2.c (main): Temporarily disable the contents of
39724         this test.
39725         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
39726         Reported by Eric Blake.
39727
39728 2008-03-28  Simon Josefsson  <simon@josefsson.org>
39729
39730         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
39731         (GC_SHA224_DIGEST_SIZE): Add.
39732
39733         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
39734         (gc_hash_digest_length): Likewise.
39735         (gc_hash_buffer): Likewise.
39736
39737 2008-03-25  Bruno Haible  <bruno@clisp.org>
39738
39739         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
39740         detail which gettext release to use.
39741         Reported by Simon Josefsson.
39742
39743 2008-03-26  Jim Meyering  <meyering@redhat.com>
39744
39745         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
39746         * modules/gnumakefile (clean-GNUmakefile): Also, use
39747         test ... && ... || : syntax rather than if-then ... fi.
39748
39749         gnumakefile: Don't double-quote-expand $(VPATH) value.
39750         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
39751
39752 2008-03-24  Eric Blake  <ebb9@byu.net>
39753
39754         Alter GNUmakefile to install into top directory.
39755         * modules/maintainer-makefile: Split, and add dependency...
39756         * modules/gnumakefile: to this new module.
39757         * build-aux/GNUmakefile: Move...
39758         * top/GNUmakefile: ...here.
39759         * build-aux/maint.mk: Move...
39760         * top/maint.mk: ...here.
39761         * MODULES.html.sh (Support for maintaining...): Document new
39762         module.
39763
39764 2008-03-23  Bruno Haible  <bruno@clisp.org>
39765
39766         * gnulib-tool: New options --vc-files, --no-vc-files.
39767         (func_usage): Document them.
39768         (vc_files): New variable.
39769         (func_import): Consider vc_files.
39770         (func_create_testdir): Set vc_files to empty.
39771         Suggested by Jim Meyering and Karl Berry.
39772
39773 2008-03-23  Bruno Haible  <bruno@clisp.org>
39774
39775         Fix regex compilation error on HP-UX 11.
39776         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
39777         * modules/regex (Files): Add m4/mbstate_t.m4.
39778         Reported by Ton Voon <ton.voon@altinity.com>.
39779
39780 2008-03-23  Bruno Haible  <bruno@clisp.org>
39781
39782         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
39783
39784 2008-03-23  Eric Blake  <ebb9@byu.net>
39785             Bruno Haible  <bruno@clisp.org>
39786
39787         Install files from top/ in the destination directory.
39788         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39789         augmentation also for the files from top/.
39790         (func_import, func_create_testdir): Rewrite file names:
39791         top/filename -> filename.
39792
39793 2008-03-23  Bruno Haible  <bruno@clisp.org>
39794
39795         Tweak "gnulib --version" output.
39796         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
39797
39798 2008-03-23  Bruno Haible  <bruno@clisp.org>
39799
39800         Tweak "gnulib --version" output.
39801         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
39802         rather than contents of ChangeLog, when possible.
39803
39804 2008-03-21  Eric Blake  <ebb9@byu.net>
39805
39806         More --version tweaks.
39807         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
39808         date of last ChangeLog entry.
39809
39810 2008-03-21  Jim Meyering  <meyering@redhat.com>
39811
39812         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
39813
39814 2008-03-20  Eric Blake  <ebb9@byu.net>
39815
39816         VPATH fix.
39817         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
39818
39819 2008-03-20  Simon Josefsson  <simon@josefsson.org>
39820
39821         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
39822         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
39823
39824 2008-03-20  Eric Blake  <ebb9@byu.net>
39825
39826         Sync GNUmakefile with coreutils.
39827         * build-aux/GNUmakefile (have-Makefile): Rename...
39828         (_have-Makefile): ...to this, for namespace consideration.
39829         (GNUmakefile.cfg): Include, if present.
39830         (_autoreconf): Define a default.
39831         (_is-dist-target): New rule for rebuilds to pick up intra-release
39832         version.
39833         (maint-cfg.mk): Rename...
39834         (cfg.mk): ...to this.
39835
39836 2008-03-18  Jim Meyering  <meyering@redhat.com>
39837
39838         New script and module: mktempd
39839         * MODULES.html.sh (maint+release support): Add mktempd.
39840         * build-aux/mktempd: New file.
39841         * modules/mktempd: New file.
39842
39843 2008-03-15  Jim Meyering  <meyering@redhat.com>
39844
39845         Undo last change.
39846         * lib/sha1.c, lib/md5.c: 63 != ~63.
39847         Reported by Andreas Schwab.
39848
39849         sha1.c, md5.c: Hoist a redundant expression.
39850         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
39851         "ctx->buflen" only once, before calling *_process_block.
39852         * lib/md5.c (md5_process_bytes): Likewise.
39853
39854 2008-03-14  Eric Blake  <ebb9@byu.net>
39855
39856         Bump copyright year in files generated by gnulib-tool.
39857         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
39858         gnulib-tool, rather than hard-coding it.
39859
39860         Fix 'gnulib-tool --version' output to work with git.
39861         * gnulib-tool (func_gnulib_dir): New function, extracted from...
39862         (startup): ...here.
39863         (func_version): Use it to invoke git-version-gen, rather than
39864         relying on CVS keyword expansion.  Modernize wording.
39865         (cvsdatestamp, last_checkin_date, version): Kill unused
39866         variables.
39867
39868 2008-03-12  Jim Meyering  <meyering@redhat.com>
39869
39870         Recognize optional cast of the argument to free.
39871         * build-aux/useless-if-before-free: Update regexps.
39872
39873         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
39874
39875 2008-03-11  Bruno Haible  <bruno@clisp.org>
39876
39877         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
39878         by a single package.
39879         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
39880         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
39881         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
39882         Reported by Sam Steingold <sds@gnu.org>.
39883
39884 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39885
39886         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
39887         repositories.
39888
39889 2008-03-11  Bruno Haible  <bruno@clisp.org>
39890
39891         Avoid conflicts between local macro definitions.
39892         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39893         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
39894
39895 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
39896             Bruno Haible  <bruno@clisp.org>
39897
39898         Make va_copy work with some version of xlc on AIX 5.1.
39899         * lib/stdarg.in.h: New file.
39900         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
39901         On AIX, use a <stdarg.h> file substitute.
39902         * modules/stdarg (Files): Add lib/stdarg.in.h.
39903         (Depends-on): Add include_next.
39904         (Makefile.am): Build a stdarg.h substitute if requested.
39905         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
39906
39907 2008-03-10  Bruno Haible  <bruno@clisp.org>
39908
39909         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
39910         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39911         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39912
39913 2008-03-10  Bruno Haible  <bruno@clisp.org>
39914
39915         * modules/stdlib (Depends-on): Add include_next, remove
39916         absolute-header.
39917
39918 2008-03-09  Bruno Haible  <bruno@clisp.org>
39919
39920         * lib/freadahead.h (freadahead): Document more precisely.
39921         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
39922         the sum of both buffer sizes.
39923         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
39924         * NEWS: Document the change.
39925
39926 2008-03-09  Bruno Haible  <bruno@clisp.org>
39927
39928         Extend freadptr to return also the buffer size.
39929         * lib/freadptr.h (freadptr): Add sizep argument.
39930         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
39931         (freadptr): Add sizep argument. Determine buffer size like freadahead
39932         does.
39933         * tests/test-freadptr.c: Don't include freadahead.h.
39934         (main): Adapt for new calling convention of freadptr.
39935         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
39936         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
39937         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
39938         tests/test-freadptr2.sh.
39939         (Depends): Remove freadahead.
39940         (TESTS): Add test-freadptr2.sh.
39941         (check_PROGRAMS): Add test-freadptr2.
39942
39943 2008-03-09  Bruno Haible  <bruno@clisp.org>
39944
39945         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
39946         Report and solution by Simon Josefsson.
39947
39948 2008-03-06  Bruno Haible  <bruno@clisp.org>
39949
39950         Make fflush after ungetc work on BSD platforms.
39951         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
39952         * tests/test-fflush2.c: New file.
39953         * tests/test-fflush2.sh: New file.
39954         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
39955         tests/test-fflush2.c.
39956         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
39957         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
39958
39959 2008-03-06  Eric Blake  <ebb9@byu.net>
39960
39961         Likewise for ftello.
39962         * modules/ftello (Dependencies): Add extensions.
39963         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
39964
39965 2008-03-06  Bruno Haible  <bruno@clisp.org>
39966
39967         * modules/fseeko (Dependencies): Add extensions.
39968         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
39969         Needed on glibc systems.
39970
39971 2008-03-06  Bruno Haible  <bruno@clisp.org>
39972
39973         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
39974         email address.
39975         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39976
39977 2008-03-06  Bruno Haible  <bruno@clisp.org>
39978
39979         * users.txt: Add libgnupdf.
39980
39981 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39982
39983         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
39984         (Header File Substitutes, Function Substitutes,
39985         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
39986         (Build robot for gnulib): Fix typo.
39987
39988 2008-03-06  Bruno Haible  <bruno@clisp.org>
39989
39990         * doc/gnulib-tool.texi (VCS Issues): Small updates.
39991         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39992
39993 2008-03-06  Bruno Haible  <bruno@clisp.org>
39994
39995         * doc/func.texi: New file, extracted from doc/gnulib.texi.
39996         * doc/gnulib.texi: Include it.
39997
39998 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39999
40000         * modules/func (License): Change license to unlimited; there was
40001         no LGPL parts in the module anyway.
40002
40003 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40004
40005         * modules/__func__: Renamed to modules/func.
40006         * modules/__func__-tests: Renamed to modules/func-tests.
40007         * tests/test-__func__.c: Renamed to tests/test-func.c.
40008         * m4/__func__.m4: Renamed to m4/func.m4.
40009         * doc/gnulib.texi (__func__): Section renamed to func.
40010         Suggested by Eric Blake <ebb9@byu.net>.
40011
40012 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40013
40014         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40015         about __func__.  Make example self-contained.  Suggested by Eric
40016         Blake <ebb9@byu.net>.
40017
40018         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40019         Suggested by Eric Blake <ebb9@byu.net>.
40020
40021 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40022
40023         * modules/__func__: New file.
40024         * modules/__func__-tests: New file.
40025         * tests/test-__func__.c: New file.
40026         * m4/__func__.m4: New file.
40027         * doc/gnulib.texi (__func__): Document __func__ module.
40028
40029 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40030
40031         * modules/byteswap (License): Re-license as LGPLv2+.
40032
40033 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40034
40035         * doc/Makefile: Add pdf target.
40036
40037 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40038
40039         * modules/inline (License): Use 'unlimited', since there are only
40040         *.m4 files in this module.
40041
40042 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40043             Bruno Haible  <bruno@clisp.org>
40044
40045         Add support for HP C 7.1 on OpenVMS 8.3.
40046         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40047
40048 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40049
40050         Update VMS specifics.
40051         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40052
40053 2008-03-02  Jim Meyering  <meyering@redhat.com>
40054
40055         Remove the last dependency on the "free" module.
40056         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40057         Reported by Bob Proulx.
40058
40059         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40060
40061         Remove useless "if" tests before free.  Deprecate "free" module.
40062         * doc/posix-functions/free.texi: Mention that this
40063         module is no longer useful.
40064         * modules/free (Notice): Say this module is obsolete.
40065         * modules/readutmp (Depends-on): Remove free.
40066         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40067         * lib/putenv.c (putenv): Likewise.
40068         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40069         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40070         * tests/test-c-strcasestr.c (main): Likewise.
40071         * tests/test-c-strstr.c (main): Likewise.
40072         * tests/test-mbscasestr1.c (main): Likewise.
40073         * tests/test-mbscasestr2.c (main): Likewise.
40074         * tests/test-mbsstr1.c (main): Likewise.
40075         * tests/test-mbsstr2.c (main): Likewise.
40076         * tests/test-memmem.c (main): Likewise.
40077         * tests/test-strcasestr.c (main): Likewise.
40078         * tests/test-striconv.c (main): Likewise.
40079         * tests/test-striconveh.c (main): Likewise.
40080         * tests/test-striconveha.c (main): Likewise.
40081         * tests/test-strstr.c (main): Likewise.
40082
40083         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40084
40085         bootstrap: sync from coreutils again
40086         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40087
40088 2008-03-01  Jim Meyering  <meyering@redhat.com>
40089
40090         bootstrap: sync from coreutils
40091         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40092         also when the target doesn't exist.
40093
40094 2008-03-01  Eric Blake  <ebb9@byu.net>
40095
40096         Fix bugs in last patch.
40097         * lib/memchr2.c (memchr2): Fix typo.
40098         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40099         extension.
40100         Reported by Bruce Korb.
40101
40102         New module 'memchr2'.
40103         * modules/memchr2: New file.
40104         * modules/memchr2-tests: Likewise.
40105         * lib/memchr2.h: Likewise.
40106         * lib/memchr2.c: Likewise, based on memchr.c.
40107         * tests/test-memchr2.c: New test.
40108         * MODULES.html.sh (String handling): Add memchr2.
40109
40110 2008-02-29  Bruno Haible  <bruno@clisp.org>
40111
40112         * modules/freadseek-tests: New file.
40113         * tests/test-freadseek.sh: New file.
40114         * tests/test-freadseek.c: New file.
40115
40116         New module 'freadseek'.
40117         * modules/freadseek: New file.
40118         * lib/freadseek.h: New file.
40119         * lib/freadseek.c: New file.
40120         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40121
40122 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40123
40124         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40125         wydawca.
40126
40127         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40128         program_invocation_name and program_invocation_short_name are
40129         present.
40130
40131 2008-02-28  Bruno Haible  <bruno@clisp.org>
40132
40133         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40134         * tests/test-freadptr.sh: Also test non-seekable stdin.
40135
40136 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40137
40138         * build-aux/bootstrap (source_base, m4_base)
40139         (doc_base, tests_base): New variables.
40140         (gnulib_tool_options): Do not hardcode base directories, use
40141         the above variables instead.
40142
40143 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40144
40145         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40146
40147 2008-02-28  Bruno Haible  <bruno@clisp.org>
40148
40149         * modules/freadptr-tests: New file.
40150         * tests/test-freadptr.sh: New file.
40151         * tests/test-freadptr.c: New file.
40152
40153         New module 'freadptr'.
40154         * modules/freadptr: New file.
40155         * lib/freadptr.h: New file.
40156         * lib/freadptr.c: New file.
40157         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40158
40159 2008-02-26  Karl Berry  <karl@freefriends.org>
40160
40161         Sync from Libtool:
40162         * libltdl/argz.c (argz_add, argz_count): New functions.
40163         * libltdl/argz.in.h: Declare them.
40164         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40165
40166 2008-02-22  Bruno Haible  <bruno@clisp.org>
40167
40168         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40169         is a pointer type.  Needed for HP-UX 10.
40170         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40171         * doc/posix-functions/gmtime_r.texi: Likewise.
40172         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40173
40174 2008-02-24  Bruno Haible  <bruno@clisp.org>
40175
40176         * modules/environ-tests: New file.
40177         * tests/test-environ.c: New file.
40178
40179         New module 'environ'.
40180         * modules/environ: New file.
40181         * lib/unistd.in.h (environ): New declaration.
40182         * m4/environ.m4: New file.
40183         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40184         after use.
40185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40186         HAVE_DECL_ENVIRON.
40187         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40188         HAVE_DECL_ENVIRON.
40189         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40190         wrong claim that 'environ' is missing on some systems.
40191         * modules/execute (Depends-on): Add environ.
40192         * lib/execute.c (environ): Remove fallback declaration.
40193         * modules/pipe (Depends-on): Add environ.
40194         * lib/pipe.c (environ): Remove fallback declaration.
40195         * modules/setenv (Depends-on): Add environ.
40196         * lib/setenv.c (environ): Remove fallback declaration.
40197         * modules/unsetenv (Depends-on): Add environ.
40198         * lib/unsetenv.c (environ): Remove fallback declaration.
40199         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40200         m4/environ.m4.
40201         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40202         (gl_PREREQ_UNSETENV): Likewise.
40203
40204 2008-02-24  Bruno Haible  <bruno@clisp.org>
40205
40206         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40207
40208 2008-02-20  Bob Proulx  <bob@proulx.com>
40209
40210         Enable use of older two part flavor 'git describe'.
40211         * build-aux/git-version-gen: If using the older two part flavor of
40212         git version then recreate the third part now present in the
40213         newer three part flavor of git describe.
40214
40215 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40216
40217         * lib/fts.c (fts_build): Typo correction to comment.
40218
40219 2008-02-17  Bruno Haible  <bruno@clisp.org>
40220
40221         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40222         generating no-op conflicts.
40223
40224 2008-02-17  Bruno Haible  <bruno@clisp.org>
40225
40226         Speed up by 10%.
40227         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40228         result_entries, rather than an index-based loop.
40229
40230 2008-02-17  Bruno Haible  <bruno@clisp.org>
40231
40232         Speed up by 25%.
40233         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40234         'hashcode_cached'.
40235         (entry_create): New function.
40236         (entry_hashcode): Use the cached hashcode if possible.
40237         (read_changelog_file, try_split_merged_entry): Use entry_create.
40238
40239 2008-02-17  Bruno Haible  <bruno@clisp.org>
40240
40241         Speed up from O(n^2) to O(n) for long ChangeLog files.
40242         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40243         (read_changelog_file): Change implementation of entries_reversed list
40244         to rbtreehash.
40245         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40246
40247 2008-02-17  Bruno Haible  <bruno@clisp.org>
40248
40249         New option --split-merged-entry.
40250         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40251         (find_paragraph_end, try_split_merged_entry): New functions.
40252         (long_options): Add option --split-merged-entry.
40253         (usage): Document option --split-merged-entry.
40254         (main): Implement option --split-merged-entry.
40255         Reported by Eric Blake.
40256
40257 2008-02-17  Bruno Haible  <bruno@clisp.org>
40258
40259         * lib/git-merge-changelog.c: Include c-strstr.h.
40260         (main): Support the "git pull --rebase" situation.
40261         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40262         Reported by Eric Blake.
40263
40264 2008-02-16  Eric Blake  <ebb9@byu.net>
40265
40266         Avoid doubling \ in common case of "c-maybe" quoting style.
40267         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40268         eliding outer quotes.
40269         * lib/quotearg.h: Document this.
40270         * tests/test-quotearg.c (result_strings, inputs, results_g)
40271         (flag_results, locale_results): Test it by adding a new string to
40272         each test group.
40273         (compare_strings): Test new string.
40274
40275 2008-02-13  Eric Blake  <ebb9@byu.net>
40276
40277         Avoid trigraph quoting in default output.
40278         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40279         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40280         unless explicitly requested.
40281         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40282
40283 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40284
40285         Don't rely on signed integer overflowing to negative value.
40286         * lib/getugroups.c (getugroups): Include <limits.h>.
40287         Instead, compare against INT_MAX, and increment only if the test passes.
40288
40289 2008-02-13  Jim Meyering  <meyering@redhat.com>
40290         and Eric Blake  <ebb9@byu.net>
40291
40292         Avoid shadowing warning and compile errors on Linux.
40293         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40294         forwarding macros on Linux.
40295         (dcgettext): Define a stub, for Linux.
40296         (results_g, main): Avoid warnings.
40297
40298 2008-02-12  Eric Blake  <ebb9@byu.net>
40299
40300         Silence warning in last patch.
40301         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40302
40303         Quotearg part 4: add tests, fix c-maybe colon quoting.
40304         * lib/quotearg.h: Improve documentation.
40305         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40306         escapes when adding outer quotes.  When quoting trigraphs, use
40307         valid C notation.  When quoting NUL, omit extra characters if next
40308         character is not digit.  Alter prototype.
40309         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40310         callers.
40311         * modules/quotearg-tests: New module.
40312         * tests/test-quotearg.c: New test.
40313
40314 2008-02-07  Eric Blake  <ebb9@byu.net>
40315
40316         Quotearg part 3: add flag to control outer quote elision.
40317         * lib/quotearg.h (c_maybe_quoting_style): New style.
40318         (enum quoting_flags): Better documentation of flags.
40319         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40320         c-maybe style.
40321         (quotearg_buffer_restyled): Handle new flag to elide outer
40322         quotes.
40323
40324         Quotearg part 2: add flag that can control NUL elision.
40325         * lib/quotearg.h (set_quoting_flags): New prototype.
40326         * lib/quotearg.c (struct quoting_options): Add flag field.
40327         (set_quoting_flags): New function.
40328         (quotearg_buffer_restyled): Add flags parameter.
40329         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40330         (quotearg_n_options): Set the flag, since length cannot be
40331         returned.
40332         (quoting_options_from_style): Default flags correctly.
40333
40334         Quotearg part 1: more wrappers, restore quotearg_char state.
40335         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40336         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40337         (quotearg_colon_mem): New wrappers.
40338         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40339         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40340         functions.
40341         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40342         (quotearg_colon_mem): New functions.
40343
40344 2008-02-11  Bruno Haible  <bruno@clisp.org>
40345
40346         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40347         library in the current directory: it does not work with parallel make.
40348         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40349
40350 2008-02-11  Bruno Haible  <bruno@clisp.org>
40351
40352         * .gitattributes: New file.
40353
40354 2008-02-11  Jim Meyering  <meyering@redhat.com>
40355
40356         useless-if-before-free: Fix reversed exit values.
40357         * build-aux/useless-if-before-free: Use correct values
40358         for EXIT_MATCH and EXIT_NO_MATCH.
40359
40360         * build-aux/useless-if-before-free: Close stdout carefully.
40361
40362 2008-02-10  Bruno Haible  <bruno@clisp.org>
40363
40364         New module 'git-merge-changelog'.
40365         * modules/git-merge-changelog: New file.
40366         * lib/git-merge-changelog.c: New file.
40367
40368 2008-02-10  Jim Meyering  <meyering@redhat.com>
40369
40370         useless-if-before-free: New option: --list (-l).
40371
40372         useless-if-before-free: Don't exit immediately upon open failure.
40373         * build-aux/useless-if-before-free: Exit 2 for errors.
40374         Upon failure to open a file, don't exit immediately.
40375         Rather, just warn and continue with any remaining files.
40376
40377 2008-02-10  Bruno Haible  <bruno@clisp.org>
40378
40379         New abstract list operation 'node_set_value'.
40380         * lib/gl_list.h (gl_list_node_set_value): New function.
40381         (struct gl_list_implementation): New field node_set_value.
40382         * lib/gl_list.c (gl_list_node_set_value): New function.
40383         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40384         (gl_array_list_implementation): Update.
40385         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40386         (gl_carray_list_implementation): Update.
40387         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40388         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40389         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40390         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40391         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40392         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40393         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40394         Update.
40395         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40396         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40397         (gl_sublist_list_implementation): Update.
40398
40399 2008-02-10  Bruno Haible  <bruno@clisp.org>
40400
40401         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40402         Needed when ELEMENT is #defined to 'some_type *'.
40403
40404 2008-02-10  Jim Meyering  <meyering@redhat.com>
40405
40406         New script and module: useless-if-before-free
40407         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40408         * build-aux/useless-if-before-free: New file.
40409         * modules/useless-if-before-free: New file.
40410
40411         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40412
40413         xstrtol_error: Fix typo.
40414         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40415         s/exit_failure/exit_status/.
40416
40417 2008-02-09  Jim Meyering  <meyering@redhat.com>
40418
40419         New script and module: gitlog-to-changelog
40420         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
40421         * modules/gitlog-to-changelog: New file.
40422         * build-aux/gitlog-to-changelog: New file.
40423
40424 2008-02-08  Jim Meyering  <meyering@redhat.com>
40425
40426         Avoid two "parameter unused" warnings.
40427         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
40428         Mark "st" as used.
40429
40430         Use "git COMMAND", not "git-COMMAND".
40431         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
40432         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
40433         * build-aux/git-version-gen: Use "git status", not "git-status".
40434
40435 2008-02-07  Bruno Haible  <bruno@clisp.org>
40436
40437         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
40438         Avoids a crash on Windows Vista.
40439         Reported by Adam Strzelecki <ono@java.pl> via
40440         Simon Josefsson <simon@josefsson.org>.
40441
40442 2008-02-06  Bruno Haible  <bruno@clisp.org>
40443
40444         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
40445         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
40446         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
40447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
40448         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40449         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40450         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
40451         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
40452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40453         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40454         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40455         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40456         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40457         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40458         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40459         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
40460         left-adjust flag.
40461         * tests/test-snprintf-posix.h (test_function): Likewise.
40462         * tests/test-sprintf-posix.h (test_function): Likewise.
40463         * tests/test-vasprintf-posix.c (test_function): Likewise.
40464         * doc/posix-functions/fprintf.texi: Update.
40465         * doc/posix-functions/printf.texi: Update.
40466         * doc/posix-functions/snprintf.texi: Update.
40467         * doc/posix-functions/sprintf.texi: Update.
40468         * doc/posix-functions/vfprintf.texi: Update.
40469         * doc/posix-functions/vprintf.texi: Update.
40470         * doc/posix-functions/vsnprintf.texi: Update.
40471         * doc/posix-functions/vsprintf.texi: Update.
40472         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40473
40474 2008-02-06  Bruno Haible  <bruno@clisp.org>
40475
40476         Fix bug introduced on 2008-01-26.
40477         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
40478
40479 2008-02-06  Bruno Haible  <bruno@clisp.org>
40480
40481         Fix bug introduced on 2007-06-10.
40482         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
40483         !NEED_PRINTF_FLAG_ZERO.
40484
40485 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
40486
40487         getloadavg: use libperfstat on AIX5
40488         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
40489
40490 2008-02-03  Bruno Haible  <bruno@clisp.org>
40491
40492         * lib/diffseq.h: Add comments about required #includes.
40493         Reported by Michael Biggs <gnulib@doubleplum.net>.
40494
40495 2008-02-01  Bruno Haible  <bruno@clisp.org>
40496
40497         * users.txt: Add gnuit.
40498
40499 2008-01-31  Bruno Haible  <bruno@clisp.org>
40500
40501         * lib/md4.c (set_uint32): Mark as inline.
40502         * lib/md5.c (set_uint32): Likewise.
40503         * lib/sha1.c (set_uint32): Likewise.
40504         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
40505         * m4/md5.m4 (gl_MD5): Likewise.
40506         * m4/sha1.m4 (gl_SHA1): Likewise.
40507
40508 2008-01-31  Jim Meyering  <meyering@redhat.com>
40509
40510         Use "sizeof VAR", rather than a literal "4".
40511         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
40512         * lib/md4.c (md4_read_ctx): Likewise.
40513         * lib/sha1.c (sha1_read_ctx): Likewise.
40514
40515 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40516
40517         * tests/test-sha1.c: New file, based on test-md5.c.
40518
40519         * modules/crypto/sha1-tests: New file.
40520
40521 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40522
40523         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
40524
40525 2008-01-31  Jim Meyering  <meyering@redhat.com>
40526
40527         Prefer "sizeof v" over the equivalent "4".
40528         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
40529         * lib/md5.c (set_uint32): Likewise.
40530         * lib/sha1.c (set_uint32): Likewise.
40531
40532 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40533
40534         * lib/sha1.c (set_uint32): Mark function as static.
40535
40536 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40537
40538         md2: clarify comments to say that alignment is not required.
40539         * lib/md2.h: Remove warning about alignment in comment.
40540         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
40541         never been required.
40542
40543 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40544
40545         md4: adapt alignment constraint fix from sha1.
40546         * lib/md4.c (set_uint32): New function, from sha1.c
40547         (md4_read_ctx): Use it.
40548         (md4_finish_ctx): Doc fix.
40549         * lib/md4.h: Doc fix.
40550
40551 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40552
40553         md5: adapt alignment constraint fix from sha1.
40554         * lib/md5.c (set_uint32): New function, from sha1.c
40555         (md5_read_ctx): Use it.
40556         (md5_finish_ctx): Doc fix.
40557         * lib/md5.h: Doc fix.
40558
40559 2008-01-30  Peter Palfrader  <weasel@debian.org>
40560
40561         sha1: remove the result buffer alignment constraint
40562         * lib/sha1.c (set_uint32): New function.
40563         (sha1_read_ctx): Rewrite to remove the result buffer alignment
40564         constraint.
40565         (sha1_finish_ctx): Remove comment warning about alignment constraint.
40566         * lib/sha1.h: Likewise.
40567
40568 2008-01-30  Andreas Schwab  <schwab@suse.de>
40569             Bruno Haible  <bruno@clisp.org>
40570
40571         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
40572         correct definition of LDBL_MIN_EXP.
40573
40574 2008-01-30  Karl Berry  <karl@gnu.org>
40575
40576         * config/srclist-update: try to preserve x bit on updates.
40577         * config/srclistvars.sh: update for karl.
40578
40579 2008-01-29  Jim Meyering  <meyering@redhat.com>
40580
40581         vasnprintf.c: Avoid warning about unused label
40582         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
40583         "overflow" label definition and associated code with the
40584         same cpp condition that guards the sole use of that label.
40585
40586 2008-01-26  Bruno Haible  <bruno@clisp.org>
40587
40588         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
40589         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
40590         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
40591         * lib/isnanl-nolibm.h (isnanl): Likewise.
40592         Reported by Paul Eggert <eggert@cs.ucla.edu>.
40593
40594 2008-01-26  Bruno Haible  <bruno@clisp.org>
40595
40596         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
40597         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
40598
40599 2008-01-26  Bruno Haible  <bruno@clisp.org>
40600
40601         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
40602         GCC >= 4.0 built-in.
40603         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
40604
40605 2008-01-26  Bruno Haible  <bruno@clisp.org>
40606
40607         Rename isnan, applicable to 'double' only, to isnand.
40608         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
40609         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
40610         (configure.ac): Update.
40611         (Include): Replace "isnan.h" with "isnand.h".
40612         * m4/isnand.m4: Renamed from m4/isnan.m4.
40613         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
40614         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
40615         instead of isnan.c.
40616         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
40617         instead of HAVE_ISNAN_IN_LIBC.
40618         (isnand): Renamed from isnan.
40619         * lib/isnand.c: New file.
40620         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
40621         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
40622         (Makefile.am): Update.
40623         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
40624         Include isnand.h instead of isnan.h.
40625         (main): Test isnand instead of isnan.
40626         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
40627         isnan-nolibm.
40628         * modules/frexp (Depends-on): Likewise.
40629         * modules/frexp-tests (Depends-on): Likewise.
40630         * modules/frexp-nolibm (Depends-on): Likewise.
40631         * modules/frexp-nolibm-tests (Depends-on): Likewise.
40632         * modules/isfinite (Depends-on): Likewise.
40633         * modules/round-tests (Depends-on): Likewise.
40634         * modules/signbit (Depends-on): Likewise.
40635         * modules/signbit-tests (Depends-on): Likewise.
40636         * modules/snprintf-posix (Depends-on): Likewise.
40637         * modules/sprintf-posix (Depends-on): Likewise.
40638         * modules/trunc-tests (Depends-on): Likewise.
40639         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40640         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40641         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40642         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40643         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40644         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40645         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40646         * modules/vasnprintf-posix (Depends-on): Likewise.
40647         * modules/vasprintf-posix (Depends-on): Likewise.
40648         * modules/vfprintf-posix (Depends-on): Likewise.
40649         * modules/vsnprintf-posix (Depends-on): Likewise.
40650         * modules/vsprintf-posix (Depends-on): Likewise.
40651         * lib/frexp.c: Include isnand.h instead of isnan.h.
40652         (ISNAN): Set to isnand instead of isnan.
40653         * lib/isfinite.c: Include isnand.h instead of isnan.h.
40654         (gl_isfinited): Use isnand instead of isnan.
40655         * lib/signbitd.c: Include isnand.h instead of isnan.h.
40656         (gl_signbitd): Use isnand instead of isnan.
40657         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
40658         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
40659         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
40660         (main): Use isnand instead of isnan.
40661         * tests/test-round1.c: Include isnand.h.
40662         (main): Use isnand instead of isnan.
40663         * tests/test-round2.c: Include isnand.h instead of isnan.h.
40664         (ISNAN): Set to isnand instead of isnan.
40665         * tests/test-trunc1.c: Include isnand.h.
40666         (main): Use isnand instead of isnan.
40667         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
40668         (equal): Use isnand instead of isnan.
40669         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
40670         isnand-nolibm.
40671         * NEWS: Mention the change.
40672
40673 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40674             Bruno Haible  <bruno@clisp.org>
40675
40676         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
40677         the GCC builtins for signbits are present and set
40678         REPLACE_SIGNBIT_USING_GCC if so.
40679         * lib/math.in.h (signbit): Define using GCC builtins if
40680         REPLACE_SIGNBIT_USING_GCC is set.
40681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
40682         REPLACE_SIGNBIT_USING_GCC.
40683         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
40684
40685 2008-01-25  Jim Meyering  <meyering@redhat.com>
40686
40687         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
40688         * lib/poll.c: Include <config.h>, not "config.h".
40689         * tests/test-getaddrinfo.c: Likewise.
40690
40691 2008-01-25  Simon Josefsson  <simon@josefsson.org>
40692
40693         * modules/sockets-tests: New file.
40694
40695 2008-01-24  Simon Josefsson  <simon@josefsson.org>
40696
40697         * modules/sockets: New module, can be used to call WSA_Startup and
40698         WSA_Cleanup when needed.
40699
40700         * lib/sockets.h, lib/sockets.c: New files.
40701
40702         * m4/sockets.m4: New file.
40703
40704         * tests/test-sockets.c: New file.
40705
40706 2008-01-19  Bruno Haible  <bruno@clisp.org>
40707
40708         * doc/posix-headers: Renamed from doc/headers.
40709         * doc/posix-functions: Renamed from doc/functions.
40710         * doc/gnulib.texi: Update.
40711
40712 2008-01-19  Bruno Haible  <bruno@clisp.org>
40713
40714         * doc/glibc-functions/strcasestr.texi: Include contents of
40715         doc/functions/strcasestr.texi, fixing the list of platforms.
40716         * doc/functions/strcasestr.texi: Remove file.
40717
40718 2008-01-19  Bruno Haible  <bruno@clisp.org>
40719
40720         * doc/glibc-functions/memmem.texi: Include contents of
40721         doc/functions/memmem.texi.
40722         * doc/functions/memmem.texi: Remove file.
40723
40724 2008-01-18  Bruno Haible  <bruno@clisp.org>
40725
40726         * doc/glibc-functions/*.texi: New files.
40727         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
40728         to use the new files.
40729
40730 2008-01-17  Bruno Haible  <bruno@clisp.org>
40731
40732         * tests/test-gethostname.c (main): Fix printf statement.
40733
40734 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40735
40736         * modules/gethostname-tests: New file.
40737
40738         * tests/test-gethostname.c: New file.
40739
40740 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40741
40742         * lib/gethostname.c: Include string.h unconditionally, strncpy is
40743         used by the UNAME case.  Reported by Bruno Haible
40744         <bruno@clisp.org>.
40745
40746 2008-01-17  Eric Blake  <ebb9@byu.net>
40747
40748         Convert c-strcasestr to be more efficient.
40749         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
40750         (Depends-on): Add c-strcase, remove malloca, strnlen.
40751         * tests/test-c-strcasestr.c (main): Enhance test.
40752         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
40753
40754 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40755
40756         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
40757         Use it in creating po/Makevars.
40758
40759 2008-01-15  Simon Josefsson  <simon@josefsson.org>
40760
40761         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
40762         Applications that requires it should initialize libgcrypt
40763         manually.
40764
40765 2008-01-16  Simon Josefsson  <simon@josefsson.org>
40766
40767         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
40768
40769 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
40770
40771         Fix problem with getdate on mingw32 reported by Simon Josefsson
40772         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
40773         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
40774         tzname", when deciding whether to declare tzname.
40775         * lib/strftime.c (tzname): Likewise.
40776
40777 2008-01-15  Bruno Haible  <bruno@clisp.org>
40778
40779         Work around a MacOS X 10.5 bug in frexpl().
40780         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
40781         * doc/functions/frexpl.texi: Document the bug.
40782         Reported by Elias Pipping <pipping@gentoo.org>.
40783
40784 2008-01-14  Eric Blake  <ebb9@byu.net>
40785
40786         Touch up previous patch.
40787         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
40788         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
40789
40790         Convert strcasestr module to use Two-Way algorithm.
40791         * modules/strcasestr-simple: New module, based on the old
40792         strcasestr, but with Two-Way rather than KMP.
40793         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
40794         * lib/string.in.h (rpl_strcasestr): Declare.
40795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
40796         performance.
40797         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
40798         * modules/string (Makefile.am): Support strcasestr.
40799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40800         * modules/strcasestr-tests (Depends-on): Check for alarm.
40801         * tests/test-strcasestr.c: Augment test.
40802         * lib/str-two-way.h: Clean up stray macro.
40803         * NEWS: Document new module.
40804         * MODULES.html.sh (string handling): Likewise.
40805         * doc/functions/strcasestr.texi: New file.
40806         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
40807         here, since it is not a POSIX function.
40808
40809 2008-01-14  Colin Watson  <cjwatson@debian.org>
40810             Bruno Haible  <bruno@clisp.org>
40811
40812         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
40813         works fine; if not, set REPLACE_STRSIGNAL.
40814         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
40815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40816         REPLACE_STRSIGNAL.
40817         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
40818         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
40819         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
40820
40821 2008-01-14  Bruno Haible  <bruno@clisp.org>
40822
40823         * modules/strsignal (Include): Change to <string.h>.
40824
40825 2008-01-14  Colin Watson  <cjwatson@debian.org>
40826
40827         * modules/argp (Notice): Add a notice recommending to change
40828         XGETTEXT_OPTIONS.
40829         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
40830
40831 2008-01-13  Colin Watson  <cjwatson@debian.org>
40832
40833         * modules/strsignal-tests: New file.
40834         * tests/test-strsignal.c: New file.
40835
40836         * lib/strsignal.c: New file, from glibc with modifications.
40837         * lib/siglist.h: New file, from glibc with modifications.
40838         * lib/string.in.h (strsignal): New declaration.
40839         * m4/strsignal.m4: New file.
40840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40841         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
40842         * modules/strsignal: New file.
40843         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
40844         HAVE_DECL_STRSIGNAL.
40845
40846 2008-01-13  Bruno Haible  <bruno@clisp.org>
40847
40848         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
40849         locale encoding is not ASCII. Needed for OpenBSD 4.0.
40850         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40851         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40852
40853 2008-01-13  Bruno Haible  <bruno@clisp.org>
40854
40855         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
40856         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
40857         * lib/argp.h (__attribute__): Likewise.
40858         * lib/c-stack.c (__attribute__): Likewise.
40859         * lib/error.h (__attribute__): Likewise.
40860         * lib/fts.c (__attribute__): Likewise.
40861         * lib/openat.h (__attribute__): Likewise.
40862         * lib/stdio.in.h (__attribute__): Likewise.
40863         * lib/string.in.h (__attribute__): Likewise.
40864         * lib/utimens.c (__attribute__): Likewise.
40865         * lib/vasnprintf.h (__attribute__): Likewise.
40866         * lib/xalloc.h (__attribute__): Likewise.
40867         * lib/xprintf.h (__attribute__): Likewise.
40868         * lib/xstrtol.h (__attribute__): Likewise.
40869         * lib/xvasprintf.h (__attribute__): Likewise.
40870
40871 2008-01-12  Bruno Haible  <bruno@clisp.org>
40872
40873         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
40874         * doc/glibc-headers/a.out.texi: New file.
40875         * doc/glibc-headers/aliases.texi: New file.
40876         * doc/glibc-headers/alloca.texi: New file.
40877         * doc/glibc-headers/ar.texi: New file.
40878         * doc/glibc-headers/argp.texi: New file.
40879         * doc/glibc-headers/argz.texi: New file.
40880         * doc/glibc-headers/byteswap.texi: New file.
40881         * doc/glibc-headers/crypt.texi: New file.
40882         * doc/glibc-headers/endian.texi: New file.
40883         * doc/glibc-headers/envz.texi: New file.
40884         * doc/glibc-headers/err.texi: New file.
40885         * doc/glibc-headers/error.texi: New file.
40886         * doc/glibc-headers/execinfo.texi: New file.
40887         * doc/glibc-headers/fpu_control.texi: New file.
40888         * doc/glibc-headers/fstab.texi: New file.
40889         * doc/glibc-headers/fts.texi: New file.
40890         * doc/glibc-headers/getopt.texi: New file.
40891         * doc/glibc-headers/ieee754.texi: New file.
40892         * doc/glibc-headers/ifaddrs.texi: New file.
40893         * doc/glibc-headers/libintl.texi: New file.
40894         * doc/glibc-headers/mcheck.texi: New file.
40895         * doc/glibc-headers/mntent.texi: New file.
40896         * doc/glibc-headers/obstack.texi: New file.
40897         * doc/glibc-headers/paths.texi: New file.
40898         * doc/glibc-headers/printf.texi: New file.
40899         * doc/glibc-headers/pty.texi: New file.
40900         * doc/glibc-headers/resolv.texi: New file.
40901         * doc/glibc-headers/shadow.texi: New file.
40902         * doc/glibc-headers/sysexits.texi: New file.
40903         * doc/glibc-headers/ttyent.texi: New file.
40904
40905 2008-01-12  Jim Meyering  <meyering@redhat.com>
40906
40907         announce-gen: emit Gnulib's git-based version string.
40908         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
40909         New option --gnulib-version=V, where V is expected to be
40910         the output of running git describe in the gnulib directory.
40911         (get_tool_versions): Request feedback on xdelta.  I suspect it's
40912         not useful, and plan to stop publishing an xdelta file with each
40913         coreutils release.
40914
40915         * build-aux/announce-gen: Also check for lzma-compressed files.
40916
40917 2008-01-11  Bruno Haible  <bruno@clisp.org>
40918
40919         * tests/test-memmem.c (main): Increase maximum allowed time.
40920         * tests/test-strstr.c (main): Likewise.
40921
40922 2008-01-11  Bruno Haible  <bruno@clisp.org>
40923
40924         * doc/functions/memmem.texi: Add more precisions about platforms.
40925         * doc/functions/strstr.texi: Likewise.
40926
40927 2008-01-10  Eric Blake  <ebb9@byu.net>
40928
40929         * m4/strstr.m4: Delete cruft from copy-n-paste.
40930         Reported by Bruno Haible.
40931
40932 2008-01-10  Bruno Haible  <bruno@clisp.org>
40933
40934         Make c-strstr rely on strstr.
40935         * lib/c-strstr.c: Don't include str-kmp.h.
40936         (c_strstr): Define in terms of strstr.
40937         * modules/c-strstr (Files): Remove lib/str-kmp.h.
40938         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
40939
40940 2008-01-10  Bruno Haible  <bruno@clisp.org>
40941
40942         * doc/gnulib.texi (String Functions in C Locale): New section.
40943         * doc/c-ctype.texi: New file.
40944         * doc/c-strcase.texi: New file.
40945         * doc/c-strcaseeq.texi: New file.
40946         * doc/c-strcasestr.texi: New file.
40947         * doc/c-strstr.texi: New file.
40948         * doc/c-strtod.texi: New file.
40949         * doc/c-strtold.texi: New file.
40950
40951 2008-01-10  Eric Blake  <ebb9@byu.net>
40952
40953         * lib/relocatable.h: Fix a comment.
40954
40955 2008-01-10  Eric Blake  <ebb9@byu.net>
40956
40957         Share two-way algorithm.
40958         * lib/str-two-way.h: New file, merged from...
40959         * lib/memmem.c: ...here...
40960         * lib/strstr.c: ...and here.
40961         * modules/memmem (Files): Use it.
40962         * modules/strstr (Files): Likewise.
40963
40964         Avoid quadratic strstr implementations.
40965         * lib/strstr.c: New file.
40966         * m4/strstr.m4: Likewise.
40967         * modules/strstr: Likewise.
40968         * modules/strstr-tests: Likewise.
40969         * tests/test-strstr.c: Likewise.
40970         * lib/string.in.h (rpl_strstr): Declare.
40971         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
40972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
40973         * modules/string (Makefile.am): Likewise.
40974         * MODULES.html.sh (string handling): Mention new module.
40975         * doc/functions/strstr.texi (strstr): Document the bug.
40976
40977 2008-01-10  Bruno Haible  <bruno@clisp.org>
40978
40979         * lib/relocatable.h (relocate): State whether result is freshly
40980         allocated or not.
40981         * lib/relocatable.c (relocate): Return a freshly allocated string
40982         instead of a pointer to a privately held string.
40983         Reported by Sylvain Beucler <beuc@gnu.org>.
40984
40985 2008-01-10  Colin Watson  <cjwatson@debian.org>
40986
40987         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
40988         s/S_ISNLK/S_ISLNK/.
40989
40990 2008-01-09  Bruno Haible  <bruno@clisp.org>
40991
40992         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
40993         and other files.
40994         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
40995         if it's only a guess.
40996         * modules/memmem: Simplify by depending on memmem-simple.
40997
40998 2008-01-09  Bruno Haible  <bruno@clisp.org>
40999
41000         Work around OpenBSD 4.0 tdelete() bug.
41001         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41002         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41003         macros and don't redefine the enum values.
41004         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41005         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41006         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41007
41008 2008-01-09  Bruno Haible  <bruno@clisp.org>
41009
41010         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41011         (main): Don't perform the tests if setlocale did not install a UTF-8
41012         locale. Needed on OpenBSD 4.0.
41013         * modules/wcwidth-tests (Depends-on): Add localcharset.
41014
41015 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41016
41017         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41018         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41019         * NEWS: announce this.
41020         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41021
41022 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41023         and Eric Blake  <ebb9@byu.net>
41024
41025         Add memmem-simple module.
41026         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41027         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41028         * modules/memmem-simple: New file.
41029         * modules/memmem (Description): Tweak.
41030         * MODULES.html.sh (string handling): Mention new module.
41031         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41032         addressed by memmem-simple.
41033         * NEWS: Document the difference.
41034
41035 2008-01-09  Eric Blake  <ebb9@byu.net>
41036
41037         Give gcc some memmem optimization hints.
41038         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41039         (strcasestr): Declare as pure.
41040         * modules/memmem (Maintainer): Claim my implementation.
41041
41042 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41043
41044         Support AIX 6.1 and higher.
41045         * build-aux/config.libpath: Likewise.
41046         * build-aux/config.rpath: Likewise.
41047
41048 2008-01-08  Jim Meyering  <meyering@redhat.com>
41049             Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41052         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41053         Reported by Peter Fales in
41054         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41055
41056 2008-01-08  Bruno Haible  <bruno@clisp.org>
41057
41058         * modules/unictype/category-of (Depends-on): Add
41059         unictype/category-none.
41060         * modules/unictype/category-and-tests (Depends-on): Add
41061         unictype/category-{L,N,Lu,Nd}.
41062         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41063         * modules/unictype/category-or-tests (Depends-on): Add
41064         unictype/category-{L,N}.
41065         * modules/unictype/category-name-tests (Depends-on): Add
41066         unictype/category-{Z,Nl}.
41067         Reported by Simon Josefsson.
41068
41069 2008-01-08  Bruno Haible  <bruno@clisp.org>
41070
41071         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41072         convention better.
41073         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41074         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41075         Reported by Peter Miller <millerp@canb.auug.org.au>.
41076
41077 2008-01-08  Eric Blake  <ebb9@byu.net>
41078
41079         Rewrite memmem to guarantee linear complexity without malloc.
41080         * lib/memmem.c (memmem): Use Two-Way rather than
41081         Knuth-Morris-Pratt, to allow O(1) space usage.
41082         (critical_factorization, two_way_short_needle)
41083         (two_way_long_needle): New functions.
41084         (knuth_morris_pratt): Delete.
41085         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41086         Add stdint.
41087         * tests/test-memmem.c (main): Add tests for periodic needle and
41088         sublinear performance.
41089         * doc/functions/memmem.texi (memmem): Document other deficiencies
41090         in cygwin and older glibc.
41091
41092 2008-01-08  Bruno Haible  <bruno@clisp.org>
41093
41094         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41095         augmentation.
41096
41097 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41098
41099         Add a configure time option: --disable-acl.
41100         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41101         AC_ARG_ENABLE(acl).
41102
41103 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41104
41105         * tests/test-localename.c: Don't include obsolete "setenv.h".
41106
41107         * modules/localename-tests (Depends-on): Need unsetenv.
41108
41109 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41110
41111         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41112
41113 2008-01-06  Colin Watson  <cjwatson@debian.org>
41114
41115         * users.txt: Add man-db.
41116
41117 2008-01-07  Bruno Haible  <bruno@clisp.org>
41118
41119         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41120         previous section name.
41121
41122 2008-01-07  Bruno Haible  <bruno@clisp.org>
41123
41124         * lib/progname.c (set_program_name): Don't strip off a leading
41125         "lt-" prefix outside a .libs directory.
41126         Suggested by Paul Eggert.
41127
41128 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41129             Bruno Haible  <bruno@clisp.org>
41130
41131         Improve memory cleanup in 'relocatable' module.
41132         * lib/relocatable.h (compute_curr_prefix): Change return type to
41133         'char *'.
41134         * lib/relocatable.c (compute_curr_prefix): Change return type to
41135         'char *'. Free curr_installdir after use.
41136         (relocate): Free curr_prefix_better after use.
41137         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41138
41139 2008-01-01  Bruno Haible  <bruno@clisp.org>
41140
41141         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41142         failure on older glibc systems.
41143         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41144
41145 2008-01-05  Eric Blake  <ebb9@byu.net>
41146
41147         Avoid quadratic system memmem.
41148         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41149         Reported by Ralf Wildenhues.
41150
41151         Fix memmem test for mingw.
41152         * modules/memmem-tests (configure.ac): Check for alarm.
41153         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41154         it.
41155         * doc/functions/memmem.texi: New file.
41156         * doc/gnulib.texi (Function Substitutes): Add memmem.
41157         Reported by Bruno Haible.
41158
41159 2008-01-04  Bruno Haible  <bruno@clisp.org>
41160
41161         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41162         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41163         gl_HEADER_STRING_H_DEFAULTS.
41164
41165 2008-01-04  Eric Blake  <ebb9@byu.net>
41166
41167         Shorten duration of memmem test.
41168         * tests/test-memmem.c (main): Use alarm to declare failure if test
41169         is taking too long.
41170         Reported by Ralf Wildenhues.
41171
41172 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41173
41174         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41175         string, needed by strerror.
41176
41177 2008-01-03  Colin Watson  <cjwatson@debian.org>
41178             Bruno Haible  <bruno@clisp.org>
41179
41180         * doc/gnulib-tool.texi (Localization): New section.
41181
41182 2008-01-02  Bruno Haible  <bruno@clisp.org>
41183
41184         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41185         variables to 'unsigned char *' type.
41186         Reported by Paul Eggert.
41187
41188 2008-01-02  Jim Meyering  <jim@meyering.net>
41189
41190         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41191
41192 2007-12-31  Jim Meyering  <jim@meyering.net>
41193
41194         Avoid use of private FTS type name.
41195         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41196
41197 2007-12-30  Karl Berry  <karl@gnu.org>
41198
41199         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41200         work around defect in Texinfo and/or the standalone Info browser.
41201
41202 2007-12-30  Bruno Haible  <bruno@clisp.org>
41203
41204         Unify 5 copies of the KMP code.
41205         * lib/str-kmp.h: New file.
41206         * lib/c-strcasestr.c: Include str-kmp.h.
41207         (knuth_morris_pratt): Remove function.
41208         (c_strcasestr): Update.
41209         * lib/c-strstr.c: Include str-kmp.h.
41210         (knuth_morris_pratt): Remove function.
41211         (c_strcasestr): Update.
41212         * lib/mbscasestr.c: Include str-kmp.h.
41213         (knuth_morris_pratt_unibyte): Remove function.
41214         * lib/mbsstr.c: Include str-kmp.h.
41215         (knuth_morris_pratt_unibyte): Remove function.
41216         * lib/strcasestr.c: Include str-kmp.h.
41217         (knuth_morris_pratt): Remove function.
41218         (strcasestr): Update.
41219         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41220         * modules/c-strstr (Files): Likewise.
41221         * modules/mbscasestr (Files): Likewise.
41222         * modules/mbsstr (Files): Likewise.
41223         * modules/strcasestr (Files): Likewise.
41224         Suggested by Paul Eggert.
41225
41226 2007-12-30  Bruno Haible  <bruno@clisp.org>
41227
41228         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41229         defined.
41230
41231 2007-12-30  Bruno Haible  <bruno@clisp.org>
41232
41233         * lib/xmalloca.h: Include xalloc.h.
41234         (xnmalloca): New macro.
41235
41236 2007-12-30  Bruno Haible  <bruno@clisp.org>
41237
41238         * lib/malloca.h (nmalloca): New macro.
41239         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41240         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41241         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41242         knuth_morris_pratt_multibyte): Likewise.
41243         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41244         knuth_morris_pratt_multibyte): Likewise.
41245         * lib/memmem.c (knuth_morris_pratt): Likewise.
41246         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41247
41248 2007-12-25  Bruno Haible  <bruno@clisp.org>
41249
41250         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41251         * lib/glob.c: Don't include openat.h.
41252         (link_exists2_p): Add back the code that deals with the
41253         !GLOB_ALTDIRFUNC case.
41254         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41255         let it do the filename concatenation.
41256         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41257         * modules/glob (Depends-on): Remove openat.
41258
41259 2007-12-31  Bruno Haible  <bruno@clisp.org>
41260
41261         * modules/dirfd (License): Change to LGPLv2+.
41262         Approved by Jim Meyering.
41263
41264 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41265
41266         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41267         when multiplying M by sizeof (size_t).
41268
41269 2007-12-10  Martin Lambers  <marlam@marlam.de>
41270
41271         Override getpagesize on mingw.
41272         * lib/getpagesize.c: New file.
41273         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41274         * modules/getpagesize (Files): Add lib/getpagesize.c.
41275         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41277         REPLACE_GETPAGESIZE.
41278         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41279
41280 2007-12-25  Bruno Haible  <bruno@clisp.org>
41281
41282         * modules/localcharset (Notice): New field.
41283         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41284         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41285
41286 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41287             Bruno Haible  <bruno@clisp.org>
41288
41289         Avoid using the syntax symbol() in formatted documentation.
41290         * MODULES.html.sh (func_module): When replacing symbol() with a
41291         hyperlink, remove the parentheses. Show an error if some remain.
41292         Recognize and render the '...' syntax.
41293         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41294         Rework. Add paragraph about GCC's inlining.
41295         * doc/alloca.texi: Likewise.
41296         * doc/error.texi: Remove parentheses from symbol reference.
41297         * doc/gnulib-intro.texi: Likewise.
41298         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41299         * modules/fnmatch (Description): Reword to say "the ... function".
41300         * modules/full-read (Description): Likewise.
41301         * modules/full-write (Description): Likewise.
41302         * modules/safe-read (Description): Likewise.
41303         * modules/safe-write (Description): Likewise.
41304         * modules/strchrnul (Description): Likewise.
41305         * modules/trim (Description): Likewise.
41306         * modules/error (Description): Remove parentheses from symbol
41307         references.
41308         * modules/verror (Description): Likewise.
41309         Reported by Karl Berry.
41310
41311 2007-12-25  Bruno Haible  <bruno@clisp.org>
41312
41313         Fixup after 2007-10-16 commit.
41314         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41315
41316 2007-12-24  Bruno Haible  <bruno@clisp.org>
41317
41318         Make --enable-relocatable work with DESTDIR.
41319         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41320         to compute installdir from destprog.
41321         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41322         also set the RELOC_DESTDIR variable.
41323         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41324
41325 2007-12-24  Bruno Haible  <bruno@clisp.org>
41326
41327         Fix link error due to xalloc_die().
41328         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41329         of xreadlink.
41330         * lib/relocwrapper.c: Update comments.
41331         * build-aux/install-reloc: Remove xreadlink.c from file list.
41332         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41333         xreadlink.c.
41334         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41335
41336 2007-12-24  Bruno Haible  <bruno@clisp.org>
41337
41338         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41339         * lib/setenv.h: Remove file.
41340         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41341         lib/setenv.h.
41342         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41343         (Depends-on): Add stdlib.
41344         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41345         gl_FUNC_UNSETENV.
41346         (Include): Replace setenv.h with <stdlib.h>.
41347         * modules/unsetenv: New file.
41348         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41349         * lib/unsetenv.c: Include <stdlib.h> first.
41350         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
41351         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
41352         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
41353         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41354         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41355         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41357         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41358         * doc/functions/unsetenv.texi: Update.
41359         * modules/xsetenv (Depends-on): Add unsetenv.
41360         * modules/getdate (Depends-on): Likewise.
41361         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41362         * lib/xsetenv.c: Don't include setenv.h.
41363         * lib/getdate.y: Likewise.
41364         * lib/relocwrapper.c: Likewise.
41365         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41366         (Depends-on): Add stdlib.
41367         * NEWS: Mention the changes.
41368         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41369
41370 2007-12-23  Bruno Haible  <bruno@clisp.org>
41371
41372         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41373         indentation.
41374
41375 2007-12-23  Bruno Haible  <bruno@clisp.org>
41376
41377         * lib/c-strcasestr.c: Add more comments.
41378         * lib/c-strstr.c: Likewise.
41379         * lib/mbscasestr.c: Likewise.
41380         * lib/mbsstr.c: Likewise.
41381         * lib/strcasestr.c: Likewise.
41382         * lib/memmem.c: Likewise.
41383
41384 2007-12-23  Bruno Haible  <bruno@clisp.org>
41385
41386         * tests/test-memmem.c: Include <string.h> first.
41387
41388 2007-12-22  Bruno Haible  <bruno@clisp.org>
41389
41390         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41391         the contents of $testsbase.
41392         Reported by Ralf Wildenhues.
41393
41394 2007-12-22  Bruno Haible  <bruno@clisp.org>
41395
41396         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41397         two variables local_ldadd_before, local_ldadd_last.
41398
41399 2007-12-20  Eric Blake  <ebb9@byu.net>
41400
41401         Work around circular library issue when cross-compiling.
41402         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41403         that progname.o does not need to pull in rpl_memcmp.
41404
41405 2007-12-19  Eric Blake  <ebb9@byu.net>
41406
41407         Fix memmem to avoid O(n^2) worst-case complexity.
41408         * lib/memmem.c (knuth_morris_pratt): New function.
41409         (memmem): Use it if first few naive iterations fail.
41410         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41411         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41412         * modules/memchr (License): Likewise.
41413         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41414         malloca.
41415         * tests/test-memmem.c: Rewrite, borrowing ideas from
41416         test-mbsstr1.c; the old version wouldn't even compile!
41417         * modules/memmem-tests: New file.
41418         * lib/string.in.h (rpl_memmem): Add declaration.
41419         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
41420         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
41421         REPLACE_MEMMEM.
41422
41423 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41424
41425         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
41426         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
41427         before any system include files, and undef after them all.  This
41428         should fix a problem on VMS reported by John E. Malmberg in
41429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
41430
41431 2007-12-17  Eric Blake  <ebb9@byu.net>
41432
41433         Revert addition of verify, for BSD/OS.
41434         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
41435         can't handle large files, for the sake of obsolete platforms.
41436         * modules/fseeko (Depends-on): Remove verify.
41437         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
41438         * doc/functions/ftello.texi (ftello): Likewise.
41439         * doc/functions/fgetpos.texi (fgetpos): Likewise.
41440         Reported by Larry Jones.
41441
41442 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
41443
41444         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
41445         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
41446
41447 2007-12-17  Jim Meyering  <meyering@redhat.com>
41448
41449         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
41450         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
41451         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
41452         * modules/getcwd (Depends-on): Add openat.
41453         Reported by Petr Salinger.
41454
41455 2007-12-17  Bruno Haible  <bruno@clisp.org>
41456
41457         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
41458         avoid a segmentation fault of the configure test on x86_64 systems.
41459
41460 2007-12-15  Jim Meyering  <meyering@redhat.com>
41461
41462         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
41463
41464 2007-12-13  Eric Blake  <ebb9@byu.net>
41465
41466         Another fseek test.
41467         * tests/test-fseek.c (main): Also test ungetc handling.
41468         * tests/test-fseeko.c (main): Likewise.
41469         * modules/fseeko (Depends-on): Add verify.
41470         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
41471         large.
41472         Reported by Larry Jones.
41473
41474         Fix fseeko on mingw.
41475         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
41476         seek.
41477
41478         Beef up fseek tests.
41479         * tests/test-fseek.c (main): Also test eof handling.
41480         * tests/test-fseeko.c (main): Likewise.
41481         Reported by Larry Jones.
41482
41483 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
41484
41485         Fix fseeko on BSD-based platforms.
41486         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
41487         successful seek.
41488
41489 2007-12-12  Eric Blake  <ebb9@byu.net>
41490
41491         Allow circular dependency of separate libtests.a
41492         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
41493         when use_libtests.
41494
41495 2007-12-11  Eric Blake  <ebb9@byu.net>
41496
41497         Fix bug with -0.0L in previous patch.
41498         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
41499         * tests/test-isnan.c (main): Also test on zeroes.
41500         * tests/test-isnanf.c (main): Likewise.
41501         * tests/test-isnanl.h (main): Likewise.
41502
41503         Detect pseudo-denormals on x86 even when cross-compiling.
41504         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
41505         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
41506         invalid bit patterns that happen to satisfy ==.
41507
41508         Avoid link failures with separate libtests.a.
41509         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
41510         last, to satisfy circular dependencies.
41511
41512 2007-12-11  Eric Blake  <ebb9@byu.net>
41513         and Bruno Haible  <bruno@clisp.org>
41514
41515         Fix OpenBSD 4.0 <float.h> handling of long double.
41516         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
41517         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
41518         * doc/headers/float.texi (float.h): Document OpenBSD bug.
41519
41520 2007-12-11  Jim Meyering  <meyering@redhat.com>
41521
41522         * users.txt: Add libvirt.
41523
41524         Support versions of autoconf prior to 2.59c.
41525         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
41526         if it is not already defined.
41527
41528 2007-12-09  Bruno Haible  <bruno@clisp.org>
41529
41530         Let 'gnulib-tool --import' collect sources needed for the tests in
41531         tests/ rather than in lib/.
41532         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
41533         argument. If true, add rules to generate libtests.a, and put libtests.a
41534         into $(LDADD). Consider source files in subdirectories and set
41535         uses_subdirs.
41536         (func_emit_initmacro_start, func_emit_initmacro_end,
41537         func_emit_initmacro_done): Pass all arguments explicitly.
41538         (func_import): Determine two module lists main_modules,
41539         testsrelated_modules. Determine use_libtests. Determine two variables
41540         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
41541         instead of just sed_transform_lib_file. Determine two variables
41542         main_files and testsrelated_files. Compute 'files' as the union of
41543         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
41544         func_add_or_update. In the generated gnulib-comp.m4, collect the
41545         object files for tests/ in different variables than those for lib/.
41546         Substitute LIBTESTS_LIBDEPS.
41547         (func_create_testdir): Combine the uses_subdirs results from
41548         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
41549
41550 2007-12-09  Bruno Haible  <bruno@clisp.org>
41551
41552         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
41553         the build-aux directory.
41554
41555 2007-12-09  Bruno Haible  <bruno@clisp.org>
41556
41557         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
41558         introduced on 2006-09-09.
41559
41560 2007-12-07  Jim Meyering  <meyering@redhat.com>
41561
41562         Let these macros work also with autoconf-2.59.
41563         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
41564         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
41565         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41566
41567 2007-12-06  Jim Meyering  <meyering@redhat.com>
41568
41569         Avoid a configure-time syntax error in gl_FUNC_ACL.
41570         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
41571         function in each branch, before testing the cache variable.
41572
41573 2007-12-04  Eric Blake  <ebb9@byu.net>
41574
41575         Make scripts executable.
41576         * build-aux/config.guess: Add execute permissions.
41577         * build-aux/config.sub: Likewise.
41578         * build-aux/gendocs.sh: Likewise.
41579
41580         Fix frexp on mingw.
41581         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
41582         cross-compiling.
41583         * doc/functions/frexp.texi (frexp): Document the bug.
41584
41585         Make cygwin fseeko check more reliable.
41586         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
41587         version numbers, rather than unrelated feature check.
41588         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
41589         * doc/functions/ftello.texi (ftello): Likewise.
41590         Reported by Bruno Haible.
41591
41592         * m4/strerror.m4: Bump version number.
41593
41594 2007-12-03  Bruno Haible  <bruno@clisp.org>
41595
41596         * doc/functions/mprotect.texi: Mention the mingw problem.
41597
41598 2007-12-03  Eric Blake  <ebb9@byu.net>
41599
41600         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
41601         REPLACE_STRERROR is initialized before this macro.
41602
41603 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41604
41605         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
41606         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
41607         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
41608         put -lsec in even for programs other than 'ls'.  This fixes a problem
41609         for gettext reported by Bruno Haible in
41610         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
41611         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
41612         Add support for Solaris 10.  This isn't efficient, but should get the
41613         job done for now.
41614
41615 2007-12-03  James Youngman  <jay@gnu.org>
41616
41617         * doc/regexprops-generic.texi: change "an close-group" to "a
41618         close-group" and "illegal" to "not allowed".
41619
41620 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41621
41622         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
41623         pr_byname.h. Needed for the rare case when the maintainer has done
41624         "make maintainer-clean" in the source directory and then attempts a
41625         build outside the source directory.
41626         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
41627         scripts_byname.h.
41628
41629 2007-12-02  Martin Lambers <marlam@marlam.de>
41630             Bruno Haible  <bruno@clisp.org>
41631
41632         * lib/getpagesize.h: Remove file.
41633         * lib/unistd.in.h: Include declaration of getpagesize here.
41634         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
41635         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
41636         HAVE_SYS_PARAM_H.
41637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
41638         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41639         * modules/getpagesize (Files): Remove lib/getpagesize.h.
41640         (Depends-on): Add unistd.
41641         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41642         (Include): Use <unistd.h> instead of getpagesize.h.
41643         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
41644         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41645         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
41646         gl_GETPAGESIZE invocation, already handled by module dependency.
41647         * lib/pagealign_alloc.c: Don't include getpagesize.h.
41648
41649 2007-12-02  Bruno Haible  <bruno@clisp.org>
41650
41651         * modules/strings-tests: New file.
41652         * tests/test-strings.c: New file.
41653
41654         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
41655         * lib/strings.in.h: New file.
41656         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
41657         * m4/strings_h.m4: New file.
41658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
41659         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
41660         * modules/strings: New file.
41661         * modules/string (Makefile.am): Update.
41662         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
41663         Reported by Karl Berry.
41664
41665 2007-12-01  Eric Blake  <ebb9@byu.net>
41666
41667         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
41668         accomodate fix in cygwin 1.5.25.
41669
41670 2007-12-01  Jim Meyering  <meyering@redhat.com>
41671
41672         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
41673         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
41674         that would inhibit utf8-optimization of a regexp containing line-
41675         or buffer-anchors, e.g., `^', `$'.
41676
41677 2007-11-30  Bruno Haible  <bruno@clisp.org>
41678
41679         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
41680         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
41681         glthread_recursive_lock_init.
41682         * lib/lock.c (glthread_recursive_lock_init)
41683         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
41684         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41685
41686 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
41687
41688         New function qset_acl, like set_acl but with syscall semantics.
41689         * lib/acl.h (qset_acl): New decl.
41690         * lib/acl.c (qset_acl): New function.
41691         (set_acl): Use new function.  Use more-consistent diagnostics.
41692
41693 2007-11-28  Jim Meyering  <meyering@redhat.com>
41694
41695         * modules/physmem (License): Change from GPL to LGPLv2+.
41696
41697 2007-11-26  Bruno Haible  <bruno@clisp.org>
41698
41699         * lib/vasnprintf.c (decode_long_double): Don't abort if the
41700         'long double' type has excess precision.
41701         Reported by Jim Meyering in
41702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
41703
41704 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41705
41706         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
41707         Sync from <http://gnu.org/licenses>.
41708         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
41709         with license text from same location.
41710         * doc/maintain.texi, doc/standards.texi:  Sync from
41711         <http://savannah.gnu.org/projects/gnustandards>.
41712
41713 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
41714         and Jim Meyering  <meyering@redhat.com>
41715
41716         Adjust getdate' grammar to accept a slightly more regular language.
41717         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
41718         Before, the former was rejected.
41719         * lib/getdate.y (digits_to_date_time): New function, factored
41720         out of ...
41721         (number): ...here.  Just call digits_to_date_time.
41722         (hybrid): New non-terminal to handle an <unsigned number,
41723         signed relative offset> sequence consistently.
41724
41725 2007-11-18  Jim Meyering  <meyering@redhat.com>
41726
41727         Pull my changes from coreutils:
41728         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
41729         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
41730         use of $gnulib_tool_option_extras, so that it's separated from the
41731         preceding argument.
41732
41733         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
41734         * build-aux/bootstrap (cp_mark_as_generated): Create any required
41735         parent destination directories before copying a file into place.
41736
41737 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41738
41739         bootstrap: work also with 4-argument variant of AC_INIT
41740         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
41741
41742 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41743
41744         Port test-getaddrinfo to Solaris.
41745         Problem reported by Bruno Haible in
41746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
41747         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
41748         explanation of setting 'hints'.
41749         Don't reject an implementation merely because it returns EAI_SERVICE.
41750         (EAI_SERVICE): Define to 0 if not defined.
41751
41752 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41753
41754         The license of gnu-make and posix-shell is now "GPLed build tool".
41755         * modules/gnu-make (License): Likewise.
41756         * modules/posix-shell (License): Likewise.
41757
41758         New module posix-shell, for determining a POSIX shell
41759         or perhaps something that is close enough to a POSIX shell.
41760         * m4/posix-shell.m4: New file.
41761         * modules/posix-shell: New file.
41762
41763         * MODULES.html.sh: Mention new module.
41764
41765         New module gnu-make, for determining whether we're using GNU Make.
41766         * m4/gnu-make.m4: New file.
41767         * modules/gnu-make: New file.
41768         * MODULES.html.sh: Mention new module.
41769
41770 2007-11-14  Jim Meyering  <meyering@redhat.com>
41771
41772         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
41773         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
41774         use this macro to create a function _definition_.
41775         Remove useless "#undef ARGMATCH_DIE".
41776
41777 2007-11-14  Bruno Haible  <bruno@clisp.org>
41778
41779         * lib/config.charset: Update for OpenBSD 4.1.
41780         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
41781
41782 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
41783
41784         Document 64-bit #if problems in stdint.texi.
41785         * doc/headers/stdint.texi (stdint.h): Mention problems with
41786         64-bit-#if, and how to work around them.
41787
41788         Don't insist on 'long long int' support in the preprocessor.  It
41789         breaks too many things.  For example, PRIdMAX still uses a 'long
41790         long int' format with the latest Sun compiler, even though
41791         HAVE_LONG_LONG_INT isn't defined due to that compiler's
41792         preprocessor problem.  This causes the latest coreutils to dump
41793         core on Solaris 10 sparc with the Sun C compiler.
41794         Instead, fix the 2007-10-16 problem in a different way, by evaluating
41795         the troublesome expressions at configure-time, not at #if-time.
41796         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
41797         preprocessor.
41798         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
41799         compile-time C checks, done at 'configure'-time.
41800         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
41801         * modules/inttypes (Makefile): Substitute the new symbols that
41802         gl_INTTYPES_H now generates.
41803         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
41804
41805 2007-11-12  Bruno Haible  <bruno@clisp.org>
41806
41807         Tests for Unicode character classification functions.
41808
41809         * modules/unictype/bidicategory-byname-tests: New file.
41810         * modules/unictype/bidicategory-name-tests: New file.
41811         * modules/unictype/bidicategory-of-tests: New file.
41812         * modules/unictype/bidicategory-test-tests: New file.
41813         * modules/unictype/block-list-tests: New file.
41814         * modules/unictype/block-of-tests: New file.
41815         * modules/unictype/block-test-tests: New file.
41816         * modules/unictype/category-C-tests: New file.
41817         * modules/unictype/category-Cc-tests: New file.
41818         * modules/unictype/category-Cf-tests: New file.
41819         * modules/unictype/category-Cn-tests: New file.
41820         * modules/unictype/category-Co-tests: New file.
41821         * modules/unictype/category-Cs-tests: New file.
41822         * modules/unictype/category-L-tests: New file.
41823         * modules/unictype/category-Ll-tests: New file.
41824         * modules/unictype/category-Lm-tests: New file.
41825         * modules/unictype/category-Lo-tests: New file.
41826         * modules/unictype/category-Lt-tests: New file.
41827         * modules/unictype/category-Lu-tests: New file.
41828         * modules/unictype/category-M-tests: New file.
41829         * modules/unictype/category-Mc-tests: New file.
41830         * modules/unictype/category-Me-tests: New file.
41831         * modules/unictype/category-Mn-tests: New file.
41832         * modules/unictype/category-N-tests: New file.
41833         * modules/unictype/category-Nd-tests: New file.
41834         * modules/unictype/category-Nl-tests: New file.
41835         * modules/unictype/category-No-tests: New file.
41836         * modules/unictype/category-P-tests: New file.
41837         * modules/unictype/category-Pc-tests: New file.
41838         * modules/unictype/category-Pd-tests: New file.
41839         * modules/unictype/category-Pe-tests: New file.
41840         * modules/unictype/category-Pf-tests: New file.
41841         * modules/unictype/category-Pi-tests: New file.
41842         * modules/unictype/category-Po-tests: New file.
41843         * modules/unictype/category-Ps-tests: New file.
41844         * modules/unictype/category-S-tests: New file.
41845         * modules/unictype/category-Sc-tests: New file.
41846         * modules/unictype/category-Sk-tests: New file.
41847         * modules/unictype/category-Sm-tests: New file.
41848         * modules/unictype/category-So-tests: New file.
41849         * modules/unictype/category-Z-tests: New file.
41850         * modules/unictype/category-Zl-tests: New file.
41851         * modules/unictype/category-Zp-tests: New file.
41852         * modules/unictype/category-Zs-tests: New file.
41853         * modules/unictype/category-and-not-tests: New file.
41854         * modules/unictype/category-and-tests: New file.
41855         * modules/unictype/category-byname-tests: New file.
41856         * modules/unictype/category-name-tests: New file.
41857         * modules/unictype/category-none-tests: New file.
41858         * modules/unictype/category-of-tests: New file.
41859         * modules/unictype/category-or-tests: New file.
41860         * modules/unictype/category-test-withtable-tests: New file.
41861         * modules/unictype/combining-class-tests: New file.
41862         * modules/unictype/ctype-alnum-tests: New file.
41863         * modules/unictype/ctype-alpha-tests: New file.
41864         * modules/unictype/ctype-blank-tests: New file.
41865         * modules/unictype/ctype-cntrl-tests: New file.
41866         * modules/unictype/ctype-digit-tests: New file.
41867         * modules/unictype/ctype-graph-tests: New file.
41868         * modules/unictype/ctype-lower-tests: New file.
41869         * modules/unictype/ctype-print-tests: New file.
41870         * modules/unictype/ctype-punct-tests: New file.
41871         * modules/unictype/ctype-space-tests: New file.
41872         * modules/unictype/ctype-upper-tests: New file.
41873         * modules/unictype/ctype-xdigit-tests: New file.
41874         * modules/unictype/decimal-digit-tests: New file.
41875         * modules/unictype/digit-tests: New file.
41876         * modules/unictype/mirror-tests: New file.
41877         * modules/unictype/numeric-tests: New file.
41878         * modules/unictype/property-alphabetic-tests: New file.
41879         * modules/unictype/property-ascii-hex-digit-tests: New file.
41880         * modules/unictype/property-bidi-arabic-digit-tests: New file.
41881         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
41882         * modules/unictype/property-bidi-block-separator-tests: New file.
41883         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
41884         * modules/unictype/property-bidi-common-separator-tests: New file.
41885         * modules/unictype/property-bidi-control-tests: New file.
41886         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
41887         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
41888         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
41889         * modules/unictype/property-bidi-european-digit-tests: New file.
41890         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
41891         * modules/unictype/property-bidi-left-to-right-tests: New file.
41892         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
41893         * modules/unictype/property-bidi-other-neutral-tests: New file.
41894         * modules/unictype/property-bidi-pdf-tests: New file.
41895         * modules/unictype/property-bidi-segment-separator-tests: New file.
41896         * modules/unictype/property-bidi-whitespace-tests: New file.
41897         * modules/unictype/property-byname-tests: New file.
41898         * modules/unictype/property-combining-tests: New file.
41899         * modules/unictype/property-composite-tests: New file.
41900         * modules/unictype/property-currency-symbol-tests: New file.
41901         * modules/unictype/property-dash-tests: New file.
41902         * modules/unictype/property-decimal-digit-tests: New file.
41903         * modules/unictype/property-default-ignorable-code-point-tests: New file.
41904         * modules/unictype/property-deprecated-tests: New file.
41905         * modules/unictype/property-diacritic-tests: New file.
41906         * modules/unictype/property-extender-tests: New file.
41907         * modules/unictype/property-format-control-tests: New file.
41908         * modules/unictype/property-grapheme-base-tests: New file.
41909         * modules/unictype/property-grapheme-extend-tests: New file.
41910         * modules/unictype/property-grapheme-link-tests: New file.
41911         * modules/unictype/property-hex-digit-tests: New file.
41912         * modules/unictype/property-hyphen-tests: New file.
41913         * modules/unictype/property-id-continue-tests: New file.
41914         * modules/unictype/property-id-start-tests: New file.
41915         * modules/unictype/property-ideographic-tests: New file.
41916         * modules/unictype/property-ids-binary-operator-tests: New file.
41917         * modules/unictype/property-ids-trinary-operator-tests: New file.
41918         * modules/unictype/property-ignorable-control-tests: New file.
41919         * modules/unictype/property-iso-control-tests: New file.
41920         * modules/unictype/property-join-control-tests: New file.
41921         * modules/unictype/property-left-of-pair-tests: New file.
41922         * modules/unictype/property-line-separator-tests: New file.
41923         * modules/unictype/property-logical-order-exception-tests: New file.
41924         * modules/unictype/property-lowercase-tests: New file.
41925         * modules/unictype/property-math-tests: New file.
41926         * modules/unictype/property-non-break-tests: New file.
41927         * modules/unictype/property-not-a-character-tests: New file.
41928         * modules/unictype/property-numeric-tests: New file.
41929         * modules/unictype/property-other-alphabetic-tests: New file.
41930         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
41931         * modules/unictype/property-other-grapheme-extend-tests: New file.
41932         * modules/unictype/property-other-id-continue-tests: New file.
41933         * modules/unictype/property-other-id-start-tests: New file.
41934         * modules/unictype/property-other-lowercase-tests: New file.
41935         * modules/unictype/property-other-math-tests: New file.
41936         * modules/unictype/property-other-uppercase-tests: New file.
41937         * modules/unictype/property-paired-punctuation-tests: New file.
41938         * modules/unictype/property-paragraph-separator-tests: New file.
41939         * modules/unictype/property-pattern-syntax-tests: New file.
41940         * modules/unictype/property-pattern-white-space-tests: New file.
41941         * modules/unictype/property-private-use-tests: New file.
41942         * modules/unictype/property-punctuation-tests: New file.
41943         * modules/unictype/property-quotation-mark-tests: New file.
41944         * modules/unictype/property-radical-tests: New file.
41945         * modules/unictype/property-sentence-terminal-tests: New file.
41946         * modules/unictype/property-soft-dotted-tests: New file.
41947         * modules/unictype/property-space-tests: New file.
41948         * modules/unictype/property-terminal-punctuation-tests: New file.
41949         * modules/unictype/property-test-tests: New file.
41950         * modules/unictype/property-titlecase-tests: New file.
41951         * modules/unictype/property-unassigned-code-value-tests: New file.
41952         * modules/unictype/property-unified-ideograph-tests: New file.
41953         * modules/unictype/property-uppercase-tests: New file.
41954         * modules/unictype/property-variation-selector-tests: New file.
41955         * modules/unictype/property-white-space-tests: New file.
41956         * modules/unictype/property-xid-continue-tests: New file.
41957         * modules/unictype/property-xid-start-tests: New file.
41958         * modules/unictype/property-zero-width-tests: New file.
41959         * modules/unictype/scripts-tests: New file.
41960         * modules/unictype/syntax-c-ident-tests: New file.
41961         * modules/unictype/syntax-c-whitespace-tests: New file.
41962         * modules/unictype/syntax-java-ident-tests: New file.
41963         * modules/unictype/syntax-java-whitespace-tests: New file.
41964         * tests/unictype/test-bidi_byname.c: New file.
41965         * tests/unictype/test-bidi_name.c: New file.
41966         * tests/unictype/test-bidi_of.c: New file.
41967         * tests/unictype/test-bidi_test.c: New file.
41968         * tests/unictype/test-block_list.c: New file.
41969         * tests/unictype/test-block_of.c: New file.
41970         * tests/unictype/test-block_test.c: New file.
41971         * tests/unictype/test-categ_and.c: New file.
41972         * tests/unictype/test-categ_and_not.c: New file.
41973         * tests/unictype/test-categ_byname.c: New file.
41974         * tests/unictype/test-categ_name.c: New file.
41975         * tests/unictype/test-categ_none.c: New file.
41976         * tests/unictype/test-categ_of.c: New file.
41977         * tests/unictype/test-categ_or.c: New file.
41978         * tests/unictype/test-categ_test_withtable.c: New file.
41979         * tests/unictype/test-combining.c: New file.
41980         * tests/unictype/test-decdigit.c: New file.
41981         * tests/unictype/test-digit.c: New file.
41982         * tests/unictype/test-mirror.c: New file.
41983         * tests/unictype/test-numeric.c: New file.
41984         * tests/unictype/test-pr_byname.c: New file.
41985         * tests/unictype/test-pr_test.c: New file.
41986         * tests/unictype/test-predicate-part1.h: New file.
41987         * tests/unictype/test-predicate-part2.h: New file.
41988         * tests/unictype/test-scripts.c: New file.
41989         * tests/unictype/test-sy_c_ident.c: New file.
41990         * tests/unictype/test-sy_java_ident.c: New file.
41991
41992         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
41993         for Unicode 5.0.0.
41994         * tests/unictype/test-categ_Cc.c: Likewise.
41995         * tests/unictype/test-categ_Cf.c: Likewise.
41996         * tests/unictype/test-categ_Cn.c: Likewise.
41997         * tests/unictype/test-categ_Co.c: Likewise.
41998         * tests/unictype/test-categ_Cs.c: Likewise.
41999         * tests/unictype/test-categ_L.c: Likewise.
42000         * tests/unictype/test-categ_Ll.c: Likewise.
42001         * tests/unictype/test-categ_Lm.c: Likewise.
42002         * tests/unictype/test-categ_Lo.c: Likewise.
42003         * tests/unictype/test-categ_Lt.c: Likewise.
42004         * tests/unictype/test-categ_Lu.c: Likewise.
42005         * tests/unictype/test-categ_M.c: Likewise.
42006         * tests/unictype/test-categ_Mc.c: Likewise.
42007         * tests/unictype/test-categ_Me.c: Likewise.
42008         * tests/unictype/test-categ_Mn.c: Likewise.
42009         * tests/unictype/test-categ_N.c: Likewise.
42010         * tests/unictype/test-categ_Nd.c: Likewise.
42011         * tests/unictype/test-categ_Nl.c: Likewise.
42012         * tests/unictype/test-categ_No.c: Likewise.
42013         * tests/unictype/test-categ_P.c: Likewise.
42014         * tests/unictype/test-categ_Pc.c: Likewise.
42015         * tests/unictype/test-categ_Pd.c: Likewise.
42016         * tests/unictype/test-categ_Pe.c: Likewise.
42017         * tests/unictype/test-categ_Pf.c: Likewise.
42018         * tests/unictype/test-categ_Pi.c: Likewise.
42019         * tests/unictype/test-categ_Po.c: Likewise.
42020         * tests/unictype/test-categ_Ps.c: Likewise.
42021         * tests/unictype/test-categ_S.c: Likewise.
42022         * tests/unictype/test-categ_Sc.c: Likewise.
42023         * tests/unictype/test-categ_Sk.c: Likewise.
42024         * tests/unictype/test-categ_Sm.c: Likewise.
42025         * tests/unictype/test-categ_So.c: Likewise.
42026         * tests/unictype/test-categ_Z.c: Likewise.
42027         * tests/unictype/test-categ_Zl.c: Likewise.
42028         * tests/unictype/test-categ_Zp.c: Likewise.
42029         * tests/unictype/test-categ_Zs.c: Likewise.
42030         * tests/unictype/test-ctype_alnum.c: Likewise.
42031         * tests/unictype/test-ctype_alpha.c: Likewise.
42032         * tests/unictype/test-ctype_blank.c: Likewise.
42033         * tests/unictype/test-ctype_cntrl.c: Likewise.
42034         * tests/unictype/test-ctype_digit.c: Likewise.
42035         * tests/unictype/test-ctype_graph.c: Likewise.
42036         * tests/unictype/test-ctype_lower.c: Likewise.
42037         * tests/unictype/test-ctype_print.c: Likewise.
42038         * tests/unictype/test-ctype_punct.c: Likewise.
42039         * tests/unictype/test-ctype_space.c: Likewise.
42040         * tests/unictype/test-ctype_upper.c: Likewise.
42041         * tests/unictype/test-ctype_xdigit.c: Likewise.
42042         * tests/unictype/test-decdigit.h: Likewise.
42043         * tests/unictype/test-digit.h: Likewise.
42044         * tests/unictype/test-numeric.h: Likewise.
42045         * tests/unictype/test-pr_alphabetic.c: Likewise.
42046         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42047         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42048         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42049         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42050         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42051         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42052         * tests/unictype/test-pr_bidi_control.c: Likewise.
42053         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42054         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42055         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42056         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42057         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42058         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42059         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42060         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42061         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42062         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42063         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42064         * tests/unictype/test-pr_combining.c: Likewise.
42065         * tests/unictype/test-pr_composite.c: Likewise.
42066         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42067         * tests/unictype/test-pr_dash.c: Likewise.
42068         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42069         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42070         * tests/unictype/test-pr_deprecated.c: Likewise.
42071         * tests/unictype/test-pr_diacritic.c: Likewise.
42072         * tests/unictype/test-pr_extender.c: Likewise.
42073         * tests/unictype/test-pr_format_control.c: Likewise.
42074         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42075         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42076         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42077         * tests/unictype/test-pr_hex_digit.c: Likewise.
42078         * tests/unictype/test-pr_hyphen.c: Likewise.
42079         * tests/unictype/test-pr_id_continue.c: Likewise.
42080         * tests/unictype/test-pr_id_start.c: Likewise.
42081         * tests/unictype/test-pr_ideographic.c: Likewise.
42082         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42083         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42084         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42085         * tests/unictype/test-pr_iso_control.c: Likewise.
42086         * tests/unictype/test-pr_join_control.c: Likewise.
42087         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42088         * tests/unictype/test-pr_line_separator.c: Likewise.
42089         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42090         * tests/unictype/test-pr_lowercase.c: Likewise.
42091         * tests/unictype/test-pr_math.c: Likewise.
42092         * tests/unictype/test-pr_non_break.c: Likewise.
42093         * tests/unictype/test-pr_not_a_character.c: Likewise.
42094         * tests/unictype/test-pr_numeric.c: Likewise.
42095         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42096         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42097         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42098         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42099         * tests/unictype/test-pr_other_id_start.c: Likewise.
42100         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42101         * tests/unictype/test-pr_other_math.c: Likewise.
42102         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42103         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42104         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42105         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42106         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42107         * tests/unictype/test-pr_private_use.c: Likewise.
42108         * tests/unictype/test-pr_punctuation.c: Likewise.
42109         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42110         * tests/unictype/test-pr_radical.c: Likewise.
42111         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42112         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42113         * tests/unictype/test-pr_space.c: Likewise.
42114         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42115         * tests/unictype/test-pr_titlecase.c: Likewise.
42116         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42117         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42118         * tests/unictype/test-pr_uppercase.c: Likewise.
42119         * tests/unictype/test-pr_variation_selector.c: Likewise.
42120         * tests/unictype/test-pr_white_space.c: Likewise.
42121         * tests/unictype/test-pr_xid_continue.c: Likewise.
42122         * tests/unictype/test-pr_xid_start.c: Likewise.
42123         * tests/unictype/test-pr_zero_width.c: Likewise.
42124         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42125         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42126
42127 2007-11-12  Bruno Haible  <bruno@clisp.org>
42128
42129         Unicode character classification functions.
42130         * lib/unictype.h: New file.
42131         * modules/unictype/base: New file.
42132         * modules/unictype/category-L: New file.
42133         * modules/unictype/category-Lu: New file.
42134         * modules/unictype/category-Ll: New file.
42135         * modules/unictype/category-Lt: New file.
42136         * modules/unictype/category-Lm: New file.
42137         * modules/unictype/category-Lo: New file.
42138         * modules/unictype/category-M: New file.
42139         * modules/unictype/category-Mn: New file.
42140         * modules/unictype/category-Mc: New file.
42141         * modules/unictype/category-Me: New file.
42142         * modules/unictype/category-N: New file.
42143         * modules/unictype/category-Nd: New file.
42144         * modules/unictype/category-Nl: New file.
42145         * modules/unictype/category-No: New file.
42146         * modules/unictype/category-P: New file.
42147         * modules/unictype/category-Pc: New file.
42148         * modules/unictype/category-Pd: New file.
42149         * modules/unictype/category-Ps: New file.
42150         * modules/unictype/category-Pe: New file.
42151         * modules/unictype/category-Pi: New file.
42152         * modules/unictype/category-Pf: New file.
42153         * modules/unictype/category-Po: New file.
42154         * modules/unictype/category-S: New file.
42155         * modules/unictype/category-Sm: New file.
42156         * modules/unictype/category-Sc: New file.
42157         * modules/unictype/category-Sk: New file.
42158         * modules/unictype/category-So: New file.
42159         * modules/unictype/category-Z: New file.
42160         * modules/unictype/category-Zs: New file.
42161         * modules/unictype/category-Zl: New file.
42162         * modules/unictype/category-Zp: New file.
42163         * modules/unictype/category-C: New file.
42164         * modules/unictype/category-Cc: New file.
42165         * modules/unictype/category-Cf: New file.
42166         * modules/unictype/category-Cs: New file.
42167         * modules/unictype/category-Co: New file.
42168         * modules/unictype/category-Cn: New file.
42169         * modules/unictype/category-or: New file.
42170         * modules/unictype/category-of: New file.
42171         * modules/unictype/category-test: New file.
42172         * modules/unictype/category-test-withtable: New file.
42173         * modules/unictype/category-byname: New file.
42174         * modules/unictype/category-none: New file.
42175         * modules/unictype/category-and: New file.
42176         * modules/unictype/category-and-not: New file.
42177         * modules/unictype/category-name: New file.
42178         * modules/unictype/combining-class: New file.
42179         * modules/unictype/category-all: New file.
42180         * modules/unictype/bidicategory-all: New file.
42181         * modules/unictype/bidicategory-byname: New file.
42182         * modules/unictype/bidicategory-name: New file.
42183         * modules/unictype/bidicategory-of: New file.
42184         * modules/unictype/bidicategory-test: New file.
42185         * modules/unictype/decimal-digit: New file.
42186         * modules/unictype/digit: New file.
42187         * modules/unictype/numeric: New file.
42188         * modules/unictype/mirror: New file.
42189         * modules/unictype/property-white-space: New file.
42190         * modules/unictype/property-alphabetic: New file.
42191         * modules/unictype/property-other-alphabetic: New file.
42192         * modules/unictype/property-not-a-character: New file.
42193         * modules/unictype/property-default-ignorable-code-point: New file.
42194         * modules/unictype/property-other-default-ignorable-code-point: New
42195         file.
42196         * modules/unictype/property-deprecated: New file.
42197         * modules/unictype/property-logical-order-exception: New file.
42198         * modules/unictype/property-variation-selector: New file.
42199         * modules/unictype/property-private-use: New file.
42200         * modules/unictype/property-unassigned-code-value: New file.
42201         * modules/unictype/property-uppercase: New file.
42202         * modules/unictype/property-other-uppercase: New file.
42203         * modules/unictype/property-lowercase: New file.
42204         * modules/unictype/property-other-lowercase: New file.
42205         * modules/unictype/property-titlecase: New file.
42206         * modules/unictype/property-soft-dotted: New file.
42207         * modules/unictype/property-id-start: New file.
42208         * modules/unictype/property-other-id-start: New file.
42209         * modules/unictype/property-id-continue: New file.
42210         * modules/unictype/property-other-id-continue: New file.
42211         * modules/unictype/property-xid-start: New file.
42212         * modules/unictype/property-xid-continue: New file.
42213         * modules/unictype/property-pattern-white-space: New file.
42214         * modules/unictype/property-pattern-syntax: New file.
42215         * modules/unictype/property-join-control: New file.
42216         * modules/unictype/property-grapheme-base: New file.
42217         * modules/unictype/property-grapheme-extend: New file.
42218         * modules/unictype/property-other-grapheme-extend: New file.
42219         * modules/unictype/property-grapheme-link: New file.
42220         * modules/unictype/property-bidi-control: New file.
42221         * modules/unictype/property-bidi-left-to-right: New file.
42222         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42223         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42224         * modules/unictype/property-bidi-european-digit: New file.
42225         * modules/unictype/property-bidi-eur-num-separator: New file.
42226         * modules/unictype/property-bidi-eur-num-terminator: New file.
42227         * modules/unictype/property-bidi-arabic-digit: New file.
42228         * modules/unictype/property-bidi-common-separator: New file.
42229         * modules/unictype/property-bidi-block-separator: New file.
42230         * modules/unictype/property-bidi-segment-separator: New file.
42231         * modules/unictype/property-bidi-whitespace: New file.
42232         * modules/unictype/property-bidi-non-spacing-mark: New file.
42233         * modules/unictype/property-bidi-boundary-neutral: New file.
42234         * modules/unictype/property-bidi-pdf: New file.
42235         * modules/unictype/property-bidi-embedding-or-override: New file.
42236         * modules/unictype/property-bidi-other-neutral: New file.
42237         * modules/unictype/property-hex-digit: New file.
42238         * modules/unictype/property-ascii-hex-digit: New file.
42239         * modules/unictype/property-ideographic: New file.
42240         * modules/unictype/property-unified-ideograph: New file.
42241         * modules/unictype/property-radical: New file.
42242         * modules/unictype/property-ids-binary-operator: New file.
42243         * modules/unictype/property-ids-trinary-operator: New file.
42244         * modules/unictype/property-zero-width: New file.
42245         * modules/unictype/property-space: New file.
42246         * modules/unictype/property-non-break: New file.
42247         * modules/unictype/property-iso-control: New file.
42248         * modules/unictype/property-format-control: New file.
42249         * modules/unictype/property-dash: New file.
42250         * modules/unictype/property-hyphen: New file.
42251         * modules/unictype/property-punctuation: New file.
42252         * modules/unictype/property-line-separator: New file.
42253         * modules/unictype/property-paragraph-separator: New file.
42254         * modules/unictype/property-quotation-mark: New file.
42255         * modules/unictype/property-sentence-terminal: New file.
42256         * modules/unictype/property-terminal-punctuation: New file.
42257         * modules/unictype/property-currency-symbol: New file.
42258         * modules/unictype/property-math: New file.
42259         * modules/unictype/property-other-math: New file.
42260         * modules/unictype/property-paired-punctuation: New file.
42261         * modules/unictype/property-left-of-pair: New file.
42262         * modules/unictype/property-combining: New file.
42263         * modules/unictype/property-composite: New file.
42264         * modules/unictype/property-decimal-digit: New file.
42265         * modules/unictype/property-numeric: New file.
42266         * modules/unictype/property-diacritic: New file.
42267         * modules/unictype/property-extender: New file.
42268         * modules/unictype/property-ignorable-control: New file.
42269         * modules/unictype/property-test: New file.
42270         * modules/unictype/property-byname: New file.
42271         * modules/unictype/property-all: New file.
42272         * modules/unictype/scripts: New file.
42273         * modules/unictype/scripts-all: New file.
42274         * modules/unictype/block-of: New file.
42275         * modules/unictype/block-test: New file.
42276         * modules/unictype/block-list: New file.
42277         * modules/unictype/block-all: New file.
42278         * modules/unictype/syntax-c-whitespace: New file.
42279         * modules/unictype/syntax-java-whitespace: New file.
42280         * modules/unictype/syntax-c-ident: New file.
42281         * modules/unictype/syntax-java-ident: New file.
42282         * modules/unictype/ctype-alnum: New file.
42283         * modules/unictype/ctype-alpha: New file.
42284         * modules/unictype/ctype-cntrl: New file.
42285         * modules/unictype/ctype-digit: New file.
42286         * modules/unictype/ctype-graph: New file.
42287         * modules/unictype/ctype-lower: New file.
42288         * modules/unictype/ctype-print: New file.
42289         * modules/unictype/ctype-punct: New file.
42290         * modules/unictype/ctype-space: New file.
42291         * modules/unictype/ctype-upper: New file.
42292         * modules/unictype/ctype-xdigit: New file.
42293         * modules/unictype/ctype-blank: New file.
42294         * lib/unictype/bidi_byname.c: New file.
42295         * lib/unictype/bidi_name.c: New file.
42296         * lib/unictype/bidi_of.c: New file.
42297         * lib/unictype/bidi_test.c: New file.
42298         * lib/unictype/bitmap.h: New file.
42299         * lib/unictype/block_test.c: New file.
42300         * lib/unictype/blocks.c: New file.
42301         * lib/unictype/categ_C.c: New file.
42302         * lib/unictype/categ_Cc.c: New file.
42303         * lib/unictype/categ_Cf.c: New file.
42304         * lib/unictype/categ_Cn.c: New file.
42305         * lib/unictype/categ_Co.c: New file.
42306         * lib/unictype/categ_Cs.c: New file.
42307         * lib/unictype/categ_L.c: New file.
42308         * lib/unictype/categ_Ll.c: New file.
42309         * lib/unictype/categ_Lm.c: New file.
42310         * lib/unictype/categ_Lo.c: New file.
42311         * lib/unictype/categ_Lt.c: New file.
42312         * lib/unictype/categ_Lu.c: New file.
42313         * lib/unictype/categ_M.c: New file.
42314         * lib/unictype/categ_Mc.c: New file.
42315         * lib/unictype/categ_Me.c: New file.
42316         * lib/unictype/categ_Mn.c: New file.
42317         * lib/unictype/categ_N.c: New file.
42318         * lib/unictype/categ_Nd.c: New file.
42319         * lib/unictype/categ_Nl.c: New file.
42320         * lib/unictype/categ_No.c: New file.
42321         * lib/unictype/categ_P.c: New file.
42322         * lib/unictype/categ_Pc.c: New file.
42323         * lib/unictype/categ_Pd.c: New file.
42324         * lib/unictype/categ_Pe.c: New file.
42325         * lib/unictype/categ_Pf.c: New file.
42326         * lib/unictype/categ_Pi.c: New file.
42327         * lib/unictype/categ_Po.c: New file.
42328         * lib/unictype/categ_Ps.c: New file.
42329         * lib/unictype/categ_S.c: New file.
42330         * lib/unictype/categ_Sc.c: New file.
42331         * lib/unictype/categ_Sk.c: New file.
42332         * lib/unictype/categ_Sm.c: New file.
42333         * lib/unictype/categ_So.c: New file.
42334         * lib/unictype/categ_Z.c: New file.
42335         * lib/unictype/categ_Zl.c: New file.
42336         * lib/unictype/categ_Zp.c: New file.
42337         * lib/unictype/categ_Zs.c: New file.
42338         * lib/unictype/categ_and.c: New file.
42339         * lib/unictype/categ_and_not.c: New file.
42340         * lib/unictype/categ_byname.c: New file.
42341         * lib/unictype/categ_name.c: New file.
42342         * lib/unictype/categ_none.c: New file.
42343         * lib/unictype/categ_of.c: New file.
42344         * lib/unictype/categ_or.c: New file.
42345         * lib/unictype/categ_test.c: New file.
42346         * lib/unictype/combining.c: New file.
42347         * lib/unictype/ctype_alnum.c: New file.
42348         * lib/unictype/ctype_alpha.c: New file.
42349         * lib/unictype/ctype_blank.c: New file.
42350         * lib/unictype/ctype_cntrl.c: New file.
42351         * lib/unictype/ctype_digit.c: New file.
42352         * lib/unictype/ctype_graph.c: New file.
42353         * lib/unictype/ctype_lower.c: New file.
42354         * lib/unictype/ctype_print.c: New file.
42355         * lib/unictype/ctype_punct.c: New file.
42356         * lib/unictype/ctype_space.c: New file.
42357         * lib/unictype/ctype_upper.c: New file.
42358         * lib/unictype/ctype_xdigit.c: New file.
42359         * lib/unictype/decdigit.c: New file.
42360         * lib/unictype/digit.c: New file.
42361         * lib/unictype/identsyntaxmap.h: New file.
42362         * lib/unictype/mirror.c: New file.
42363         * lib/unictype/numeric.c: New file.
42364         * lib/unictype/pr_alphabetic.c: New file.
42365         * lib/unictype/pr_ascii_hex_digit.c: New file.
42366         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42367         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42368         * lib/unictype/pr_bidi_block_separator.c: New file.
42369         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42370         * lib/unictype/pr_bidi_common_separator.c: New file.
42371         * lib/unictype/pr_bidi_control.c: New file.
42372         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42373         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42374         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42375         * lib/unictype/pr_bidi_european_digit.c: New file.
42376         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42377         * lib/unictype/pr_bidi_left_to_right.c: New file.
42378         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42379         * lib/unictype/pr_bidi_other_neutral.c: New file.
42380         * lib/unictype/pr_bidi_pdf.c: New file.
42381         * lib/unictype/pr_bidi_segment_separator.c: New file.
42382         * lib/unictype/pr_bidi_whitespace.c: New file.
42383         * lib/unictype/pr_byname.c: New file.
42384         * lib/unictype/pr_byname.gperf: New file.
42385         * lib/unictype/pr_combining.c: New file.
42386         * lib/unictype/pr_composite.c: New file.
42387         * lib/unictype/pr_currency_symbol.c: New file.
42388         * lib/unictype/pr_dash.c: New file.
42389         * lib/unictype/pr_decimal_digit.c: New file.
42390         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42391         * lib/unictype/pr_deprecated.c: New file.
42392         * lib/unictype/pr_diacritic.c: New file.
42393         * lib/unictype/pr_extender.c: New file.
42394         * lib/unictype/pr_format_control.c: New file.
42395         * lib/unictype/pr_grapheme_base.c: New file.
42396         * lib/unictype/pr_grapheme_extend.c: New file.
42397         * lib/unictype/pr_grapheme_link.c: New file.
42398         * lib/unictype/pr_hex_digit.c: New file.
42399         * lib/unictype/pr_hyphen.c: New file.
42400         * lib/unictype/pr_id_continue.c: New file.
42401         * lib/unictype/pr_id_start.c: New file.
42402         * lib/unictype/pr_ideographic.c: New file.
42403         * lib/unictype/pr_ids_binary_operator.c: New file.
42404         * lib/unictype/pr_ids_trinary_operator.c: New file.
42405         * lib/unictype/pr_ignorable_control.c: New file.
42406         * lib/unictype/pr_iso_control.c: New file.
42407         * lib/unictype/pr_join_control.c: New file.
42408         * lib/unictype/pr_left_of_pair.c: New file.
42409         * lib/unictype/pr_line_separator.c: New file.
42410         * lib/unictype/pr_logical_order_exception.c: New file.
42411         * lib/unictype/pr_lowercase.c: New file.
42412         * lib/unictype/pr_math.c: New file.
42413         * lib/unictype/pr_non_break.c: New file.
42414         * lib/unictype/pr_not_a_character.c: New file.
42415         * lib/unictype/pr_numeric.c: New file.
42416         * lib/unictype/pr_other_alphabetic.c: New file.
42417         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
42418         * lib/unictype/pr_other_grapheme_extend.c: New file.
42419         * lib/unictype/pr_other_id_continue.c: New file.
42420         * lib/unictype/pr_other_id_start.c: New file.
42421         * lib/unictype/pr_other_lowercase.c: New file.
42422         * lib/unictype/pr_other_math.c: New file.
42423         * lib/unictype/pr_other_uppercase.c: New file.
42424         * lib/unictype/pr_paired_punctuation.c: New file.
42425         * lib/unictype/pr_paragraph_separator.c: New file.
42426         * lib/unictype/pr_pattern_syntax.c: New file.
42427         * lib/unictype/pr_pattern_white_space.c: New file.
42428         * lib/unictype/pr_private_use.c: New file.
42429         * lib/unictype/pr_punctuation.c: New file.
42430         * lib/unictype/pr_quotation_mark.c: New file.
42431         * lib/unictype/pr_radical.c: New file.
42432         * lib/unictype/pr_sentence_terminal.c: New file.
42433         * lib/unictype/pr_soft_dotted.c: New file.
42434         * lib/unictype/pr_space.c: New file.
42435         * lib/unictype/pr_terminal_punctuation.c: New file.
42436         * lib/unictype/pr_test.c: New file.
42437         * lib/unictype/pr_titlecase.c: New file.
42438         * lib/unictype/pr_unassigned_code_value.c: New file.
42439         * lib/unictype/pr_unified_ideograph.c: New file.
42440         * lib/unictype/pr_uppercase.c: New file.
42441         * lib/unictype/pr_variation_selector.c: New file.
42442         * lib/unictype/pr_white_space.c: New file.
42443         * lib/unictype/pr_xid_continue.c: New file.
42444         * lib/unictype/pr_xid_start.c: New file.
42445         * lib/unictype/pr_zero_width.c: New file.
42446         * lib/unictype/scripts.c: New file.
42447         * lib/unictype/sy_c_ident.c: New file.
42448         * lib/unictype/sy_c_whitespace.c: New file.
42449         * lib/unictype/sy_java_ident.c: New file.
42450         * lib/unictype/sy_java_whitespace.c: New file.
42451
42452         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
42453         Unicode 5.0.0.
42454         * lib/unictype/blocks.h: Likewise.
42455         * lib/unictype/categ_C.h: Likewise.
42456         * lib/unictype/categ_Cc.h: Likewise.
42457         * lib/unictype/categ_Cf.h: Likewise.
42458         * lib/unictype/categ_Cn.h: Likewise.
42459         * lib/unictype/categ_Co.h: Likewise.
42460         * lib/unictype/categ_Cs.h: Likewise.
42461         * lib/unictype/categ_L.h: Likewise.
42462         * lib/unictype/categ_Ll.h: Likewise.
42463         * lib/unictype/categ_Lm.h: Likewise.
42464         * lib/unictype/categ_Lo.h: Likewise.
42465         * lib/unictype/categ_Lt.h: Likewise.
42466         * lib/unictype/categ_Lu.h: Likewise.
42467         * lib/unictype/categ_M.h: Likewise.
42468         * lib/unictype/categ_Mc.h: Likewise.
42469         * lib/unictype/categ_Me.h: Likewise.
42470         * lib/unictype/categ_Mn.h: Likewise.
42471         * lib/unictype/categ_N.h: Likewise.
42472         * lib/unictype/categ_Nd.h: Likewise.
42473         * lib/unictype/categ_Nl.h: Likewise.
42474         * lib/unictype/categ_No.h: Likewise.
42475         * lib/unictype/categ_P.h: Likewise.
42476         * lib/unictype/categ_Pc.h: Likewise.
42477         * lib/unictype/categ_Pd.h: Likewise.
42478         * lib/unictype/categ_Pe.h: Likewise.
42479         * lib/unictype/categ_Pf.h: Likewise.
42480         * lib/unictype/categ_Pi.h: Likewise.
42481         * lib/unictype/categ_Po.h: Likewise.
42482         * lib/unictype/categ_Ps.h: Likewise.
42483         * lib/unictype/categ_S.h: Likewise.
42484         * lib/unictype/categ_Sc.h: Likewise.
42485         * lib/unictype/categ_Sk.h: Likewise.
42486         * lib/unictype/categ_Sm.h: Likewise.
42487         * lib/unictype/categ_So.h: Likewise.
42488         * lib/unictype/categ_Z.h: Likewise.
42489         * lib/unictype/categ_Zl.h: Likewise.
42490         * lib/unictype/categ_Zp.h: Likewise.
42491         * lib/unictype/categ_Zs.h: Likewise.
42492         * lib/unictype/categ_of.h: Likewise.
42493         * lib/unictype/combining.h: Likewise.
42494         * lib/unictype/ctype_alnum.h: Likewise.
42495         * lib/unictype/ctype_alpha.h: Likewise.
42496         * lib/unictype/ctype_blank.h: Likewise.
42497         * lib/unictype/ctype_cntrl.h: Likewise.
42498         * lib/unictype/ctype_digit.h: Likewise.
42499         * lib/unictype/ctype_graph.h: Likewise.
42500         * lib/unictype/ctype_lower.h: Likewise.
42501         * lib/unictype/ctype_print.h: Likewise.
42502         * lib/unictype/ctype_punct.h: Likewise.
42503         * lib/unictype/ctype_space.h: Likewise.
42504         * lib/unictype/ctype_upper.h: Likewise.
42505         * lib/unictype/ctype_xdigit.h: Likewise.
42506         * lib/unictype/decdigit.h: Likewise.
42507         * lib/unictype/digit.h: Likewise.
42508         * lib/unictype/mirror.h: Likewise.
42509         * lib/unictype/numeric.h: Likewise.
42510         * lib/unictype/pr_alphabetic.h: Likewise.
42511         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42512         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42513         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42514         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42515         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42516         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42517         * lib/unictype/pr_bidi_control.h: Likewise.
42518         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42519         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42520         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42521         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42522         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42523         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42524         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42525         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42526         * lib/unictype/pr_bidi_pdf.h: Likewise.
42527         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42528         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42529         * lib/unictype/pr_combining.h: Likewise.
42530         * lib/unictype/pr_composite.h: Likewise.
42531         * lib/unictype/pr_currency_symbol.h: Likewise.
42532         * lib/unictype/pr_dash.h: Likewise.
42533         * lib/unictype/pr_decimal_digit.h: Likewise.
42534         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42535         * lib/unictype/pr_deprecated.h: Likewise.
42536         * lib/unictype/pr_diacritic.h: Likewise.
42537         * lib/unictype/pr_extender.h: Likewise.
42538         * lib/unictype/pr_format_control.h: Likewise.
42539         * lib/unictype/pr_grapheme_base.h: Likewise.
42540         * lib/unictype/pr_grapheme_extend.h: Likewise.
42541         * lib/unictype/pr_grapheme_link.h: Likewise.
42542         * lib/unictype/pr_hex_digit.h: Likewise.
42543         * lib/unictype/pr_hyphen.h: Likewise.
42544         * lib/unictype/pr_id_continue.h: Likewise.
42545         * lib/unictype/pr_id_start.h: Likewise.
42546         * lib/unictype/pr_ideographic.h: Likewise.
42547         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42548         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42549         * lib/unictype/pr_ignorable_control.h: Likewise.
42550         * lib/unictype/pr_iso_control.h: Likewise.
42551         * lib/unictype/pr_join_control.h: Likewise.
42552         * lib/unictype/pr_left_of_pair.h: Likewise.
42553         * lib/unictype/pr_line_separator.h: Likewise.
42554         * lib/unictype/pr_logical_order_exception.h: Likewise.
42555         * lib/unictype/pr_lowercase.h: Likewise.
42556         * lib/unictype/pr_math.h: Likewise.
42557         * lib/unictype/pr_non_break.h: Likewise.
42558         * lib/unictype/pr_not_a_character.h: Likewise.
42559         * lib/unictype/pr_numeric.h: Likewise.
42560         * lib/unictype/pr_other_alphabetic.h: Likewise.
42561         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42562         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42563         * lib/unictype/pr_other_id_continue.h: Likewise.
42564         * lib/unictype/pr_other_id_start.h: Likewise.
42565         * lib/unictype/pr_other_lowercase.h: Likewise.
42566         * lib/unictype/pr_other_math.h: Likewise.
42567         * lib/unictype/pr_other_uppercase.h: Likewise.
42568         * lib/unictype/pr_paired_punctuation.h: Likewise.
42569         * lib/unictype/pr_paragraph_separator.h: Likewise.
42570         * lib/unictype/pr_pattern_syntax.h: Likewise.
42571         * lib/unictype/pr_pattern_white_space.h: Likewise.
42572         * lib/unictype/pr_private_use.h: Likewise.
42573         * lib/unictype/pr_punctuation.h: Likewise.
42574         * lib/unictype/pr_quotation_mark.h: Likewise.
42575         * lib/unictype/pr_radical.h: Likewise.
42576         * lib/unictype/pr_sentence_terminal.h: Likewise.
42577         * lib/unictype/pr_soft_dotted.h: Likewise.
42578         * lib/unictype/pr_space.h: Likewise.
42579         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42580         * lib/unictype/pr_titlecase.h: Likewise.
42581         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42582         * lib/unictype/pr_unified_ideograph.h: Likewise.
42583         * lib/unictype/pr_uppercase.h: Likewise.
42584         * lib/unictype/pr_variation_selector.h: Likewise.
42585         * lib/unictype/pr_white_space.h: Likewise.
42586         * lib/unictype/pr_xid_continue.h: Likewise.
42587         * lib/unictype/pr_xid_start.h: Likewise.
42588         * lib/unictype/pr_zero_width.h: Likewise.
42589         * lib/unictype/scripts.h: Likewise.
42590         * lib/unictype/scripts_byname.gperf: Likewise.
42591         * lib/unictype/sy_c_ident.h: Likewise.
42592         * lib/unictype/sy_c_whitespace.h: Likewise.
42593         * lib/unictype/sy_java_ident.h: Likewise.
42594         * lib/unictype/sy_java_whitespace.h: Likewise.
42595
42596         * lib/unictype/Makefile: New file.
42597         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
42598         glibc.
42599         * lib/unictype/3level.h: New file, copied from glibc.
42600         * lib/unictype/3levelbit.h: New file.
42601
42602 2007-11-11  Bruno Haible  <bruno@clisp.org>
42603
42604         * modules/gperf: New file.
42605         * modules/iconv_open (Depends-on): Add it.
42606         (Makefile.am): Remove the GPERF definition.
42607
42608 2007-11-11  Bruno Haible  <bruno@clisp.org>
42609
42610         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
42611         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
42612
42613 2007-11-11  Bruno Haible  <bruno@clisp.org>
42614
42615         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
42616         (usage): Remove function.
42617
42618 2007-11-11  Bruno Haible  <bruno@clisp.org>
42619
42620         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
42621         gl_FUNC_CEILF_LIBS.
42622         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
42623         gl_FUNC_CEIL_LIBS.
42624         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
42625         gl_FUNC_CEILL_LIBS.
42626         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
42627         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
42628         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
42629
42630 2007-11-11  Bruno Haible  <bruno@clisp.org>
42631
42632         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
42633         roundf were declared but do not exist on functions.
42634         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
42635         roundl were declared but do not exist on functions.
42636         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
42637         HAVE_FLOORL_AND_CEILL, respectively.
42638         Needed for Sun C on Solaris 10.
42639
42640 2007-11-11  Bruno Haible  <bruno@clisp.org>
42641
42642         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
42643         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
42644         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
42645         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
42646         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
42647         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
42648         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
42649         HAVE_DECL_ROUNDF.
42650         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
42651         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
42652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
42653         of HAVE_DECL_ROUND*.
42654         * modules/math (Makefile.am): Update.
42655
42656 2007-11-10  Bruno Haible  <bruno@clisp.org>
42657
42658         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
42659         ptrdiff_t as m4/intl.m4.
42660
42661 2007-11-10  Jim Meyering  <meyering@redhat.com>
42662
42663         Avoid link failure for the argmatch test.
42664         * tests/test-argmatch.c (usage): Define function to avoid a link
42665         failure: argmatch_die requires a usage function.
42666
42667 2007-11-09  Bruno Haible  <bruno@clisp.org>
42668
42669         * doc/functions/snprintf.texi: Mention BeOS deficiency.
42670         * doc/functions/vsnprintf.texi: Likewise.
42671         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
42672         with a size argument < 2.
42673
42674 2007-11-09  Bruno Haible  <bruno@clisp.org>
42675
42676         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
42677         buffer. Fixes an inefficiency introduced on 2007-11-03.
42678
42679 2007-11-09  Bruno Haible  <bruno@clisp.org>
42680
42681         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
42682         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
42683
42684 2007-11-08  Jim Meyering  <meyering@redhat.com>
42685
42686         Change cache variable name prefix "jm_" to "gl_" everywhere.
42687         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
42688         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
42689         * m4/uptime.m4: s/gl_/jm_/
42690
42691 2007-11-07  Bruno Haible  <bruno@clisp.org>
42692
42693         Update to GNU gettext 0.17.
42694         * m4/intl.m4: Update to GNU gettext 0.17.
42695         * m4/po.m4: Likewise.
42696         * modules/gettext (Files): Remove m4/ulonglong.m4.
42697         (configure.ac): Require gettext infrastructure from version 0.17.
42698
42699 2007-11-06  Bruno Haible  <bruno@clisp.org>
42700
42701         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
42702         symbolic values are not defined in a public header.
42703         * lib/freadable.c (freadable) [QNX]: Likewise.
42704         * lib/freadahead.c (freadahead) [QNX]: Likewise.
42705         * lib/freading.c (freading) [QNX]: Likewise.
42706         * lib/fseterr.c (fseterr) [QNX]: Likewise.
42707         * lib/fwritable.c (fwritable) [QNX]: Likewise.
42708         * lib/fwriting.c (fwriting) [QNX]: Likewise.
42709         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
42710         Reported by Alain Magloire.
42711
42712         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
42713
42714 2007-11-05  Bruno Haible  <bruno@clisp.org>
42715
42716         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
42717         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
42718         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
42719         Reported by Eric Blake.
42720
42721 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42722             Bruno Haible  <bruno@clisp.org>
42723
42724         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
42725         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
42726         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
42727         (malloc): Undefine also before including <stdlib.h>.
42728         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
42729         Needed on OSF/1 4.0.
42730
42731 2007-11-05  Jim Meyering  <meyering@redhat.com>
42732
42733         git-version-gen: sync from coreutils.
42734         * build-aux/git-version-gen: Add comments.
42735         Change the first '-' to '.' in the snapshot version string,
42736         e.g., 6.9-377-08144 -> 6.9.377-08144
42737         Remove first parameter.
42738         Don't declare a version "-dirty" merely because a time
42739         stamp has changed.
42740
42741 2007-11-04  Bruno Haible  <bruno@clisp.org>
42742
42743         * lib/lock.h: Protect all macro definitions containing an 'if'
42744         statement through a "do { ... } while (0)".
42745         * lib/tls.h: Likewise.
42746
42747 2007-11-04  Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
42750
42751 2007-11-04  Bruno Haible  <bruno@clisp.org>
42752
42753         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
42754         * modules/fprintf-posix (Depends-on): Add nocrash.
42755         * modules/snprintf-posix (Depends-on): Likewise.
42756         * modules/sprintf-posix (Depends-on): Likewise.
42757         * modules/vasnprintf-posix (Depends-on): Likewise.
42758         * modules/vasprintf-posix (Depends-on): Likewise.
42759         * modules/vfprintf-posix (Depends-on): Likewise.
42760         * modules/vsnprintf-posix (Depends-on): Likewise.
42761         * modules/vsprintf-posix (Depends-on): Likewise.
42762         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42763         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42764         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42765         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42766         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42767         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42768         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42769
42770 2007-11-04  Bruno Haible  <bruno@clisp.org>
42771
42772         * modules/nocrash: New file.
42773         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
42774         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
42775
42776 2007-11-04  Bruno Haible  <bruno@clisp.org>
42777
42778         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
42779         precision handling.
42780         * tests/test-vasprintf-posix.c (test_function): Likewise.
42781         * tests/test-snprintf-posix.h (test_function): Likewise.
42782         * tests/test-sprintf-posix.h (test_function): Likewise.
42783
42784         Fix *printf behaviour for large precisions on mingw and BeOS.
42785         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
42786         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
42787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
42788         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42789         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42790         gl_PRINTF_PRECISION and test its result. Invoke
42791         gl_PREREQ_VASNPRINTF_PRECISION.
42792         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42793         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42794         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42795         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42796         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42797         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42798         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42799         * doc/functions/fprintf.texi: Update.
42800         * doc/functions/printf.texi: Update.
42801         * doc/functions/snprintf.texi: Update.
42802         * doc/functions/sprintf.texi: Update.
42803         * doc/functions/vfprintf.texi: Update.
42804         * doc/functions/vprintf.texi: Update.
42805         * doc/functions/vsnprintf.texi: Update.
42806         * doc/functions/vsprintf.texi: Update.
42807
42808 2007-11-04  Bruno Haible  <bruno@clisp.org>
42809
42810         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
42811
42812 2007-11-04  Bruno Haible  <bruno@clisp.org>
42813
42814         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
42815         Reported by Sylvain Beucler <beuc@gnu.org>.
42816
42817 2007-11-03  Bruno Haible  <bruno@clisp.org>
42818
42819         * tests/test-fprintf-posix2.sh: New file.
42820         * tests/test-fprintf-posix2.c: New file.
42821         * modules/fprintf-posix-tests (Files): Add them.
42822         (TESTS): Add test-fprintf-posix2.sh.
42823         (configure.ac): Check for getrlimit and setrlimit.
42824         (check_PROGRAMS): Add test-fprintf-posix2.
42825
42826         * tests/test-printf-posix2.sh: New file.
42827         * tests/test-printf-posix2.c: New file.
42828         * modules/printf-posix-tests (Files): Add them.
42829         (TESTS): Add test-printf-posix2.sh.
42830         (configure.ac): Check for getrlimit and setrlimit.
42831         (check_PROGRAMS): Add test-printf-posix2.
42832
42833         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
42834         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
42835         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
42836         (decode_double): New function, copied from decode_long_double.
42837         (scale10_round_decimal_decoded): New function, extracted from
42838         scale10_round_decimal_long_double.
42839         (scale10_round_decimal_long_double): Use it.
42840         (scale10_round_decimal_double): New function.
42841         (floorlog10): New function.
42842         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
42843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
42844         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42845         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42846         gl_PRINTF_ENOMEM and test its result. Invoke
42847         gl_PREREQ_VASNPRINTF_ENOMEM.
42848         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42852         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42854         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42855         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
42856         * modules/snprintf-posix (Depends-on): Likewise.
42857         * modules/sprintf-posix (Depends-on): Likewise.
42858         * modules/vasnprintf-posix (Depends-on): Likewise.
42859         * modules/vasprintf-posix (Depends-on): Likewise.
42860         * modules/vfprintf-posix (Depends-on): Likewise.
42861         * modules/vsnprintf-posix (Depends-on): Likewise.
42862         * modules/vsprintf-posix (Depends-on): Likewise.
42863         * doc/functions/fprintf.texi: Update.
42864         * doc/functions/printf.texi: Update.
42865         * doc/functions/snprintf.texi: Update.
42866         * doc/functions/sprintf.texi: Update.
42867         * doc/functions/vfprintf.texi: Update.
42868         * doc/functions/vprintf.texi: Update.
42869         * doc/functions/vsnprintf.texi: Update.
42870         * doc/functions/vsprintf.texi: Update.
42871
42872 2007-11-03  Bruno Haible  <bruno@clisp.org>
42873
42874         * modules/frexp-nolibm-tests: New file.
42875
42876         * modules/frexp-nolibm: New file.
42877         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
42878
42879 2007-11-03  Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
42882         value is C99 compliant.
42883         Needed for OSF/1 5.1.
42884
42885 2007-11-03  Bruno Haible  <bruno@clisp.org>
42886
42887         Fix out-of-memory handling of vasnprintf.
42888         * lib/printf-parse.c: Include <errno.h>.
42889         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
42890         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
42891         is already set.
42892
42893 2007-11-02  Eric Blake  <ebb9@byu.net>
42894
42895         Fix tests on cygwin.
42896         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
42897
42898 2007-11-01  Bruno Haible  <bruno@clisp.org>
42899
42900         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
42901         warning.
42902         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
42903         needed for POSIX compatibility.
42904
42905 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42906
42907         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
42908         for compatibility with GNU.
42909
42910 2007-11-01  Bruno Haible  <bruno@clisp.org>
42911
42912         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
42913         (putenv): Renamed from rpl_putenv. Change argument type from
42914         'const char *' to 'char *'.
42915         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
42916         of defining putenv in config.h, just set REPLACE_PUTENV.
42917         * modules/putenv (Depends-on): Add stdlib.
42918         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42919         (Include): Use <stdlib.h>.
42920         * lib/stdlib.in.h (putenv): New declaration.
42921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
42922         REPLACE_PUTENV.
42923         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
42924         REPLACE_PUTENV.
42925         Needed for MacOS X 10.5.0.
42926         Reported by Peter O'Gorman <peter@pogma.com>.
42927
42928 2007-11-01  Jim Meyering  <meyering@redhat.com>
42929
42930         Treat an empty date string exactly like "0".
42931         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
42932         if the remaining date string (to be parsed) is empty, use "0".
42933         Reported by Mischa Molhoek and discussed in this thread:
42934         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
42935
42936 2007-10-31  Bruno Haible  <bruno@clisp.org>
42937
42938         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
42939         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
42940         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
42941         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
42942         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
42943         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
42944
42945 2007-10-31  Bruno Haible  <bruno@clisp.org>
42946
42947         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
42948         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
42949         (AC_TYPE_LONG_LONG_INT): Use it.
42950         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
42951         it as well.
42952         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
42953         to m4/longlong.m4.
42954         * modules/stdint (Files): Remove m4/ulonglong.m4.
42955         * modules/strtoull (Files): Use m4/longlong.m4 instead of
42956         m4/ulonglong.m4.
42957         * modules/strtoumax (Files): Likewise.
42958
42959 2007-10-30  Bruno Haible  <bruno@clisp.org>
42960
42961         * modules/xvasprintf-posix: New file.
42962         Suggested by Eric Blake.
42963
42964 2007-10-30  Bruno Haible  <bruno@clisp.org>
42965
42966         * modules/xprintf-posix-tests: New file.
42967         * tests/test-xprintf-posix.sh: New file.
42968         * tests/test-xprintf-posix.c: New file.
42969         * tests/test-xfprintf-posix.c: New file.
42970
42971         * modules/xprintf-posix: New file.
42972
42973 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42974
42975         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
42976         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
42977         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
42978
42979 2007-10-29  Bruno Haible  <bruno@clisp.org>
42980
42981         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
42982         contain the special marker '_cv_'.
42983         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42984         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42985         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42986         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42987         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42988         Reported by Ralf Wildenhues.
42989
42990 2007-10-29  Bruno Haible  <bruno@clisp.org>
42991
42992         * gnulib-tool (func_import): When --lgpl is not specified, set
42993         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
42994         GPLv3.
42995         Reported by Simon Josefsson.
42996
42997 2007-10-28  Bruno Haible  <bruno@clisp.org>
42998
42999         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43000         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43001         HAVE_DECL_ISFINITE.
43002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43003         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43004         HAVE_DECL_ISFINITE.
43005
43006 2007-10-28  Bruno Haible  <bruno@clisp.org>
43007
43008         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43009         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43010
43011 2007-10-28  Bruno Haible  <bruno@clisp.org>
43012
43013         Fix link errors with Sun C 5.0 on Solaris 10.
43014         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43015         function is declared but not present in the compiler's libm.
43016         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43017         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43018         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43019         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43020         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43021         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43022         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43024         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43025         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43026         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43027         HAVE_DECL_FLOORL.
43028
43029 2007-10-28  Bruno Haible  <bruno@clisp.org>
43030
43031         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43032         gl_FUNC_FLOORL. Cache the result.
43033         (gl_FUNC_FLOORL): Use it.
43034         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43035         gl_FUNC_CEILL. Cache the result.
43036         (gl_FUNC_CEILL): Use it.
43037
43038         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43039         gl_FUNC_FLOOR. Cache the result.
43040         (gl_FUNC_FLOOR): Use it.
43041         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43042         gl_FUNC_CEIL. Cache the result.
43043         (gl_FUNC_CEIL): Use it.
43044
43045         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43046         gl_FUNC_FLOORF. Cache the result.
43047         (gl_FUNC_FLOORF): Use it.
43048         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43049         gl_FUNC_CEILF. Cache the result.
43050         (gl_FUNC_CEILF): Use it.
43051
43052 2007-10-28  Bruno Haible  <bruno@clisp.org>
43053
43054         * gnulib-tool: Allow specifying the LGPL version number through
43055         --lgpl=2 or --lgpl=3.
43056         (func_usage): Document --lgpl with argument.
43057         Handle --lgpl=... arguments.
43058         (func_import): Recognize also gl_LGPL calls with an argument. When
43059         --lgpl=2 is used and the module's license is just LGPL, report an
43060         error. Set sed_transform_lib_file according to the lgpl variable. In
43061         the generated files, use --lgpl or gl_LGPL invocations with argument,
43062         if necessary.
43063         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43064         an LGPv2+ license.
43065         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43066         gl_LGPL macro.
43067
43068 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43069             Bruno Haible  <bruno@clisp.org>
43070
43071         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43072         (u16_uctomb_aux): Likewise.
43073         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43074         !HAVE_INLINE.
43075         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43076
43077 2007-10-28  Bruno Haible  <bruno@clisp.org>
43078
43079         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43080         Invoke AM_GETTEXT_OPTION if it exists.
43081         * modules/vasprintf: Likewise.
43082         * modules/verror: Likewise.
43083         * modules/xprintf: Likewise.
43084         * modules/xvasprintf: Likewise.
43085
43086 2007-10-27  Ben Pfaff  <blp@gnu.org>
43087
43088         * lib/math.in.h: Define isfinite macro and prototypes for
43089         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43090         implementations.
43091         * m4/math_h.m4: New substitutions for isfinite module.
43092         * lib/isfinite.c: New file.
43093         * m4/isfinite.m4: New file.
43094         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43095         * modules/isfinite: New file.
43096         * modules/isfinite-tests: New file.
43097         * tests/tests-isfinite.c: New file.
43098         * doc/functions/isfinite.texi: Mention isfinite module.
43099         * MODULES.html.sh: Mention new module.
43100
43101 2007-10-27  Ben Pfaff  <blp@gnu.org>
43102
43103         Ralf Wildenhues reported that Tru64 4.0D declares the round
43104         functions but does not have definitions.
43105         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43106         cannot be found in any library, set the output variable to
43107         "missing" instead of "".
43108         * m4/round.m4: Also use our substitute if we cannot find round in
43109         any library, even if it is declared.
43110         * m4/roundf.m4: Likewise for roundf.
43111         * m4/roundl.m4: Likewise for roundl.
43112         * lib/math.in.h: Undefine roundf, round, roundl before defining
43113         their replacements, to allow for hypothetical systems where these
43114         may be defined as macros but not available in libraries.
43115
43116 2007-10-27  Bruno Haible  <bruno@clisp.org>
43117
43118         * doc/gnulib.texi: Invoke @firstparagraphindent.
43119         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43120         changes in gnulib.
43121         (Source changes): New section.
43122
43123 2007-10-26  Bruno Haible  <bruno@clisp.org>
43124
43125         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43126         borrowed from autoconf.
43127
43128 2007-10-26  Bruno Haible  <bruno@clisp.org>
43129
43130         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43131         strerror returned the empty string. Needed on HP-UX 11.00.
43132
43133 2007-10-24  Micah Cowan  <micah@cowan.name>
43134
43135         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43136         * build-aux/bootstrap: Remove support for now-unnecessary option,
43137         --cvs-user, and envvars CVS_USER, CVS_RSH.
43138
43139 2007-10-24  Jim Meyering  <meyering@redhat.com>
43140
43141         Avoid diagnostics from sha1sum when there is no cached checksum.
43142         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43143         if the po.s1 file hasn't been created yet.
43144
43145         * build-aux/bootstrap: Sync from coreutils:
43146         2007-10-24  Jim Meyering  <meyering@redhat.com>
43147         Get gnulib from the git repository, not from an obsolete cvs one.
43148         * build-aux/bootstrap: Suggestion from Micah Cowan.
43149         2007-10-04  Jim Meyering  <jim@meyering.net>
43150         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43151         (update_po_files): Work also when there are no .po files in po/.
43152
43153 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43154
43155         * README: Append ".git" to git and cg examples.
43156         Problem reported by Benoit Sigoure.
43157
43158 2007-10-23  Micah Cowan  <micah@cowan.name>
43159
43160         * users.txt: Add wget.
43161
43162 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43163
43164         Fix linking of some unistdio tests on FreeBSD.
43165         * modules/unistdio/u16-vsnprintf-tests
43166         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43167         * modules/unistdio/u16-vsprintf-tests
43168         (test_u16_vsnprintf1_LDADD): Likewise.
43169         * modules/unistdio/u32-vsnprintf-tests
43170         (test_u32_vsnprintf1_LDADD): Likewise.
43171         * modules/unistdio/u32-vsprintf-tests
43172         (test_u32_vsprintf1_LDADD): Likewise.
43173         * modules/unistdio/u8-vsnprintf-tests
43174         (test_u8_vsnprintf1_LDADD): Likewise.
43175         * modules/unistdio/u8-vsprintf-tests
43176         (test_u8_vsprintf1_LDADD): Likewise.
43177         * modules/unistdio/ulc-vsnprintf-tests
43178         (test_ulc_vsnprintf1_LDADD): Likewise.
43179         * modules/unistdio/ulc-vsprintf-tests
43180         (test_ulc_vsprintf1_LDADD): Likewise.
43181
43182         Fix linking of some uniconv tests on FreeBSD.
43183         * modules/uniconv/u16-conv-from-enc-tests
43184         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43185         * modules/uniconv/u16-conv-to-enc-tests
43186         (test_u16_conv_to_enc_LDADD): Likewise.
43187         * modules/uniconv/u16-strconv-from-enc-tests
43188         (test_u16_strconv_from_enc_LDADD): Likewise.
43189         * modules/uniconv/u16-strconv-to-enc-tests
43190         (test_u16_strconv_to_enc_LDADD): Likewise.
43191         * modules/uniconv/u32-conv-from-enc-tests
43192         (test_u32_conv_from_enc_LDADD): Likewise.
43193         * modules/uniconv/u32-conv-to-enc-tests
43194         (test_u32_conv_to_enc_LDADD): Likewise.
43195         * modules/uniconv/u32-strconv-from-enc-tests
43196         (test_u32_strconv_from_enc_LDADD): Likewise.
43197         * modules/uniconv/u32-strconv-to-enc-tests
43198         (test_u32_strconv_to_enc_LDADD): Likewise.
43199         * modules/uniconv/u8-conv-from-enc-tests
43200         (test_u8_conv_from_enc_LDADD): Likewise.
43201         * modules/uniconv/u8-conv-to-enc-tests
43202         (test_u8_conv_to_enc_LDADD): Likewise.
43203         * modules/uniconv/u8-strconv-from-enc-tests
43204         (test_u8_strconv_from_enc_LDADD): Likewise.
43205         * modules/uniconv/u8-strconv-to-enc-tests
43206         (test_u8_strconv_to_enc_LDADD): Likewise.
43207
43208 2007-10-22  Bruno Haible  <bruno@clisp.org>
43209
43210         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43211         size.
43212
43213 2007-10-22  Eric Blake  <ebb9@byu.net>
43214
43215         Tweak x*printf documentation.
43216         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43217         variable name and comments.
43218         Suggested by Bruno Haible.
43219
43220 2007-10-22  Bruno Haible  <bruno@clisp.org>
43221
43222         * lib/acl.c (copy_acl): Fix file name in comment.
43223
43224 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43225
43226         Fix Tru64 problem with stdbool.h.
43227         * lib/stdbool.in.h (false, true):
43228         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43229         Don't declare as an enum in this situation; it runs afoul of Tru64.
43230         Problem reported by Steven M. Schweda in
43231         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43232
43233 2007-10-22  Eric Blake  <ebb9@byu.net>
43234
43235         Also wrap vf?printf.
43236         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43237         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43238         (xvprintf, xvfprintf): New functions.
43239
43240 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43241
43242         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43243         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43244
43245         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43246         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43247
43248 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43249
43250         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43251         by Bruno Haible.
43252
43253 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43254
43255         * lib/getloadavg.c
43256         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43257         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43258
43259         * tests/test-i-ring.c: Work for C89.
43260
43261 2007-10-22  Bruno Haible  <bruno@clisp.org>
43262
43263         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43264         -1u, in preprocessor expression, so that we don't test for the bug
43265         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43266         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43267
43268 2007-10-22  Eric Blake  <ebb9@byu.net>
43269
43270         * tests/test-yesno.sh: Silence stderr during test.
43271
43272 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43273
43274         * modules/crypto/gc-camellia: New file.
43275
43276         * m4/gc-camellia.m4: New file.
43277
43278         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43279
43280         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43281
43282 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43283
43284         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43285         --help to stdout.  Reported by sms@antinode.org (Steven
43286         M. Schweda).
43287
43288 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43289
43290         * users.txt: Fix link to libksba.
43291
43292 2007-10-21  Ben Pfaff  <blp@gnu.org>
43293
43294         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43295         round.c roundf implementation that depends on floorf and ceilf to
43296         be tested unconditionally.
43297
43298 2007-10-21  Ben Pfaff  <blp@gnu.org>
43299
43300         * m4/check-libm-func.m4: Removed.
43301         * m4/check-math-lib.m4: New file.
43302         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43303         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43304         definition and lack of AC_LIBOBJ([roundf]).
43305         * m4/roundl.m4: Ditto, and similarly for roundl.
43306         * modules/round: Reference new m4 file.
43307         * modules/roundf: Ditto.
43308         * modules/roundl: Ditto.
43309         * tests/test-round2.c (main): Use ROUND instead of round.
43310         Bug report from Bruno Haible.
43311
43312 2007-10-21  Bruno Haible  <bruno@clisp.org>
43313
43314         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43315         context.
43316
43317 2007-10-21  Bruno Haible  <bruno@clisp.org>
43318
43319         * tests/test-wcwidth.c (main): Allow negative result for some control
43320         characters.
43321
43322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43323         Needed on OSF/1 5.1.
43324
43325 2007-10-21  Bruno Haible  <bruno@clisp.org>
43326
43327         * tests/test-floorf1.c: Include isnanf.h.
43328         (main): Use isnanf() instead of isnan().
43329         * tests/test-ceilf1.c: Include isnanf.h.
43330         (main): Use isnanf() instead of isnan().
43331         * tests/test-truncf1.c: Include isnanf.h.
43332         (main): Use isnanf() instead of isnan().
43333         * tests/test-roundf1.c: Include isnanf.h.
43334         (main): Use isnanf() instead of isnan().
43335
43336 2007-10-21  Eric Blake  <ebb9@byu.net>
43337
43338         * users.txt: Update URL for m4.
43339
43340 2007-10-21  Bruno Haible  <bruno@clisp.org>
43341
43342         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43343
43344 2007-10-21  Bruno Haible  <bruno@clisp.org>
43345
43346         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43347         Git's management files if the CVS files are not present.
43348
43349 2007-10-20  Bruno Haible  <bruno@clisp.org>
43350
43351         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
43352         gcc-3.4.x.
43353
43354 2007-10-20  Ben Pfaff  <blp@gnu.org>
43355
43356         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43357         implementations.
43358         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43359         * lib/round.c: New file.
43360         * lib/roundf.c: New file.
43361         * lib/roundl.c: New file.
43362         * m4/round.m4: New file.
43363         * m4/roundf.m4: New file.
43364         * m4/roundl.m4: New file.
43365         * m4/check-libm-func-m4: New file.
43366         * modules/math: Replace round, roundf, roundl related @VARS@ in
43367         math.in.h.
43368         * modules/round: New file.
43369         * modules/round-tests: New file.
43370         * modules/roundf: New file.
43371         * modules/roundf-tests: New file.
43372         * modules/roundl: New file.
43373         * modules/roundl-tests: New file.
43374         * tests/test-round1.c: New file.
43375         * tests/test-round2.c: New file.
43376         * tests/test-roundf1.c: New file.
43377         * tests/test-roundf2.c: New file.
43378         * tests/test-roundl.c: New file.
43379         * doc/functions/round.texi: Mention round module.
43380         * doc/functions/roundf.texi: Mention roundf module.
43381         * doc/functions/roundl.texi: Mention roundl module.
43382         * MODULES.html.sh: Mention new modules.
43383         Thanks to Bruno Haible for suggestions.
43384
43385 2007-10-20  Jim Meyering  <meyering@redhat.com>
43386
43387         * lib/xprintf.c: Include <config.h> unconditionally.
43388
43389         Change xprintf's license to GPL.
43390         * modules/xprintf (License): s/LGPL/GPL/, since this module
43391         depends on modules (exit and exitfail) which are GPL.
43392         Suggestion from Bruno Haible.
43393
43394         xprintf fixes.
43395         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43396         Use a clearer diagnostic.
43397         Patch from Bruno Haible.
43398
43399 2007-10-20  Bruno Haible  <bruno@clisp.org>
43400
43401         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43402         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43403         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43404
43405 2007-10-20  Bruno Haible  <bruno@clisp.org>
43406
43407         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43408         precision in the comparison result > x - 1 or similar.
43409         * tests/test-ceilf2.c (correct_result_p): Likewise.
43410         * tests/test-truncf2.c (correct_result_p): Likewise.
43411         * tests/test-trunc2.c (correct_result_p): Likewise.
43412         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43413
43414 2007-10-20  Bruno Haible  <bruno@clisp.org>
43415
43416         * modules/ceil: New file.
43417         * m4/ceil.m4: New file.
43418         * doc/functions/ceil.texi: Mention the 'ceil' module.
43419
43420 2007-10-20  Bruno Haible  <bruno@clisp.org>
43421
43422         * modules/floor: New file.
43423         * m4/floor.m4: New file.
43424         * doc/functions/floor.texi: Mention the 'floor' module.
43425
43426 2007-10-20  Bruno Haible  <bruno@clisp.org>
43427
43428         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
43429         of %a.
43430         * modules/floorf-tests (Depends-on): Likewise.
43431         * modules/truncf-tests (Depends-on): Likewise.
43432         * modules/trunc-tests (Depends-on): Likewise.
43433         Reported by Ben Pfaff.
43434
43435 2007-10-19  Jim Meyering  <meyering@redhat.com>
43436
43437         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
43438         Don't bother testing specific errno values.  Just test ferror.
43439
43440         New module: xprintf
43441         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
43442
43443 2007-10-19  Bruno Haible  <bruno@clisp.org>
43444
43445         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
43446         syntax.
43447         * modules/javaexec (Makefile.am): Likewise.
43448         * modules/relocatable-prog (Makefile.am): Likewise.
43449         Suggested by Jim Meyering.
43450
43451 2007-10-18  Bruno Haible  <bruno@clisp.org>
43452
43453         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
43454         Reported by Jim Meyering.
43455
43456 2007-10-18  Eric Blake  <ebb9@byu.net>
43457
43458         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
43459
43460 2007-10-18  Bruno Haible  <bruno@clisp.org>
43461
43462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
43463         the format string into writable memory. Needed in Fortify conditions.
43464
43465 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
43466             Bruno Haible  <bruno@clisp.org>
43467
43468         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
43469         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
43470         * modules/trim (Depends-on): Add mbchar.
43471         (configure.ac): Add gl_FUNC_MBRTOWC.
43472         (Makefile.am): Augment lib_SOURCES.
43473
43474 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43475
43476         Modify glob.c to use fstatat and dirfd, to simplify it.
43477         Suggested by Eric Blake.
43478         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
43479         Don't include <stdbool.h>; not used.
43480         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
43481         (link_exists_p): Simplify implementation, since we can now assume
43482         dirfd and fstatat.
43483         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
43484
43485 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43486
43487         * gnulib-tool (func_get_dependencies): Fix sed script to
43488         match only tests.
43489
43490 2007-10-17  Bruno Haible  <bruno@clisp.org>
43491
43492         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
43493         allow locale names without encoding suffix.
43494         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43495         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43496
43497 2007-10-16  Bruno Haible  <bruno@clisp.org>
43498
43499         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
43500         * lib/getgroups.c (getgroups): Likewise.
43501         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
43502
43503 2007-10-16  Bruno Haible  <bruno@clisp.org>
43504
43505         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
43506         * modules/malloc-posix (License): Likewise.
43507         * modules/realloc-posix (License): Likewise.
43508         * modules/calloc-posix (License): Likewise.
43509         * modules/intprops (License): Change from GPL to LGPL, with
43510         Paul Eggert's approval.
43511
43512 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43513
43514         Merge glibc changes into lib/glob.c.
43515
43516         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
43517         2007-10-15 04:59:03 UTC.  Here are the changes:
43518
43519         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
43520
43521         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
43522
43523         * lib/glob.c: Add some branch prediction throughout.
43524
43525         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
43526
43527         [BZ #5103]
43528         * lib/glob.c (glob): Recognize patterns starting \/.
43529
43530         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
43531
43532         [BZ #3996]
43533         * lib/glob.c (attribute_hidden): Define if not defined.
43534         (glob): Unescape dirname, filename or username when needed and not
43535         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
43536         is NULL.  Handle unescaped [ in pattern without closing ].
43537         Don't pass GLOB_CHECK down to recursive glob for directories.
43538         (__glob_pattern_type): New function.
43539         (__glob_pattern_p): Implement using __glob_pattern_type.
43540         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
43541         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
43542         Remove unreachable code.
43543
43544         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
43545
43546         * lib/glob.c (glob_in_dir): Add some comments and asserts to
43547         explain why there are no leaks.
43548
43549         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
43550
43551         [BZ #3253]
43552         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
43553         time, rather allocate increasingly bigger arrays of pointers, if
43554         possible with alloca, if too large with malloc.
43555
43556 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43557
43558         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
43559         Problem reported by H.Merijn Brand in
43560         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
43561         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
43562         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43563
43564 2007-10-15  Bruno Haible  <bruno@clisp.org>
43565
43566         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
43567         with explicit rpl_ prefix.
43568         * lib/fopen.c (fopen): Likewise.
43569         * lib/freopen.c (freopen): Likewise.
43570         * lib/iconv.c (iconv): Likewise.
43571         * lib/iconv_close.c (iconv_close): Likewise.
43572
43573 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43574
43575         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
43576
43577 2007-10-15  Bruno Haible  <bruno@clisp.org>
43578
43579         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
43580         <stddef.h> instead of <stdlib.h> since we only need NULL.
43581         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43582
43583 2007-10-15  Bruno Haible  <bruno@clisp.org>
43584
43585         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
43586         Replace paragraph talking about LIBOBJS.
43587         Reported by Colin Watson <cjwatson@debian.org>.
43588
43589 2007-10-15  Bruno Haible  <bruno@clisp.org>
43590
43591         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
43592         <stdlib.h> before using NULL.
43593
43594 2007-10-15  Simon Josefsson  <simon@josefsson.org>
43595
43596         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
43597         Reported by Albert Chin <china@thewrittenword.com>.
43598
43599 2007-10-14  Bruno Haible  <bruno@clisp.org>
43600
43601         * modules/iconv_open-utf-tests: New file.
43602         * tests/test-iconv-utf.c: New file.
43603
43604         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
43605         * modules/iconv_open-utf: New file.
43606         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
43607         (iconv, iconv_close): New declarations.
43608         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
43609         be defined.
43610         (iconv_open): Add special handling of conversion between UTF-8 and
43611         UTF-{16,32}{BE,LE}.
43612         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
43613         * lib/iconv_close.c: New file.
43614         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
43615         gl_FUNC_ICONV_OPEN.
43616         (gl_FUNC_ICONV_OPEN): Use it.
43617         (gl_FUNC_ICONV_OPEN_UTF): New macro.
43618         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
43619         and REPLACE_ICONV_UTF.
43620         * modules/iconv_open (Depends-on): Add c-strcase.
43621         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
43622         ICONV_CONST.
43623         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
43624
43625 2007-10-13  Albert Chin  <china@thewrittenword.com>
43626             Bruno Haible  <bruno@clisp.org>
43627
43628         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
43629         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
43630
43631 2007-10-13  Bruno Haible  <bruno@clisp.org>
43632
43633         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
43634         defined, use the ISO C99 inline semantics.
43635         * lib/argp.h (ARGP_EI): Likewise.
43636
43637 2007-10-13  Bruno Haible  <bruno@clisp.org>
43638
43639         Handle 'inline' change in gcc 4.3.0.
43640         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
43641         argp_fmtstream_write, argp_fmtstream_set_lmargin,
43642         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
43643         argp_fmtstream_point): Disable 'extern' declaration if the function
43644         definition is going to be provided inline.
43645         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
43646         semantics, not the ISO C99 inline semantics.
43647         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
43648         'extern' declaration if the function definition is going to be provided
43649         inline.
43650         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
43651         the GNU C inline semantics, not the ISO C99 inline semantics. With
43652         GCC 4.2, avoid a warning.
43653
43654 2007-10-13  Bruno Haible  <bruno@clisp.org>
43655
43656         * lib/freading.h (freading): Enable the use of __freading for
43657         glibc >= 2.7.
43658         * lib/freading.c (freading): Likewise.
43659
43660 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43661
43662         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
43663         "warning: C99 inline functions are not supported; using GNU89".
43664
43665 2007-10-12  Bruno Haible  <bruno@clisp.org>
43666
43667         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
43668         of 2.
43669         * tests/test-ceilf2.c: New file.
43670         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
43671
43672         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
43673         * modules/ceilf-tests: Update.
43674
43675 2007-10-12  Bruno Haible  <bruno@clisp.org>
43676
43677         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
43678         of 2.
43679         * tests/test-floorf2.c: New file.
43680         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
43681
43682         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
43683         * modules/floorf-tests: Update.
43684
43685 2007-10-12  Bruno Haible  <bruno@clisp.org>
43686
43687         * tests/test-trunc2.c: New file.
43688         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
43689
43690         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
43691         * modules/trunc-tests: Update.
43692
43693 2007-10-12  Bruno Haible  <bruno@clisp.org>
43694
43695         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
43696         of 2.
43697         * tests/test-truncf2.c: New file.
43698         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
43699
43700         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
43701         * modules/truncf-tests: Update.
43702
43703 2007-10-11  Eric Blake  <ebb9@byu.net>
43704
43705         Don't claim strerror is broken on Interix.
43706         * doc/functions/strerror.texi (strerror): Known broken systems are
43707         now Solaris 8, and not Interix.
43708         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
43709         Interix on cross-compile.
43710         Reported by Martin Koeppe in
43711         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
43712
43713 2007-10-11  Bruno Haible  <bruno@clisp.org>
43714
43715         * modules/i-ring-tests: New file.
43716         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
43717         instead of assert.
43718
43719 2007-10-11  Bruno Haible  <bruno@clisp.org>
43720
43721         * modules/filenamecat-tests: New file.
43722         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
43723         * lib/filenamecat.c: Remove test code.
43724
43725 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43726
43727         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
43728
43729         * lib/strerror.c: Include <string.h> always, to test interface,
43730         and to remove the need for the dummy.
43731         Include intprops.h to compute width instead of doing it ourselves
43732         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
43733         (strerror): Define it to return NULL if there's no system strerror.
43734         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
43735         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
43736         ancient pre-strerror Unix systems well any more.  Saying "unknown
43737         system error" is enough.
43738         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
43739         simpler strerror.c implementation.
43740         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
43741         Simplify the tests to reflect the simpler strerror implementation.
43742         * modules/strerror (Depends-on): Add intprops.
43743
43744 2007-10-09  Eric Blake  <ebb9@byu.net>
43745
43746         Silence test-fpending.
43747         * modules/fpending-tests (Files): Add wrapper script.
43748         * tests/test-fpending.sh: New file.
43749
43750 2007-10-09  Bruno Haible  <bruno@clisp.org>
43751
43752         * MODULES.html.sh (func_module): Don't create a hyperlink for
43753         function names like 'printf_frexp'.
43754         (Misc): Add crc, memxor.
43755         (Characteristics of floating types): New section.
43756         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
43757         isnanf-nolibm, signbit, trunc, truncf, truncl.
43758         (Enhancements for ISO C 99 functions): New subsection Input/output.
43759         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
43760         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
43761         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
43762         (Compatibility checks for POSIX:2001 functions): Add clock-time.
43763         (Enhancements for POSIX:2001 functions): Add chdir-long.
43764         (File system functions): Add areadlink, chdir-safer, read-file.
43765         Remove cycle-check.
43766         (File system as inode set): New section.
43767         (Date and time): Add gethrxtime.
43768         (Multithreading): Add openmp.
43769         (Internationalization functions): Add localename.
43770         (Unicode string functions): Add unistr/u*-mbsnlen.
43771         (Support for maintaining and releasing projects): Add git-version-gen.
43772         (Lone files): Remove directories.
43773
43774 2007-10-08  Ben Pfaff  <blp@gnu.org>
43775
43776         * lib/xmalloca.h: Fix typo in comment.
43777
43778 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43779
43780         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
43781         when avoiding problems with integer overflow.  Use a portable test
43782         instead.
43783
43784 2007-10-08  Simon Josefsson  <simon@josefsson.org>
43785
43786         * modules/dummy (License): Change to LGPLv2+.
43787         * modules/float (License): Likewise
43788         * modules/realloc (License): Likewise
43789         * modules/stdlib (License): Likewise
43790
43791 2007-10-07  Bruno Haible  <bruno@clisp.org>
43792
43793         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
43794         * floor.c (TWO_MANT_DIG): Likewise.
43795         * ceil.c (TWO_MANT_DIG): Likewise.
43796         Reported by Ben Pfaff.
43797
43798 2007-10-07  Bruno Haible  <bruno@clisp.org>
43799
43800         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
43801         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
43802         * lib/frexp.c (FUNC): Likewise.
43803         * lib/printf-frexp.h (printf_frexp): Likewise.
43804         * lib/printf-frexpl.h (printf_frexpl): Likewise.
43805         * lib/printf-frexp.c (FUNC): Likewise.
43806         Suggested by Jim Meyering.
43807
43808 2007-10-07  Jim Meyering  <meyering@redhat.com>
43809
43810         Make xnanosleep's integer overflow test more robust.
43811         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
43812         so that gcc-4.3.0 doesn't optimize away this test for overflow.
43813
43814 2007-10-07  Bruno Haible  <bruno@clisp.org>
43815
43816         * NEWS: Mention the license change.
43817
43818         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
43819         abbreviations in the modules files.
43820
43821         Change copyright notice from GPLv2+ to GPLv3+.
43822         * README: Change copyright notice.
43823         * MODULES.html.sh: Likewise.
43824         * build-aux/bootstrap.conf: Likewise.
43825         * build-aux/config.libpath: Likewise.
43826         * build-aux/csharpcomp.sh.in: Likewise.
43827         * build-aux/csharpexec.sh.in: Likewise.
43828         * build-aux/install-reloc: Likewise.
43829         * build-aux/javacomp.sh.in: Likewise.
43830         * build-aux/javaexec.sh.in: Likewise.
43831         * build-aux/ldd.sh.in: Likewise.
43832         * build-aux/reloc-ldflags: Likewise.
43833         * build-aux/relocatable.sh.in: Likewise.
43834         * build-aux/x-to-1.in: Likewise.
43835         * check-module: Likewise.
43836         * config/srclistvars.sh: Likewise.
43837         * gnulib-tool: Likewise.
43838         * lib/acl-internal.h: Likewise.
43839         * lib/acl.c: Likewise.
43840         * lib/acl.h: Likewise.
43841         * lib/acl_entries.c: Likewise.
43842         * lib/areadlink-with-size.c: Likewise.
43843         * lib/areadlink.c: Likewise.
43844         * lib/areadlink.h: Likewise.
43845         * lib/argmatch.c: Likewise.
43846         * lib/argmatch.h: Likewise.
43847         * lib/argp-ba.c: Likewise.
43848         * lib/argp-eexst.c: Likewise.
43849         * lib/argp-fmtstream.c: Likewise.
43850         * lib/argp-fmtstream.h: Likewise.
43851         * lib/argp-fs-xinl.c: Likewise.
43852         * lib/argp-help.c: Likewise.
43853         * lib/argp-namefrob.h: Likewise.
43854         * lib/argp-parse.c: Likewise.
43855         * lib/argp-pin.c: Likewise.
43856         * lib/argp-pv.c: Likewise.
43857         * lib/argp-pvh.c: Likewise.
43858         * lib/argp-xinl.c: Likewise.
43859         * lib/argp.h: Likewise.
43860         * lib/at-func.c: Likewise.
43861         * lib/atanl.c: Likewise.
43862         * lib/backupfile.c: Likewise.
43863         * lib/backupfile.h: Likewise.
43864         * lib/basename.c: Likewise.
43865         * lib/binary-io.h: Likewise.
43866         * lib/byteswap.in.h: Likewise.
43867         * lib/c-stack.c: Likewise.
43868         * lib/c-stack.h: Likewise.
43869         * lib/c-strcasestr.c: Likewise.
43870         * lib/c-strcasestr.h: Likewise.
43871         * lib/c-strstr.c: Likewise.
43872         * lib/c-strstr.h: Likewise.
43873         * lib/c-strtod.c: Likewise.
43874         * lib/calloc.c: Likewise.
43875         * lib/canon-host.c: Likewise.
43876         * lib/canon-host.h: Likewise.
43877         * lib/canonicalize-lgpl.c: Likewise.
43878         * lib/canonicalize.c: Likewise.
43879         * lib/canonicalize.h: Likewise.
43880         * lib/ceil.c: Likewise.
43881         * lib/ceilf.c: Likewise.
43882         * lib/ceill.c: Likewise.
43883         * lib/chdir-long.c: Likewise.
43884         * lib/chdir-long.h: Likewise.
43885         * lib/chdir-safer.c: Likewise.
43886         * lib/chdir-safer.h: Likewise.
43887         * lib/chown.c: Likewise.
43888         * lib/classpath.c: Likewise.
43889         * lib/classpath.h: Likewise.
43890         * lib/clean-temp.c: Likewise.
43891         * lib/clean-temp.h: Likewise.
43892         * lib/cloexec.c: Likewise.
43893         * lib/close-stream.c: Likewise.
43894         * lib/closein.c: Likewise.
43895         * lib/closein.h: Likewise.
43896         * lib/closeout.c: Likewise.
43897         * lib/closeout.h: Likewise.
43898         * lib/concat-filename.c: Likewise.
43899         * lib/copy-file.c: Likewise.
43900         * lib/copy-file.h: Likewise.
43901         * lib/count-one-bits.h: Likewise.
43902         * lib/crc.c: Likewise.
43903         * lib/crc.h: Likewise.
43904         * lib/creat-safer.c: Likewise.
43905         * lib/csharpcomp.c: Likewise.
43906         * lib/csharpcomp.h: Likewise.
43907         * lib/csharpexec.c: Likewise.
43908         * lib/csharpexec.h: Likewise.
43909         * lib/cycle-check.c: Likewise.
43910         * lib/cycle-check.h: Likewise.
43911         * lib/diacrit.c: Likewise.
43912         * lib/diacrit.h: Likewise.
43913         * lib/diffseq.h: Likewise.
43914         * lib/dirchownmod.c: Likewise.
43915         * lib/dirent.in.h: Likewise.
43916         * lib/dirfd.c: Likewise.
43917         * lib/dirfd.h: Likewise.
43918         * lib/dirname.c: Likewise.
43919         * lib/dirname.h: Likewise.
43920         * lib/dummy.c: Likewise.
43921         * lib/dup-safer.c: Likewise.
43922         * lib/dup2.c: Likewise.
43923         * lib/eealloc.h: Likewise.
43924         * lib/error.c: Likewise.
43925         * lib/error.h: Likewise.
43926         * lib/euidaccess.c: Likewise.
43927         * lib/exclude.c: Likewise.
43928         * lib/exclude.h: Likewise.
43929         * lib/execute.c: Likewise.
43930         * lib/execute.h: Likewise.
43931         * lib/exitfail.c: Likewise.
43932         * lib/exitfail.h: Likewise.
43933         * lib/expl.c: Likewise.
43934         * lib/fatal-signal.c: Likewise.
43935         * lib/fatal-signal.h: Likewise.
43936         * lib/fbufmode.c: Likewise.
43937         * lib/fbufmode.h: Likewise.
43938         * lib/fchdir.c: Likewise.
43939         * lib/fchmodat.c: Likewise.
43940         * lib/fchownat.c: Likewise.
43941         * lib/fcntl--.h: Likewise.
43942         * lib/fcntl-safer.h: Likewise.
43943         * lib/fcntl.in.h: Likewise.
43944         * lib/fd-safer.c: Likewise.
43945         * lib/fflush.c: Likewise.
43946         * lib/file-has-acl.c: Likewise.
43947         * lib/file-set.c: Likewise.
43948         * lib/file-type.c: Likewise.
43949         * lib/file-type.h: Likewise.
43950         * lib/fileblocks.c: Likewise.
43951         * lib/filemode.c: Likewise.
43952         * lib/filemode.h: Likewise.
43953         * lib/filename.h: Likewise.
43954         * lib/filenamecat.c: Likewise.
43955         * lib/filenamecat.h: Likewise.
43956         * lib/findprog.c: Likewise.
43957         * lib/findprog.h: Likewise.
43958         * lib/float.in.h: Likewise.
43959         * lib/floor.c: Likewise.
43960         * lib/floorf.c: Likewise.
43961         * lib/floorl.c: Likewise.
43962         * lib/fopen-safer.c: Likewise.
43963         * lib/fopen.c: Likewise.
43964         * lib/fpending.c: Likewise.
43965         * lib/fpending.h: Likewise.
43966         * lib/fprintf.c: Likewise.
43967         * lib/fprintftime.h: Likewise.
43968         * lib/fpucw.h: Likewise.
43969         * lib/fpurge.c: Likewise.
43970         * lib/fpurge.h: Likewise.
43971         * lib/freadable.c: Likewise.
43972         * lib/freadable.h: Likewise.
43973         * lib/freadahead.c: Likewise.
43974         * lib/freadahead.h: Likewise.
43975         * lib/freading.c: Likewise.
43976         * lib/freading.h: Likewise.
43977         * lib/free.c: Likewise.
43978         * lib/freopen.c: Likewise.
43979         * lib/frexp.c: Likewise.
43980         * lib/frexpl.c: Likewise.
43981         * lib/fseek.c: Likewise.
43982         * lib/fseterr.c: Likewise.
43983         * lib/fseterr.h: Likewise.
43984         * lib/fstatat.c: Likewise.
43985         * lib/fstrcmp.c: Likewise.
43986         * lib/fstrcmp.h: Likewise.
43987         * lib/fsusage.c: Likewise.
43988         * lib/fsusage.h: Likewise.
43989         * lib/ftell.c: Likewise.
43990         * lib/ftello.c: Likewise.
43991         * lib/fts-cycle.c: Likewise.
43992         * lib/fts.c: Likewise.
43993         * lib/fts_.h: Likewise.
43994         * lib/full-read.c: Likewise.
43995         * lib/full-read.h: Likewise.
43996         * lib/full-write.c: Likewise.
43997         * lib/full-write.h: Likewise.
43998         * lib/fwritable.c: Likewise.
43999         * lib/fwritable.h: Likewise.
44000         * lib/fwriteerror.c: Likewise.
44001         * lib/fwriteerror.h: Likewise.
44002         * lib/fwriting.c: Likewise.
44003         * lib/fwriting.h: Likewise.
44004         * lib/gcd.c: Likewise.
44005         * lib/gcd.h: Likewise.
44006         * lib/getcwd.c: Likewise.
44007         * lib/getdate.h: Likewise.
44008         * lib/getdate.y: Likewise.
44009         * lib/getdomainname.c: Likewise.
44010         * lib/getdomainname.h: Likewise.
44011         * lib/getgroups.c: Likewise.
44012         * lib/gethostname.c: Likewise.
44013         * lib/gethrxtime.c: Likewise.
44014         * lib/gethrxtime.h: Likewise.
44015         * lib/getloadavg.c: Likewise.
44016         * lib/getndelim2.c: Likewise.
44017         * lib/getndelim2.h: Likewise.
44018         * lib/getnline.c: Likewise.
44019         * lib/getnline.h: Likewise.
44020         * lib/getopt.c: Likewise.
44021         * lib/getopt.in.h: Likewise.
44022         * lib/getopt1.c: Likewise.
44023         * lib/getopt_int.h: Likewise.
44024         * lib/getpagesize.h: Likewise.
44025         * lib/getsubopt.c: Likewise.
44026         * lib/gettime.c: Likewise.
44027         * lib/getugroups.c: Likewise.
44028         * lib/getugroups.h: Likewise.
44029         * lib/getusershell.c: Likewise.
44030         * lib/gl_anyavltree_list1.h: Likewise.
44031         * lib/gl_anyavltree_list2.h: Likewise.
44032         * lib/gl_anyhash_list1.h: Likewise.
44033         * lib/gl_anyhash_list2.h: Likewise.
44034         * lib/gl_anylinked_list1.h: Likewise.
44035         * lib/gl_anylinked_list2.h: Likewise.
44036         * lib/gl_anyrbtree_list1.h: Likewise.
44037         * lib/gl_anyrbtree_list2.h: Likewise.
44038         * lib/gl_anytree_list1.h: Likewise.
44039         * lib/gl_anytree_list2.h: Likewise.
44040         * lib/gl_anytree_oset.h: Likewise.
44041         * lib/gl_anytreehash_list1.h: Likewise.
44042         * lib/gl_anytreehash_list2.h: Likewise.
44043         * lib/gl_array_list.c: Likewise.
44044         * lib/gl_array_list.h: Likewise.
44045         * lib/gl_array_oset.c: Likewise.
44046         * lib/gl_array_oset.h: Likewise.
44047         * lib/gl_avltree_list.c: Likewise.
44048         * lib/gl_avltree_list.h: Likewise.
44049         * lib/gl_avltree_oset.c: Likewise.
44050         * lib/gl_avltree_oset.h: Likewise.
44051         * lib/gl_avltreehash_list.c: Likewise.
44052         * lib/gl_avltreehash_list.h: Likewise.
44053         * lib/gl_carray_list.c: Likewise.
44054         * lib/gl_carray_list.h: Likewise.
44055         * lib/gl_linked_list.c: Likewise.
44056         * lib/gl_linked_list.h: Likewise.
44057         * lib/gl_linkedhash_list.c: Likewise.
44058         * lib/gl_linkedhash_list.h: Likewise.
44059         * lib/gl_list.c: Likewise.
44060         * lib/gl_list.h: Likewise.
44061         * lib/gl_oset.c: Likewise.
44062         * lib/gl_oset.h: Likewise.
44063         * lib/gl_rbtree_list.c: Likewise.
44064         * lib/gl_rbtree_list.h: Likewise.
44065         * lib/gl_rbtree_oset.c: Likewise.
44066         * lib/gl_rbtree_oset.h: Likewise.
44067         * lib/gl_rbtreehash_list.c: Likewise.
44068         * lib/gl_rbtreehash_list.h: Likewise.
44069         * lib/gl_sublist.c: Likewise.
44070         * lib/gl_sublist.h: Likewise.
44071         * lib/group-member.c: Likewise.
44072         * lib/group-member.h: Likewise.
44073         * lib/hard-locale.c: Likewise.
44074         * lib/hard-locale.h: Likewise.
44075         * lib/hash-pjw.c: Likewise.
44076         * lib/hash-pjw.h: Likewise.
44077         * lib/hash-triple.c: Likewise.
44078         * lib/hash.c: Likewise.
44079         * lib/hash.h: Likewise.
44080         * lib/human.c: Likewise.
44081         * lib/human.h: Likewise.
44082         * lib/i-ring.c: Likewise.
44083         * lib/i-ring.h: Likewise.
44084         * lib/idcache.c: Likewise.
44085         * lib/imaxabs.c: Likewise.
44086         * lib/imaxdiv.c: Likewise.
44087         * lib/inet_pton.c: Likewise.
44088         * lib/inet_pton.h: Likewise.
44089         * lib/intprops.h: Likewise.
44090         * lib/inttostr.c: Likewise.
44091         * lib/inttostr.h: Likewise.
44092         * lib/inttypes.in.h: Likewise.
44093         * lib/isapipe.c: Likewise.
44094         * lib/isdir.c: Likewise.
44095         * lib/isnan.c: Likewise.
44096         * lib/isnan.h: Likewise.
44097         * lib/isnanf.c: Likewise.
44098         * lib/isnanf.h: Likewise.
44099         * lib/isnanl-nolibm.h: Likewise.
44100         * lib/isnanl.c: Likewise.
44101         * lib/isnanl.h: Likewise.
44102         * lib/javacomp.c: Likewise.
44103         * lib/javacomp.h: Likewise.
44104         * lib/javaexec.c: Likewise.
44105         * lib/javaexec.h: Likewise.
44106         * lib/javaversion.c: Likewise.
44107         * lib/javaversion.h: Likewise.
44108         * lib/javaversion.java: Likewise.
44109         * lib/lbrkprop.h: Likewise.
44110         * lib/lchmod.h: Likewise.
44111         * lib/lchown.c: Likewise.
44112         * lib/ldexpl.c: Likewise.
44113         * lib/linebreak.c: Likewise.
44114         * lib/linebreak.h: Likewise.
44115         * lib/linebuffer.c: Likewise.
44116         * lib/linebuffer.h: Likewise.
44117         * lib/locale.in.h: Likewise.
44118         * lib/logl.c: Likewise.
44119         * lib/long-options.c: Likewise.
44120         * lib/long-options.h: Likewise.
44121         * lib/lstat.c: Likewise.
44122         * lib/lstat.h: Likewise.
44123         * lib/math.in.h: Likewise.
44124         * lib/mbchar.c: Likewise.
44125         * lib/mbchar.h: Likewise.
44126         * lib/mbfile.h: Likewise.
44127         * lib/mbiter.h: Likewise.
44128         * lib/mbscasecmp.c: Likewise.
44129         * lib/mbscasestr.c: Likewise.
44130         * lib/mbschr.c: Likewise.
44131         * lib/mbscspn.c: Likewise.
44132         * lib/mbslen.c: Likewise.
44133         * lib/mbsncasecmp.c: Likewise.
44134         * lib/mbsnlen.c: Likewise.
44135         * lib/mbspbrk.c: Likewise.
44136         * lib/mbspcasecmp.c: Likewise.
44137         * lib/mbsrchr.c: Likewise.
44138         * lib/mbssep.c: Likewise.
44139         * lib/mbsspn.c: Likewise.
44140         * lib/mbsstr.c: Likewise.
44141         * lib/mbstok_r.c: Likewise.
44142         * lib/mbswidth.c: Likewise.
44143         * lib/mbswidth.h: Likewise.
44144         * lib/mbuiter.h: Likewise.
44145         * lib/memcasecmp.c: Likewise.
44146         * lib/memcasecmp.h: Likewise.
44147         * lib/memchr.c: Likewise.
44148         * lib/memcmp.c: Likewise.
44149         * lib/memcoll.c: Likewise.
44150         * lib/memcoll.h: Likewise.
44151         * lib/memcpy.c: Likewise.
44152         * lib/memrchr.c: Likewise.
44153         * lib/mkancesdirs.c: Likewise.
44154         * lib/mkdir-p.c: Likewise.
44155         * lib/mkdir-p.h: Likewise.
44156         * lib/mkdir.c: Likewise.
44157         * lib/mkdirat.c: Likewise.
44158         * lib/mkdtemp.c: Likewise.
44159         * lib/mkstemp-safer.c: Likewise.
44160         * lib/mkstemp.c: Likewise.
44161         * lib/modechange.c: Likewise.
44162         * lib/modechange.h: Likewise.
44163         * lib/mountlist.c: Likewise.
44164         * lib/mountlist.h: Likewise.
44165         * lib/mpsort.c: Likewise.
44166         * lib/nanosleep.c: Likewise.
44167         * lib/obstack.c: Likewise.
44168         * lib/obstack.h: Likewise.
44169         * lib/open-safer.c: Likewise.
44170         * lib/open.c: Likewise.
44171         * lib/openat-die.c: Likewise.
44172         * lib/openat-priv.h: Likewise.
44173         * lib/openat-proc.c: Likewise.
44174         * lib/openat.c: Likewise.
44175         * lib/openat.h: Likewise.
44176         * lib/pagealign_alloc.c: Likewise.
44177         * lib/pagealign_alloc.h: Likewise.
44178         * lib/physmem.c: Likewise.
44179         * lib/physmem.h: Likewise.
44180         * lib/pipe-safer.c: Likewise.
44181         * lib/pipe.c: Likewise.
44182         * lib/pipe.h: Likewise.
44183         * lib/posixtm.c: Likewise.
44184         * lib/posixtm.h: Likewise.
44185         * lib/posixver.c: Likewise.
44186         * lib/printf-frexp.c: Likewise.
44187         * lib/printf-frexp.h: Likewise.
44188         * lib/printf-frexpl.c: Likewise.
44189         * lib/printf-frexpl.h: Likewise.
44190         * lib/printf.c: Likewise.
44191         * lib/progname.c: Likewise.
44192         * lib/progname.h: Likewise.
44193         * lib/progreloc.c: Likewise.
44194         * lib/putenv.c: Likewise.
44195         * lib/quote.c: Likewise.
44196         * lib/quote.h: Likewise.
44197         * lib/quotearg.c: Likewise.
44198         * lib/quotearg.h: Likewise.
44199         * lib/raise.c: Likewise.
44200         * lib/readline.c: Likewise.
44201         * lib/readline.h: Likewise.
44202         * lib/readlink.c: Likewise.
44203         * lib/readtokens.c: Likewise.
44204         * lib/readtokens.h: Likewise.
44205         * lib/readtokens0.c: Likewise.
44206         * lib/readtokens0.h: Likewise.
44207         * lib/readutmp.c: Likewise.
44208         * lib/readutmp.h: Likewise.
44209         * lib/realloc.c: Likewise.
44210         * lib/relocwrapper.c: Likewise.
44211         * lib/rename-dest-slash.c: Likewise.
44212         * lib/rename.c: Likewise.
44213         * lib/rmdir.c: Likewise.
44214         * lib/rpmatch.c: Likewise.
44215         * lib/safe-read.c: Likewise.
44216         * lib/safe-read.h: Likewise.
44217         * lib/safe-write.c: Likewise.
44218         * lib/safe-write.h: Likewise.
44219         * lib/same-inode.h: Likewise.
44220         * lib/same.c: Likewise.
44221         * lib/same.h: Likewise.
44222         * lib/save-cwd.c: Likewise.
44223         * lib/save-cwd.h: Likewise.
44224         * lib/savedir.c: Likewise.
44225         * lib/savedir.h: Likewise.
44226         * lib/savewd.c: Likewise.
44227         * lib/savewd.h: Likewise.
44228         * lib/search.in.h: Likewise.
44229         * lib/setenv.c: Likewise.
44230         * lib/setenv.h: Likewise.
44231         * lib/settime.c: Likewise.
44232         * lib/sh-quote.c: Likewise.
44233         * lib/sh-quote.h: Likewise.
44234         * lib/sig2str.c: Likewise.
44235         * lib/sig2str.h: Likewise.
44236         * lib/signal.in.h: Likewise.
44237         * lib/signbitd.c: Likewise.
44238         * lib/signbitf.c: Likewise.
44239         * lib/signbitl.c: Likewise.
44240         * lib/sigprocmask.c: Likewise.
44241         * lib/sincosl.c: Likewise.
44242         * lib/sleep.c: Likewise.
44243         * lib/sprintf.c: Likewise.
44244         * lib/sqrtl.c: Likewise.
44245         * lib/stat-time.h: Likewise.
44246         * lib/stdio--.h: Likewise.
44247         * lib/stdio-safer.h: Likewise.
44248         * lib/stdlib--.h: Likewise.
44249         * lib/stdlib-safer.h: Likewise.
44250         * lib/stdlib.in.h: Likewise.
44251         * lib/stpcpy.c: Likewise.
44252         * lib/stpncpy.c: Likewise.
44253         * lib/strchrnul.c: Likewise.
44254         * lib/strcspn.c: Likewise.
44255         * lib/strerror.c: Likewise.
44256         * lib/strftime.c: Likewise.
44257         * lib/strftime.h: Likewise.
44258         * lib/striconveh.c: Likewise.
44259         * lib/striconveh.h: Likewise.
44260         * lib/striconveha.c: Likewise.
44261         * lib/striconveha.h: Likewise.
44262         * lib/stripslash.c: Likewise.
44263         * lib/strnlen1.c: Likewise.
44264         * lib/strnlen1.h: Likewise.
44265         * lib/strtod.c: Likewise.
44266         * lib/strtoimax.c: Likewise.
44267         * lib/strtok_r.c: Likewise.
44268         * lib/strtol.c: Likewise.
44269         * lib/strtoll.c: Likewise.
44270         * lib/strtoul.c: Likewise.
44271         * lib/strtoull.c: Likewise.
44272         * lib/sysexits.in.h: Likewise.
44273         * lib/tempname.c: Likewise.
44274         * lib/tempname.h: Likewise.
44275         * lib/timespec.h: Likewise.
44276         * lib/tls.c: Likewise.
44277         * lib/tls.h: Likewise.
44278         * lib/tmpdir.c: Likewise.
44279         * lib/tmpdir.h: Likewise.
44280         * lib/tmpfile-safer.c: Likewise.
44281         * lib/tmpfile.c: Likewise.
44282         * lib/trigl.c: Likewise.
44283         * lib/trigl.h: Likewise.
44284         * lib/trim.c: Likewise.
44285         * lib/trim.h: Likewise.
44286         * lib/trunc.c: Likewise.
44287         * lib/truncf.c: Likewise.
44288         * lib/truncl.c: Likewise.
44289         * lib/tsearch.c: Likewise.
44290         * lib/unicodeio.c: Likewise.
44291         * lib/unicodeio.h: Likewise.
44292         * lib/unistd--.h: Likewise.
44293         * lib/unistd-safer.h: Likewise.
44294         * lib/unistdio/ulc-fprintf.c: Likewise.
44295         * lib/unistdio/ulc-vfprintf.c: Likewise.
44296         * lib/unlinkdir.c: Likewise.
44297         * lib/unlinkdir.h: Likewise.
44298         * lib/unlocked-io.h: Likewise.
44299         * lib/unsetenv.c: Likewise.
44300         * lib/userspec.c: Likewise.
44301         * lib/utime.c: Likewise.
44302         * lib/utimecmp.c: Likewise.
44303         * lib/utimecmp.h: Likewise.
44304         * lib/utimens.c: Likewise.
44305         * lib/verify.h: Likewise.
44306         * lib/verror.c: Likewise.
44307         * lib/verror.h: Likewise.
44308         * lib/version-etc-fsf.c: Likewise.
44309         * lib/version-etc.c: Likewise.
44310         * lib/version-etc.h: Likewise.
44311         * lib/vfprintf.c: Likewise.
44312         * lib/vprintf.c: Likewise.
44313         * lib/vsprintf.c: Likewise.
44314         * lib/w32spawn.h: Likewise.
44315         * lib/wait-process.c: Likewise.
44316         * lib/wait-process.h: Likewise.
44317         * lib/wcwidth.c: Likewise.
44318         * lib/write-any-file.c: Likewise.
44319         * lib/xalloc-die.c: Likewise.
44320         * lib/xalloc.h: Likewise.
44321         * lib/xasprintf.c: Likewise.
44322         * lib/xgetcwd.c: Likewise.
44323         * lib/xgetcwd.h: Likewise.
44324         * lib/xgetdomainname.c: Likewise.
44325         * lib/xgetdomainname.h: Likewise.
44326         * lib/xgethostname.c: Likewise.
44327         * lib/xmalloc.c: Likewise.
44328         * lib/xmalloca.c: Likewise.
44329         * lib/xmalloca.h: Likewise.
44330         * lib/xmemcoll.c: Likewise.
44331         * lib/xnanosleep.c: Likewise.
44332         * lib/xreadlink.c: Likewise.
44333         * lib/xreadlink.h: Likewise.
44334         * lib/xsetenv.c: Likewise.
44335         * lib/xsetenv.h: Likewise.
44336         * lib/xstriconv.c: Likewise.
44337         * lib/xstriconv.h: Likewise.
44338         * lib/xstrndup.c: Likewise.
44339         * lib/xstrndup.h: Likewise.
44340         * lib/xstrtod.c: Likewise.
44341         * lib/xstrtod.h: Likewise.
44342         * lib/xstrtol-error.c: Likewise.
44343         * lib/xstrtol.c: Likewise.
44344         * lib/xstrtol.h: Likewise.
44345         * lib/xtime.h: Likewise.
44346         * lib/xvasprintf.c: Likewise.
44347         * lib/xvasprintf.h: Likewise.
44348         * lib/yesno.c: Likewise.
44349         * lib/yesno.h: Likewise.
44350         * posix-modules: Likewise.
44351         * tests/test-alloca-opt.c: Likewise.
44352         * tests/test-arcfour.c: Likewise.
44353         * tests/test-arctwo.c: Likewise.
44354         * tests/test-argmatch.c: Likewise.
44355         * tests/test-argp-2.sh: Likewise.
44356         * tests/test-argp.c: Likewise.
44357         * tests/test-arpa_inet.c: Likewise.
44358         * tests/test-array_list.c: Likewise.
44359         * tests/test-array_oset.c: Likewise.
44360         * tests/test-atexit.c: Likewise.
44361         * tests/test-avltree_list.c: Likewise.
44362         * tests/test-avltree_oset.c: Likewise.
44363         * tests/test-avltreehash_list.c: Likewise.
44364         * tests/test-base64.c: Likewise.
44365         * tests/test-binary-io.c: Likewise.
44366         * tests/test-byteswap.c: Likewise.
44367         * tests/test-c-ctype.c: Likewise.
44368         * tests/test-c-strcasecmp.c: Likewise.
44369         * tests/test-c-strcasestr.c: Likewise.
44370         * tests/test-c-strncasecmp.c: Likewise.
44371         * tests/test-c-strstr.c: Likewise.
44372         * tests/test-canonicalize-lgpl.c: Likewise.
44373         * tests/test-canonicalize.c: Likewise.
44374         * tests/test-carray_list.c: Likewise.
44375         * tests/test-ceilf.c: Likewise.
44376         * tests/test-ceill.c: Likewise.
44377         * tests/test-count-one-bits.c: Likewise.
44378         * tests/test-crc.c: Likewise.
44379         * tests/test-dirname.c: Likewise.
44380         * tests/test-fbufmode.c: Likewise.
44381         * tests/test-fcntl.c: Likewise.
44382         * tests/test-fflush.c: Likewise.
44383         * tests/test-floorf.c: Likewise.
44384         * tests/test-floorl.c: Likewise.
44385         * tests/test-fopen.c: Likewise.
44386         * tests/test-fprintf-posix.c: Likewise.
44387         * tests/test-fprintf-posix.h: Likewise.
44388         * tests/test-fpurge.c: Likewise.
44389         * tests/test-freadable.c: Likewise.
44390         * tests/test-freadahead.c: Likewise.
44391         * tests/test-freading.c: Likewise.
44392         * tests/test-freopen.c: Likewise.
44393         * tests/test-frexp.c: Likewise.
44394         * tests/test-frexpl.c: Likewise.
44395         * tests/test-fseek.c: Likewise.
44396         * tests/test-fseeko.c: Likewise.
44397         * tests/test-fseterr.c: Likewise.
44398         * tests/test-fstrcmp.c: Likewise.
44399         * tests/test-ftell.c: Likewise.
44400         * tests/test-ftello.c: Likewise.
44401         * tests/test-fwritable.c: Likewise.
44402         * tests/test-fwriting.c: Likewise.
44403         * tests/test-getaddrinfo.c: Likewise.
44404         * tests/test-getpass.c: Likewise.
44405         * tests/test-gettimeofday.c: Likewise.
44406         * tests/test-hmac-md5.c: Likewise.
44407         * tests/test-hmac-sha1.c: Likewise.
44408         * tests/test-iconv.c: Likewise.
44409         * tests/test-iconvme.c: Likewise.
44410         * tests/test-inttypes.c: Likewise.
44411         * tests/test-isnan.c: Likewise.
44412         * tests/test-isnanf.c: Likewise.
44413         * tests/test-isnanl-nolibm.c: Likewise.
44414         * tests/test-isnanl.c: Likewise.
44415         * tests/test-isnanl.h: Likewise.
44416         * tests/test-ldexpl.c: Likewise.
44417         * tests/test-linked_list.c: Likewise.
44418         * tests/test-linkedhash_list.c: Likewise.
44419         * tests/test-locale.c: Likewise.
44420         * tests/test-localename.c: Likewise.
44421         * tests/test-lock.c: Likewise.
44422         * tests/test-lseek.c: Likewise.
44423         * tests/test-malloca.c: Likewise.
44424         * tests/test-math.c: Likewise.
44425         * tests/test-mbscasecmp.c: Likewise.
44426         * tests/test-mbscasestr1.c: Likewise.
44427         * tests/test-mbscasestr2.c: Likewise.
44428         * tests/test-mbscasestr3.c: Likewise.
44429         * tests/test-mbscasestr4.c: Likewise.
44430         * tests/test-mbschr.c: Likewise.
44431         * tests/test-mbscspn.c: Likewise.
44432         * tests/test-mbsncasecmp.c: Likewise.
44433         * tests/test-mbspbrk.c: Likewise.
44434         * tests/test-mbspcasecmp.c: Likewise.
44435         * tests/test-mbsrchr.c: Likewise.
44436         * tests/test-mbsspn.c: Likewise.
44437         * tests/test-mbsstr1.c: Likewise.
44438         * tests/test-mbsstr2.c: Likewise.
44439         * tests/test-mbsstr3.c: Likewise.
44440         * tests/test-md5.c: Likewise.
44441         * tests/test-memmem.c: Likewise.
44442         * tests/test-netinet_in.c: Likewise.
44443         * tests/test-open.c: Likewise.
44444         * tests/test-printf-frexp.c: Likewise.
44445         * tests/test-printf-frexpl.c: Likewise.
44446         * tests/test-printf-posix.c: Likewise.
44447         * tests/test-printf-posix.h: Likewise.
44448         * tests/test-rbtree_list.c: Likewise.
44449         * tests/test-rbtree_oset.c: Likewise.
44450         * tests/test-rbtreehash_list.c: Likewise.
44451         * tests/test-read-file.c: Likewise.
44452         * tests/test-rijndael.c: Likewise.
44453         * tests/test-search.c: Likewise.
44454         * tests/test-signbit.c: Likewise.
44455         * tests/test-sleep.c: Likewise.
44456         * tests/test-snprintf-posix.c: Likewise.
44457         * tests/test-snprintf-posix.h: Likewise.
44458         * tests/test-snprintf.c: Likewise.
44459         * tests/test-sprintf-posix.c: Likewise.
44460         * tests/test-sprintf-posix.h: Likewise.
44461         * tests/test-stat-time.c: Likewise.
44462         * tests/test-stdbool.c: Likewise.
44463         * tests/test-stdint.c: Likewise.
44464         * tests/test-stdio.c: Likewise.
44465         * tests/test-stdlib.c: Likewise.
44466         * tests/test-stpncpy.c: Likewise.
44467         * tests/test-strcasestr.c: Likewise.
44468         * tests/test-striconv.c: Likewise.
44469         * tests/test-striconveh.c: Likewise.
44470         * tests/test-striconveha.c: Likewise.
44471         * tests/test-string.c: Likewise.
44472         * tests/test-sys_select.c: Likewise.
44473         * tests/test-sys_socket.c: Likewise.
44474         * tests/test-sys_stat.c: Likewise.
44475         * tests/test-sys_time.c: Likewise.
44476         * tests/test-sysexits.c: Likewise.
44477         * tests/test-time.c: Likewise.
44478         * tests/test-tls.c: Likewise.
44479         * tests/test-trunc.c: Likewise.
44480         * tests/test-truncf.c: Likewise.
44481         * tests/test-truncl.c: Likewise.
44482         * tests/test-unistd.c: Likewise.
44483         * tests/test-vasnprintf-posix.c: Likewise.
44484         * tests/test-vasnprintf-posix2.c: Likewise.
44485         * tests/test-vasnprintf.c: Likewise.
44486         * tests/test-vasprintf-posix.c: Likewise.
44487         * tests/test-vasprintf.c: Likewise.
44488         * tests/test-verify.c: Likewise.
44489         * tests/test-vfprintf-posix.c: Likewise.
44490         * tests/test-vprintf-posix.c: Likewise.
44491         * tests/test-vsnprintf-posix.c: Likewise.
44492         * tests/test-vsnprintf.c: Likewise.
44493         * tests/test-vsprintf-posix.c: Likewise.
44494         * tests/test-wchar.c: Likewise.
44495         * tests/test-wctype.c: Likewise.
44496         * tests/test-wcwidth.c: Likewise.
44497         * tests/test-xstrtol.c: Likewise.
44498         * tests/test-xvasprintf.c: Likewise.
44499         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
44500         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
44501         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44502         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44503         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44504         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
44505         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44506         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44507         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44508         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
44509         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44510         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44511         * tests/uniname/test-uninames.c: Likewise.
44512         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
44513         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
44514         * tests/unistdio/test-u16-printf1.h: Likewise.
44515         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
44516         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
44517         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
44518         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
44519         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
44520         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
44521         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
44522         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
44523         * tests/unistdio/test-u32-printf1.h: Likewise.
44524         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
44525         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
44526         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
44527         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
44528         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
44529         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
44530         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
44531         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
44532         * tests/unistdio/test-u8-printf1.h: Likewise.
44533         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
44534         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
44535         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
44536         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
44537         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
44538         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
44539         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
44540         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
44541         * tests/unistdio/test-ulc-printf1.h: Likewise.
44542         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
44543         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
44544         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
44545         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
44546         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
44547         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
44548         * tests/uniwidth/test-u16-strwidth.c: Likewise.
44549         * tests/uniwidth/test-u16-width.c: Likewise.
44550         * tests/uniwidth/test-u32-strwidth.c: Likewise.
44551         * tests/uniwidth/test-u32-width.c: Likewise.
44552         * tests/uniwidth/test-u8-strwidth.c: Likewise.
44553         * tests/uniwidth/test-u8-width.c: Likewise.
44554         * tests/uniwidth/test-uc_width.c: Likewise.
44555         * config/srclist-update: Likewise.
44556         (fixlicense): Update to GPLv3+.
44557
44558         Change copyright notice from LGPLv2.1+ to LGPLv3+.
44559         * tests/test-tsearch.c: Change copyright notice.
44560
44561         Change copyright notice from LGPLv2.0+ to LGPLv3+.
44562         * lib/c-strcaseeq.h: Change copyright notice.
44563         * lib/streq.h: Likewise.
44564         * lib/uniconv.h: Likewise.
44565         * lib/uniconv/u-conv-from-enc.h: Likewise.
44566         * lib/uniconv/u-conv-to-enc.h: Likewise.
44567         * lib/uniconv/u-strconv-from-enc.h: Likewise.
44568         * lib/uniconv/u-strconv-to-enc.h: Likewise.
44569         * lib/uniconv/u16-conv-from-enc.c: Likewise.
44570         * lib/uniconv/u16-conv-to-enc.c: Likewise.
44571         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
44572         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
44573         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
44574         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
44575         * lib/uniconv/u32-conv-from-enc.c: Likewise.
44576         * lib/uniconv/u32-conv-to-enc.c: Likewise.
44577         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
44578         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
44579         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
44580         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
44581         * lib/uniconv/u8-conv-from-enc.c: Likewise.
44582         * lib/uniconv/u8-conv-to-enc.c: Likewise.
44583         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
44584         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
44585         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
44586         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
44587         * lib/uniname.h: Likewise.
44588         * lib/uniname/uniname.c: Likewise.
44589         * lib/unistdio.h: Likewise.
44590         * lib/unistdio/u-asnprintf.h: Likewise.
44591         * lib/unistdio/u-asprintf.h: Likewise.
44592         * lib/unistdio/u-printf-args.c: Likewise.
44593         * lib/unistdio/u-printf-args.h: Likewise.
44594         * lib/unistdio/u-printf-parse.h: Likewise.
44595         * lib/unistdio/u-snprintf.h: Likewise.
44596         * lib/unistdio/u-sprintf.h: Likewise.
44597         * lib/unistdio/u-vasprintf.h: Likewise.
44598         * lib/unistdio/u-vsnprintf.h: Likewise.
44599         * lib/unistdio/u-vsprintf.h: Likewise.
44600         * lib/unistdio/u16-asnprintf.c: Likewise.
44601         * lib/unistdio/u16-asprintf.c: Likewise.
44602         * lib/unistdio/u16-printf-parse.c: Likewise.
44603         * lib/unistdio/u16-snprintf.c: Likewise.
44604         * lib/unistdio/u16-sprintf.c: Likewise.
44605         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
44606         * lib/unistdio/u16-u16-asprintf.c: Likewise.
44607         * lib/unistdio/u16-u16-snprintf.c: Likewise.
44608         * lib/unistdio/u16-u16-sprintf.c: Likewise.
44609         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
44610         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
44611         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
44612         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
44613         * lib/unistdio/u16-vasnprintf.c: Likewise.
44614         * lib/unistdio/u16-vasprintf.c: Likewise.
44615         * lib/unistdio/u16-vsnprintf.c: Likewise.
44616         * lib/unistdio/u16-vsprintf.c: Likewise.
44617         * lib/unistdio/u32-asnprintf.c: Likewise.
44618         * lib/unistdio/u32-asprintf.c: Likewise.
44619         * lib/unistdio/u32-printf-parse.c: Likewise.
44620         * lib/unistdio/u32-snprintf.c: Likewise.
44621         * lib/unistdio/u32-sprintf.c: Likewise.
44622         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
44623         * lib/unistdio/u32-u32-asprintf.c: Likewise.
44624         * lib/unistdio/u32-u32-snprintf.c: Likewise.
44625         * lib/unistdio/u32-u32-sprintf.c: Likewise.
44626         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
44627         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
44628         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
44629         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
44630         * lib/unistdio/u32-vasnprintf.c: Likewise.
44631         * lib/unistdio/u32-vasprintf.c: Likewise.
44632         * lib/unistdio/u32-vsnprintf.c: Likewise.
44633         * lib/unistdio/u32-vsprintf.c: Likewise.
44634         * lib/unistdio/u8-asnprintf.c: Likewise.
44635         * lib/unistdio/u8-asprintf.c: Likewise.
44636         * lib/unistdio/u8-printf-parse.c: Likewise.
44637         * lib/unistdio/u8-snprintf.c: Likewise.
44638         * lib/unistdio/u8-sprintf.c: Likewise.
44639         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
44640         * lib/unistdio/u8-u8-asprintf.c: Likewise.
44641         * lib/unistdio/u8-u8-snprintf.c: Likewise.
44642         * lib/unistdio/u8-u8-sprintf.c: Likewise.
44643         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
44644         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
44645         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
44646         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
44647         * lib/unistdio/u8-vasnprintf.c: Likewise.
44648         * lib/unistdio/u8-vasprintf.c: Likewise.
44649         * lib/unistdio/u8-vsnprintf.c: Likewise.
44650         * lib/unistdio/u8-vsprintf.c: Likewise.
44651         * lib/unistdio/ulc-asnprintf.c: Likewise.
44652         * lib/unistdio/ulc-asprintf.c: Likewise.
44653         * lib/unistdio/ulc-printf-parse.c: Likewise.
44654         * lib/unistdio/ulc-snprintf.c: Likewise.
44655         * lib/unistdio/ulc-sprintf.c: Likewise.
44656         * lib/unistdio/ulc-vasnprintf.c: Likewise.
44657         * lib/unistdio/ulc-vasprintf.c: Likewise.
44658         * lib/unistdio/ulc-vsnprintf.c: Likewise.
44659         * lib/unistdio/ulc-vsprintf.c: Likewise.
44660         * lib/unistr.h: Likewise.
44661         * lib/unistr/u-cpy-alloc.h: Likewise.
44662         * lib/unistr/u-cpy.h: Likewise.
44663         * lib/unistr/u-endswith.h: Likewise.
44664         * lib/unistr/u-move.h: Likewise.
44665         * lib/unistr/u-set.h: Likewise.
44666         * lib/unistr/u-startswith.h: Likewise.
44667         * lib/unistr/u-stpcpy.h: Likewise.
44668         * lib/unistr/u-stpncpy.h: Likewise.
44669         * lib/unistr/u-strcat.h: Likewise.
44670         * lib/unistr/u-strcpy.h: Likewise.
44671         * lib/unistr/u-strcspn.h: Likewise.
44672         * lib/unistr/u-strdup.h: Likewise.
44673         * lib/unistr/u-strlen.h: Likewise.
44674         * lib/unistr/u-strncat.h: Likewise.
44675         * lib/unistr/u-strncpy.h: Likewise.
44676         * lib/unistr/u-strnlen.h: Likewise.
44677         * lib/unistr/u-strpbrk.h: Likewise.
44678         * lib/unistr/u-strspn.h: Likewise.
44679         * lib/unistr/u-strstr.h: Likewise.
44680         * lib/unistr/u-strtok.h: Likewise.
44681         * lib/unistr/u16-check.c: Likewise.
44682         * lib/unistr/u16-chr.c: Likewise.
44683         * lib/unistr/u16-cmp.c: Likewise.
44684         * lib/unistr/u16-cpy-alloc.c: Likewise.
44685         * lib/unistr/u16-cpy.c: Likewise.
44686         * lib/unistr/u16-endswith.c: Likewise.
44687         * lib/unistr/u16-mblen.c: Likewise.
44688         * lib/unistr/u16-mbsnlen.c: Likewise.
44689         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44690         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44691         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44692         * lib/unistr/u16-mbtouc.c: Likewise.
44693         * lib/unistr/u16-mbtoucr.c: Likewise.
44694         * lib/unistr/u16-move.c: Likewise.
44695         * lib/unistr/u16-next.c: Likewise.
44696         * lib/unistr/u16-prev.c: Likewise.
44697         * lib/unistr/u16-set.c: Likewise.
44698         * lib/unistr/u16-startswith.c: Likewise.
44699         * lib/unistr/u16-stpcpy.c: Likewise.
44700         * lib/unistr/u16-stpncpy.c: Likewise.
44701         * lib/unistr/u16-strcat.c: Likewise.
44702         * lib/unistr/u16-strchr.c: Likewise.
44703         * lib/unistr/u16-strcmp.c: Likewise.
44704         * lib/unistr/u16-strcpy.c: Likewise.
44705         * lib/unistr/u16-strcspn.c: Likewise.
44706         * lib/unistr/u16-strdup.c: Likewise.
44707         * lib/unistr/u16-strlen.c: Likewise.
44708         * lib/unistr/u16-strmblen.c: Likewise.
44709         * lib/unistr/u16-strmbtouc.c: Likewise.
44710         * lib/unistr/u16-strncat.c: Likewise.
44711         * lib/unistr/u16-strncmp.c: Likewise.
44712         * lib/unistr/u16-strncpy.c: Likewise.
44713         * lib/unistr/u16-strnlen.c: Likewise.
44714         * lib/unistr/u16-strpbrk.c: Likewise.
44715         * lib/unistr/u16-strrchr.c: Likewise.
44716         * lib/unistr/u16-strspn.c: Likewise.
44717         * lib/unistr/u16-strstr.c: Likewise.
44718         * lib/unistr/u16-strtok.c: Likewise.
44719         * lib/unistr/u16-to-u32.c: Likewise.
44720         * lib/unistr/u16-to-u8.c: Likewise.
44721         * lib/unistr/u16-uctomb-aux.c: Likewise.
44722         * lib/unistr/u16-uctomb.c: Likewise.
44723         * lib/unistr/u32-check.c: Likewise.
44724         * lib/unistr/u32-chr.c: Likewise.
44725         * lib/unistr/u32-cmp.c: Likewise.
44726         * lib/unistr/u32-cpy-alloc.c: Likewise.
44727         * lib/unistr/u32-cpy.c: Likewise.
44728         * lib/unistr/u32-endswith.c: Likewise.
44729         * lib/unistr/u32-mblen.c: Likewise.
44730         * lib/unistr/u32-mbsnlen.c: Likewise.
44731         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44732         * lib/unistr/u32-mbtouc.c: Likewise.
44733         * lib/unistr/u32-mbtoucr.c: Likewise.
44734         * lib/unistr/u32-move.c: Likewise.
44735         * lib/unistr/u32-next.c: Likewise.
44736         * lib/unistr/u32-prev.c: Likewise.
44737         * lib/unistr/u32-set.c: Likewise.
44738         * lib/unistr/u32-startswith.c: Likewise.
44739         * lib/unistr/u32-stpcpy.c: Likewise.
44740         * lib/unistr/u32-stpncpy.c: Likewise.
44741         * lib/unistr/u32-strcat.c: Likewise.
44742         * lib/unistr/u32-strchr.c: Likewise.
44743         * lib/unistr/u32-strcmp.c: Likewise.
44744         * lib/unistr/u32-strcpy.c: Likewise.
44745         * lib/unistr/u32-strcspn.c: Likewise.
44746         * lib/unistr/u32-strdup.c: Likewise.
44747         * lib/unistr/u32-strlen.c: Likewise.
44748         * lib/unistr/u32-strmblen.c: Likewise.
44749         * lib/unistr/u32-strmbtouc.c: Likewise.
44750         * lib/unistr/u32-strncat.c: Likewise.
44751         * lib/unistr/u32-strncmp.c: Likewise.
44752         * lib/unistr/u32-strncpy.c: Likewise.
44753         * lib/unistr/u32-strnlen.c: Likewise.
44754         * lib/unistr/u32-strpbrk.c: Likewise.
44755         * lib/unistr/u32-strrchr.c: Likewise.
44756         * lib/unistr/u32-strspn.c: Likewise.
44757         * lib/unistr/u32-strstr.c: Likewise.
44758         * lib/unistr/u32-strtok.c: Likewise.
44759         * lib/unistr/u32-to-u16.c: Likewise.
44760         * lib/unistr/u32-to-u8.c: Likewise.
44761         * lib/unistr/u32-uctomb.c: Likewise.
44762         * lib/unistr/u8-check.c: Likewise.
44763         * lib/unistr/u8-chr.c: Likewise.
44764         * lib/unistr/u8-cmp.c: Likewise.
44765         * lib/unistr/u8-cpy-alloc.c: Likewise.
44766         * lib/unistr/u8-cpy.c: Likewise.
44767         * lib/unistr/u8-endswith.c: Likewise.
44768         * lib/unistr/u8-mblen.c: Likewise.
44769         * lib/unistr/u8-mbsnlen.c: Likewise.
44770         * lib/unistr/u8-mbtouc-aux.c: Likewise.
44771         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44772         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44773         * lib/unistr/u8-mbtouc.c: Likewise.
44774         * lib/unistr/u8-mbtoucr.c: Likewise.
44775         * lib/unistr/u8-move.c: Likewise.
44776         * lib/unistr/u8-next.c: Likewise.
44777         * lib/unistr/u8-prev.c: Likewise.
44778         * lib/unistr/u8-set.c: Likewise.
44779         * lib/unistr/u8-startswith.c: Likewise.
44780         * lib/unistr/u8-stpcpy.c: Likewise.
44781         * lib/unistr/u8-stpncpy.c: Likewise.
44782         * lib/unistr/u8-strcat.c: Likewise.
44783         * lib/unistr/u8-strchr.c: Likewise.
44784         * lib/unistr/u8-strcmp.c: Likewise.
44785         * lib/unistr/u8-strcpy.c: Likewise.
44786         * lib/unistr/u8-strcspn.c: Likewise.
44787         * lib/unistr/u8-strdup.c: Likewise.
44788         * lib/unistr/u8-strlen.c: Likewise.
44789         * lib/unistr/u8-strmblen.c: Likewise.
44790         * lib/unistr/u8-strmbtouc.c: Likewise.
44791         * lib/unistr/u8-strncat.c: Likewise.
44792         * lib/unistr/u8-strncmp.c: Likewise.
44793         * lib/unistr/u8-strncpy.c: Likewise.
44794         * lib/unistr/u8-strnlen.c: Likewise.
44795         * lib/unistr/u8-strpbrk.c: Likewise.
44796         * lib/unistr/u8-strrchr.c: Likewise.
44797         * lib/unistr/u8-strspn.c: Likewise.
44798         * lib/unistr/u8-strstr.c: Likewise.
44799         * lib/unistr/u8-strtok.c: Likewise.
44800         * lib/unistr/u8-to-u16.c: Likewise.
44801         * lib/unistr/u8-to-u32.c: Likewise.
44802         * lib/unistr/u8-uctomb-aux.c: Likewise.
44803         * lib/unistr/u8-uctomb.c: Likewise.
44804         * lib/unitypes.h: Likewise.
44805         * lib/uniwidth.h: Likewise.
44806         * lib/uniwidth/cjk.h: Likewise.
44807         * lib/uniwidth/u16-strwidth.c: Likewise.
44808         * lib/uniwidth/u16-width.c: Likewise.
44809         * lib/uniwidth/u32-strwidth.c: Likewise.
44810         * lib/uniwidth/u32-width.c: Likewise.
44811         * lib/uniwidth/u8-strwidth.c: Likewise.
44812         * lib/uniwidth/u8-width.c: Likewise.
44813         * lib/uniwidth/width.c: Likewise.
44814
44815 2007-10-07  Bruno Haible  <bruno@clisp.org>
44816
44817         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
44818         The file is still under LGPL (see modules/inttypes).
44819
44820 2007-10-06  Bruno Haible  <bruno@clisp.org>
44821
44822         * modules/trunc (Dependencies): Add 'extensions'.
44823         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
44824         Reported by Ben Pfaff <blp@gnu.org>.
44825
44826 2007-10-06  Bruno Haible  <bruno@clisp.org>
44827
44828         * modules/freopen-tests: New file.
44829         * tests/test-freopen.c: New file.
44830
44831         * modules/fopen-tests: New file.
44832         * tests/test-fopen.c: New file.
44833
44834         * modules/fopen: New file.
44835         * lib/fopen.c: New file.
44836         * m4/fopen.m4: New file.
44837         * modules/freopen: New file.
44838         * lib/freopen.c: New file.
44839         * m4/freopen.m4: New file.
44840         * lib/stdio.in.h (fopen, freopen): New declarations.
44841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
44842         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44843         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
44844         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44845         * doc/functions/fopen.texi: Mention the 'fopen' module.
44846         * doc/functions/freopen.texi: Mention the 'freopen' module.
44847
44848 2007-10-06  Bruno Haible  <bruno@clisp.org>
44849
44850         * modules/open-tests: New file.
44851         * tests/test-open.c: New file.
44852
44853         * modules/open: New file.
44854         * lib/open.c: New file.
44855         * m4/open.m4: New file.
44856         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
44857         lib/open.c does.
44858         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
44859         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
44860         macros.
44861         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
44862         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
44863         REPLACE_OPEN.
44864         * doc/functions/open.texi: Mention the 'open' module.
44865
44866 2007-10-04  Bruno Haible  <bruno@clisp.org>
44867
44868         * modules/ceill-tests: New file.
44869         * tests/test-ceill.c: New file.
44870
44871         * modules/ceill: New file.
44872         * lib/ceill.c: Replace entire file.
44873         * m4/ceill.m4: New file.
44874         * lib/math.in.h (ceill): Replace declaration.
44875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
44876         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
44877         * doc/functions/ceill.texi: Mention the 'ceill' module.
44878         * modules/mathl (Files): Remove lib/ceill.c.
44879         (Depends-on): Add ceill.
44880
44881 2007-10-04  Bruno Haible  <bruno@clisp.org>
44882
44883         * modules/ceilf-tests: New file.
44884         * tests/test-ceilf.c: New file.
44885
44886         * modules/ceilf: New file.
44887         * lib/ceil.c: New file.
44888         * lib/ceilf.c: New file.
44889         * m4/ceilf.m4: New file.
44890         * lib/math.in.h (ceilf): New declaration.
44891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
44892         HAVE_DECL_CEILF.
44893         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
44894         HAVE_DECL_CEILF.
44895         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
44896
44897 2007-10-04  Bruno Haible  <bruno@clisp.org>
44898
44899         * modules/floorl-tests: New file.
44900         * tests/test-floorl.c: New file.
44901
44902         * modules/floorl: New file.
44903         * lib/floorl.c: Replace entire file.
44904         * m4/floorl.m4: New file.
44905         * lib/math.in.h (floorl): Replace declaration.
44906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
44907         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
44908         * doc/functions/floorl.texi: Mention the 'floorl' module.
44909         * modules/mathl (Files): Remove lib/floorl.c.
44910         (Depends-on): Add floorl.
44911
44912 2007-10-04  Bruno Haible  <bruno@clisp.org>
44913
44914         * modules/floorf-tests: New file.
44915         * tests/test-floorf.c: New file.
44916
44917         * modules/floorf: New file.
44918         * lib/floor.c: New file.
44919         * lib/floorf.c: New file.
44920         * m4/floorf.m4: New file.
44921         * lib/math.in.h (floorf): New declaration.
44922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
44923         HAVE_DECL_FLOORF.
44924         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
44925         HAVE_DECL_FLOORF.
44926         * doc/functions/floorf.texi: Mention the 'floorf' module.
44927
44928 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
44929             Bruno Haible  <bruno@clisp.org>
44930
44931         Advertise for the Git server instead of the CVS server.
44932         * doc/gnulib-intro.texi (Steady Development): Mention the Git
44933         repository instead of the CVS one.
44934         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
44935         about all VCS systems generically.
44936         * doc/gnulib.texi (Introduction): Capitalize `Git'.
44937
44938 2007-10-04  Bruno Haible  <bruno@clisp.org>
44939
44940         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
44941         means.
44942         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
44943
44944 2007-10-04  Bruno Haible  <bruno@clisp.org>
44945
44946         * modules/truncl-tests: New file.
44947         * tests/test-truncl.c: New file.
44948
44949         * modules/truncl: New file.
44950         * lib/truncl.c: New file.
44951         * m4/truncl.m4: New file.
44952         * lib/math.in.h (truncl): New declaration.
44953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
44954         HAVE_DECL_TRUNCL.
44955         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
44956         HAVE_DECL_TRUNCL.
44957         * doc/functions/truncl.texi: Mention the 'truncl' module.
44958
44959 2007-10-04  Bruno Haible  <bruno@clisp.org>
44960
44961         * modules/truncf-tests: New file.
44962         * tests/test-truncf.c: New file.
44963
44964         * modules/truncf: New file.
44965         * lib/trunc.c: Make paramerizable through USE_* macros.
44966         * lib/truncf.c: New file.
44967         * m4/truncf.m4: New file.
44968         * lib/math.in.h (truncf): New declaration.
44969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
44970         HAVE_DECL_TRUNCF.
44971         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
44972         HAVE_DECL_TRUNCF.
44973         * doc/functions/truncf.texi: Mention the 'truncf' module.
44974
44975 2007-10-03  Bruno Haible  <bruno@clisp.org>
44976
44977         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44978         augmentation also for tests modules.
44979         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
44980         * modules/atexit-tests (Makefile.am): Likewise.
44981         * modules/binary-io-tests (Makefile.am): Likewise.
44982         * modules/c-strcase-tests (Makefile.am): Likewise.
44983         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
44984         * modules/canonicalize-tests (Makefile.am): Likewise.
44985         * modules/closein-tests (Makefile.am): Likewise.
44986         * modules/fprintf-posix-tests (Makefile.am): Likewise.
44987         * modules/freadahead-tests (Makefile.am): Likewise.
44988         * modules/fseek-tests (Makefile.am): Likewise.
44989         * modules/fseeko-tests (Makefile.am): Likewise.
44990         * modules/ftell-tests (Makefile.am): Likewise.
44991         * modules/ftello-tests (Makefile.am): Likewise.
44992         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
44993         * modules/isnanl-tests (Makefile.am): Likewise.
44994         * modules/lseek-tests (Makefile.am): Likewise.
44995         * modules/mbscasecmp-tests (Makefile.am): Likewise.
44996         * modules/mbscasestr-tests (Makefile.am): Likewise.
44997         * modules/mbschr-tests (Makefile.am): Likewise.
44998         * modules/mbscspn-tests (Makefile.am): Likewise.
44999         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45000         * modules/mbspbrk-tests (Makefile.am): Likewise.
45001         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45002         * modules/mbsrchr-tests (Makefile.am): Likewise.
45003         * modules/mbsspn-tests (Makefile.am): Likewise.
45004         * modules/mbsstr-tests (Makefile.am): Likewise.
45005         * modules/printf-posix-tests (Makefile.am): Likewise.
45006         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45007         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45008         * modules/tsearch-tests (Makefile.am): Likewise.
45009         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45010         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45011         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45012         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45013         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45014         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45015         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45016         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45017         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45018         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45019         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45020         * modules/xstrtol-tests (Makefile.am): Likewise.
45021         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45022         * modules/yesno-tests (Makefile.am): Likewise.
45023
45024 2007-10-03  Bruno Haible  <bruno@clisp.org>
45025
45026         * modules/trunc-tests: New file.
45027         * tests/test-trunc.c: New file.
45028
45029         * modules/trunc: New file.
45030         * lib/trunc.c: New file.
45031         * m4/trunc.m4: New file.
45032         * lib/math.in.h (trunc): New declaration.
45033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45034         HAVE_DECL_TRUNC.
45035         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45036         HAVE_DECL_TRUNC.
45037         * doc/functions/trunc.texi: Mention the 'trunc' module.
45038
45039 2007-10-03  Bruno Haible  <bruno@clisp.org>
45040
45041         * tests/test-fpending.c: New file, mostly copied
45042         from coreutils/lib/t-fpending.c.
45043         * modules/fpending-tests: New file.
45044
45045 2007-10-03  Bruno Haible  <bruno@clisp.org>
45046
45047         Port the stdio extensions to QNX (untested).
45048         * lib/fseterr.c (fseterr): Add support for QNX.
45049         * lib/fbufmode.c (fbufmode): Likewise.
45050         * lib/freadable.c (freadable): Likewise.
45051         * lib/fwritable.c (fwritable): Likewise.
45052         * lib/freading.c (freading): Likewise.
45053         * lib/fwriting.c (fwriting): Likewise.
45054         * lib/freadahead.c (freadahed): Likewise.
45055         * lib/fpurge.c (fpurge): Likewise.
45056         * lib/fseeko.c (rpl_fseeko): Likewise.
45057
45058 2007-10-03  Bruno Haible  <bruno@clisp.org>
45059             Jim Meyering  <jim@meyering.net>
45060             Eric Blake  <ebb9@byu.net>
45061
45062         * doc/relocatable.texi: Use @command instead of @program.
45063
45064 2007-10-02  Jim Meyering  <jim@meyering.net>
45065
45066         Perform one more "_.h" -> ".in.h" substitution.
45067         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45068         instead of unistd_.h here, too.
45069
45070 2007-10-01  Bruno Haible  <bruno@clisp.org>
45071
45072         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45073         Needed for the alloca-opt module.
45074
45075 2007-09-30  Bruno Haible  <bruno@clisp.org>
45076
45077         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45078         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45079         alloca_.h.
45080         * lib/argz.in.h: Renamed from lib/argz_.h.
45081         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45082         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45083         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45084         byteswap_.h.
45085         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45086         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45087         dirent_.h.
45088         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45089         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45090         fcntl_.h.
45091         * lib/float.in.h: Renamed from lib/float_.h.
45092         * modules/float (Files, Makefile.am): Use float.in.h instead of
45093         float_.h.
45094         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45095         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45096         fnmatch_.h.
45097         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45098         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45099         getopt_.h.
45100         * lib/glob.in.h: Renamed from lib/glob_.h.
45101         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45102         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45103         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45104         iconv_.h.
45105         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45106         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45107         inttypes_.h.
45108         * lib/locale.in.h: Renamed from lib/locale_.h.
45109         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45110         locale_.h.
45111         * lib/math.in.h: Renamed from lib/math_.h.
45112         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45113         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45114         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45115         of netinet_in_.h. Add dependency.
45116         * lib/poll.in.h: Renamed from lib/poll_.h.
45117         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45118         * lib/search.in.h: Renamed from lib/search_.h.
45119         * modules/search (Files, Makefile.am): Use search.in.h instead of
45120         search_.h.
45121         * lib/signal.in.h: Renamed from lib/signal_.h.
45122         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45123         _signal.h.
45124         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45125         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45126         stdbool_.h.
45127         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45128         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45129         stdint_.h.
45130         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45131         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45132         stdio_.h.
45133         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45134         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45135         stdlib_.h.
45136         * lib/string.in.h: Renamed from lib/string_.h.
45137         * modules/string (Files, Makefile.am): Use string.in.h instead of
45138         string_.h.
45139         * doc/gnulib-tool.texi (Initial import): Update.
45140         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45141         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45142         of sys_select_.h. Add dependency.
45143         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45144         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45145         of sys_socket_.h.
45146         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45147         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45148         sys_stat_.h.
45149         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45150         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45151         sys_time_.h.
45152         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45153         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45154         sysexits_.h.
45155         * lib/time.in.h: Renamed from lib/time_.h.
45156         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45157         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45158         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45159         unistd_.h.
45160         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45161         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45162         wchar_.h.
45163         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45164         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45165         wctype_.h.
45166         * build-aux/bootstrap (slurp): Update.
45167         * lib/.cppi-disable: Update.
45168
45169 2007-09-30  Bruno Haible  <bruno@clisp.org>
45170
45171         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45172         Needed on BeOS.
45173
45174 2007-09-30  Bruno Haible  <bruno@clisp.org>
45175
45176         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45177
45178 2007-09-29  Bruno Haible  <bruno@clisp.org>
45179
45180         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45181
45182 2007-09-29  Bruno Haible  <bruno@clisp.org>
45183
45184         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45185         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45186         * build-aux/install-reloc: Compile also areadlink.c.
45187         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45188
45189 2007-09-29  Bruno Haible  <bruno@clisp.org>
45190
45191         * gnulib-tool (func_emit_initmacro_done): Indentation.
45192
45193 2007-09-29  Bruno Haible  <bruno@clisp.org>
45194
45195         * README: Add CVS checkout update instructions.
45196         Info from Bob Proulx <bob@proulx.com>.
45197
45198 2007-09-28  Eric Blake  <ebb9@byu.net>
45199
45200         Provide move-if-change.
45201         * build-aux/move-if-change: New file, based on best practice
45202         rather than any canonical upstream location.
45203
45204 2007-09-28  Jim Meyering  <jim@meyering.net>
45205
45206         Fix canonicalize loop-detection corner case.
45207         Do not attempt to stat the symlink values stored via seen_triple.
45208         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45209         on linux-2.6.18, (but not 2.6.22).
45210         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45211         triple_compare.  The former compares dev,ino,filename, while the latter
45212         would actually stat dirname(filename) when dev and ino were equal.
45213         * lib/hash-triple.c: Install <string.h>.
45214         (STREQ): Define.
45215         (triple_compare_ino_str): New function.
45216         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45217
45218 2007-09-28  Eric Blake  <ebb9@byu.net>
45219
45220         Enforce that AC_REPLACE_FUNCS files exist.
45221         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45222         override check for typos.
45223
45224         Fix test-closein on Solaris 10.
45225         * tests/test-closein.c (main): Don't assume stdin can be inherited
45226         closed on all systems.
45227         * tests/test-closein.sh: Likewise.
45228         Reported by Piotr Tarnowski.
45229
45230 2007-09-28  Jim Meyering  <jim@meyering.net>
45231
45232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45233
45234 2007-09-27  Jim Meyering  <jim@meyering.net>
45235
45236         canonicalize: Avoid a false-positive cycle failure.
45237         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45238         Sort.  Remove cycle-check.
45239         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45240         not cycle-check.h.
45241         (seen_triple): New function.
45242         (canonicalize_filename_mode): Use it instead of cycle-check.
45243         * tests/test-canonicalize.c: Add a test for this bug.
45244         * tests/test-canonicalize.sh: Set up and run the test.
45245
45246         New module, file-set, from coreutils.
45247         * modules/file-set: Define it.
45248         * lib/file-set.c, lib/file-set.h: Implement.
45249
45250         New module, hash-triple, from coreutils.
45251         * modules/hash-triple: Define it.
45252         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45253
45254 2007-09-25  Eric Blake  <ebb9@byu.net>
45255
45256         Fix strerror on Interix.
45257         * lib/string_.h (strerror): Declare replacement.
45258         * doc/functions/strerror.texi (strerror): Document the Interix
45259         shortcoming.
45260         * modules/string (Makefile.am): Support new hooks.
45261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45262         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45263         gl_FUNC_STRERROR_SEPARATE.
45264         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45265         * lib/strerror.c (rpl_strerror): Provide replacement.
45266         * modules/strerror (Depends-on): Add string.
45267         (configure.ac): Detect use of module.
45268         * tests/test-strerror.c: New file.
45269         * modules/strerror-tests: New test module.
45270         * modules/argp (Depends-on): Add strerror.
45271         * modules/error (Depends-on): Likewise.
45272         Reported by Martin Koeppe.
45273
45274 2007-09-24  Bruno Haible  <bruno@clisp.org>
45275
45276         * README: Update git instructions.
45277
45278 2007-09-24  Eric Blake  <ebb9@byu.net>
45279
45280         Revert fpending breakage from 2007-09-08.
45281         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45282         __fpending.c.
45283
45284 2007-09-24  Jim Meyering  <jim@meyering.net>
45285
45286         filenamecat.c: Add a test.
45287         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45288         showing how the function works when DIR is the empty string.
45289
45290 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45291
45292         * tests/test-canonicalize.sh: Turn on executable bit.
45293
45294 2007-09-19  Eric Blake  <ebb9@byu.net>
45295
45296         * README: Update CVS instructions.
45297
45298 2007-09-18  Bruno Haible  <bruno@clisp.org>
45299
45300         * modules/areadlink: New file.
45301         * lib/areadlink.h (areadlink): New declaration.
45302         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45303
45304 2007-09-17  Jim Meyering  <jim@meyering.net>
45305
45306         * lib/savewd.c (ESTALE) [!defined]: Define.
45307         Reported to be required on Interix by Martin Koeppe.
45308
45309 2007-09-17  Bruno Haible  <bruno@clisp.org>
45310
45311         * gnulib-tool (func_version): Use $version.
45312
45313 2007-09-16  Bruno Haible  <bruno@clisp.org>
45314
45315         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45316         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45317         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45318         Reported by Greg Schafer <gschafer@zip.com.au>.
45319
45320 2007-09-15  Bruno Haible  <bruno@clisp.org>
45321
45322         * gnulib-tool (sed): Try a little harder to make bash understand the
45323         alias.
45324         Reported by Bruce Korb <bruce.korb@gmail.com>.
45325
45326 2007-09-13  Eric Blake  <ebb9@byu.net>
45327
45328         * ChangeLog: Remove conflict markers.
45329
45330 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45331
45332         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45333         Reported by Bruno Haible <bruno@clisp.org>.
45334
45335 2007-09-12  Bruno Haible  <bruno@clisp.org>
45336
45337         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45338         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45339         is not defined.
45340
45341 2007-09-12  Eric Blake  <ebb9@byu.net>
45342
45343         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45344         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45345         Autoconf definition.
45346         * modules/euidaccess (Depends-on): Add extensions, for
45347         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45348         * modules/fnmatch (Depends-on): Likewise.
45349         * modules/getaddrinfo (Depends-on): Likewise.
45350         * modules/getdelim (Depends-on): Likewise.
45351         * modules/getline (Depends-on): Likewise.
45352         * modules/getsubopt (Depends-on): Likewise.
45353         * modules/gettext (Depends-on): Likewise.
45354         * modules/group-member (Depends-on): Likewise.
45355         * modules/mbchar (Depends-on): Likewise.
45356         * modules/memmem (Depends-on): Likewise.
45357         * modules/mempcpy (Depends-on): Likewise.
45358         * modules/memrchr (Depends-on): Likewise.
45359         * modules/pagealign_alloc (Depends-on): Likewise.
45360         * modules/readutmp (Depends-on): Likewise.
45361         * modules/stpcpy (Depends-on): Likewise.
45362         * modules/stpncpy (Depends-on): Likewise.
45363         * modules/strchrnul (Depends-on): Likewise.
45364         * modules/strndup (Depends-on): Likewise.
45365         * modules/strsep (Depends-on): Likewise.
45366         * modules/strverscmp (Depends-on): Likewise.
45367         * modules/vasprintf (Depends-on): Likewise.
45368         * modules/wcwidth (Depends-on): Likewise.
45369         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45370         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45371         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45372         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45373         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45374         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45375         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45376         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45377         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45378         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45379         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45380         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45381         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45382         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45383         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45384         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45385         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45386         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45387         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45388         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45389         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45390         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45391         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45392         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45393         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45395         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45396         so that lock.m4 can be used in gettext without extensions module.
45397
45398 2007-09-11  Bruno Haible  <bruno@clisp.org>
45399
45400         * m4/isc-posix.m4: Remove file.
45401         Suggested by Eric Blake.
45402
45403 2007-09-11  Eric Blake  <ebb9@byu.net>
45404
45405         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45406
45407 2007-09-10  Bruno Haible  <bruno@clisp.org>
45408
45409         * posix-modules: Fix typo in error message.
45410         Reported by Matt <mkraai@beckman.com>.
45411
45412 2007-09-09  Bruno Haible  <bruno@clisp.org>
45413
45414         * doc/functions/getdelim.texi: Update list of platforms lacking the
45415         function.
45416         * doc/functions/getline.texi: Likewise.
45417
45418 2007-09-09  Jim Meyering  <jim@meyering.net>
45419
45420         * lib/hash.c (hash_initialize): Detect calloc failure.
45421         Reported by Bruno Haible.
45422
45423 2007-09-09  Bruno Haible  <bruno@clisp.org>
45424
45425         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
45426         malloc or realloc fails.
45427
45428 2007-09-09  Bruno Haible  <bruno@clisp.org>
45429
45430         * modules/getcwd (Depends-on): Add malloc-posix.
45431         * modules/glob (Depends-on): Likewise.
45432         * modules/putenv (Depends-on): Likewise.
45433         * modules/strdup (Depends-on): Likewise.
45434         * modules/getdelim (Depends-on): Add realloc-posix.
45435         * modules/read-file (Depends-on): Likewise.
45436
45437 2007-09-09  Bruno Haible  <bruno@clisp.org>
45438
45439         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
45440         (gl_FUNC_MALLOC_POSIX): Require it.
45441         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
45442         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
45443         * modules/realloc (Files): Add m4/malloc.m4.
45444         * modules/calloc (Files): Likewise.
45445
45446 2007-09-09  Bruno Haible  <bruno@clisp.org>
45447
45448         * modules/malloc-posix: New file.
45449         * modules/malloc (Depends-on): Add malloc-posix.
45450         * lib/malloc.c: Include errno.h.
45451         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
45452         and a POSIX-compatible malloc into a single function. Set ENOMEM
45453         when returning NULL.
45454         * m4/malloc.m4: New file.
45455         * doc/functions/malloc.texi: Mention the malloc-posix module.
45456         * lib/stdlib_.h (malloc): New declaration.
45457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45458         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
45459         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
45460         and HAVE_MALLOC_POSIX.
45461
45462 2007-09-09  Bruno Haible  <bruno@clisp.org>
45463
45464         * modules/realloc-posix: New file.
45465         * modules/realloc (Depends-on): Add realloc-posix.
45466         * lib/realloc.c: Include errno.h.
45467         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
45468         and a POSIX-compatible realloc into a single function. Set ENOMEM
45469         when returning NULL.
45470         * m4/realloc.m4: New file.
45471         * doc/functions/realloc.texi: Mention the realloc-posix module.
45472         * lib/stdlib_.h (realloc): New declaration.
45473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45474         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
45475         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
45476         and HAVE_REALLOC_POSIX.
45477
45478 2007-09-09  Bruno Haible  <bruno@clisp.org>
45479
45480         * modules/calloc-posix: New file.
45481         * modules/calloc (Depends-on): Add calloc-posix.
45482         * lib/calloc.c: Include errno.h.
45483         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
45484         and a POSIX-compatible calloc into a single function. Set ENOMEM
45485         when returning NULL.
45486         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
45487         * doc/functions/calloc.texi: Mention the calloc-posix module.
45488         * lib/stdlib_.h (calloc): New declaration.
45489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45490         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
45491         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
45492         and HAVE_CALLOC_POSIX.
45493
45494 2007-09-09  Bruno Haible  <bruno@clisp.org>
45495
45496         Allow for modules to show an arbitrary notice.
45497         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
45498         * gnulib-tool: New option --extract-notice.
45499         (func_usage): Document it.
45500         (sed_extract_prog): Update.
45501         (func_get_notice): New function.
45502         (func_modules_notice): New function.
45503         (func_import, func_create_testdir): Invoke it.
45504         Suggested by Jim Meyering.
45505
45506 2007-09-09  Bruno Haible  <bruno@clisp.org>
45507
45508         * gnulib-tool: New options --verbose, --quiet.
45509         (func_usage): Document them.
45510         (verbose): New variable.
45511         (func_execute_command): New function.
45512         (func_import): Don't show the module list and the file list if
45513         $verbose < 0.
45514         (func_create_testdir): Likewise. Use func_execute_command.
45515         (func_create_megatestdir): Use func_execute_command.
45516
45517 2007-09-08  Bruno Haible  <bruno@clisp.org>
45518
45519         * gnulib-tool (func_import): Prefer rsync over wget when available,
45520         for fetching the PO files.
45521
45522 2007-09-08  Bruno Haible  <bruno@clisp.org>
45523
45524         * posix-modules: New file. Portions copied from gnulib-tool.
45525         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
45526
45527 2007-09-08  Jim Meyering  <jim@meyering.net>
45528
45529         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
45530         * lib/fpending.h: Rename from __fpending.h.
45531         * lib/fpending.c: Rename from __fpending.c.
45532         Include "fpending.h", not "__fpending.h".
45533         * lib/__fpending.h, lib/__fpending.c: Remove files.
45534         * modules/fpending (Files): Reflect new file names.
45535         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
45536
45537 2007-09-08  Bruno Haible  <bruno@clisp.org>
45538
45539         * m4/inttypes-h.m4: Remove stub file.
45540
45541 2007-09-07  Simon Josefsson  <simon@josefsson.org>
45542
45543         * doc/headers/stdint.texi: Discuss #include_next issue.
45544
45545 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45546
45547         * build-aux/bootstrap: Remove obsolete comment about wget --help.
45548
45549 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45550
45551         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
45552         in variable name.
45553
45554 2007-09-03  Jim Meyering  <jim@meyering.net>
45555
45556         New module: git-version-gen.
45557         * modules/git-version-gen: New file.
45558
45559         Import changes from coreutils for bootstrap script.
45560
45561         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
45562
45563         bootstrap: uses rsync to download the .po files
45564         * build-aux/bootstrap (po_download_command_format): New global.
45565         (download_po_files): Use rsync.
45566         (update_po_files): Don't remove .po files after download,
45567         so future rsync runs can take advantage of the copies.
45568
45569         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
45570
45571         Solve the unnecessary-.po-file-regeneration problem once and for all.
45572         * build-aux/bootstrap (download_po_files): New function, renamed from
45573         get_translations.  Now, downloads, but doesn't update LINGUAS.
45574         (update_po_files): New function.
45575
45576         bootstrap: Ignore more.
45577         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
45578         uniwidth to e.g., lib/.gitignore.
45579         (slurp): Handle the sys_stat_.h -> sys mapping, too.
45580
45581         * build-aux/bootstrap: New setting: vc_ignore.
45582         (insert_sorted_if_absent): Create $file if absent.
45583         Adapt to new, possibly empty, list: $vc_ignore.
45584
45585         bootstrap: generate more ignorable names
45586         * build-aux/bootstrap (slurp): When generating ignorable names,
45587         also map .sin to .sed, .gperf to .c, and .y to .c.
45588
45589 2007-09-03  Jim Meyering  <jim@meyering.net>
45590
45591         * build-aux/git-version-gen: New file, from coreutils.  For details, see
45592         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
45593
45594 2007-09-02  Bruno Haible  <bruno@clisp.org>
45595
45596         Fix mis-recognition of 'mcs' on QNX 6.
45597         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
45598         output contains the string "Mono".
45599         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
45600         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
45601
45602 2007-09-01  Bruno Haible  <bruno@clisp.org>
45603
45604         Fix collision between uniwidth/* and linebreak modules.
45605         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
45606         u32_width): Remove declarations.
45607         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
45608         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
45609         streq3, streq2, streq1, streq0): Remove functions.
45610         (STREQ): Remove macro.
45611         (is_cjk_encoding): Remove function.
45612         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
45613         (uc_width, u8_width, u16_width, u32_width): Remove functions.
45614         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
45615         * NEWS: Document the change.
45616
45617 2007-09-01  Bruno Haible  <bruno@clisp.org>
45618
45619         * lib/streq.h: Add double-inclusion guard.
45620
45621 2007-09-01  Karl Berry  <karl@gnu.org>
45622
45623         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
45624
45625 2007-08-28  Jim Meyering  <jim@meyering.net>
45626
45627         Rename mreadlink_with_size to areadlink_with_size.
45628         * NEWS: Document the change.
45629         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
45630         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
45631         * lib/mreadlink.h: Rename this to...
45632         * lib/areadlink.h: ...this.
45633         * modules/mreadlink-with-size: Rename this to...
45634         * modules/areadlink-with-size: ...this.
45635         * lib/canonicalize.c: Reflect the renaming.
45636         * modules/canonicalize: Likewise.
45637
45638 2007-08-26  Bruno Haible  <bruno@clisp.org>
45639
45640         * gnulib-tool (func_import): When deciding which files to remove,
45641         consider also dangling symbolic links.
45642         Reported by Eric Blake.
45643
45644 2007-08-26  Bruno Haible  <bruno@clisp.org>
45645
45646         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
45647
45648 2007-08-23  Simon Josefsson  <simon@josefsson.org>
45649
45650         * lib/readline.c: Don't include getline.h, the prototype is now
45651         found in stdio.h.
45652
45653 2007-08-23  Jim Meyering  <jim@meyering.net>
45654
45655         Getdelim touchup.
45656         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
45657         around the funlockfile call, since funlockfile never sets errno.
45658         Don't set errno upon failed realloc.
45659
45660 2007-08-22  Eric Blake  <ebb9@byu.net>
45661
45662         Getline touchups.
45663         * lib/getdelim.c (getdelim): Revert regression that required *n to
45664         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
45665         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
45666         getdelim, rather than whether implementation is missing.
45667         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
45668         * lib/stdio_.h (getline): Also declare if replacement is
45669         required.
45670         * doc/functions/getdelim.texi: New file.
45671         * doc/functions/getline.texi: Likewise.
45672         * doc/gnulib.texi (Function Substitutes): Add new files.
45673         Reported by Bruno Haible.
45674
45675 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
45676
45677         * users.txt: Add Guile.
45678
45679 2007-08-22  Eric Blake  <ebb9@byu.net>
45680
45681         * tests/test-getdelim.c (main): Use remove, not unlink.
45682         * tests/test-getline.c (main): Likewise.
45683
45684         Move getline and getdelim into stdio.h, per POSIX 200x.
45685         * modules/getline (Files): Remove getline.h.
45686         (Depends-on): Add stdio.
45687         (configure.ac): Add module indicator.
45688         * modules/getdelim (Files): Remove getdelim.h.
45689         (Depends-on): Add stdio.
45690         (configure.ac): Add module indicator.
45691         * modules/stdio (Makefile.am): Work with new indicators.
45692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45693         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
45694         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45695         * lib/getdelim.h: Delete.
45696         * lib/getline.h: Delete.
45697         * lib/stdio_.h (getdelim, getline): Declare.
45698         * modules/getdelim-tests: New module.
45699         * modules/getline-tests: Likewise.
45700         * tests/test-getdelim.c: New file.
45701         * tests/test-getline.c: Likewise.
45702         * NEWS: Document the change.
45703         * lib/getline.c: Update choice of header.
45704         * lib/csharpcomp.c: Likewise.
45705         * lib/getpass.c: Likewise.
45706         * lib/javacomp.c: Likewise.
45707         * lib/javaversion.c: Likewise.
45708         * lib/yesno.c: Likewise.
45709         * lib/getdelim.c: Likewise.
45710         (getdelim): Set errno on failure, and avoid memory leak.
45711
45712 2007-08-19  Bruno Haible  <bruno@clisp.org>
45713
45714         * modules/closein (Depends-on): Add freadahead.
45715         * lib/closein.c: Include freadahead.h.
45716         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
45717         is zero.
45718
45719 2007-08-19  Bruno Haible  <bruno@clisp.org>
45720
45721         * modules/freadahead-tests: New file.
45722         * tests/test-freadahead.sh: New file.
45723         * tests/test-freadahead.c: New file.
45724
45725         * modules/freadahead: New file.
45726         * lib/freadahead.h: New file.
45727         * lib/freadahead.c: New file.
45728         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
45729         fbufmode, fpurge, freadable, fwritable.
45730
45731 2007-08-19  Eric Blake  <ebb9@byu.net>
45732
45733         Test yesno in combination with closein.
45734         * lib/yesno.c (yesno): Document use of stdin.
45735         * modules/yesno-tests (Files): New module.
45736         * tests/test-yesno.c (main): New file.
45737         * tests/test-yesno.sh: Likewise.
45738
45739 2007-08-19  Bruno Haible  <bruno@clisp.org>
45740
45741         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
45742         * lib/fseeko.c (rpl_fseeko): Likewise.
45743         * lib/fseterr.c (fseterr): Likewise.
45744
45745 2007-08-19  Bruno Haible  <bruno@clisp.org>
45746
45747         * tests/test-lseek.c (main): Disable a test for BeOS.
45748         * doc/functions/lseek.texi: Document the BeOS bug.
45749
45750 2007-08-19  Bruno Haible  <bruno@clisp.org>
45751             Eric Blake  <ebb9@byu.net>
45752
45753         * lib/lseek.c: Include <sys/stat.h>.
45754         (rpl_lseek): Add workaround code also for Unix platforms.
45755         Needed for BeOS.
45756         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
45757         * doc/functions/lseek.texi: Document BeOS definiency.
45758
45759 2007-08-18  Bruno Haible  <bruno@clisp.org>
45760
45761         * modules/fstrcmp-tests: New file.
45762         * tests/test-fstrcmp.c: New file.
45763
45764 2007-08-18  Bruno Haible  <bruno@clisp.org>
45765
45766         * modules/fstrcmp: New file, from GNU gettext with modifications.
45767         * lib/fstrcmp.h: New file, from GNU gettext.
45768         * lib/fstrcmp.c: New file, from GNU gettext.
45769         * MODULES.html.sh (String handling): Add fstrcmp.
45770
45771 2007-08-18  Bruno Haible  <bruno@clisp.org>
45772
45773         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
45774         'bool'.
45775         (diag, compareseq): Remove const from the ctxt argument.
45776         (USE_HEURISTIC): Undefine at the end.
45777
45778 2007-08-18  Jim Meyering  <jim@meyering.net>
45779
45780         New file: lib/idcache.h
45781         * NEWS: Mention the addition.
45782         * modules/idcache (Files): Add lib/idcache.h
45783         * lib/idcache.c: Include "idcache.h".
45784         Don't include <sys/types.h>.
45785         Add a FIXME comment.
45786         Move file-scoped "static" declarations to the top.
45787         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
45788
45789 2007-08-17  Bruno Haible  <bruno@clisp.org>
45790         and Paul Eggert  <eggert@cs.ucla.edu>
45791
45792         * MODULES.html.sh: Add diffseq.
45793         * modules/diffseq: New file.
45794         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
45795         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
45796
45797 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45798
45799         Import changes from coreutils for bootstrap script.
45800
45801         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
45802
45803         * build-aux/bootstrap (slurp): Work even in environments where
45804         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
45805         current code does not slurp files whose names start with ".", and
45806         this looks like it might be a troublesome area.
45807
45808         2007-07-11  Jim Meyering  <jim@meyering.net>
45809
45810         If there's a GPL vN copyright comment, require that N == 3.
45811
45812         2007-07-08  Jim Meyering  <jim@meyering.net>
45813
45814         Run the coreutils-specific code only if tests/Makefile.am.in exists.
45815         * build-aux/bootstrap (mam_template): Move definition out of loop.
45816
45817         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
45818
45819         * build-aux/bootstrap (symlink_to_dir): Rename function from
45820         symlink_to_gnulib.  Add a directory parameter.  Update all
45821         callers.
45822         (cp_mark_as_generated): Also check for -- and link to -- files in
45823         gl/.
45824
45825         2007-07-08  Jim Meyering  <jim@meyering.net>
45826
45827         Adapt to deeper hierarchy in gnulib.
45828         * build-aux/bootstrap (symlink_to_dir): If the destination
45829         directory doesn't exist, create it. This is required at least for
45830         "lib/uniwidth/cjk.h".
45831
45832         2007-05-15  Jim Meyering  <jim@meyering.net>
45833
45834         * build-aux/bootstrap: Now that generated Makefile.am files
45835         are no longer under version control, they must be created at
45836         bootstrap time.
45837
45838 2007-08-14  Ben Pfaff  <blp@gnu.org>
45839
45840         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
45841
45842 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45843
45844         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
45845         given the changes below.
45846         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
45847         even on hosts that have padding bits beyond the supported 64.
45848
45849 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45850
45851         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
45852         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
45853         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
45854         depends on it.
45855         (xstrtol_error): Remove.
45856         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
45857         but with a different signature.
45858         (ATTRIBUTE_NORETURN, __attribute__): New macros.
45859         * lib/xstrtol-error.c: Include exitfail.h.
45860         (xstrtol_fatal): New function, with a different signature from the
45861         old xstrtol_error, so that the caller need not worry about passing
45862         in an exit status, or about storage management of the option argument.
45863         (xstrtol_error): Now a static function.  Redo signature to
45864         implement xstrtol_fatal.  Output the correct number of hyphens in
45865         front of the option so that the caller need not worry about
45866         storage management.
45867         (N_): New macro.
45868         (_): Remove; not used now.
45869         * modules/xstrtol: Depend on getopt.
45870         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
45871         of old STRTOL_FATAL_ERROR macro.
45872         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
45873         of test program.
45874         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
45875         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
45876
45877 2007-08-08  Eric Blake  <ebb9@byu.net>
45878
45879         * lib/xstrtol-error.c: Add missing include.
45880
45881         Move xstrtol messages into gnulib domain, when --pobase is used.
45882         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
45883         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
45884         * modules/xstrtol (Files): Distribute new file.
45885         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
45886         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
45887         * tests/test-xstrtol.c: ...into new file.
45888         * tests/test-xstrtoul.c: Also test xstrtoul.
45889         * tests/test-xstrtoimax.c: Also test xstrtoimax.
45890         * tests/test-xstrtoumax.c: Also test xstrtoumax.
45891         * tests/test-xstrtol.sh: Drive the tests.
45892         * tests/test-xstrtoimax.sh: Likewise.
45893         * tests/test-xstrtoumax.sh: Likewise.
45894         * modules/xstrtol-tests: New module.
45895         * modules/xstrtoimax-tests: Likewise.
45896         * modules/xstrtoumax-tests: Likewise.
45897
45898 2007-08-08  Jim Meyering  <jim@meyering.net>
45899
45900         New function: mfile_name_concat.
45901         * lib/filenamecat.c (mfile_name_concat): New function, just like
45902         file_name_concat, but return NULL upon failure rather than exiting
45903         with a diagnostic.
45904         * lib/filenamecat.h: Declare it.
45905
45906 2007-08-07  Bruno Haible  <bruno@clisp.org>
45907
45908         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
45909         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
45910         warning from gcc.
45911         Reported by Eric Blake.
45912
45913 2007-08-07  Simon Josefsson  <simon@josefsson.org>
45914
45915         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
45916         * modules/crypto/arcfour (License): Likewise.
45917         * modules/crypto/des-tests (License): Likewise.
45918         * modules/crypto/gc-arctwo-tests (License): Likewise.
45919         * modules/crypto/gc-des-tests (License): Likewise.
45920         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
45921         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
45922         * modules/crypto/gc-md2-tests (License): Likewise.
45923         * modules/crypto/gc-md4-tests (License): Likewise.
45924         * modules/crypto/gc-md5-tests (License): Likewise.
45925         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
45926         * modules/crypto/gc-rijndael-tests (License): Likewise.
45927         * modules/crypto/gc-sha1-tests (License): Likewise.
45928         * modules/crypto/gc-tests (License): Likewise.
45929         * modules/crypto/hmac-md5 (License): Likewise.
45930         * modules/crypto/hmac-sha1 (License): Likewise.
45931         * modules/crypto/md2-tests (License): Likewise.
45932         * modules/crypto/md4-tests (License): Likewise.
45933         * modules/crypto/md5 (License): Likewise.
45934         * modules/crypto/rijndael (License): Likewise.
45935         * modules/crypto/sha1 (License): Likewise.
45936         * modules/memxor (License): Likewise.
45937
45938 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45939         and Bruno Haible  <bruno@clisp.org>
45940
45941         * NEWS: Describe interface changes to human, xstrtol.
45942         * lib/human.h: Include <xstrtol.h>.
45943         (human_options): Return enum strtol_error, not int.  Remove
45944         bool arg; take int * instead.
45945         * lib/human.c: Don't include "gettext.h".
45946         (_): Remove; no longer used.
45947         Don't include <xstrtol.h>, since human.h does it.
45948         (human_options): Adjust to abovementioned interface changes.
45949         Do not report error to stderr; that's now the caller's
45950         responsibility.
45951         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
45952         interface change.
45953         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
45954         Str, Argument_type_string.  All uses changed.  Put " argument"
45955         in diagnostics to make them clearer.  Change wording of suffix
45956         message for clarity.
45957         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
45958         Argument_type_string.
45959         (STRTOL_FATAL_WARN): Remove; no longer used.
45960         * modules/human (Depends-on): Remove gettext-h.
45961
45962 2007-08-06  Simon Josefsson  <simon@josefsson.org>
45963
45964         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
45965
45966 2007-07-31  Bruno Haible  <bruno@clisp.org>
45967
45968         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
45969         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
45970         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
45971
45972 2007-07-31  Bruno Haible  <bruno@clisp.org>
45973
45974         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
45975         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
45976
45977 2007-07-30  Bruno Haible  <bruno@clisp.org>
45978
45979         * modules/base64 (License): Use the synonymous term "LGPLv2+".
45980         * modules/c-ctype (License): Likewise.
45981         * modules/c-strcase (License): Likewise.
45982         * modules/check-version (License): Likewise.
45983         * modules/iconv (License): Likewise.
45984         * modules/iconv_open (License): Likewise.
45985         * modules/read-file (License): Likewise.
45986         * modules/striconv (License): Likewise.
45987         * modules/strverscmp (License): Likewise.
45988         * modules/vasprintf (License): Likewise.
45989         * modules/crypto/des (License): Likewise.
45990         * modules/crypto/gc (License): Likewise.
45991         * modules/crypto/gc-arcfour (License): Likewise.
45992         * modules/crypto/gc-arctwo (License): Likewise.
45993         * modules/crypto/gc-des (License): Likewise.
45994         * modules/crypto/gc-hmac-md5 (License): Likewise.
45995         * modules/crypto/gc-hmac-sha1 (License): Likewise.
45996         * modules/crypto/gc-md2 (License): Likewise.
45997         * modules/crypto/gc-md4 (License): Likewise.
45998         * modules/crypto/gc-md5 (License): Likewise.
45999         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46000         * modules/crypto/gc-random (License): Likewise.
46001         * modules/crypto/gc-rijndael (License): Likewise.
46002         * modules/crypto/gc-sha1 (License): Likewise.
46003         * modules/crypto/md2 (License): Likewise.
46004         * modules/crypto/md4 (License): Likewise.
46005
46006 2007-07-30  Jim Meyering  <jim@meyering.net>
46007
46008         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46009         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46010         it has valid stat data.  This bug would cause du not to count the
46011         sizes of inaccessible directories.
46012         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46013         in <http://bugzilla.redhat.com/250077>.
46014
46015 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46016             Bruno Haible  <bruno@clisp.org>
46017
46018         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46019         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46020         #include_next, gives a diagnostic about it, but reports no error in
46021         the exit code.
46022         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46023
46024 2007-07-24  Ben Pfaff  <blp@gnu.org>
46025
46026         Improve name: "count-one-bits" is better than "popcount".
46027         * MODULES.html.sh: Update name.
46028         * lib/popcount.h: Renamed lib/count-one-bits.h.
46029         (popcount): Renamed count_one_bits.
46030         (popcountl): Renamed count_one_bits_l.
46031         (popcountll): Renamed count_one_bits_ll.
46032         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46033         * modules/popcount: Renamed module/count-one-bits.
46034         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46035         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46036
46037 2007-07-23  Ben Pfaff  <blp@gnu.org>
46038
46039         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46040         better code generation, and add U to large constants to avoid
46041         warnings, in non-GCC case.
46042         Suggested by Bruno Haible.
46043
46044 2007-07-23  Ben Pfaff  <blp@gnu.org>
46045
46046         * lib/popcount.h: Use verify_true instead of if...abort.
46047         * modules/popcount: Depend on verify module.
46048         Suggested by Jim Meyering.
46049
46050 2007-07-23  Bruno Haible  <bruno@clisp.org>
46051
46052         * gnulib-tool (func_import): Create a .cvsignore file also when the
46053         directory is not yet in CVS but the toplevel directory is. When
46054         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46055         Reported by Karl Berry.
46056
46057 2007-07-22  Ben Pfaff  <blp@gnu.org>
46058
46059         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46060         case.
46061         Suggested by Eric Blake.
46062
46063 2007-07-22  Ben Pfaff  <blp@gnu.org>
46064
46065         New module: popcount.
46066         * MODULES.html.sh: Add popcount.
46067         * modules/popcount: New file.
46068         * modules/popcount-tests: New file.
46069         * tests/test-popcount.c: New file.
46070         * lib/popcount.h: New file.
46071         * m4/popcount.m4: New file.
46072
46073 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46074
46075         * build-aux/announce-gen: Update to GPLv3.
46076
46077         * build-aux/config.guess: Update from config.
46078
46079 2007-07-21  Bruno Haible  <bruno@clisp.org>
46080
46081         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46082         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46083
46084 2007-07-20  Jim Meyering  <jim@meyering.net>
46085
46086         * check-module: Diagnose a self-dependency.
46087
46088 2007-07-19  Bruno Haible  <bruno@clisp.org>
46089
46090         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46091         empty.
46092         Reported by Eric Blake.
46093
46094 2007-07-18  Bruno Haible  <bruno@clisp.org>
46095
46096         * gnulib-tool: New options --po-base, --po-domain.
46097         (func_usage): Document them.
46098         (pobase, po_domain): New variables.
46099         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46100         DEFAULT_TEXT_DOMAIN.
46101         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46102         (func_import): Consider pobase and po_domain. Create a po/ directory.
46103         (func_create_testdir): Set pobase and po_domain to empty.
46104         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46105         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46106
46107 2007-07-18  Bruno Haible  <bruno@clisp.org>
46108
46109         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46110         EXTRA_DIST augmentation for files in build-aux/.
46111
46112 2007-07-16  Bruno Haible  <bruno@clisp.org>
46113
46114         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46115         * modules/getdelim (License): Likewise.
46116
46117 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46118
46119         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46120         * modules/d-type (License): Likewise.
46121         * modules/extensions (License): Likewise.
46122         * modules/fnmatch (License): Likewise.
46123         * modules/fseeko (License): Likewise.
46124         * modules/getaddrinfo (License): Likewise.
46125         * modules/getline (License): Likewise.
46126         * modules/getlogin_r (License): Likewise.
46127         * modules/getpass (License): Likewise.
46128         * modules/gettimeofday (License): Likewise.
46129         * modules/glob (License): Likewise.
46130         * modules/inet_ntop (License): Likewise.
46131         * modules/malloc (License): Likewise.
46132         * modules/malloca (License): Likewise.
46133         * modules/memmem (License): Likewise.
46134         * modules/mempcpy (License): Likewise.
46135         * modules/memset (License): Likewise.
46136         * modules/minmax (License): Likewise.
46137         * modules/mktime (License): Likewise.
46138         * modules/netinet_in (License): Likewise.
46139         * modules/pathmax (License): Likewise.
46140         * modules/poll (License): Likewise.
46141         * modules/regex (License): Likewise.
46142         * modules/snprintf (License): Likewise.
46143         * modules/stdbool (License): Likewise.
46144         * modules/stdint (License): Likewise.
46145         * modules/stdio (License): Likewise.
46146         * modules/strcase (License): Likewise.
46147         * modules/strcasestr (License): Likewise.
46148         * modules/strdup (License): Likewise.
46149         * modules/string (License): Likewise.
46150         * modules/strndup (License): Likewise.
46151         * modules/strnlen (License): Likewise.
46152         * modules/strpbrk (License): Likewise.
46153         * modules/strptime (License): Likewise.
46154         * modules/strsep (License): Likewise.
46155         * modules/sys_select (License): Likewise.
46156         * modules/sys_socket (License): Likewise.
46157         * modules/sys_stat (License): Likewise.
46158         * modules/sys_time (License): Likewise.
46159         * modules/time (License): Likewise.
46160         * modules/time_r (License): Likewise.
46161         * modules/timegm (License): Likewise.
46162         * modules/unistd (License): Likewise.
46163         * modules/vsnprintf (License): Likewise.
46164         * modules/wctype (License): Likewise.
46165
46166 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46167
46168         * modules/argz (License): LGPLv2+.
46169
46170 2007-07-15  Karl Berry  <karl@gnu.org>
46171
46172         * doc/gnulib.texi: revise node structure per new fdl.texi.
46173
46174 2007-07-14  Bruno Haible  <bruno@clisp.org>
46175
46176         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46177         the output file.
46178         * lib/uniname/uninames.h: Regenerated.
46179
46180 2007-07-14  Karl Berry  <karl@gnu.org>
46181
46182         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46183         omitting sectioning and index commands.
46184
46185 2007-07-13  Bruno Haible  <bruno@clisp.org>
46186
46187         New gnulib-tool option --more-symlinks.
46188         * gnulib-tool (func_usage): Document --more-symlinks.
46189         (do_copyrights): New variable.
46190         Recognize option --more-symlinks.
46191         (func_import): Don't add a copyright notice transform to
46192         sed_transform_lib_file if do_copyrights is empty.
46193
46194 2007-07-13  Bruno Haible  <bruno@clisp.org>
46195
46196         * lib/vasnprintf.c (decimal_point_char): Define also if
46197         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46198         && !NEED_PRINTF_DIRECTIVE_A.
46199         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46200         Gary V. Vaughan <gary@gnu.org>.
46201
46202 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46203
46204         * lib/inttypes_.h: Undo previous change, since it was fixed
46205         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46206
46207 2007-07-13  Bruno Haible  <bruno@clisp.org>
46208
46209         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46210         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46211
46212 2007-07-13  Jim Meyering  <jim@meyering.net>
46213
46214         df: Don't fail for Tru64's "file-on-file mount".
46215         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46216         so we fall through and use statfs instead.  Details here:
46217         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46218         Reported by Albert Chin.
46219
46220 2007-07-13  Bruno Haible  <bruno@clisp.org>
46221
46222         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46223         * modules/configmake (License): Likewise.
46224         * modules/gettext (License): Likewise.
46225         * modules/gettext-h (License): Likewise.
46226         * modules/include_next (License): Likewise.
46227         * modules/link-warning (License): Likewise.
46228         * modules/localcharset (License): Likewise.
46229         * modules/localename (License): Likewise.
46230         * modules/lock (License): Likewise.
46231         * modules/relocatable-lib-lgpl (License): Likewise.
46232         * modules/size_max (License): Likewise.
46233         * modules/vasnprintf (License): Likewise.
46234         * modules/wchar (License): Likewise.
46235         * modules/xsize (License): Likewise.
46236
46237 2007-07-13  Bruno Haible  <bruno@clisp.org>
46238
46239         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46240         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46241
46242 2007-07-12  Bruno Haible  <bruno@clisp.org>
46243
46244         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46245         in the modules files.
46246
46247 2007-07-11  Karl Berry  <karl@gnu.org>
46248
46249         * MODULES.html.sh (func_module): use
46250          sed -e '\|^'"${includefile}"'$|d'
46251          instead of /.../d, to avoid errors on $includefile's containing /.
46252
46253 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46254
46255         * gnulib-tool (func_import): Avoid duplication of --avoid
46256         statements
46257         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46258         names to `_' in variable names.
46259
46260 2007-07-10  Eric Blake  <ebb9@byu.net>
46261
46262         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46263         * NEWS: Document this change.
46264
46265 2007-07-08  Bruno Haible  <bruno@clisp.org>
46266
46267         Update to Unicode 5.0.
46268         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46269         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46270         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46271         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46272         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46273         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46274         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46275         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46276         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46277         U+10A3F, U+1D242..U+1D244.
46278         (nonspacing_table_ind): Update.
46279         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46280         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46281
46282 2007-07-08  Bruno Haible  <bruno@clisp.org>
46283
46284         Update to Unicode 5.0.
46285         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46286         code transform. Extend the name index field of unicode_name_to_code and
46287         unicode_code_to_name from 16 to 24 bits.
46288         * lib/uniname/uniname.c (unicode_character_name,
46289         unicode_name_character): Add the range 0x12xxx to the code transform.
46290         * lib/uniname/uninames.h: Regenerated.
46291         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46292
46293 2007-07-07  Bruno Haible  <bruno@clisp.org>
46294
46295         * modules/wcwidth-tests: New file.
46296         * tests/test-wcwidth.c: New file.
46297
46298         Work around MacOS X wcwidth() bug.
46299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46300         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46301         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46302         original wcwidth in non-UTF-8 locales.
46303         * modules/wcwidth (Depends-on): Add localcharset, streq,
46304         uniwidth/width.
46305         * doc/functions/wcwidth.texi: Update.
46306
46307 2007-07-07  Bruno Haible  <bruno@clisp.org>
46308
46309         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46310         (wcwidth): New declaration.
46311         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46312         macros.
46313         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46314         here. Prepare for creating <wchar.h> unconditionally.
46315         * modules/wchar (Depends-on): Add link-warning.
46316         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46317         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46318         * lib/wcwidth.h: Remove file.
46319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46320         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46321         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46322         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46323         (Include): Replace wcwidth.h with <wchar.h>.
46324         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46325         * lib/mbchar.h: Don't include wcwidth.h.
46326         * lib/mbswidth.c: Likewise.
46327         * NEWS: Mention the change.
46328
46329 2007-07-07  Bruno Haible  <bruno@clisp.org>
46330
46331         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46332         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46333         definition with an external declaration.
46334         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46335         defined as a function. Remove AC_C_INLINE requirement.
46336         * modules/wcwidth (Files): Add lib/wcwidth.c.
46337         (Makefile.am): Remove redundant statement.
46338
46339 2007-07-07  Bruno Haible  <bruno@clisp.org>
46340
46341         * MODULES.html.sh (Unicode string functions): Add the new modules.
46342
46343         * tests/uniwidth/test-u32-strwidth.c: New file.
46344         * modules/uniwidth/u32-strwidth-tests: New file.
46345
46346         * lib/uniwidth/u32-strwidth.c: New file.
46347         * modules/uniwidth/u32-strwidth: New file.
46348
46349         * tests/uniwidth/test-u16-strwidth.c: New file.
46350         * modules/uniwidth/u16-strwidth-tests: New file.
46351
46352         * lib/uniwidth/u16-strwidth.c: New file.
46353         * modules/uniwidth/u16-strwidth: New file.
46354
46355         * tests/uniwidth/test-u8-strwidth.c: New file.
46356         * modules/uniwidth/u8-strwidth-tests: New file.
46357
46358         * lib/uniwidth/u8-strwidth.c: New file.
46359         * modules/uniwidth/u8-strwidth: New file.
46360
46361         * tests/uniwidth/test-u32-width.c: New file.
46362         * modules/uniwidth/u32-width-tests: New file.
46363
46364         * lib/uniwidth/u32-width.c: New file.
46365         * modules/uniwidth/u32-width: New file.
46366
46367         * tests/uniwidth/test-u16-width.c: New file.
46368         * modules/uniwidth/u16-width-tests: New file.
46369
46370         * lib/uniwidth/u16-width.c: New file.
46371         * modules/uniwidth/u16-width: New file.
46372
46373         * tests/uniwidth/test-u8-width.c: New file.
46374         * modules/uniwidth/u8-width-tests: New file.
46375
46376         * lib/uniwidth/u8-width.c: New file.
46377         * modules/uniwidth/u8-width: New file.
46378
46379         * tests/uniwidth/test-uc_width.c: New file.
46380         * modules/uniwidth/width-tests: New file.
46381
46382         * lib/uniwidth/width.c: New file, from GNU libiconv.
46383         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46384         * modules/uniwidth/width: New file.
46385
46386         * lib/uniwidth.h: New file, from GNU libiconv.
46387         * modules/uniwidth/base: New file.
46388
46389 2007-07-07  Bruno Haible  <bruno@clisp.org>
46390
46391         * lib/uniname.h: New file, from GNU gettext.
46392         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46393         * lib/uniname/uninames.h: New file, from GNU gettext.
46394         * lib/uniname/uniname.c: New file, from GNU gettext.
46395         * tests/uniname/test-uninames.sh: New file.
46396         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46397         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46398         * modules/uniname/base: New file.
46399         * modules/uniname/uniname: New file.
46400         * modules/uniname/uniname-tests: New file.
46401         * MODULES.html.sh (Unicode string functions): Add the new modules.
46402
46403 2007-07-06  Bruno Haible  <bruno@clisp.org>
46404
46405         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46406
46407 2007-07-06  Bruno Haible  <bruno@clisp.org>
46408
46409         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46410         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46411         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46412         include <sys/time.h>.
46413         Reported by Eric Blake.
46414
46415 2007-07-06  Eric Blake  <ebb9@byu.net>
46416
46417         Fix testing canonicalize on cygwin.
46418         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46419         Revert patch from 2007-06-19.
46420         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
46421         canonicalize module is also in use.
46422         * tests/test-canonicalize.c: New file.
46423         * tests/test-canonicalize.sh: Likewise.
46424         * modules/canonicalize-tests: Likewise.
46425
46426 2007-07-06  Jim Meyering  <jim@meyering.net>
46427
46428         * lib/getugroups.c (getugroups): Detect getgrent failure.
46429         Adjust comment to reflect reality: this function may return -1.
46430
46431 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46432
46433         * build-aux/bootstrap (TP_URL,get_translations): Update to use
46434         the new TP address.
46435         (usage): Fix typo
46436         (gnulib_mk): New variable.
46437
46438 2007-07-05  Jim Meyering  <jim@meyering.net>
46439
46440         Don't let endgrent clobber errno, no matter how improbable.
46441         * lib/getugroups.c (getugroups): Save and restore errno around
46442         endgrent call.
46443
46444         Close the group DB even when failing with 2^31 or more members.
46445         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
46446
46447 2007-07-04  Jim Meyering  <jim@meyering.net>
46448
46449         * lib/getugroups.h: New file.
46450         * lib/getugroups.c: Include "getugroups.h".
46451         Remove uses of "register" keyword.
46452         Move local variable, "cp", down into scope where used.
46453         Give "username" parameter the "const" attribute.
46454         * modules/getugroups (Files): Add lib/getugroups.h
46455
46456 2007-07-04  Karl Berry  <karl@gnu.org>
46457
46458         * MODULES.html.sh (func_all_modules): Complete rename of
46459         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
46460
46461 2007-07-02  Bruno Haible  <bruno@clisp.org>
46462
46463         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
46464         mode, when inttypes.h comes from gnulib.
46465         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46466
46467 2007-07-02  Simon Josefsson  <simon@josefsson.org>
46468
46469         * NEWS: Mention lgpl module name change.
46470
46471         * modules/lgpl-2.1: Renamed from lgpl.
46472
46473         * NEWS: Mention gpl module name change.
46474
46475         * modules/gpl-3.0: New file, based on gpl-2.0.
46476
46477         * modules/gpl-2.0: Renamed from gpl.
46478
46479         * modules/gpl: Fix filename, doc/gpl.texi is now found at
46480         doc/gpl-2.0.texi.
46481
46482 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46483
46484         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
46485         #define __STDC_LIMIT_MACROS temporarily while including
46486         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
46487         Problem reported by Joel E. Denny in
46488         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
46489
46490 2007-07-01  Bruno Haible  <bruno@clisp.org>
46491
46492         * lib/unistdio.h: New file.
46493         * lib/unistdio/u-asnprintf.h: New file.
46494         * lib/unistdio/u-asprintf.h: New file.
46495         * lib/unistdio/u-printf-args.c: New file.
46496         * lib/unistdio/u-printf-args.h: New file.
46497         * lib/unistdio/u-printf-parse.h: New file.
46498         * lib/unistdio/u-snprintf.h: New file.
46499         * lib/unistdio/u-sprintf.h: New file.
46500         * lib/unistdio/u-vasprintf.h: New file.
46501         * lib/unistdio/u-vsnprintf.h: New file.
46502         * lib/unistdio/u-vsprintf.h: New file.
46503         * lib/unistdio/ulc-asnprintf.c: New file.
46504         * lib/unistdio/ulc-asprintf.c: New file.
46505         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
46506         * lib/unistdio/ulc-printf-parse.c: New file.
46507         * lib/unistdio/ulc-snprintf.c: New file.
46508         * lib/unistdio/ulc-sprintf.c: New file.
46509         * lib/unistdio/ulc-vasnprintf.c: New file.
46510         * lib/unistdio/ulc-vasprintf.c: New file.
46511         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
46512         * lib/unistdio/ulc-vsnprintf.c: New file.
46513         * lib/unistdio/ulc-vsprintf.c: New file.
46514         * lib/unistdio/u8-asnprintf.c: New file.
46515         * lib/unistdio/u8-asprintf.c: New file.
46516         * lib/unistdio/u8-printf-parse.c: New file.
46517         * lib/unistdio/u8-snprintf.c: New file.
46518         * lib/unistdio/u8-sprintf.c: New file.
46519         * lib/unistdio/u8-vasnprintf.c: New file.
46520         * lib/unistdio/u8-vasprintf.c: New file.
46521         * lib/unistdio/u8-vsnprintf.c: New file.
46522         * lib/unistdio/u8-vsprintf.c: New file.
46523         * lib/unistdio/u8-u8-asnprintf.c: New file.
46524         * lib/unistdio/u8-u8-asprintf.c: New file.
46525         * lib/unistdio/u8-u8-snprintf.c: New file.
46526         * lib/unistdio/u8-u8-sprintf.c: New file.
46527         * lib/unistdio/u8-u8-vasnprintf.c: New file.
46528         * lib/unistdio/u8-u8-vasprintf.c: New file.
46529         * lib/unistdio/u8-u8-vsnprintf.c: New file.
46530         * lib/unistdio/u8-u8-vsprintf.c: New file.
46531         * lib/unistdio/u16-asnprintf.c: New file.
46532         * lib/unistdio/u16-asprintf.c: New file.
46533         * lib/unistdio/u16-printf-parse.c: New file.
46534         * lib/unistdio/u16-snprintf.c: New file.
46535         * lib/unistdio/u16-sprintf.c: New file.
46536         * lib/unistdio/u16-vasnprintf.c: New file.
46537         * lib/unistdio/u16-vasprintf.c: New file.
46538         * lib/unistdio/u16-vsnprintf.c: New file.
46539         * lib/unistdio/u16-vsprintf.c: New file.
46540         * lib/unistdio/u16-u16-asnprintf.c: New file.
46541         * lib/unistdio/u16-u16-asprintf.c: New file.
46542         * lib/unistdio/u16-u16-snprintf.c: New file.
46543         * lib/unistdio/u16-u16-sprintf.c: New file.
46544         * lib/unistdio/u16-u16-vasnprintf.c: New file.
46545         * lib/unistdio/u16-u16-vasprintf.c: New file.
46546         * lib/unistdio/u16-u16-vsnprintf.c: New file.
46547         * lib/unistdio/u16-u16-vsprintf.c: New file.
46548         * lib/unistdio/u32-asnprintf.c: New file.
46549         * lib/unistdio/u32-asprintf.c: New file.
46550         * lib/unistdio/u32-printf-parse.c: New file.
46551         * lib/unistdio/u32-snprintf.c: New file.
46552         * lib/unistdio/u32-sprintf.c: New file.
46553         * lib/unistdio/u32-vasnprintf.c: New file.
46554         * lib/unistdio/u32-vasprintf.c: New file.
46555         * lib/unistdio/u32-vsnprintf.c: New file.
46556         * lib/unistdio/u32-vsprintf.c: New file.
46557         * lib/unistdio/u32-u32-asnprintf.c: New file.
46558         * lib/unistdio/u32-u32-asprintf.c: New file.
46559         * lib/unistdio/u32-u32-snprintf.c: New file.
46560         * lib/unistdio/u32-u32-sprintf.c: New file.
46561         * lib/unistdio/u32-u32-vasnprintf.c: New file.
46562         * lib/unistdio/u32-u32-vasprintf.c: New file.
46563         * lib/unistdio/u32-u32-vsnprintf.c: New file.
46564         * lib/unistdio/u32-u32-vsprintf.c: New file.
46565         * tests/unistdio/test-ulc-asnprintf1.c: New file.
46566         * tests/unistdio/test-ulc-asnprintf1.h: New file.
46567         * tests/unistdio/test-ulc-printf1.h: New file.
46568         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
46569         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
46570         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
46571         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
46572         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
46573         * tests/unistdio/test-ulc-vasprintf1.c: New file.
46574         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
46575         * tests/unistdio/test-ulc-vsprintf1.c: New file.
46576         * tests/unistdio/test-u8-asnprintf1.c: New file.
46577         * tests/unistdio/test-u8-asnprintf1.h: New file.
46578         * tests/unistdio/test-u8-printf1.h: New file.
46579         * tests/unistdio/test-u8-vasnprintf1.c: New file.
46580         * tests/unistdio/test-u8-vasnprintf2.c: New file.
46581         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
46582         * tests/unistdio/test-u8-vasnprintf3.c: New file.
46583         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
46584         * tests/unistdio/test-u8-vasprintf1.c: New file.
46585         * tests/unistdio/test-u8-vsnprintf1.c: New file.
46586         * tests/unistdio/test-u8-vsprintf1.c: New file.
46587         * tests/unistdio/test-u16-asnprintf1.c: New file.
46588         * tests/unistdio/test-u16-asnprintf1.h: New file.
46589         * tests/unistdio/test-u16-printf1.h: New file.
46590         * tests/unistdio/test-u16-vasnprintf1.c: New file.
46591         * tests/unistdio/test-u16-vasnprintf2.c: New file.
46592         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
46593         * tests/unistdio/test-u16-vasnprintf3.c: New file.
46594         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
46595         * tests/unistdio/test-u16-vasprintf1.c: New file.
46596         * tests/unistdio/test-u16-vsnprintf1.c: New file.
46597         * tests/unistdio/test-u16-vsprintf1.c: New file.
46598         * tests/unistdio/test-u32-asnprintf1.c: New file.
46599         * tests/unistdio/test-u32-asnprintf1.h: New file.
46600         * tests/unistdio/test-u32-printf1.h: New file.
46601         * tests/unistdio/test-u32-vasnprintf1.c: New file.
46602         * tests/unistdio/test-u32-vasnprintf2.c: New file.
46603         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
46604         * tests/unistdio/test-u32-vasnprintf3.c: New file.
46605         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
46606         * tests/unistdio/test-u32-vasprintf1.c: New file.
46607         * tests/unistdio/test-u32-vsnprintf1.c: New file.
46608         * tests/unistdio/test-u32-vsprintf1.c: New file.
46609         * modules/unistdio/base: New file.
46610         * modules/unistdio/u-printf-args: New file.
46611         * modules/unistdio/ulc-asnprintf: New file.
46612         * modules/unistdio/ulc-asprintf: New file.
46613         * modules/unistdio/ulc-fprintf: New file.
46614         * modules/unistdio/ulc-printf-parse: New file.
46615         * modules/unistdio/ulc-snprintf: New file.
46616         * modules/unistdio/ulc-sprintf: New file.
46617         * modules/unistdio/ulc-vasnprintf: New file.
46618         * modules/unistdio/ulc-vasprintf: New file.
46619         * modules/unistdio/ulc-vfprintf: New file.
46620         * modules/unistdio/ulc-vsnprintf: New file.
46621         * modules/unistdio/ulc-vsprintf: New file.
46622         * modules/unistdio/u8-asnprintf: New file.
46623         * modules/unistdio/u8-asprintf: New file.
46624         * modules/unistdio/u8-printf-parse: New file.
46625         * modules/unistdio/u8-snprintf: New file.
46626         * modules/unistdio/u8-sprintf: New file.
46627         * modules/unistdio/u8-vasnprintf: New file.
46628         * modules/unistdio/u8-vasprintf: New file.
46629         * modules/unistdio/u8-vsnprintf: New file.
46630         * modules/unistdio/u8-vsprintf: New file.
46631         * modules/unistdio/u8-u8-asnprintf: New file.
46632         * modules/unistdio/u8-u8-asprintf: New file.
46633         * modules/unistdio/u8-u8-snprintf: New file.
46634         * modules/unistdio/u8-u8-sprintf: New file.
46635         * modules/unistdio/u8-u8-vasnprintf: New file.
46636         * modules/unistdio/u8-u8-vasprintf: New file.
46637         * modules/unistdio/u8-u8-vsnprintf: New file.
46638         * modules/unistdio/u8-u8-vsprintf: New file.
46639         * modules/unistdio/u16-asnprintf: New file.
46640         * modules/unistdio/u16-asprintf: New file.
46641         * modules/unistdio/u16-printf-parse: New file.
46642         * modules/unistdio/u16-snprintf: New file.
46643         * modules/unistdio/u16-sprintf: New file.
46644         * modules/unistdio/u16-vasnprintf: New file.
46645         * modules/unistdio/u16-vasprintf: New file.
46646         * modules/unistdio/u16-vsnprintf: New file.
46647         * modules/unistdio/u16-vsprintf: New file.
46648         * modules/unistdio/u16-u16-asnprintf: New file.
46649         * modules/unistdio/u16-u16-asprintf: New file.
46650         * modules/unistdio/u16-u16-snprintf: New file.
46651         * modules/unistdio/u16-u16-sprintf: New file.
46652         * modules/unistdio/u16-u16-vasnprintf: New file.
46653         * modules/unistdio/u16-u16-vasprintf: New file.
46654         * modules/unistdio/u16-u16-vsnprintf: New file.
46655         * modules/unistdio/u16-u16-vsprintf: New file.
46656         * modules/unistdio/u32-asnprintf: New file.
46657         * modules/unistdio/u32-asprintf: New file.
46658         * modules/unistdio/u32-printf-parse: New file.
46659         * modules/unistdio/u32-snprintf: New file.
46660         * modules/unistdio/u32-sprintf: New file.
46661         * modules/unistdio/u32-vasnprintf: New file.
46662         * modules/unistdio/u32-vasprintf: New file.
46663         * modules/unistdio/u32-vsnprintf: New file.
46664         * modules/unistdio/u32-vsprintf: New file.
46665         * modules/unistdio/u32-u32-asnprintf: New file.
46666         * modules/unistdio/u32-u32-asprintf: New file.
46667         * modules/unistdio/u32-u32-snprintf: New file.
46668         * modules/unistdio/u32-u32-sprintf: New file.
46669         * modules/unistdio/u32-u32-vasnprintf: New file.
46670         * modules/unistdio/u32-u32-vasprintf: New file.
46671         * modules/unistdio/u32-u32-vsnprintf: New file.
46672         * modules/unistdio/u32-u32-vsprintf: New file.
46673         * modules/unistdio/ulc-asnprintf-tests: New file.
46674         * modules/unistdio/ulc-vasnprintf-tests: New file.
46675         * modules/unistdio/ulc-vasprintf-tests: New file.
46676         * modules/unistdio/ulc-vsnprintf-tests: New file.
46677         * modules/unistdio/ulc-vsprintf-tests: New file.
46678         * modules/unistdio/u8-asnprintf-tests: New file.
46679         * modules/unistdio/u8-vasnprintf-tests: New file.
46680         * modules/unistdio/u8-vasprintf-tests: New file.
46681         * modules/unistdio/u8-vsnprintf-tests: New file.
46682         * modules/unistdio/u8-vsprintf-tests: New file.
46683         * modules/unistdio/u16-asnprintf-tests: New file.
46684         * modules/unistdio/u16-vasnprintf-tests: New file.
46685         * modules/unistdio/u16-vasprintf-tests: New file.
46686         * modules/unistdio/u16-vsnprintf-tests: New file.
46687         * modules/unistdio/u16-vsprintf-tests: New file.
46688         * modules/unistdio/u32-asnprintf-tests: New file.
46689         * modules/unistdio/u32-vasnprintf-tests: New file.
46690         * modules/unistdio/u32-vasprintf-tests: New file.
46691         * modules/unistdio/u32-vsnprintf-tests: New file.
46692         * modules/unistdio/u32-vsprintf-tests: New file.
46693         * MODULES.html.sh (Unicode string functions): Add the new modules.
46694
46695 2007-07-01  Bruno Haible  <bruno@clisp.org>
46696
46697         * lib/sprintf.c (sprintf): Limit the available length estimation,
46698         to avoid address wraparound.
46699         * lib/vsprintf.c (vsprintf): Likewise.
46700         * modules/sprintf-posix (Dependencies): Add stdint.
46701         * modules/vsprintf-posix (Dependencies): Likewise.
46702
46703 2007-07-01  Bruno Haible  <bruno@clisp.org>
46704
46705         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
46706         Windows PATH as well. Conservative double-quoting. Comments.
46707
46708 2007-07-01  Bruno Haible  <bruno@clisp.org>
46709             Eric Blake  <ebb9@byu.net>
46710             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46711
46712         * gnulib-tool (self_abspathname): Fix algorithm to cope with
46713         empty components in $PATH, denoting '.'.
46714
46715 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46716
46717         * gnulib-tool: Fix indentation.
46718         (func_create_megatestdir): Likewise.
46719         Report by Bruno Haible.
46720
46721 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46722
46723         Sync from Automake.
46724         * build-aux/gnupload: Fix shell portability issues with for loops.
46725         Report by Karl Berry.
46726
46727 2007-06-29  Simon Josefsson  <simon@josefsson.org>
46728
46729         * build-aux/maint.mk (POURL): Use translationproject.org.
46730
46731 2007-06-27  Simon Josefsson  <simon@josefsson.org>
46732             Bruno Haible  <bruno@clisp.org>
46733
46734         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
46735         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
46736         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
46737         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
46738         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
46739
46740 2007-06-27  Bruno Haible  <bruno@clisp.org>
46741
46742         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
46743         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
46744
46745 2007-06-26  Karl Berry  <karl@gnu.org>
46746
46747         * MODULES.html.sh: remove xreadlink-with-size.
46748
46749 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46750
46751         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
46752         method that I hope also handles the double-include problem noted
46753         by Bruno Haible in
46754         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
46755
46756 2007-06-23  Bruno Haible  <bruno@clisp.org>
46757
46758         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46759         Don't let the 'mostlyclean' target fail if the last subdirectory could
46760         not be removed.
46761         Reported by Karl Berry.
46762
46763 2007-06-23  Bruno Haible  <bruno@clisp.org>
46764
46765         * gnulib-tool (echo): Add a speedier workaround for ksh.
46766         * tests/test-echo.sh: Likewise.
46767
46768 2007-06-23  Bruno Haible  <bruno@clisp.org>
46769
46770         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
46771         * tests/test-echo.sh: Likewise.
46772
46773 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46774
46775         * gnulib-tool (IFS): Initialize early, so we don't set it to
46776         empty later.
46777         (self_abspathname): Rewrite algorithm to set it, reindent.
46778         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
46779         (func_create_megatestdir): Merge some sed scripts.
46780
46781 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46782
46783         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
46784         exposed by Sun Studio 11 cc on Solaris 8.
46785
46786 2007-06-22  Bruno Haible  <bruno@clisp.org>
46787
46788         * gnulib-tool (echo): Ensure the echo primitive does not interpret
46789         backslashes.
46790         * tests/test-echo.sh: New file.
46791
46792 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46793
46794         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
46795         simplify `sed_replace_build_aux' scripts, they are portable but
46796         echoing them with `echo' is not.
46797         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
46798
46799 2007-06-21  Karl Berry  <karl@gnu.org>
46800
46801         * config/srclist.txt: guess we can't handle the licenses via
46802         srclist at the moment.
46803
46804 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46805
46806         * MODULES.html.sh: Add include_next.
46807         * modules/include_next: New file.
46808
46809 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46810
46811         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
46812         INCLUDE_NEXT.
46813         (gl_CHECK_NEXT_HEADERS): New macro.
46814         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
46815         the obsolescent gl_ABSOLUTE_HEADER.
46816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
46817         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
46818         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
46819         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46820         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46821         * m4/math_h.m4 (gl_MATH_H): Likewise.
46822         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46823         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
46824         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46825         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46826         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
46827         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
46828         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
46829         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
46832         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
46833         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46834         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46835         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46836         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46837         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46838         * m4/inttypes.m4 (gl_INTTYPES_H): Define
46839         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
46840         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
46841         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
46842         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
46843         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
46844         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
46845         * lib/float_.h: Likewise.
46846         * lib/inttypes_.h: Likewise.
46847         * lib/math_.h: Likewise.
46848         * lib/search_.h: Likewise.
46849         * lib/signal_.h: Likewise.
46850         * lib/stdint_.h: Likewise.
46851         * lib/stdio_.h: Likewise.
46852         * lib/stdlib_.h: Likewise.
46853         * lib/string_.h: Likewise.
46854         * lib/sys_stat_.h: Likewise.
46855         * lib/sys_time_.h: Likewise.
46856         * lib/time_.h: Likewise.
46857         * lib/unistd_.h: Likewise.
46858         * lib/wchar_.h: Likewise.
46859         * lib/wctype_.h: Likewise.
46860         * lib/dirent_.h: Likewise.
46861         * lib/iconv_.h: Likewise.
46862         * lib/locale_.h: Likewise.
46863         * lib/netinet_in_.h: Likewise.
46864         * lib/sys_select_.h: Likewise.
46865         * lib/sys_socket_.h: Likewise.
46866         * lib/sysexits_.h: Likewise.
46867         * modules/fcntl (Depends-on): Depend on include_next, not
46868         absolute_header.
46869         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
46870         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
46871         * modules/fchdir: Likewise.
46872         * modules/float: Likewise.
46873         * modules/iconv_open: Likewise.
46874         * modules/inttypes: Likewise.
46875         * modules/locale: Likewise.
46876         * modules/math: Likewise.
46877         * modules/netinet_in: Likewise.
46878         * modules/search: Likewise.
46879         * modules/signal: Likewise.
46880         * modules/stdint: Likewise.
46881         * modules/stdio: Likewise.
46882         * modules/stdlib: Likewise.
46883         * modules/string: Likewise.
46884         * modules/sys_select: Likewise.
46885         * modules/sys_socket: Likewise.
46886         * modules/sys_stat: Likewise.
46887         * modules/sys_time: Likewise.
46888         * modules/sysexits: Likewise.
46889         * modules/time: Likewise.
46890         * modules/unistd: Likewise.
46891         * modules/wchar: Likewise.
46892         * modules/wctype: Likewise.
46893         * modules/sys_stat: Change maintainer to "all".
46894         * modules/unistd: Likewise.
46895
46896 2007-06-20  Karl Berry  <karl@gnu.org>
46897
46898         * config/srclist.txt: track www changes in license files.
46899
46900 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
46901
46902         * build-aux/bootstrap: Remove stray dot.
46903         Make sure build_aux settings are honored when linking
46904         gnulib_extra_files.
46905
46906 2007-06-19  Eric Blake  <ebb9@byu.net>
46907
46908         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46909         Allow compilation on cygwin.
46910
46911 2007-06-19  Jim Meyering  <jim@meyering.net>
46912
46913         xreadlink-with-size: Remove module.  No longer used.
46914         Ex-callers now use xreadlink or mreadlink-with-size.
46915         * modules/xreadlink-with-size: Remove module.
46916         * lib/xreadlink-with-size.c: Remove file.
46917         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
46918         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
46919         just before the function definition *is* accurate.
46920
46921         Eliminate one way canonicalize_filename_mode could exit.
46922         * lib/canonicalize.c (canonicalize_filename_mode):
46923         Use mreadlink_with_size, not xreadlink_with_size.
46924
46925 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
46926
46927         Detect porting problems to FreeBSD/arm, which has time_t wider than
46928         long int.  Original problem reported for GNU diff by Xin Li in
46929         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
46930         * modules/getdate (Depends-on): Add intprops, verify.
46931         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
46932         is an integer type no wider than long int.
46933
46934 2007-06-18  Jim Meyering  <jim@meyering.net>
46935
46936         New module: mreadlink-with-size.
46937         * MODULES.html.sh: Add mreadlink-with-size.
46938         * modules/mreadlink-with-size: New module
46939         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
46940         not xreadlink-with-size.
46941         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
46942
46943 2007-06-16  Bruno Haible  <bruno@clisp.org>
46944
46945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
46946         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
46947         Reported by Gary V. Vaughan <gary@gnu.org>.
46948
46949 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46950
46951         Revamp lchown so that it lives in unistd.h where it belongs.
46952         * lib/lchown.h: Remove.
46953         * lib/dirchownmod.c: Don't include lib/lchown.h.
46954         * lib/fchownat.c: Likewise.
46955         * lib/openat.c: Likewise.
46956         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
46957         does not follow symlinks.
46958         (EOPNOTSUPP): Define if not defined.
46959         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
46960         is defined to 0.
46961         (lchown): New decl.
46962         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
46963         Do not check for lchown decl.
46964         Set REPLACE_LCHOWN.
46965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
46966         REPLACE_LCHOWN.
46967         * modules/chown: Make it clear it follows symlinks.
46968         * modules/lchown: Make it clear it doesn't follow symlinks.
46969         (Files): Remove lib/lchown.h
46970         (Depends-on): Add unistd.
46971         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
46972         (Include): Include <unistd.h>, not "lchown.h".
46973         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
46974         REPLACE_LCHOWN.
46975
46976 2007-06-15  Jim Meyering  <jim@meyering.net>
46977
46978         Change license (GPL to LGPL) of fsusage and dependents.
46979         * modules/fsusage (License): Change to LGPL.
46980         * modules/full-read (License): Likewise.
46981         * modules/full-write (License): Likewise.
46982         * modules/safe-read (License): Likewise.
46983         * modules/safe-write (License): Likewise.
46984
46985 2007-06-14  Ben Pfaff  <blp@gnu.org>
46986
46987         Missing part of allocsa -> malloca transition.
46988         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
46989         gl_MALLOCA.
46990
46991 2007-06-12  Bruno Haible  <bruno@clisp.org>
46992
46993         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
46994         to ia64, x86_64, i386.
46995         Reported by Eric Blake.
46996
46997 2007-06-12  Bruno Haible  <bruno@clisp.org>
46998
46999         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47000         cross-compiling to x86_64.
47001
47002 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47003
47004         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47005         glitch reported by Ralf Wildenhues in
47006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47007
47008         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47009         Vin Shelton.
47010
47011 2007-06-11  Bruno Haible  <bruno@clisp.org>
47012
47013         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47014         replacement string.
47015         Reported by Eric Blake.
47016
47017 2007-06-10  Bruno Haible  <bruno@clisp.org>
47018
47019         Prepare vasnprintf code for use with Unicode strings.
47020         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47021         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47022         TYPE_U32_STRING.
47023         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47024         a_u32_string variants.
47025         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47026         * lib/printf-args.c: Don't include config.h and the specification
47027         header if PRINTF_FETCHARGS is already defined.
47028         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47029         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47030         TYPE_U16_STRING, TYPE_U32_STRING.
47031         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47032         u16_directive, u16_directives, u32_directive, u32_directives): New
47033         types.
47034         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47035         New declarations.
47036         * lib/printf-parse.c: Don't include config.h and the specification
47037         header if PRINTF_PARSE is already defined. Eliminate the set of
47038         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47039         them now. Include c-ctype.h.
47040         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47041         directive and CHAR_T_ONLY_ASCII.
47042         * lib/vasnprintf.c: Don't include config.h and the specification header
47043         if VASNPRINTF is already defined.
47044         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47045         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47046         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47047         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47048         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47049         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47050         code accordingly.
47051         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47052         pad_ourselves also in this case, with the 'c' and 's' directives, and
47053         with a different notion of "width".
47054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47055
47056 2007-06-10  Bruno Haible  <bruno@clisp.org>
47057
47058         * modules/unistr/u32-mbsnlen: New file.
47059         * lib/unistr/u32-mbsnlen.c: New file.
47060
47061         * modules/unistr/u16-mbsnlen: New file.
47062         * lib/unistr/u16-mbsnlen.c: New file.
47063
47064         * modules/unistr/u8-mbsnlen: New file.
47065         * lib/unistr/u8-mbsnlen.c: New file.
47066
47067         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47068         declarations.
47069
47070 2007-06-10  Bruno Haible  <bruno@clisp.org>
47071
47072         * lib/string_.h (mbsnlen): New declaration.
47073         * lib/mbsnlen.c: New file.
47074         * m4/mbsnlen.m4: New file.
47075         * modules/mbsnlen: New file.
47076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47077         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47078         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47079
47080 2007-06-10  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47083
47084 2007-06-10  Bruno Haible  <bruno@clisp.org>
47085
47086         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47087         * lib/mbuiter.h: Likewise.
47088
47089 2007-06-10  Bruno Haible  <bruno@clisp.org>
47090
47091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47092         declaration.
47093
47094 2007-06-10  Karl Berry  <karl@gnu.org>
47095
47096         * config/srclist.txt: remove gettext entries, Bruno prefers
47097         to update individually.
47098
47099 2007-06-10  Bruno Haible  <bruno@clisp.org>
47100
47101         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47102         'maxlen'. Ensure only length + width bytes are allocated, not
47103         length + 1 + width.
47104
47105 2007-06-09  Bruno Haible  <bruno@clisp.org>
47106
47107         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47108         (CHAR_T): Remove macro.
47109         (VASNPRINTF): Update.
47110
47111 2007-06-09  Bruno Haible  <bruno@clisp.org>
47112
47113         * MODULES.html.sh (Unicode string functions): Add the new modules.
47114
47115         * modules/uniconv/u32-conv-to-enc: New file.
47116         * lib/uniconv/u32-conv-to-enc.c: New file.
47117         * modules/uniconv/u32-conv-to-enc-tests: New file.
47118         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47119
47120         * modules/uniconv/u16-conv-to-enc: New file.
47121         * lib/uniconv/u16-conv-to-enc.c: New file.
47122         * lib/uniconv/u-conv-to-enc.h: New file.
47123         * modules/uniconv/u16-conv-to-enc-tests: New file.
47124         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47125
47126         * modules/uniconv/u8-conv-to-enc: New file.
47127         * lib/uniconv/u8-conv-to-enc.c: New file.
47128         * modules/uniconv/u8-conv-to-enc-tests: New file.
47129         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47130
47131         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47132         u32_conv_to_encoding): New declarations.
47133
47134 2007-06-09  Bruno Haible  <bruno@clisp.org>
47135
47136         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47137
47138 2007-06-09  Bruno Haible  <bruno@clisp.org>
47139
47140         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47141         * modules/malloca: Renamed from modules/allocsa, updated.
47142         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47143         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47144         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47145         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47146         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47147         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47148         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47149         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47150         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47151         * modules/c-strcasestr (Depends-on): Update.
47152         * lib/c-strcasestr.c: Update.
47153         * modules/c-strstr (Depends-on): Update.
47154         * lib/c-strstr.c: Update.
47155         * modules/canonicalize-lgpl (Depends-on): Update.
47156         * lib/canonicalize-lgpl.c: Update.
47157         * modules/clean-temp (Depends-on): Update.
47158         * lib/clean-temp.c: Update.
47159         * modules/csharpcomp (Depends-on): Update.
47160         * lib/csharpcomp.c: Update.
47161         * modules/csharpexec (Depends-on): Update.
47162         * lib/csharpexec.c: Update.
47163         * modules/javacomp (Depends-on): Update.
47164         * lib/javacomp.c: Update.
47165         * modules/javaexec (Depends-on): Update.
47166         * lib/javaexec.c: Update.
47167         * modules/mbscasestr (Depends-on): Update.
47168         * lib/mbscasestr.c: Update.
47169         * modules/mbsstr (Depends-on): Update.
47170         * lib/mbsstr.c: Update.
47171         * modules/setenv (Depends-on): Update.
47172         * lib/setenv.c: Update.
47173         * modules/strcasestr (Depends-on): Update.
47174         * lib/strcasestr.c: Update.
47175         * modules/striconveha (Depends-on): Update.
47176         * lib/striconveha.c: Update.
47177         * modules/relocatable-prog-wrapper (Files): Update.
47178         * lib/relocwrapper.c: Update.
47179         * build-aux/install-reloc: Update.
47180         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47181
47182 2007-06-08  Bruno Haible  <bruno@clisp.org>
47183
47184         Port to uClibc.
47185         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47186         * lib/fpurge.c (fpurge): Likewise.
47187         * lib/freading.c (freading): Likewise.
47188         * lib/fseeko.c (rpl_fseeko): Likewise.
47189         * lib/fseterr.c (fseterr): Likewise.
47190         * lib/fwriting.c (fwriting): Likewise.
47191         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47192
47193 2007-06-08  Bruno Haible  <bruno@clisp.org>
47194
47195         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47196         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47197         * modules/gettext (Files): Add m4/intlmacosx.m4.
47198
47199 2007-06-07  Bruno Haible  <bruno@clisp.org>
47200
47201         * modules/localename-tests: New file.
47202         * tests/test-localename.c: New file.
47203
47204         New module 'localename'.
47205         * lib/localename.h: New file.
47206         * lib/localename.c: New file, from GNU gettext.
47207         * m4/localename.m4: New file.
47208         * modules/localename: New file.
47209
47210 2007-06-07  Bruno Haible  <bruno@clisp.org>
47211
47212         Work around the lack of <wchar.h> on some builds of uClibc.
47213         * doc/headers/wchar.texi: Update.
47214         * lib/wchar_.h: Include <wchar.h> only if it exists.
47215         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47216         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47217         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47218         doesn't exist.
47219         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47220         * modules/mbfile (Depends-on): Add wchar.
47221         * modules/mbiter (Depends-on): Likewise.
47222         * modules/mbuiter (Depends-on): Likewise.
47223         Reported by Simon Josefsson.
47224
47225 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47226
47227         Work around problem reported by Steven M. Schweda in
47228         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47229         Tru64 5.1B with the Compaq compiler environment installed declares
47230         an 'isblank' function but does not define it in the C library.
47231         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47232         * lib/regex_internal.h (isblank): Likewise.
47233         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47234         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47235
47236 2007-06-05  Bruno Haible  <bruno@clisp.org>
47237
47238         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47239         ia64.
47240         * modules/printf-safe: New file.
47241         * modules/fprintf-posix (Depends-on): Add printf-safe.
47242         * modules/printf-posix (Depends-on): Likewise.
47243         * modules/snprintf-posix (Depends-on): Likewise.
47244         * modules/sprintf-posix (Depends-on): Likewise.
47245         * modules/vasnprintf-posix (Depends-on): Likewise.
47246         * modules/vasprintf-posix (Depends-on): Likewise.
47247         * modules/vfprintf-posix (Depends-on): Likewise.
47248         * modules/vprintf-posix (Depends-on): Likewise.
47249         * modules/vsnprintf-posix (Depends-on): Likewise.
47250         * modules/vsprintf-posix (Depends-on): Likewise.
47251         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47252         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47253         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47254         "no" on i386, x86_64, ia64.
47255         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47256         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47257         on i386, x86_64, ia64.
47258         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47259         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47260         on i386, x86_64, ia64.
47261         * tests/test-vasnprintf-posix.c: Include float.h.
47262         (LDBL80_WORDS): New macro.
47263         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47264         on i386, x86_64, ia64.
47265         * tests/test-vasprintf-posix.c: Include float.h.
47266         (LDBL80_WORDS): New macro.
47267         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47268         on i386, x86_64, ia64.
47269         * tests/test-snprintf-posix.c: Include float.h.
47270         * tests/test-sprintf-posix.c: Likewise.
47271         * tests/test-vsnprintf-posix.c: Likewise.
47272         * tests/test-vsprintf-posix.c: Likewise.
47273
47274 2007-06-05  Bruno Haible  <bruno@clisp.org>
47275
47276         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47277         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47278         non-IEEE numbers on i386, x86_64, ia64.
47279         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47280         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47281         * tests/test-isnanl.h: Include float.h.
47282         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47283
47284 2007-06-05  Bruno Haible  <bruno@clisp.org>
47285
47286         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47287         also the %a / %A. Handle the %a / %A code before this extra handling.
47288
47289 2007-06-05  Bruno Haible  <bruno@clisp.org>
47290
47291         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47292         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47293
47294 2007-06-05  Bruno Haible  <bruno@clisp.org>
47295
47296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47297         typo in variable name.
47298
47299 2007-06-05  Eric Blake  <ebb9@byu.net>
47300
47301         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47302         Reported by Simon Josefsson.
47303
47304 2007-06-04  Bruno Haible  <bruno@clisp.org>
47305
47306         Avoid test failures on some PowerPC platforms.
47307         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47308         Define differently for PowerPC.
47309         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47310         Reported by Gary V. Vaughan <gary@gnu.org>.
47311
47312 2007-06-02  Bruno Haible  <bruno@clisp.org>
47313
47314         Fix test-stdint failure on FreeBSD/ia64.
47315         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47316         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47317         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47318         * doc/headers/stdint.texi: Update.
47319
47320 2007-06-01  Bruno Haible  <bruno@clisp.org>
47321
47322         * tests/test-binary-io.c (main): Pass a third argument to open().
47323         Reported by Gary V. Vaughan <gary@gnu.org>.
47324
47325 2007-06-01  Bruno Haible  <bruno@clisp.org>
47326
47327         * doc/functions/frexpl.texi: Update for mingw.
47328
47329 2007-06-01  Bruno Haible  <bruno@clisp.org>
47330
47331         * tests/test-lseek.c (main): Disable test of errno for invalid third
47332         argument.
47333         * doc/functions/lseek.texi: Update.
47334         Reported by Gary V. Vaughan <gary@gnu.org>.
47335
47336 2007-05-28  Bruno Haible  <bruno@clisp.org>
47337
47338         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47339
47340 2007-05-31  Eric Blake  <ebb9@byu.net>
47341
47342         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47343         cross compiling.
47344
47345 2007-05-30  Eric Blake  <ebb9@byu.net>
47346         and Bruno Haible  <bruno@clisp.org>
47347
47348         Work around mingw test failures exposed by m4-1.4.9b.
47349         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47350         * tests/test-unistd.c: Disable uid_t and git_t tests for the
47351         moment.
47352
47353 2007-05-30  Bruno Haible  <bruno@clisp.org>
47354
47355         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47356         assuming that they are closed. Needed on HP-UX 11.
47357
47358 2007-05-29  Bruno Haible  <bruno@clisp.org>
47359
47360         Fix a problem with #include_next.
47361         * lib/dirent_.h: Split the double-inclusion guard.
47362         * lib/fcntl_.h: Likewise.
47363         * lib/float_.h: Likewise.
47364         * lib/iconv_.h: Likewise.
47365         * lib/inttypes_.h: Likewise.
47366         * lib/locale_.h: Likewise.
47367         * lib/math_.h: Likewise.
47368         * lib/netinet_in_.h: Likewise.
47369         * lib/search_.h: Likewise.
47370         * lib/signal_.h: Likewise.
47371         * lib/stdint_.h: Likewise.
47372         * lib/stdio_.h: Likewise.
47373         * lib/stdlib_.h: Likewise.
47374         * lib/string_.h: Likewise.
47375         * lib/sys_select_.h: Likewise.
47376         * lib/sys_socket_.h: Likewise.
47377         * lib/sys_stat_.h: Likewise.
47378         * lib/sys_time_.h: Likewise.
47379         * lib/sysexits_.h: Likewise.
47380         * lib/time_.h: Likewise.
47381         * lib/unistd_.h: Likewise.
47382         * lib/wchar_.h: Likewise.
47383         * lib/wctype_.h: Likewise.
47384
47385 2007-05-29  Bruno Haible  <bruno@clisp.org>
47386
47387         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47388         for the moment.
47389
47390 2007-05-29  Bruno Haible  <bruno@clisp.org>
47391
47392         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47393         invocation.
47394         Reported by Eric Blake.
47395
47396 2007-05-29  Bruno Haible  <bruno@clisp.org>
47397
47398         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47399         compiling case.
47400
47401 2007-05-29  Eric Blake  <ebb9@byu.net>
47402             Bruno Haible  <bruno@clisp.org>
47403
47404         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47405         cross compiles.
47406
47407 2007-05-28  Eric Blake  <ebb9@byu.net>
47408
47409         * modules/closein-tests (test_closein_LDADD): Support test on
47410         cygwin with libtool.
47411
47412 2007-05-28  Bruno Haible  <bruno@clisp.org>
47413
47414         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47415         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47416         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47417         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47418         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47419         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47420         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47421         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47422         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47423
47424 2007-05-28  Eric Blake  <ebb9@byu.net>
47425
47426         Unconditionally include <config.h> in unit tests.
47427         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
47428         * tests/test-allocsa.c, tests/test-arcfour.c,
47429         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
47430         tests/test-array_list.c, tests/test-array_oset.c,
47431         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
47432         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
47433         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
47434         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
47435         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
47436         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
47437         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
47438         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
47439         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
47440         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
47441         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
47442         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
47443         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
47444         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
47445         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
47446         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
47447         test-md5.c, test-memmem.c, test-printf-posix.c,
47448         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
47449         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
47450         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
47451         test-strcasestr.c, test-striconv.c, test-striconveh.c,
47452         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
47453         test-vasnprintf-posix2.c, test-vasnprintf.c,
47454         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
47455         test-vfprintf-posix.c, test-vprintf-posix.c,
47456         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
47457         test-xvasprintf.c: Likewise.
47458
47459 2007-05-28  Bruno Haible  <bruno@clisp.org>
47460
47461         * gnulib-tool (func_import): Remember the --with-tests command-line
47462         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
47463         Reported by Eric Blake.
47464
47465 2007-05-28  Bruno Haible  <bruno@clisp.org>
47466
47467         * modules/ftell-tests: New file.
47468         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
47469         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
47470
47471         * lib/ftell.c: New file.
47472         * modules/ftell: New file.
47473         * m4/ftell.m4: New file.
47474         * doc/functions/ftell.texi: Update.
47475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
47476         REPLACE_FTELL.
47477         * lib/stdio_.h (rpl_ftell): New declaration.
47478         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
47479         REPLACE_FTELL.
47480
47481 2007-05-28  Eric Blake  <ebb9@byu.net>
47482
47483         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
47484
47485 2007-05-28  Bruno Haible  <bruno@clisp.org>
47486
47487         * modules/fseek-tests: New file.
47488         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
47489         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
47490
47491         * lib/fseek.c: New file.
47492         * modules/fseek: New file.
47493         * m4/fseek.m4: New file.
47494         * doc/functions/fseek.texi: Update.
47495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
47496         REPLACE_FSEEK.
47497         * lib/stdio_.h (rpl_fseek): New declaration.
47498         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
47499         REPLACE_FSEEK.
47500
47501 2007-05-28  Bruno Haible  <bruno@clisp.org>
47502
47503         * lib/stdio_.h (fflush): More comments.
47504
47505 2007-05-28  Bruno Haible  <bruno@clisp.org>
47506
47507         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
47508         runtime test.
47509
47510 2007-05-28  Eric Blake  <ebb9@byu.net>
47511
47512         Improve lseek module.
47513         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
47514         * lib/unistd_.h (lseek): Scale back link warning message.
47515         * tests/test-lseek.c: Beef up test.
47516         * tests/test-lseek.sh: Exercise more facets of lseek.
47517         Reported by Bruno Haible.
47518
47519 2007-05-28  Bruno Haible  <bruno@clisp.org>
47520
47521         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
47522         to define.
47523
47524 2007-05-27  Bruno Haible  <bruno@clisp.org>
47525
47526         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
47527
47528 2007-05-27  Bruno Haible  <bruno@clisp.org>
47529
47530         * modules/openmp: New file.
47531         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
47532         Noah Misch.
47533
47534 2007-05-26  Bruno Haible  <bruno@clisp.org>
47535
47536         * modules/chdir-long (Depends-on): Add fchdir.
47537         * modules/chdir-safer (Depends-on): Likewise.
47538         * modules/fts (Depends-on): Likewise.
47539         * modules/fts-lgpl (Depends-on): Likewise.
47540         * modules/openat (Depends-on): Likewise.
47541         * modules/savewd (Depends-on): Likewise.
47542
47543 2007-05-24  Eric Blake  <ebb9@byu.net>
47544
47545         Fix lseek on mingw.
47546         * modules/lseek: New module.
47547         * m4/lseek.m4: New file.
47548         * lib/lseek.c: New file.
47549         * modules/lseek-tests: New file.
47550         * tests/test-lseek.c: New file.
47551         * tests/test-lseek.sh: New file.
47552         * MODULES.html.sh: Document lseek module.
47553         * modules/fflush (Depends-on): Add lseek, fseeko.
47554         * modules/fseeko (Depends-on): Likewise.
47555         * modules/ftello (Depends-on): Likewise.
47556         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
47557         broken.
47558         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
47559         broken.
47560         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
47561         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
47562         * lib/ftello.c (rpl_ftello): Likewise.
47563         * tests/test-fseeko.c (main): Test this.
47564         * tests/test-fseeko.sh: Likewise.
47565         * tests/test-ftello.c (main): Likewise.
47566         * tests/test-ftello.sh: Likewise.
47567         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
47568         implies replacing fseek.
47569         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
47570         HAVE_FTELLO.
47571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
47572         * modules/unistd (Makefile.am): Likewise.
47573         * lib/unistd_.h (lseek): Declare a replacement.
47574         * doc/functions/lseek.texi (lseek): Document this fix.
47575         * doc/functions/fseek.texi (fseek): Likewise.
47576         * doc/functions/ftell.texi (ftell): Likewise.
47577
47578 2007-05-24  Bruno Haible  <bruno@clisp.org>
47579
47580         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
47581         in the printed representation of a NaN.
47582         * tests/test-vasprintf-posix.c (test_function): Likewise.
47583         * tests/test-snprintf-posix.h (test_function): Likewise.
47584         * tests/test-sprintf-posix.h (test_function): Likewise.
47585         Reported by Eric Blake.
47586
47587 2007-05-23  Eric Blake  <ebb9@byu.net>
47588
47589         Fix fseeko/ftello on cygwin 1.5.24.
47590         * doc/functions/fseeko.texi (fseeko): Document the fix.
47591         * doc/functions/ftello.texi (ftello): Document the fix.
47592         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
47593         * doc/functions/stdout.text (stdout): New file.
47594         * doc/functions/stderr.text (stderr): New file.
47595         * doc/gnulib.texi (Function Substitutes): Use new files.
47596         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
47597         prior to 1.7.0.
47598         * tests/test-ftello.c (main): Likewise for ftello.
47599         * tests/test-fseeko.sh: New file.
47600         * tests/test-ftello.sh: New file.
47601         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
47602         with seekable stdin.
47603         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
47604         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
47605         (gl_REPLACE_FSEEKO): New macro.
47606         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
47607         * modules/fseeko (Files): Distribute fseeko.c.
47608         * modules/ftello (Files): Distribute ftello.c.
47609         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
47610         mode.
47611         * lib/ftello.c (rpl_ftello): New file.
47612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
47613         fseeko, ftello.
47614         (gl_STDIN_LARGE_OFFSET): New macro.
47615         * modules/stdio (Makefile.am): Perform the replacement.
47616         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
47617
47618 2007-05-23  Bruno Haible  <bruno@clisp.org>
47619
47620         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
47621         GNULIB_POSIXCHECK is defined.
47622
47623 2007-05-21  Bruno Haible  <bruno@clisp.org>
47624
47625         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
47626         Check also the output for NaN arguments. When cross-compiling, guess
47627         no on IRIX.
47628         * lib/vasnprintf.c: Update comments.
47629         * tests/test-vasnprintf-posix.c (strisnan): New function.
47630         (test_function): Use it.
47631         * tests/test-vasprintf-posix.c (strisnan): New function.
47632         (test_function): Use it.
47633         * tests/test-snprintf-posix.h (strisnan): New function.
47634         (test_function): Use it.
47635         * tests/test-sprintf-posix.h (strisnan): New function.
47636         (test_function): Use it.
47637         Reported by Eric Blake.
47638
47639 2007-05-20  Bruno Haible  <bruno@clisp.org>
47640
47641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
47642         numbers that fails on BeOS.
47643         * doc/functions/frexpl.texi: Update.
47644
47645 2007-05-20  Jim Meyering  <jim@meyering.net>
47646
47647         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
47648         forced upon us by glibc-2.6.
47649
47650 2007-05-20  Bruno Haible  <bruno@clisp.org>
47651
47652         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
47653         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
47654         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
47655         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
47656         NEED_PRINTF_INFINITE.
47657         (is_infinitel): New function.
47658         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
47659         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
47660         gl_PREREQ_VASNPRINTF_INFINITE.
47661         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
47662         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47663         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
47664         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
47665         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
47666         gl_PREREQ_VASNPRINTF_INFINITE.
47667         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47668         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47671         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47672         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47673         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47674         * doc/functions/fprintf.texi: Update.
47675         * doc/functions/printf.texi: Update.
47676         * doc/functions/snprintf.texi: Update.
47677         * doc/functions/sprintf.texi: Update.
47678         * doc/functions/vfprintf.texi: Update.
47679         * doc/functions/vprintf.texi: Update.
47680         * doc/functions/vsnprintf.texi: Update.
47681         * doc/functions/vsprintf.texi: Update.
47682
47683 2007-05-20  Bruno Haible  <bruno@clisp.org>
47684
47685         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
47686         was not found in libc.
47687         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47688
47689 2007-05-20  Bruno Haible  <bruno@clisp.org>
47690
47691         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47692         printed as "-nan" instead of "nan".
47693         * tests/test-vasprintf-posix.c (test_function): Likewise.
47694         * tests/test-snprintf-posix.h (test_function): Likewise.
47695         * tests/test-sprintf-posix.h (test_function): Likewise.
47696         Needed for HP-UX 11.
47697
47698 2007-05-20  Jim Meyering  <jim@meyering.net>
47699
47700         Fix buggy test for the fchownat-deref bug.
47701         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
47702         symlink required for the run-test.  Without it, this test would
47703         always declare that fchownat doesn't work, and client code would
47704         unnecessarily use the replacement function with fixed libc.
47705         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
47706         Reported by Greg Schafer.
47707
47708 2007-05-19  Bruno Haible  <bruno@clisp.org>
47709
47710         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
47711         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
47712         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
47713         Needed for IRIX 6.5 and Solaris 2.5.1.
47714
47715 2007-05-19  Bruno Haible  <bruno@clisp.org>
47716
47717         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
47718         (test_function): Skip tests involving -0.0 on platforms where
47719         -0.0 = 0.0.
47720         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
47721         (test_function): Skip tests involving -0.0 on platforms where
47722         -0.0 = 0.0.
47723         * tests/test-snprintf-posix.h (have_minus_zero): New function.
47724         (test_function): Skip tests involving -0.0 on platforms where
47725         -0.0 = 0.0.
47726         * tests/test-sprintf-posix.h (have_minus_zero): New function.
47727         (test_function): Skip tests involving -0.0 on platforms where
47728         -0.0 = 0.0.
47729         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
47730         tests.
47731         * tests/test-printf-posix.h (test_function): Likewise.
47732         * tests/test-printf-posix.output: Remove all -0.0 related results.
47733         Needed for IRIX 6.5.
47734
47735 2007-05-19  Bruno Haible  <bruno@clisp.org>
47736
47737         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47738         printed as "nan0x7fffffff" instead of "nan".
47739         * tests/test-vasprintf-posix.c (test_function): Likewise.
47740         * tests/test-snprintf-posix.h (test_function): Likewise.
47741         * tests/test-sprintf-posix.h (test_function): Likewise.
47742         * tests/test-fprintf-posix.h (NaN): Remove macro.
47743         (test_function): Remove all NaN related tests.
47744         * tests/test-printf-posix.h (NaN): Remove macro.
47745         (test_function): Remove all NaN related tests.
47746         * tests/test-printf-posix.output: Remove all NaN related results.
47747         Needed for IRIX 6.5.
47748
47749 2007-05-19  Bruno Haible  <bruno@clisp.org>
47750
47751         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
47752         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47753
47754 2007-05-19  Bruno Haible  <bruno@clisp.org>
47755
47756         * lib/float_.h: New file.
47757         * m4/float_h.m4: New file.
47758         * modules/float: New file.
47759         * modules/isnanl (Dependencies): Add float.
47760         * modules/isnanl-nolibm (Dependencies): Likewise.
47761         * modules/mathl (Dependencies): Likewise.
47762         * modules/printf-frexpl (Dependencies): Likewise.
47763         * modules/signbit (Dependencies): Likewise.
47764         * modules/vasnprintf (Dependencies): Likewise.
47765         * doc/headers/float.texi: Update.
47766
47767 2007-05-19  Jim Meyering  <jim@meyering.net>
47768
47769         * lib/utimens.c (gl_futimens): Rename from futimens,
47770         now that glibc-2.6 declares futimens.
47771         * lib/utimens.h: Likewise.
47772
47773 2007-05-19  Bruno Haible  <bruno@clisp.org>
47774
47775         Avoid test failures on mingw.
47776         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
47777         * tests/test-printf-posix.sh: Likewise.
47778         * tests/test-vfprintf-posix.sh: Likewise.
47779         * tests/test-vprintf-posix.sh: Likewise.
47780
47781 2007-05-19  Bruno Haible  <bruno@clisp.org>
47782
47783         Fix *printf result for NaN, Inf, -0.0 on mingw.
47784         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
47785         * lib/vasnprintf.c: Include math.h and isnan.h.
47786         (is_infinite_or_zero): New function.
47787         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
47788         values in the %f, %F, %e, %E, %g, %G directives.
47789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
47790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47791         gl_PRINTF_INFINITE and test its result. Invoke
47792         gl_PREREQ_VASNPRINTF_INFINITE.
47793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47794         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47796         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47797         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47798         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47799         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47800         * doc/functions/fprintf.texi: Update.
47801         * doc/functions/printf.texi: Update.
47802         * doc/functions/snprintf.texi: Update.
47803         * doc/functions/sprintf.texi: Update.
47804         * doc/functions/vfprintf.texi: Update.
47805         * doc/functions/vprintf.texi: Update.
47806         * doc/functions/vsnprintf.texi: Update.
47807         * doc/functions/vsprintf.texi: Update.
47808
47809 2007-05-19  Bruno Haible  <bruno@clisp.org>
47810
47811         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
47812         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
47813         Instead of multiplying with 10^k, set extra_zeroes to k.
47814         (scale10_round_long_double): Remove function.
47815
47816 2007-05-18  Bruno Haible  <bruno@clisp.org>
47817
47818         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
47819         introduced on 2007-05-06.
47820
47821 2007-05-18  Bruno Haible  <bruno@clisp.org>
47822
47823         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
47824         %g directives.
47825         * tests/test-vasprintf-posix.c (test_function): Likewise.
47826         * tests/test-snprintf-posix.h (test_function): Likewise.
47827         * tests/test-sprintf-posix.h (test_function): Likewise.
47828
47829 2007-05-18  Bruno Haible  <bruno@clisp.org>
47830
47831         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
47832         (strmatch): New function.
47833         (test_function): Test the %f directive on numbers of various exponents.
47834         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
47835         (strmatch): New function.
47836         (test_function): Test the %f directive on numbers of various exponents.
47837         * tests/test-snprintf-posix.h (strmatch): New function.
47838         (test_function): Test the %f directive on numbers of various exponents.
47839         * tests/test-sprintf-posix.h (strmatch): New function.
47840         (test_function): Test the %f directive on numbers of various exponents.
47841         * tests/test-snprintf-posix.c (SIZEOF): New macro.
47842         * tests/test-sprintf-posix.c (SIZEOF): New macro.
47843         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
47844         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
47845
47846 2007-05-18  Bruno Haible  <bruno@clisp.org>
47847
47848         Add support for 'long double' number output.
47849         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
47850         * lib/vasnprintf.c: Include math.h and float+.h.
47851         (mp_limb_t): New type.
47852         (GMP_LIMB_BITS): New macro.
47853         (mp_twolimb_t): New type.
47854         (GMP_TWOLIMB_BITS): New macro.
47855         (mpn_t): New type.
47856         (multiply, divide, convert_to_decimal, decode_long_double,
47857         scale10_round_long_double, scale10_round_decimal_long_double,
47858         floorlog10l): New functions.
47859         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
47860         for the %f, %F, %e, %E, %g, %G directives.
47861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
47862         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47863         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
47864         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
47865         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47866         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47867         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47868         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47869         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47870         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47871         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47872         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
47873         * modules/snprintf-posix (Depends-on): Likewise.
47874         * modules/sprintf-posix (Depends-on): Likewise.
47875         * modules/vasnprintf-posix (Depends-on): Likewise.
47876         * modules/vasprintf-posix (Depends-on): Likewise.
47877         * modules/vfprintf-posix (Depends-on): Likewise.
47878         * modules/vsnprintf-posix (Depends-on): Likewise.
47879         * modules/vsprintf-posix (Depends-on): Likewise.
47880         * modules/vasnprintf (Files): Add lib/float+.h.
47881         * doc/functions/fprintf.texi: Update.
47882         * doc/functions/printf.texi: Update.
47883         * doc/functions/snprintf.texi: Update.
47884         * doc/functions/sprintf.texi: Update.
47885         * doc/functions/vfprintf.texi: Update.
47886         * doc/functions/vprintf.texi: Update.
47887         * doc/functions/vsnprintf.texi: Update.
47888         * doc/functions/vsprintf.texi: Update.
47889
47890 2007-05-18  Bruno Haible  <bruno@clisp.org>
47891
47892         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
47893
47894 2007-05-18  Bruno Haible  <bruno@clisp.org>
47895
47896         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
47897         for printing 64-bit integers. Needed for mingw.
47898
47899 2007-05-18  Bruno Haible  <bruno@clisp.org>
47900
47901         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47902         gl_FUNC_FREXPL_WORKS.
47903         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
47904
47905 2007-05-18  Bruno Haible  <bruno@clisp.org>
47906
47907         * modules/frexpl-nolibm-tests: New file.
47908
47909         * modules/frexpl-nolibm: New file.
47910         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
47911
47912 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47913
47914         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
47915         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47916         GCC 4.2, which otherwise issues a lot of warnings.
47917         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
47918         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
47919         Likewise.
47920         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
47921         * modules/iconv_open (iconv.h): Likewise.
47922         * modules/locale (locale.h): Likewise.
47923         * modules/netinet_in (netinet/in.h): Likewise.
47924         * modules/sys_select (sys_select.h): Likewise.
47925         * modules/sys_socket (sys/socket.h): Likewise.
47926         * modules/sys_stat (sys/stat.h): Likewise.
47927         * modules/sysexits (sysexits.h): Likewise.
47928         * modules/unistd (unistd.h): Likewise.
47929
47930 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47931
47932         * modules/closein-tests (Makefile.am): Distribute
47933         `test-closein.sh'.
47934
47935 2007-05-17  Bruno Haible  <bruno@clisp.org>
47936
47937         * tests/test-printf-posix.output: Renamed from
47938         tests/test-fprintf-posix.out.
47939         * modules/fprintf-posix-tests: Update.
47940         * modules/printf-posix-tests: Update.
47941         * modules/vfprintf-posix-tests: Update.
47942         * modules/vprintf-posix-tests: Update.
47943         * tests/test-fprintf-posix.sh: Update.
47944         * tests/test-printf-posix.sh: Update.
47945         * tests/test-vfprintf-posix.sh: Update.
47946         * tests/test-vprintf-posix.sh: Update.
47947         Reported by Ralf Wildenhues.
47948
47949 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47950
47951         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
47952         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47953         GCC 4.2, which otherwise issues a lot of warnings.
47954         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
47955         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
47956         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
47957         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
47958         it should no longer be needed.
47959         * lib/string_.h: Likewise.
47960         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
47961         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
47962         * modules/inttypes (inttypes.h): Likewise.
47963         * modules/math (math.h): Likewise.
47964         * modules/search (search.h): Likewise.
47965         * modules/signal (signal.h): Likewise.
47966         * modules/stdint (stdint.h): Likewise.
47967         * modules/stdio (stdio.h): Likewise.
47968         * modules/stdlib (stdlib.h): Likewise.
47969         * modules/string (string.h): Likewise.
47970         * modules/sys_time (sys/time.h): Likewise.
47971         * modules/time (time.h): Likewise.
47972         * modules/wchar (wchar.h): Likewise.
47973         * modules/wctype (wtype.h): Likewise.
47974
47975 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47976
47977         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
47978
47979 2007-05-13  Bruno Haible  <bruno@clisp.org>
47980
47981         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
47982         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47983         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
47984         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47985         (gl_PREREQ_STRTOK_R): Don't require it here.
47986
47987 2007-05-13  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
47990         when used in C++ mode.
47991
47992 2007-05-12  Bruno Haible  <bruno@clisp.org>
47993
47994         * lib/linebuffer.h: Tweak doc.
47995         * lib/linebuffer.c: Likewise.
47996
47997 2007-05-12  James Youngman  <jay@gnu.org>
47998
47999         * lib/linebuffer.c (readlinebuffer_delim): New function,
48000         like readlinebuffer, but use a caller-specified delimiter.
48001         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48002         as the delimiter.
48003         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48004
48005 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48006
48007         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48008         * modules/openat (Files): Remove openat-die.c.
48009         (Depends-on): Add openat-die.
48010         * modules/openat-die: New module.
48011
48012 2007-05-06  Bruno Haible  <bruno@clisp.org>
48013
48014         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48015         Update with info about Cygwin.
48016         * doc/functions/fprintf.texi: Update.
48017         * doc/functions/printf.texi: Update.
48018         * doc/functions/snprintf.texi: Update.
48019         * doc/functions/sprintf.texi: Update.
48020         * doc/functions/vfprintf.texi: Update.
48021         * doc/functions/vprintf.texi: Update.
48022         * doc/functions/vsnprintf.texi: Update.
48023         * doc/functions/vsprintf.texi: Update.
48024         Reported by Eric Blake.
48025
48026 2007-05-06  Bruno Haible  <bruno@clisp.org>
48027
48028         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48029         padding ourselves for the floating-point directives.
48030         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48032         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48033         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48034         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48035         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48036         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48037         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48039         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48040         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48041         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48042         * tests/test-snprintf-posix.h (test_function): Also check the width
48043         and some flags in the %f directive.
48044         * tests/test-sprintf-posix.h (test_function): Likewise.
48045         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48046         * tests/test-vasprintf-posix.c (test_function): Likewise.
48047         * doc/functions/fprintf.texi: Update.
48048         * doc/functions/printf.texi: Update.
48049         * doc/functions/snprintf.texi: Update.
48050         * doc/functions/sprintf.texi: Update.
48051         * doc/functions/vfprintf.texi: Update.
48052         * doc/functions/vprintf.texi: Update.
48053         * doc/functions/vsnprintf.texi: Update.
48054         * doc/functions/vsprintf.texi: Update.
48055
48056 2007-05-06  Bruno Haible  <bruno@clisp.org>
48057
48058         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48059         pass the ' flag character to sprintf or snprintf.
48060         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48062         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48063         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48064         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48065         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48066         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48067         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48068         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48069         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48071         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48072         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48073         flag.
48074         * tests/test-sprintf-posix.h (test_function): Likewise.
48075         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48076         * tests/test-vasprintf-posix.c (test_function): Likewise.
48077         * doc/functions/fprintf.texi: Update.
48078         * doc/functions/printf.texi: Update.
48079         * doc/functions/snprintf.texi: Update.
48080         * doc/functions/sprintf.texi: Update.
48081         * doc/functions/vfprintf.texi: Update.
48082         * doc/functions/vprintf.texi: Update.
48083         * doc/functions/vsnprintf.texi: Update.
48084         * doc/functions/vsprintf.texi: Update.
48085
48086 2007-05-01  Bruno Haible  <bruno@clisp.org>
48087
48088         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48089
48090 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48091
48092         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48093         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48094
48095 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48096
48097         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48098         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48099         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48100
48101 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48102
48103         * lib/argp-help.c (struct hol_entry): New member `ord'.
48104         (HOL_ENTRY_PTRCMP): Use ord for comparison
48105         (hol_sort): Initialize ord.
48106
48107 2007-05-01  Bruno Haible  <bruno@clisp.org>
48108
48109         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48110         Reported by Eric Blake.
48111         * doc/gnulib.texi (Function Substitutes): Update.
48112
48113 2007-05-01  Bruno Haible  <bruno@clisp.org>
48114
48115         * doc/functions.texi: Remove file, now redundant through
48116         doc/functions/*.texi.
48117
48118 2007-05-01  Bruno Haible  <bruno@clisp.org>
48119
48120         * modules/argp (Depends-on): Add sleep.
48121
48122 2007-05-01  Bruno Haible  <bruno@clisp.org>
48123
48124         * modules/sleep-tests: New file.
48125         * tests/test-sleep.c: New file.
48126
48127         * modules/sleep: New file.
48128         * lib/sleep.c: New file.
48129         * m4/sleep.m4: New file.
48130         * lib/unistd_.h (sleep): New declaration.
48131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48132         HAVE_SLEEP.
48133         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48134         * doc/functions/sleep.texi: Document the sleep module.
48135
48136 2007-05-01  Bruno Haible  <bruno@clisp.org>
48137
48138         * lib/sigprocmask.h: Remove file.
48139         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48140         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48141         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48142         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48143         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48144         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48145         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48146         HAVE_SIGSET_T as a shell variable.
48147         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48148         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48149         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48150         (Depends-on): Add signal. Remove verify.
48151         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48152         (Include): Mention <signal.h> instead of sigprocmask.h.
48153         * NEWS: Mention the change.
48154         * lib/fatal-signal.c: Don't include sigprocmask.h.
48155
48156 2007-05-01  Bruno Haible  <bruno@clisp.org>
48157
48158         * modules/signal: New file.
48159         * lib/signal_.h: New file.
48160         * m4/signal_h.m4: New file.
48161
48162 2007-05-01  Bruno Haible  <bruno@clisp.org>
48163
48164         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48165         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48166         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48167         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48168
48169 2007-05-01  Bruno Haible  <bruno@clisp.org>
48170
48171         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48172         configure time.
48173         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48174         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48175         * modules/sys_stat (Makefile.am): Substitute their values into
48176         sys/stat.h.
48177
48178 2007-05-01  Bruno Haible  <bruno@clisp.org>
48179
48180         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48181         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48182         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48183
48184 2007-05-01  Bruno Haible  <bruno@clisp.org>
48185
48186         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48187         'assert' module here.
48188
48189 2007-05-01  Bruno Haible  <bruno@clisp.org>
48190
48191         * doc/functions/*.texi: New files.
48192         * doc/functions/google-ranking.txt: New file.
48193         * doc/gnulib.texi (Function Substitutes): New chapter.
48194         (ctime, inet_ntoa): Remove sections.
48195         * doc/ctime.texi: Remove file.
48196         * doc/inet_ntoa.texi: Remove file.
48197         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48198         dependencies.
48199         (%.info): New rule, specifying a --reference-limit.
48200
48201 2007-05-01  Bruno Haible  <bruno@clisp.org>
48202
48203         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48204
48205 2007-05-01  Bruno Haible  <bruno@clisp.org>
48206
48207         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48208         the portability of 'mkdir' to mingw systems.
48209
48210 2007-05-01  Bruno Haible  <bruno@clisp.org>
48211
48212         * doc/headers/google-ranking.txt: New file.
48213
48214 2007-04-30  Eric Blake  <ebb9@byu.net>
48215
48216         Prefer fseeko to fseek.
48217         * modules/getpass (Depends-on): Add fseeko.
48218         * lib/getpass.c (getpass): Use fseeko, not fseek.
48219
48220 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48221
48222         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48223         assumes the sorting is stable, while most qsort implementations
48224         are not.  Use argument addresses to ensure they never compare as
48225         equal.
48226
48227         * tests/test-argp-2.sh (usage-indent test): Fix output
48228         (func_compare): Restore diff options
48229         * tests/test-argp.c: Restore #include "progname.h"
48230
48231 2007-04-29  Bruno Haible  <bruno@clisp.org>
48232
48233         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48234         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48235         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48237         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48238         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48239         (TESTS, check_PROGRAMS): Add test-snprintf.
48240         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48241         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48242         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48243         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48244         assertions that fail on HP-UX, OSF/1, or IRIX.
48245         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48246
48247 2007-04-29  Bruno Haible  <bruno@clisp.org>
48248
48249         * MODULES.html.sh (posix_functions): Remove 'contents'.
48250
48251 2007-04-29  Karl Berry  <karl@gnu.org>
48252
48253         * config/srclist.txt (gendocs_template_min): new entry.
48254
48255 2007-04-29  Bruno Haible  <bruno@clisp.org>
48256
48257         Work around fpurge bug on BSD systems.
48258         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48259         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48260         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48261         fpurge to rpl_fpurge if the system already has this function.
48262         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48263         the case where the system already has this function. Correct invariants
48264         on BSD systems.
48265         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48266         BSD systems.
48267
48268 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48269
48270         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48271         proposed by Sven Verdoolaege.
48272
48273         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48274         options.
48275         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48276         (usage and help tests): Update
48277
48278 2007-04-29  Bruno Haible  <bruno@clisp.org>
48279
48280         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48281         Print more information in case of failure. Disable a test on BeOS.
48282
48283 2007-04-29  Bruno Haible  <bruno@clisp.org>
48284
48285         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48286         This helps debugging on systems on which no gdb is available.
48287
48288 2007-04-29  Bruno Haible  <bruno@clisp.org>
48289
48290         * lib/freading.h: Improve comments.
48291         * lib/fwriting.h: Likewise.
48292         * tests/test-freading.c (main): Don't check freading immediately after
48293         repositioning. Needed for glibc.
48294
48295 2007-04-29  Bruno Haible  <bruno@clisp.org>
48296
48297         * lib/freading.c (freading): Trivial simplification.
48298
48299 2007-04-28  Bruno Haible  <bruno@clisp.org>
48300
48301         * tests/test-fwriting.c (main): Also test the interaction between
48302         fflush and fwriting.
48303         * modules/fwriting-tests (Depends-on): Add fflush.
48304
48305         * tests/test-freading.c (main): Also test the interaction between
48306         fflush and freading.
48307         * modules/freading-tests (Depends-on): Add fflush.
48308
48309 2007-04-28  Bruno Haible  <bruno@clisp.org>
48310
48311         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48312         fseeko and ftello.
48313         Suggested by Eric Blake.
48314
48315 2007-04-28  Jim Meyering  <jim@meyering.net>
48316
48317         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48318         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48319         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48320
48321 2007-04-27  Eric Blake  <ebb9@byu.net>
48322
48323         * doc/headers/assert.texi (assert.h): Document assert module use.
48324
48325 2007-04-27  Bruno Haible  <bruno@clisp.org>
48326
48327         * doc/headers/*.texi: New files.
48328         * doc/gnulib.texi (Header File Substitutes): New chapter.
48329         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48330         dependencies.
48331         (standards.info ,standards.html, standards.dvi): Update dependencies.
48332         (mostlyclean, clean): New targets.
48333
48334 2007-04-27  Bruno Haible  <bruno@clisp.org>
48335
48336         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48337         * modules/sysexits (Files, Makefile.am): Update.
48338
48339         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48340         * modules/sys_socket (Files, Makefile.am): Update.
48341
48342         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48343         * modules/sys_stat (Files, Makefile.am): Update.
48344
48345 2007-04-27  Eric Blake  <ebb9@byu.net>
48346
48347         * lib/freading.h: Improve comments.
48348         * lib/fwriting.h: Likewise.
48349         * lib/fflush.c: Likewise.
48350
48351         Fix closein for mingw.
48352         * modules/closein-tests: Add tests for closein.
48353         * tests/test-closein.c: New file.
48354         * tests/test-closein.sh: Likewise.
48355         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48356         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48357
48358 2007-04-27  Bruno Haible  <bruno@clisp.org>
48359
48360         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48361         version is < 6.
48362         * lib/math_.h [__DECC]: Likewise.
48363         * lib/stdio_.h [__DECC]: Likewise.
48364         * lib/stdlib_.h [__DECC]: Likewise.
48365         * lib/string_.h [__DECC]: Likewise.
48366         * lib/time_.h [__DECC]: Likewise.
48367         * lib/wchar_.h [__DECC]: Likewise.
48368         * lib/wctype_.h [__DECC]: Likewise.
48369
48370 2007-04-27  Bruno Haible  <bruno@clisp.org>
48371
48372         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48373
48374 2007-04-27  Bruno Haible  <bruno@clisp.org>
48375
48376         * lib/fflush.c: Add comments.
48377         * modules/fpurge-tests (Depends-on): Add fflush.
48378         * modules/freadable-tests (Depends-on): Likewise.
48379         * modules/fwritable-tests (Depends-on): Likewise.
48380
48381 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48382
48383         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48384         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48385         Report by Bruno Haible <bruno@clisp.org>.
48386
48387 2007-04-26  Eric Blake  <ebb9@byu.net>
48388
48389         Fix fflush on mingw.
48390         * modules/fflush (Depends-on): Add freading.
48391         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48392         but unread data.
48393
48394 2007-04-26  Eric Blake  <ebb9@byu.net>
48395         and Bruno Haible  <bruno@clisp.org>
48396
48397         Implement freading and fwriting.
48398         * lib/freading.c: New file.
48399         * lib/freading.h: Likewise.
48400         * m4/freading.m4: Likewise.
48401         * modules/freading: Likewise.
48402         * modules/freading-tests: Likewise.
48403         * tests/test-freading.c: Likewise.
48404         * lib/fwriting.c: New file.
48405         * lib/fwriting.h: Likewise.
48406         * m4/fwriting.m4: Likewise.
48407         * modules/fwriting: Likewise.
48408         * modules/fwriting-tests: Likewise.
48409         * tests/test-fwriting.c: Likewise.
48410         * MODULES.html.sh (File stream based Input/Output): Mention them.
48411
48412 2007-04-26  Bruno Haible  <bruno@clisp.org>
48413
48414         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48415         'long' when we assume it.
48416         Suggested by Eric Blake.
48417
48418 2007-04-26  Bruno Haible  <bruno@clisp.org>
48419
48420         Ensure fseeko, ftello are declared on glibc systems.
48421         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
48422         * modules/fseeko (configure.ac-early): Likewise.
48423         * modules/ftello (configure.ac-early): Likewise.
48424         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
48425         AC_FUNC_FSEEKO for this.
48426         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
48427         (gl_CHECK_FSEEKO): Remove macro.
48428
48429 2007-04-26  Bruno Haible  <bruno@clisp.org>
48430
48431         * tests/test-fflush.c (main): Also check the ftell result after
48432         fflush and fseek/fseeko.
48433         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
48434         file descriptor position cache in the stream.
48435         * lib/fseeko.c (rpl_fseeko): Likewise.
48436
48437 2007-04-26  Bruno Haible  <bruno@clisp.org>
48438
48439         * modules/fflush-tests (Depends-on): Add fseeko.
48440
48441 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
48442             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48443
48444         * lib/argz_.h: ensure error_t definition is obtained in same
48445         mechanism system argz.h would have.
48446         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
48447         argz facilities are known bad.  Err on the side of caution if
48448         cross-compiling.
48449
48450 2007-04-25  Eric Blake  <ebb9@byu.net>
48451
48452         * lib/fpurge.c (includes): Use stdlib.h for free.
48453         * tests/test-fflush.c (main): Also test fflush-fseeko.
48454
48455 2007-04-25  Bruno Haible  <bruno@clisp.org>
48456
48457         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
48458         * lib/fseeko.c: New file.
48459         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
48460         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
48461         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
48462         gl_FUNC_FSEEKO.
48463         (gl_FUNC_FSEEKO): Invoke it.
48464         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
48465         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
48466         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
48467
48468 2007-04-25  Bruno Haible  <bruno@clisp.org>
48469
48470         * modules/fflush (Depends-on): Add ftello.
48471
48472 2007-04-25  Bruno Haible  <bruno@clisp.org>
48473
48474         * modules/ftello-tests: New file.
48475         * tests/test-ftello.c: New file.
48476
48477         * modules/ftello: New file.
48478         * m4/ftello.m4: New file.
48479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
48480         HAVE_FTELLO.
48481         * lib/stdio_.h (ftello): New declaration.
48482         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
48483         HAVE_FTELLO.
48484
48485 2007-04-25  Bruno Haible  <bruno@clisp.org>
48486
48487         * modules/fseeko-tests: New file.
48488         * tests/test-fseeko.c: New file.
48489
48490         * modules/fseeko: New file.
48491         * m4/fseeko.m4: New file.
48492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
48493         HAVE_FSEEKO.
48494         * lib/stdio_.h (fseeko): New declaration.
48495         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
48496         HAVE_FSEEKO.
48497
48498 2007-04-25  Bruno Haible  <bruno@clisp.org>
48499
48500         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
48501
48502 2007-04-25  Bruno Haible  <bruno@clisp.org>
48503
48504         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
48505         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
48506         * tests/test-unistd.c: Likewise.
48507         * tests/test-fcntl.c: Likewise.
48508
48509 2007-04-23  Eric Blake  <ebb9@byu.net>
48510
48511         * lib/fflush.c: Fix missing include.
48512         Reported by Bruno Haible.
48513
48514 2007-04-23  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
48517         Reported by Eric Blake.
48518
48519 2007-04-23  Bruno Haible  <bruno@clisp.org>
48520
48521         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
48522
48523 2007-04-23  Bruno Haible  <bruno@clisp.org>
48524
48525         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
48526
48527 2007-04-23  Bruno Haible  <bruno@clisp.org>
48528
48529         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
48530         Needed on HP-UX 11.
48531
48532 2007-04-16  Eric Blake  <ebb9@byu.net>
48533
48534         Make fflush rely on fpurge.
48535         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
48536         open coding all variants.
48537         * modules/fflush (Depends-on): Add fpurge and unistd.
48538         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
48539         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
48540
48541         Fix --with-tests compilation on cygwin.
48542         * modules/argmatch-tests (Makefile.am): List gnulib library first
48543         in LDADD.
48544         * modules/argp-tests (Makefile.am): Likewise.
48545         * modules/array-list-tests (Makefile.am): Likewise.
48546         * modules/array-oset-tests (Makefile.am): Likewise.
48547         * modules/avltree-list-tests (Makefile.am): Likewise.
48548         * modules/avltree-oset-tests (Makefile.am): Likewise.
48549         * modules/avltreehash-list-tests (Makefile.am): Likewise.
48550         * modules/carray-list-tests (Makefile.am): Likewise.
48551         * modules/dirname-tests (Makefile.am): Likewise.
48552         * modules/frexp-tests (Makefile.am): Likewise.
48553         * modules/isnanl-tests (Makefile.am): Likewise.
48554         * modules/linked-list-tests (Makefile.am): Likewise.
48555         * modules/linkedhash-list-tests (Makefile.am): Likewise.
48556         * modules/lock-tests (Makefile.am): Likewise.
48557         * modules/rbtree-list-tests (Makefile.am): Likewise.
48558         * modules/rbtree-oset-tests (Makefile.am): Likewise.
48559         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
48560         * modules/tls-tests (Makefile.am): Likewise.
48561         * modules/tsearch-tests (Makefile.am): Likewise.
48562         * modules/xvasprintf-tests (Makefile.am): Likewise.
48563
48564         Fix fpurge for cygwin.
48565         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
48566         value.
48567         * modules/fpurge-tests (Depends-on): Clean up trash.
48568
48569 2007-04-16  Simon Josefsson  <simon@josefsson.org>
48570
48571         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
48572
48573         * m4/autobuild.m4: Re-indent.
48574
48575 2007-04-13  Bruno Haible  <bruno@clisp.org>
48576
48577         * modules/fpurge-tests: New file.
48578         * tests/test-fpurge.c: New file.
48579
48580         * modules/fpurge: New file.
48581         * lib/fpurge.h: New file.
48582         * lib/fpurge.c: New file.
48583         * m4/fpurge.m4: New file.
48584
48585 2007-04-13  Bruno Haible  <bruno@clisp.org>
48586
48587         * modules/fbufmode-tests: New file.
48588         * tests/test-fbufmode.c: New file.
48589
48590         * modules/fbufmode: New file.
48591         * lib/fbufmode.h: New file.
48592         * lib/fbufmode.c: New file.
48593         * m4/fbufmode.m4: New file.
48594
48595 2007-04-13  Bruno Haible  <bruno@clisp.org>
48596
48597         * modules/fwritable-tests: New file.
48598         * tests/test-fwritable.c: New file.
48599
48600         * modules/fwritable: New file.
48601         * lib/fwritable.h: New file.
48602         * lib/fwritable.c: New file.
48603         * m4/fwritable.m4: New file.
48604
48605 2007-04-13  Bruno Haible  <bruno@clisp.org>
48606
48607         * modules/freadable-tests: New file.
48608         * tests/test-freadable.c: New file.
48609
48610         * modules/freadable: New file.
48611         * lib/freadable.h: New file.
48612         * lib/freadable.c: New file.
48613         * m4/freadable.m4: New file.
48614
48615 2007-04-13  Bruno Haible  <bruno@clisp.org>
48616
48617         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
48618         MOSTLYCLEANFILES.
48619
48620 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48621
48622         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
48623         gzip bootstrap.conf to avoid dragging in i18n machinery.
48624         (gnulib_tool_option): Use it.
48625
48626 2007-04-13  Bruno Haible  <bruno@clisp.org>
48627
48628         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
48629         %F directives.
48630         * tests/test-vasprintf-posix.c (test_function): Likewise.
48631         * tests/test-snprintf-posix.h (test_function): Likewise.
48632         * tests/test-sprintf-posix.h (test_function): Likewise.
48633         * tests/test-fprintf-posix.h (test_function): Likewise.
48634         * tests/test-printf-posix.h (test_function): Likewise.
48635         * tests/test-fprintf-posix.out: Likewise.
48636
48637 2007-04-13  Bruno Haible  <bruno@clisp.org>
48638
48639         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
48640         * modules/tls-tests (configure.ac): Likewise.
48641         Reported by Arto C. Nirkko <anirkko@insel.ch>.
48642
48643 2007-04-13  Bruno Haible  <bruno@clisp.org>
48644
48645         * lib/tls.c (glthread_tls_get): Fix return type.
48646         Patch by Arto C. Nirkko <anirkko@insel.ch>.
48647
48648 2007-04-12  Eric Blake  <ebb9@byu.net>
48649
48650         * modules/gettime (Depends-on): Remove gettime.
48651         Reported by Dmitry V. Levin.
48652
48653 2007-04-12  Bruno Haible  <bruno@clisp.org>
48654
48655         * modules/fflush (Include): Mention <stdio.h>.
48656         * modules/strtoimax (Include): Mention <inttypes.h>.
48657         * modules/strtoumax (Include): Likewise.
48658
48659 2007-04-12  Eric Blake  <ebb9@byu.net>
48660
48661         * .cvsignore: New file.
48662         * .gitignore: Likewise.
48663
48664 2007-04-12  Bruno Haible  <bruno@clisp.org>
48665
48666         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
48667         not before, since $(LDADD) often contains libgnu.a.
48668         * modules/striconv-tests (test_striconv_LDADD): Likewise.
48669         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
48670         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
48671         Needed on Cygwin.
48672
48673 2007-04-12  Eric Blake  <ebb9@byu.net>
48674
48675         Work around glibc's failure to flush stdin on fclose.
48676         * lib/closein.c (close_stdin): Flush stdin before closing.
48677
48678         Work around glibc's failure to reset seekable stdin on exit.
48679         * modules/closein: New module.
48680         * lib/closein.c: New file.
48681         * lib/closein.h: Likewise.
48682         * m4/closein.m4: Likewise.
48683         * MODULES.html.sh (File stream based Input/Output): Document it.
48684
48685 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48686
48687         * gnulib-tool: Rename generated 'autobuild' script to
48688         'do-autobuild' in --create-megatestdir output.
48689
48690         * doc/gnulib.texi (Build robot for gnulib): Fix.
48691
48692 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48693
48694         * modules/sysexits (Depends-on): Add absolute-header.
48695
48696 2007-04-12  Eric Blake  <ebb9@byu.net>
48697
48698         No need to preserve errno on success.
48699         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
48700         Reported by Bruno Haible.
48701
48702 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48703
48704         * MODULES.html.sh (Support for maintaining and releasing
48705         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
48706
48707 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48708
48709         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
48710
48711 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48712
48713         * modules/autobuild: New module.
48714
48715         * m4/autobuild.m4: New file.
48716
48717 2007-04-11  Bruno Haible  <bruno@clisp.org>
48718
48719         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
48720         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
48721         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
48722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
48723         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48724         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48725         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48726         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48727         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48728         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48729         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
48730         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48731         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
48733         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48734         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
48736         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48737         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48738         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
48739         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48740         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
48742         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48743         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48744         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
48745         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48746         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48747         Reported by Eric Blake.
48748
48749 2007-04-11  Bruno Haible  <bruno@clisp.org>
48750
48751         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
48752
48753 2007-04-10  Bruno Haible  <bruno@clisp.org>
48754
48755         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
48756         for NaN and Infinity. Needed on FreeBSD 6.1.
48757         * tests/test-vasnprintf-posix.c (test_function): Undo last change
48758         regarding results for "%010a" of Infinity and NaN.
48759         * tests/test-vasprintf-posix.c (test_function): Likewise.
48760         * tests/test-snprintf-posix.h (test_function): Likewise.
48761         * tests/test-sprintf-posix.h (test_function): Likewise.
48762         * tests/test-fprintf-posix.h (test_function): Likewise.
48763         * tests/test-printf-posix.h (test_function): Likewise.
48764         * tests/test-fprintf-posix.out: Likewise.
48765
48766 2007-04-10  Bruno Haible  <bruno@clisp.org>
48767
48768         * modules/locale-tests: New file.
48769         * tests/test-locale.c: New file.
48770
48771         * modules/locale: New file.
48772         * lib/locale_.h: New file.
48773         * m4/locale_h.m4: New file.
48774
48775 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
48776             Bruno Haible  <bruno@clisp.org>
48777
48778         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
48779         be determined, test for availability of the copysignf, copysign,
48780         copysignl functions.
48781         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
48782         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
48783         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
48784
48785 2007-04-09  Eric Blake  <ebb9@byu.net>
48786
48787         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
48788         * modules/stdio (Makefile.am): Support fflush.
48789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48790         * modules/fflush: New file.
48791         * lib/fflush.c: Likewise.
48792         * m4/fflush.m4: Likewise.
48793         * modules/fflush-tests: New test.
48794         * tests/test-fflush.c: Likewise.
48795         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
48796
48797 2007-04-06  Bruno Haible  <bruno@clisp.org>
48798
48799         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
48800         (VASNPRINTF): Use signbit for faster determination whether to print a
48801         minus sign.
48802         * modules/vasnprintf (Files): Remove lib/float+.h.
48803         * modules/fprintf-posix (Depends-on): Add signbit.
48804         * modules/snprintf-posix (Depends-on): Likewise.
48805         * modules/sprintf-posix (Depends-on): Likewise.
48806         * modules/vasnprintf-posix (Depends-on): Likewise.
48807         * modules/vasprintf-posix (Depends-on): Likewise.
48808         * modules/vfprintf-posix (Depends-on): Likewise.
48809         * modules/vsnprintf-posix (Depends-on): Likewise.
48810         * modules/vsprintf-posix (Depends-on): Likewise.
48811
48812 2007-04-06  Bruno Haible  <bruno@clisp.org>
48813
48814         * tests/test-frexp.c (main): Test also the sign bit of zero results.
48815         * tests/test-frexpl.c (main): Likewise.
48816         * tests/test-ldexpl.c (main): Likewise.
48817         * modules/frexp-tests (Depends-on): Add signbit.
48818         * modules/frexpl-tests (Depdends-on): Likewise.
48819         * modules/ldexpl-tests (Depdends-on): Likewise.
48820
48821 2007-04-06  Bruno Haible  <bruno@clisp.org>
48822
48823         * modules/signbit-tests: New file.
48824         * tests/test-signbit.c: New file.
48825
48826         * modules/signbit: New file.
48827         * lib/signbitf.c: New file.
48828         * lib/signbitd.c: New file.
48829         * lib/signbitl.c: New file.
48830         * m4/signbit.m4: New file.
48831         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
48832         (signbit): New macro.
48833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
48834         REPLACE_SIGNBIT.
48835         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
48836         REPLACE_FREXPL into math.h.
48837
48838 2007-04-06  Bruno Haible  <bruno@clisp.org>
48839
48840         * modules/isnanf-nolibm-tests: New file.
48841         * tests/test-isnanf.c: New file.
48842
48843         * modules/isnanf-nolibm: New file.
48844         * lib/isnanf.h: New file.
48845         * lib/isnanf.c: New file.
48846         * lib/isnan.c: Consider the USE_FLOAT macro.
48847         * m4/isnanf.m4: New file.
48848
48849 2007-04-06  Bruno Haible  <bruno@clisp.org>
48850
48851         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
48852         (Link): New section.
48853
48854         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
48855
48856 2007-04-06  Bruno Haible  <bruno@clisp.org>
48857
48858         Assume the 'long double' type.
48859         * m4/longdouble.m4: Remove file.
48860         * config/srclist.txt: Don't mention longdouble.m4.
48861         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
48862         * lib/float+.h: Likewise.
48863         * lib/frexp.c: Likewise.
48864         * lib/printf-args.h: Likewise.
48865         * lib/printf-args.c: Likewise.
48866         * lib/printf-frexp.c: Likewise.
48867         * lib/printf-parse.c: Likewise.
48868         * lib/vasnprintf.c: Likewise.
48869         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
48870         * m4/intl.m4: Likewise.
48871         * m4/isnanl.m4: Likewise.
48872         * m4/printf.m4: Likewise.
48873         * m4/printf-frexpl.m4: Likewise.
48874         * m4/vasnprintf.m4: Likewise.
48875         * modules/allocsa (Files): Remove m4/longdouble.m4.
48876         * modules/gettext (Files): Likewise.
48877         * modules/relocatable-prog-wrapper (Files): Likewise.
48878         * modules/vasnprintf (Files): Likewise.
48879         * modules/isnanl (Files): Likewise.
48880         (Include): Simplify.
48881         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
48882         (Include): Simplify.
48883         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
48884         (Include): Simplify.
48885         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
48886         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48887         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
48888         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48889         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48890         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48891         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
48892         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48893         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48894         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48895         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
48896         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48897         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
48898         * tests/test-isnanl.c: Likewise.
48899         * tests/test-snprintf-posix.h: Likewise.
48900         * tests/test-sprintf-posix.h: Likewise.
48901         * tests/test-vasnprintf-posix.c: Likewise.
48902         * tests/test-vasnprintf-posix2.c: Likewise.
48903         * tests/test-vasprintf-posix.c: Likewise.
48904
48905 2007-04-06  Bruno Haible  <bruno@clisp.org>
48906
48907         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
48908         * lib/math_.h [__DECC]: Include the overridden include file through
48909         #include_next, outside the double-inclusion guard.
48910         * lib/stdio_.h [__DECC]: Likewise.
48911         * lib/stdlib_.h [__DECC]: Likewise.
48912         * lib/string_.h [__DECC]: Likewise.
48913         * lib/time_.h [__DECC]: Likewise.
48914         * lib/wchar_.h [__DECC]: Likewise.
48915         * lib/wctype_.h [__DECC]: Likewise.
48916         * lib/inttypes_.h [__DECC]: Likewise.
48917         Reported by Albert Chin <china@thewrittenword.com> in
48918         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
48919
48920 2007-04-04  Eric Blake  <ebb9@byu.net>
48921
48922         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
48923         1.5.x.
48924
48925 2007-04-04  Bruno Haible  <bruno@clisp.org>
48926
48927         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
48928         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
48929
48930 2007-04-04  Bruno Haible  <bruno@clisp.org>
48931
48932         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
48933         results for "%010a" of Infinity and NaN.
48934         * tests/test-vasprintf-posix.c (test_function): Likewise.
48935         * tests/test-snprintf-posix.h (test_function): Likewise.
48936         * tests/test-sprintf-posix.h (test_function): Likewise.
48937         * tests/test-fprintf-posix.h (test_function): Remove these tests.
48938         * tests/test-printf-posix.h (test_function): Likewise.
48939         * tests/test-fprintf-posix.out: Update.
48940         Needed for FreeBSD 6.1.
48941
48942 2007-04-04  Bruno Haible  <bruno@clisp.org>
48943
48944         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
48945         directly used by the gnulib modules nor by gnulib-tool.
48946
48947 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48948
48949         * DEPENDENCIES: Give overall description of version dependency
48950         desirability.  Use more-typical names for apps.
48951         Add shell, coreutils, diffutils, grep, tar, gzip.
48952
48953 2007-04-04  Simon Josefsson  <simon@josefsson.org>
48954
48955         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
48956
48957 2007-04-04  Karl Berry  <karl@gnu.org>
48958
48959         * MODULES.html.sh (func_module): missing '.
48960
48961 2007-04-03  Bruno Haible  <bruno@clisp.org>
48962
48963         * modules/argmatch-tests (Makefile.am): New variable
48964         test_argmatch_LDADD.
48965         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
48966         * modules/array-list-tests (Makefile.am): New variable
48967         test_array_list_LDADD.
48968         * modules/array-oset-tests (Makefile.am): New variable
48969         test_array_oset_LDADD.
48970         * modules/avltree-list-tests (Makefile.am): New variable
48971         test_avltree_list_LDADD.
48972         * modules/avltree-oset-tests (Makefile.am): New variable
48973         test_avltree_oset_LDADD.
48974         * modules/avltreehash-list-tests (Makefile.am): New variable
48975         test_avltreehash_list_LDADD.
48976         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
48977         test_canonicalize_lgpl_LDADD.
48978         * modules/carray-list-tests (Makefile.am): New variable
48979         test_carray_list_LDADD.
48980         * modules/dirname-tests (Makefile.am): New variable
48981         test_dirname_LDADD.
48982         * modules/linked-list-tests (Makefile.am): New variable
48983         test_linked_list_LDADD.
48984         * modules/linkedhash-list-tests (Makefile.am): New variable
48985         test_linkedhash_list_LDADD.
48986         * modules/rbtree-list-tests (Makefile.am): New variable
48987         test_rbtree_list_LDADD.
48988         * modules/rbtree-oset-tests (Makefile.am): New variable
48989         test_rbtree_oset_LDADD.
48990         * modules/rbtreehash-list-tests (Makefile.am): New variable
48991         test_rbtreehash_list_LDADD.
48992         * modules/xvasprintf-tests (Makefile.am): New variable
48993         test_xvasprintf_LDADD.
48994         Reported by Eric Blake.
48995
48996 2007-04-03  Eric Blake  <ebb9@byu.net>
48997
48998         * DEPENDENCIES: Weaken m4 requirements.
48999
49000 2007-04-03  Bruno Haible  <bruno@clisp.org>
49001
49002         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49003         * modules/isnanl-tests (configure.ac): Likewise.
49004
49005 2007-04-03  Ben Pfaff  <blp@gnu.org>
49006
49007         * modules/iconv_open: Add $(srcdir)/ to source directory
49008         references in Makefile fragments that call gperf, to fix VPATH
49009         builds.
49010
49011 2007-04-03  Bruno Haible  <bruno@clisp.org>
49012
49013         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49014         * lib/ldexpl.c: Undo last change.
49015
49016 2007-04-03  Bruno Haible  <bruno@clisp.org>
49017
49018         * modules/printf-frexpl (Depends-on): Undo last change.
49019         (Files): Add m4/ldexpl.m4.
49020
49021 2007-04-03  Bruno Haible  <bruno@clisp.org>
49022
49023         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49024         * modules/isnanl (Link): New section.
49025
49026         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49027         * modules/frexp (Link): New section.
49028
49029         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49030         * modules/frexpl (Link): New section.
49031
49032         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49033         * modules/ldexpl (Link): New section.
49034
49035 2007-04-03  Bruno Haible  <bruno@clisp.org>
49036
49037         * modules/TEMPLATE-EXTENDED: New file.
49038         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49039
49040 2007-04-03  Bruno Haible  <bruno@clisp.org>
49041
49042         * DEPENDENCIES: New file.
49043         Suggested by Simon Josefsson.
49044
49045 2007-04-03  Bruno Haible  <bruno@clisp.org>
49046
49047         * doc/gnulib.texi: Escape @.
49048
49049 2007-04-03  James Youngman  <jay@gnu.org>
49050         and Paul Eggert  <eggert@cs.ucla.edu>
49051
49052         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49053         birthtime on all systems that have birthtime, not just those which
49054         use st_birthtimensec rather than st_birthtim.  Putting zero in
49055         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49056         that the birth time is not available for files on an NFS mount.
49057
49058 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49059
49060         * modules/memxor: Move back from crypto/, suggested by Bruno.
49061         * modules/crypto/hmac-sha1: Fix memxor dependency.
49062
49063         * modules/crypto/gc: Moved from ../.
49064
49065 2007-04-02  Eric Blake  <ebb9@byu.net>
49066
49067         * lib/ldexpl.c (includes): Avoid libm.
49068
49069         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49070
49071 2007-04-02  Bruno Haible  <bruno@clisp.org>
49072
49073         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49074         on IRIX.
49075
49076 2007-04-02  Bruno Haible  <bruno@clisp.org>
49077
49078         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49079         x86 or x86_64 platforms running MacOS X.
49080         Reported by Ryan Schmidt <@ryandesign.com>.
49081
49082 2007-04-02  Bruno Haible  <bruno@clisp.org>
49083
49084         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49085         i386.
49086
49087 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49088
49089         * modules/crypto/arcfour: Moved from ../.
49090         * modules/crypto/arcfour-tests: Moved from ../.
49091         * modules/crypto/arctwo: Moved from ../.
49092         * modules/crypto/arctwo-tests: Moved from ../.
49093         * modules/crypto/des: Moved from ../.
49094         * modules/crypto/des-tests: Moved from ../.
49095         * modules/crypto/gc-arcfour: Moved from ../.
49096         * modules/crypto/gc-arcfour-tests: Moved from ../.
49097         * modules/crypto/gc-arctwo: Moved from ../.
49098         * modules/crypto/gc-arctwo-tests: Moved from ../.
49099         * modules/crypto/gc-des: Moved from ../.
49100         * modules/crypto/gc-des-tests: Moved from ../.
49101         * modules/crypto/gc-hmac-md5: Moved from ../.
49102         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49103         * modules/crypto/gc-hmac-sha1: Moved from ../.
49104         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49105         * modules/crypto/gc-md2: Moved from ../.
49106         * modules/crypto/gc-md2-tests: Moved from ../.
49107         * modules/crypto/gc-md4: Moved from ../.
49108         * modules/crypto/gc-md4-tests: Moved from ../.
49109         * modules/crypto/gc-md5: Moved from ../.
49110         * modules/crypto/gc-md5-tests: Moved from ../.
49111         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49112         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49113         * modules/crypto/gc-random: Moved from ../.
49114         * modules/crypto/gc-rijndael: Moved from ../.
49115         * modules/crypto/gc-rijndael-tests: Moved from ../.
49116         * modules/crypto/gc-sha1: Moved from ../.
49117         * modules/crypto/gc-sha1-tests: Moved from ../.
49118         * modules/crypto/gc-tests: Moved from ../.
49119         * modules/crypto/hmac-md5: Moved from ../.
49120         * modules/crypto/hmac-md5-tests: Moved from ../.
49121         * modules/crypto/hmac-sha1: Moved from ../.
49122         * modules/crypto/hmac-sha1-tests: Moved from ../.
49123         * modules/crypto/md2: Moved from ../.
49124         * modules/crypto/md2-tests: Moved from ../.
49125         * modules/crypto/md4: Moved from ../.
49126         * modules/crypto/md4-tests: Moved from ../.
49127         * modules/crypto/md5: Moved from ../.
49128         * modules/crypto/md5-tests: Moved from ../.
49129         * modules/crypto/memxor: Moved from ../.
49130         * modules/crypto/rijndael: Moved from ../.
49131         * modules/crypto/rijndael-tests: Moved from ../.
49132         * modules/crypto/sha1: Moved from ../.
49133
49134 2007-03-30  James Youngman  <jay@gnu.org>
49135
49136         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49137         rename() to change the ctime of a file (because ctime is unaffected
49138         by rename on jfs2 on AIX 5.1).
49139         (main): Start by doing cleanup, in case a previous run failed leaving
49140         test files behind.
49141
49142 2007-03-31  Bruno Haible  <bruno@clisp.org>
49143
49144         Support old proprietary implementations of iconv.
49145         * modules/iconv_open: New file.
49146         * lib/iconv_.h: New file.
49147         * m4/iconv_h.m4: New file.
49148         * lib/iconv_open.c: New file.
49149         * lib/iconv_open-aix.gperf: New file.
49150         * lib/iconv_open-hpux.gperf: New file.
49151         * lib/iconv_open-irix.gperf: New file.
49152         * lib/iconv_open-osf.gperf: New file.
49153         * m4/iconv_open.m4: New file.
49154         * modules/linebreak (Depends-on): Add iconv_open.
49155         * modules/striconv (Depends-on): Likewise.
49156         * modules/striconveh (Depends-on): Likewise.
49157         * modules/unicodeio (Depends-on): Likewise.
49158         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49159         (iconv_t)(-1).
49160         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49161         conversion if cd is (iconv_t)(-1).
49162         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49163         is not possible.
49164
49165 2007-03-31  Bruno Haible  <bruno@clisp.org>
49166
49167         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49168         work on Solaris either. Protect also second use of "autodetect_jp".
49169
49170 2007-03-31  Bruno Haible  <bruno@clisp.org>
49171
49172         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49173         the function is not present.
49174
49175 2007-03-31  Bruno Haible  <bruno@clisp.org>
49176
49177         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49178         the function is not present.
49179
49180 2007-03-31  Bruno Haible  <bruno@clisp.org>
49181
49182         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49183         a bug in HP-UX iconv_open().
49184
49185 2007-03-31  Bruno Haible  <bruno@clisp.org>
49186
49187         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49188         (Mathematics <math.h>): New section, add fpieee.
49189         (Input/output <stdio.h>): Add fseterr.
49190         (Mathematics <math.h>): New section, add printf-frexp.
49191         (Container data structures): Add sublist.
49192         (Core language properties): Add fpucw, inline.
49193         (Functions for greatest-width integer types <inttypes.h>): Add
49194         imaxabs, imaxdiv, inttypes.
49195         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49196         isnanl-nolibm, ldexp.
49197         (Mathematics <math.h>): New section, add printf-frexpl.
49198         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49199         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49200         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49201         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49202         (Unicode string functions): Add unistr/u*-mbtoucr.
49203         (Java): Add javacomp-script, javaexec-script.
49204         (C#): Add csharpcomp-script, csharpexec-script.
49205         (Support for building libraries and executables): Add havelib,
49206         relocatable-*.
49207         (Support for maintaining and releasing projects): Renamed from
49208         'Support for maintaining and release projects'. Add announce-gen.
49209
49210 2007-03-31  Bruno Haible  <bruno@clisp.org>
49211
49212         * README: Talk primarily about git.
49213         (git and CVS): Renamed from CVS.
49214         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49215         gnulib is available through git.
49216         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49217
49218 2007-03-30  Bruno Haible  <bruno@clisp.org>
49219
49220         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49221         * lib/poll_.h: Likewise.
49222         * lib/stat_.h: Likewise.
49223         * lib/sys_time_.h: Likewise.
49224         * lib/sysexit_.h: Likewise.
49225         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49226         * lib/stdbool_.h: Likewise.
49227         * lib/byteswap_.h: Add double-inclusion guard.
49228
49229 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49230
49231         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49232
49233 2007-03-30  Karl Berry  <karl@gnu.org>
49234
49235         * config/srclist-update: double space after USA in the license
49236         substitution, since that's how it's usually (?) written.
49237
49238 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49239
49240         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49241         reported by Bruno Haible.
49242
49243 2007-03-29  Bruno Haible  <bruno@clisp.org>
49244
49245         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49246         a bug in AIX iconv().
49247
49248 2007-03-29  Bruno Haible  <bruno@clisp.org>
49249
49250         * modules/ldexpl-tests: New file.
49251         * tests/test-ldexpl.c: New file.
49252
49253 2007-03-29  Bruno Haible  <bruno@clisp.org>
49254
49255         * lib/ldexpl.c: Include fpucw.h.
49256         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49257         multiplication.
49258         * modules/ldexpl (Depends-on): Add fpucw.
49259
49260 2007-03-29  Bruno Haible  <bruno@clisp.org>
49261
49262         * modules/ldexpl: New file.
49263         * m4/ldexpl.m4: New file.
49264         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49265         set.
49266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49267         REPLACE_LDEXPL.
49268         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49269         REPLACE_LDEXPL.
49270         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49271         gl_FUNC_LDEXPL_WORKS.
49272         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49273         * modules/mathl (Files): Remove lib/ldexpl.c.
49274         (Depends-on): Add ldexpl.
49275
49276 2007-03-29  Bruno Haible  <bruno@clisp.org>
49277
49278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49279
49280 2007-03-29  Bruno Haible  <bruno@clisp.org>
49281
49282         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49283         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49284         and possibly also HP-UX.
49285         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49286         work on AIX, IRIX, HP-UX, OSF/1.
49287         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49288         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49289         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49290         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49291         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49292         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49293
49294 2007-03-29  Bruno Haible  <bruno@clisp.org>
49295
49296         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49297
49298 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49299
49300         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49301         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49302
49303 2007-03-29  Eric Blake  <ebb9@byu.net>
49304
49305         * lib/acl-internal.h: Remove redundant include.
49306         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49307         Cygwin when a file is locked.
49308
49309 2007-03-29  Bruno Haible  <bruno@clisp.org>
49310
49311         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49312         file.
49313         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49314
49315 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49316
49317         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49318         try to remove a parent directory if the child couldn't be removed
49319         (except for the first rmdir, which could fail because the child
49320         doesn't exist).  Problem reported by Jeff Blaine in
49321         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49322
49323 2007-03-28  Bruno Haible  <bruno@clisp.org>
49324
49325         * lib/striconveh.c (utf8conv_carefully): New function.
49326         (mem_cd_iconveh_internal): Invoke it.
49327
49328 2007-03-28  Bruno Haible  <bruno@clisp.org>
49329
49330         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49331         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49332         input.
49333         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49334         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49335         unistr/u8-uctomb.
49336
49337 2007-03-28  Bruno Haible  <bruno@clisp.org>
49338
49339         * modules/unistr/u8-mbtoucr: New file.
49340         * lib/unistr/u8-mbtoucr.c: New file.
49341         * modules/unistr/u16-mbtoucr: New file.
49342         * lib/unistr/u16-mbtoucr.c: New file.
49343         * modules/unistr/u16-mbtoucr: New file.
49344         * lib/unistr/u16-mbtoucr.c: New file.
49345         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49346
49347 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49348             Bruno Haible  <bruno@clisp.org>
49349
49350         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
49351         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
49352         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
49353
49354         * m4/stdio_h.m4: Add stubs for vasprintf too.
49355
49356         * modules/stdio: Support vasprintf in sed command.
49357
49358         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49359         vasprintf.h.  Add stdio module indicator.
49360
49361         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49362         vasprintf.h.
49363
49364         * lib/vasprintf.h: File removed.
49365
49366         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49367         * lib/vasprintf.c: Ditto.
49368         * lib/xvasprintf.c: Ditto.
49369         * tests/test-vasprintf-posix.c: Ditto.
49370         * tests/test-vasprintf.c: Ditto.
49371
49372 2007-03-27  Bruno Haible  <bruno@clisp.org>
49373
49374         Make vasnprintf multithread-safe.
49375         * lib/vasnprintf.c (decimal_point_char): New function.
49376         (VASNPRINTF): Use it.
49377         Suggested by Simon Josefsson.
49378
49379 2007-03-27  Eric Blake  <ebb9@byu.net>
49380
49381         Support sub-second birthtime on cygwin.
49382         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49383         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49384         (get_stat_birthtime): Also work with st_birthtim.
49385
49386 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49387
49388         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49389         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49390         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49391         (get_stat_birthtime_ns): Simplify compile-time tests.
49392         (get_stat_birthtime): Change the API to look like
49393         get_stat_mtime etc., except return a negative tv_nsec on error.
49394         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49395         Don't check for "spare" fields.
49396         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49397         or for struct stat.st_birthtime, as these tests aren't used.
49398         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49399
49400 2007-03-27  Bruno Haible  <bruno@clisp.org>
49401
49402         * lib/stat-time.h: Include <sys/stat.h>.
49403
49404 2007-03-27  James Youngman  <jay@gnu.org>
49405
49406         * lib/stat-time.h (get_stat_birthtime): New function for
49407           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49408         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49409           and its variants.
49410         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49411         * modules/stat-time-test: New file.
49412         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49413
49414 2007-03-26  Bruno Haible  <bruno@clisp.org>
49415
49416         Better support of signalling NaNs.
49417         * lib/atanl.c: Include isnanl.h.
49418         (atanl): Perform test for NaN at the beginning of the function and
49419         through a call to isnanl.
49420         * lib/cosl.c: Include isnanl.h.
49421         (cosl): Perform test for NaN at the beginning of the function and
49422         through a call to isnanl.
49423         * lib/ldexpl.c: Include isnanl.h.
49424         (ldexpl): Perform test for NaN through a call to isnanl.
49425         * lib/logl.c: Include isnanl.h.
49426         (logl): Perform test for NaN at the beginning of the function and
49427         through a call to isnanl.
49428         * lib/sinl.c: Include isnanl.h.
49429         (sinl): Perform test for NaN at the beginning of the function and
49430         through a call to isnanl.
49431         * lib/sqrtl.c: Include isnanl.h.
49432         (sqrtl): Perform test for NaN at the beginning of the function and
49433         through a call to isnanl.
49434         * lib/tanl.c: Include isnanl.h.
49435         (tanl): Perform test for NaN at the beginning of the function and
49436         through a call to isnanl.
49437         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
49438         * modules/mathl (Depends-on): Add isnanl.
49439
49440 2007-03-26  Eric Blake  <ebb9@byu.net>
49441
49442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
49443         regression in logic sense of previous patch.
49444
49445 2007-03-26  Bruno Haible  <bruno@clisp.org>
49446
49447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
49448         unportable shell command "if ! ...".
49449         Reported by Ralf Wildenhues.
49450
49451 2007-03-25  Bruno Haible  <bruno@clisp.org>
49452
49453         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
49454         <sysexits.h> file, and only add EX_CONFIG.
49455         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
49456         absolute file name and whether it is sufficient. Substitute also
49457         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
49458         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
49459         ABSOLUTE_SYSEXITS_H into sysexits.h.
49460
49461 2007-03-25  Bruno Haible  <bruno@clisp.org>
49462
49463         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
49464         hints is NULL.
49465
49466 2007-03-25  Bruno Haible  <bruno@clisp.org>
49467
49468         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
49469         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
49470
49471 2007-03-25  Bruno Haible  <bruno@clisp.org>
49472
49473         * lib/vasnprintf.c: Include langinfo.h.
49474         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
49475         multithread-safe.
49476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
49477         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
49478         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49479         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49481         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49482         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49483         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
49484         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49485         Reported by Simon Josefsson.
49486
49487 2007-03-25  Bruno Haible  <bruno@clisp.org>
49488
49489         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
49490         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
49491         * modules/vasnprintf (Depends-on): Add stdint.
49492
49493 2007-03-25  Bruno Haible  <bruno@clisp.org>
49494
49495         * modules/fpieee: New file.
49496         * m4/fpieee.m4: New file.
49497         * modules/isnan-nolibm (Depends-on): Add fpieee.
49498         * modules/isnanl-nolibm (Depends-on): Add fpieee.
49499         * modules/isnanl (Depends-on): Add fpieee.
49500
49501 2007-03-25  Bruno Haible  <bruno@clisp.org>
49502
49503         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
49504
49505 2007-03-25  Bruno Haible  <bruno@clisp.org>
49506
49507         Avoid test failures on IRIX 6.5.
49508         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
49509         (main): Use it.
49510         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
49511         macros.
49512         (main): Use them.
49513
49514 2007-03-25  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
49517         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
49518         exists but doesn't work.
49519         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
49520         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
49521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
49522         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
49523
49524 2007-03-25  Bruno Haible  <bruno@clisp.org>
49525
49526         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
49527         returns inf. Needed on IRIX 6.5.
49528
49529 2007-03-25  Bruno Haible  <bruno@clisp.org>
49530
49531         * tests/test-frexpl.c: Include isnanl-nolibm.h.
49532         (main): Use isnanl instead of x != x idiom.
49533         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
49534
49535         * tests/test-frexp.c: Include isnan.h.
49536         (main): Use isnan instead of x != x idiom.
49537         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
49538
49539 2007-03-25  Bruno Haible  <bruno@clisp.org>
49540
49541         * tests/test-frexp.c (NaN): New function/macro.
49542         (main): Use it instead of 0.0 / 0.0.
49543         * tests/test-isnan.c (NaN): New function/macro.
49544         (main): Use it instead of 0.0 / 0.0.
49545         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
49546         (test_function): Use it instead of 0.0 / 0.0.
49547         * tests/test-vasprintf-posix.c (NaN): New function/macro.
49548         (test_function): Use it instead of 0.0 / 0.0.
49549         * tests/test-snprintf-posix.h (NaN): New function/macro.
49550         (test_function): Use it instead of 0.0 / 0.0.
49551         * tests/test-sprintf-posix.h (NaN): New function/macro.
49552         (test_function): Use it instead of 0.0 / 0.0.
49553         * tests/test-fprintf-posix.h (NaN): New function/macro.
49554         (test_function): Use it instead of 0.0 / 0.0.
49555         * tests/test-printf-posix.h (NaN): New function/macro.
49556         (test_function): Use it instead of 0.0 / 0.0.
49557
49558         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
49559
49560 2007-03-25  Bruno Haible  <bruno@clisp.org>
49561
49562         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
49563
49564 2007-03-25  Bruno Haible  <bruno@clisp.org>
49565
49566         * lib/regexec.c (merge_state_with_log): Make static.
49567
49568 2007-03-25  Bruno Haible  <bruno@clisp.org>
49569
49570         * lib/trigl.c (kernel_rem_pio2): Make static.
49571
49572 2007-03-25  Bruno Haible  <bruno@clisp.org>
49573
49574         * lib/sincosl.c (sincosl_table): Make static.
49575
49576 2007-03-25  Bruno Haible  <bruno@clisp.org>
49577
49578         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
49579         if the compiler does not support C99.
49580
49581 2007-03-25  Bruno Haible  <bruno@clisp.org>
49582
49583         * modules/time (Makefile.am): Ensure all rule action lines start with a
49584         tab.
49585
49586 2007-03-24  Bruno Haible  <bruno@clisp.org>
49587
49588         * modules/tsearch-tests: New file.
49589         * tests/test-tsearch.sh: New file.
49590         * tests/test-tsearch.c: New file, mostly copied from glibc.
49591
49592         * modules/search-tests: New file.
49593         * tests/test-search.c: New file.
49594
49595         * modules/search: New file.
49596         * lib/search_.h: New file, incorporating lib/tsearch.h.
49597         * m4/search_h.m4: New file.
49598         * lib/tsearch.h: Remove file.
49599         * lib/tsearch.c: Include search.h instead of tsearch.h.
49600         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
49601         HAVE_TSEARCH.
49602         * modules/tsearch (Files): Remove lib/tsearch.h.
49603         (Depends-on): Add search.
49604         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
49605         (Include): Change tsearch.h into search.h.
49606
49607 2007-03-24  Bruno Haible  <bruno@clisp.org>
49608
49609         * modules/fpucw: New file.
49610         * lib/fpucw.h: New file.
49611         * lib/frexp.c: Include fpucw.h.
49612         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49613         (FUNC): Use them.
49614         * lib/printf-frexp.c: Include fpucw.h.
49615         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49616         (FUNC): Use them.
49617         * lib/vasnprintf.c: Include fpucw.h.
49618         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
49619         'long double' calculations.
49620         * tests/test-frexpl.c: Include fpucw.h.
49621         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49622         * tests/test-printf-frexpl.c: Include fpucw.h.
49623         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49624         * modules/frexpl (Depends-on): Add fpucw.
49625         * modules/printf-frexpl (Depends-on): Likewise.
49626         * modules/fprintf-posix (Depends-on): Likewise.
49627         * modules/snprintf-posix (Depends-on): Likewise.
49628         * modules/sprintf-posix (Depends-on): Likewise.
49629         * modules/vasnprintf-posix (Depends-on): Likewise.
49630         * modules/vasprintf-posix (Depends-on): Likewise.
49631         * modules/vfprintf-posix (Depends-on): Likewise.
49632         * modules/vsnprintf-posix (Depends-on): Likewise.
49633         * modules/vsprintf-posix (Depends-on): Likewise.
49634         * modules/frexpl-tests (Depends-on): Likewise.
49635         * modules/printf-frexpl-tests (Depends-on): Likewise.
49636
49637 2007-03-24  Bruno Haible  <bruno@clisp.org>
49638
49639         * lib/float+.h: New file.
49640         * lib/isnan.c: Include float+.h.
49641         (SIZE): New macro.
49642         (FUNC): Compare only SIZE bytes of the value.
49643         * lib/vasnprintf.c: Include float+.h.
49644         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
49645         SIZEOF_LDBL or SIZEOF_DBL bytes.
49646         * modules/isnan-nolibm (Files): Add lib/float+.h.
49647         * modules/isnanl-nolibm (Files): Add lib/float+.h.
49648         * modules/isnanl (Files): Add lib/float+.h.
49649         * modules/vasnprintf (Files): Add lib/float+.h.
49650
49651 2007-03-24  Bruno Haible  <bruno@clisp.org>
49652
49653         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
49654         include isnanl-nolibm.h.
49655
49656 2007-03-24  Bruno Haible  <bruno@clisp.org>
49657
49658         * tests/test-read-file.c (main): Don't produce spurious output for
49659         expected situations. Make the test fail if it encountered unexpected
49660         results.
49661
49662 2007-03-24  Bruno Haible  <bruno@clisp.org>
49663
49664         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
49665         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
49666
49667 2007-03-24  Bruno Haible  <bruno@clisp.org>
49668
49669         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
49670
49671 2007-03-24  Bruno Haible  <bruno@clisp.org>
49672
49673         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
49674         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
49675
49676         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
49677         * modules/utf8-ucs4: Turn into a symbolic link to module
49678         unistr/u8-mbtouc.
49679
49680         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
49681         utf8-ucs4-unsafe.
49682         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
49683         unistr/u8-mbtouc-unsafe.
49684
49685         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
49686         * modules/utf16-ucs4: Turn into a symbolic link to module
49687         unistr/u16-mbtouc.
49688
49689         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
49690         utf16-ucs4-unsafe.
49691         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
49692         unistr/u16-mbtouc-unsafe.
49693
49694         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
49695         * modules/ucs4-utf8: Turn into a symbolic link to module
49696         unistr/u8-ubtomb.
49697
49698         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
49699         * modules/ucs4-utf16: Turn into a symbolic link to module
49700         unistr/u16-ubtomb.
49701
49702 2007-03-24  Bruno Haible  <bruno@clisp.org>
49703
49704         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
49705         Enable the function only if HAVE_INLINE.
49706         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
49707         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49708         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
49709         Enable the function only if HAVE_INLINE.
49710         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
49711         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49712         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
49713         Enable the function only if HAVE_INLINE.
49714         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
49715         Enable the function only if HAVE_INLINE.
49716         * modules/utf8-ucs4: Update.
49717         * modules/utf8-ucs4-unsafe: Update.
49718         * modules/utf16-ucs4: Update.
49719         * modules/utf16-ucs4-unsafe: Update.
49720         * modules/ucs4-utf8: Update.
49721         * modules/ucs4-utf16: Update.
49722
49723 2007-03-24  Bruno Haible  <bruno@clisp.org>
49724
49725         * lib/utf8-ucs4.h: Remove file.
49726         * lib/utf8-ucs4-unsafe.h: Remove file.
49727         * lib/utf16-ucs4.h: Remove file.
49728         * lib/utf16-ucs4-unsafe.h: Remove file.
49729         * lib/ucs4-utf8.h: Remove file.
49730         * lib/ucs4-utf16.h: Remove file.
49731         * lib/unistr.h: Include their previous contents.
49732         * m4/utf-ucs4.m4: Remove file.
49733         * m4/ucs4-utf.m4: Remove file.
49734         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
49735         (Depends-on): Add unistr/base.
49736         (configure.ac): Remove gl_UTF_UCS4.
49737         (Makefile.am): Update.
49738         (Include): Change to unistr.h.
49739         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
49740         (Depends-on): Add unistr/base.
49741         (configure.ac): Remove gl_UTF_UCS4.
49742         (Makefile.am): Update.
49743         (Include): Change to unistr.h.
49744         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
49745         (Depends-on): Add unistr/base.
49746         (configure.ac): Remove gl_UTF_UCS4.
49747         (Makefile.am): Update.
49748         (Include): Change to unistr.h.
49749         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
49750         (Depends-on): Add unistr/base.
49751         (configure.ac): Remove gl_UTF_UCS4.
49752         (Makefile.am): Update.
49753         (Include): Change to unistr.h.
49754         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
49755         (Depends-on): Add unistr/base.
49756         (configure.ac): Remove gl_UCS4_UTF.
49757         (Makefile.am): Update.
49758         (Include): Change to unistr.h.
49759         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
49760         (Depends-on): Add unistr/base.
49761         (configure.ac): Remove gl_UCS4_UTF.
49762         (Makefile.am): Update.
49763         (Include): Change to unistr.h.
49764         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
49765         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
49766         utf8-ucs4-unsafe.h.
49767         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
49768         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
49769         utf16-ucs4-unsafe.h.
49770         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
49771         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
49772         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
49773         * lib/unistr/u8-strchr.c: Likewise.
49774         * lib/unistr/u8-strrchr.c: Likewise.
49775         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
49776         * lib/unistr/u16-strchr.c: Likewise.
49777         * lib/unistr/u16-strrchr.c: Likewise.
49778         * lib/striconveh.c: Update.
49779         * lib/linebreak.c: Update.
49780
49781 2007-03-24  Bruno Haible  <bruno@clisp.org>
49782
49783         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
49784         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
49785
49786 2007-03-22  Bruno Haible  <bruno@clisp.org>
49787
49788         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
49789
49790 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49791
49792         * MODULES.html.sh (File system functions): New module write-any-file.
49793         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
49794         * m4/write-any-file.m4: New files.
49795
49796 2007-03-23  Eric Blake  <ebb9@byu.net>
49797
49798         * gnulib-tool: Rearrange space-tab sequences, since some editors
49799         like to eat them.
49800
49801 2007-03-23  Eric Blake  <ebb9@byu.net>
49802
49803         * lib/version-etc.c (version_etc_va): Update license wording to
49804         be more concise.  Recommended by Richard Stallman.
49805
49806 2007-03-22  Bruno Haible  <bruno@clisp.org>
49807
49808         * lib/poll.c (MSG_PEEK): New fallback definition.
49809
49810 2007-03-22  Bruno Haible  <bruno@clisp.org>
49811
49812         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
49813         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
49814         (main): Update.
49815         Fixes a compilation error on BeOS.
49816
49817 2007-03-22  Bruno Haible  <bruno@clisp.org>
49818
49819         * modules/frexpl-tests: New file.
49820         * tests/test-frexpl.c: New file.
49821
49822         * modules/frexpl: New file.
49823         * m4/frexpl.m4: New file.
49824         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
49825         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
49826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
49827         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
49828         (Depends-on): Add frexpl. Remove isnanl-nolibm.
49829         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
49830
49831 2007-03-22  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/frexpl.c: Share code with lib/frexp.c.
49834         * modules/mathl (Files): Add lib/frexp.c.
49835         (Depends-on): Add isnanl-nolibm.
49836
49837 2007-03-22  Bruno Haible  <bruno@clisp.org>
49838
49839         * modules/printf-frexp (Files): Add m4/frexp.m4.
49840         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
49841         only if the found frexp function actually works.
49842
49843 2007-03-22  Bruno Haible  <bruno@clisp.org>
49844
49845         * lib/frexp.c: Remove older implementation that uses divisions.
49846
49847 2007-03-21  Bruno Haible  <bruno@clisp.org>
49848
49849         * modules/frexp-tests: New file.
49850         * tests/test-frexp.c: New file.
49851
49852         * modules/frexp: New file.
49853         * lib/frexp.c: New file.
49854         * m4/frexp.m4: New file.
49855         * lib/math_.h (frexp): New declaration.
49856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
49857         REPLACE_FREXP.
49858         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
49859
49860 2007-03-21  Bruno Haible  <bruno@clisp.org>
49861
49862         * modules/isnanl-tests: New file.
49863         * tests/test-isnanl.c: New file.
49864
49865         * modules/isnanl: New file.
49866         * lib/isnanl.h: New file.
49867         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
49868         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
49869         gl_FUNC_ISNANL_WORKS.
49870         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
49871         New macros.
49872
49873 2007-03-21  Bruno Haible  <bruno@clisp.org>
49874
49875         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
49876         lib/isnanl.h.
49877         (Include): Update.
49878         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
49879         * lib/vasnprintf.c: Update.
49880         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
49881         tests/test-isnanl.h, remove tests/test-isnanl.c.
49882         (Makefile.am): Update.
49883         * tests/test-isnanl-nolibm.c: New file.
49884         * tests/test-isnanl.h: New file.
49885         * tests/test-isnanl.c: Remove file.
49886
49887 2007-03-21  Jim Meyering  <jim@meyering.net>
49888
49889         When trying to open ".", treat ESTALE like EACCES.
49890         * lib/savewd.c (savewd_save): Resort to forking not just upon
49891         failure with EACCES, but also when errno is ESTALE.
49892
49893 2007-03-20  Bruno Haible  <bruno@clisp.org>
49894
49895         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
49896         Needed on AIX 5.1. Reported by Matthew Woehlke.
49897
49898 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49899
49900         Suggestions by Bruno Haible:
49901         * lib/acl-internal.h: Include "gettext.h" rather than rolling
49902         our own.
49903         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
49904         * modules/acl (Depends-on): Add gettext.
49905
49906 2007-03-19  Bruno Haible  <bruno@clisp.org>
49907
49908         * modules/iconvme: Remove file.
49909         * lib/iconvme.h: Remove file.
49910         * lib/iconvme.c: Remove file.
49911         * m4/iconvme.m4: Remove file.
49912
49913 2007-03-19  Bruno Haible  <bruno@clisp.org>
49914
49915         * doc/relocatable-maint.texi: Break long shell script line.
49916         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49917
49918 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49919
49920         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
49921         handle file_has_acl.
49922         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
49923         * lib/acl.c: Move header inclusions and related macro defns into
49924         lib/acl-internal.h.
49925         (S_ISLNK): Remove defn, since that's now done for us.
49926         (file_has_acl): Move to lib/file-has-acl.c.
49927         Call acl_trivial if available.  This is the crucial part of the fix.
49928         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
49929         shared within the library.  Rewrite a bit, partly to make it compatible
49930         with the GNU coding style.
49931         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
49932         Remove unnecessary double-quotes.
49933         Don't test for acl_to_text; the build will catch that.
49934         Replace acl_entries if it doesn't exist and it is needed.
49935         Check for -lsec and acl_trivial (as used on Solaris 10).
49936         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
49937         lib/file-has-acl.c.
49938         (Depends-on): Add sys_stat, for S_ISLNK.
49939
49940 2007-03-19  Ben Pfaff  <blp@gnu.org>
49941
49942         * doc/gnulib.texi: Fix typos.
49943         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49944
49945 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49946
49947         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
49948         If size is zero here, buf must be zero.
49949
49950 2007-03-19  Simon Josefsson  <simon@josefsson.org>
49951
49952         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
49953         <bruno@clisp.org>.
49954
49955 2007-03-18  Bruno Haible  <bruno@clisp.org>
49956
49957         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
49958         Suggested by Eric Blake.
49959
49960 2007-03-18  Ben Pfaff  <blp@gnu.org>
49961
49962         * doc/relocatable.texi: Recommend using as prefix a directory
49963         that does not exist and will never be created.  Based on
49964         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
49965         and others.
49966
49967 2007-03-17  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/fchownat.c: Include lchown.h.
49970
49971 2007-03-17  Bruno Haible  <bruno@clisp.org>
49972
49973         Fix endless loop when the given allocated size was > INT_MAX.
49974         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
49975         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
49976         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
49977         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
49978         * lib/sprintf.c (sprintf): Likewise.
49979
49980 2007-03-17  Bruno Haible  <bruno@clisp.org>
49981
49982         * tests/test-argp-2.sh (func_compare): Output a context diff.
49983
49984 2007-03-17  Bruno Haible  <bruno@clisp.org>
49985
49986         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
49987         locale's decimal-point character.
49988
49989 2007-03-17  Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
49992         before comparing it. Needed because on some platforms (e.g. x86) a
49993         'long double' occupies less bytes than sizeof (long double).
49994
49995 2007-03-17  Bruno Haible  <bruno@clisp.org>
49996
49997         * tests/test-crc.c (main): Make printf statements 64-bit clean.
49998         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
49999         * tests/test-getaddrinfo.c (simple): Likewise.
50000         * tests/test-read-file.c (main): Likewise.
50001
50002 2007-03-17  Bruno Haible  <bruno@clisp.org>
50003
50004         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50005
50006 2007-03-17  Bruno Haible  <bruno@clisp.org>
50007
50008         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50009         unused variable.
50010
50011 2007-03-17  Bruno Haible  <bruno@clisp.org>
50012
50013         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50014         * tests/test-c-strncasecmp.c: Likewise.
50015
50016 2007-03-17  Bruno Haible  <bruno@clisp.org>
50017
50018         * modules/stdlib (Depends-on): Add unistd.
50019         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50020         Needed for MacOS X 10.3.
50021
50022 2007-03-17  Bruno Haible  <bruno@clisp.org>
50023
50024         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50025
50026 2007-03-17  Bruno Haible  <bruno@clisp.org>
50027
50028         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50029
50030 2007-03-17  Bruno Haible  <bruno@clisp.org>
50031
50032         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50033         to reflect files copied from gnulib (with or without modifications).
50034         Suggested by Jim Meyering.
50035
50036 2007-03-17  Eric Blake  <ebb9@byu.net>
50037
50038         * NEWS: Document stdlib change from 2007-02-18.
50039
50040 2007-03-17  Jim Meyering  <jim@meyering.net>
50041
50042         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50043         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50044         someone uses a name containing shell meta-characters.
50045         Reported by Alfred M. Szmidt.
50046
50047         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50048
50049 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50050
50051         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50052         and copy gettext configuration files only if configure.ac contains
50053         a use of AM_GNU_GETTEXT_VERSION.
50054
50055 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50056
50057         * build-aux/bootstrap (gnulib_name): New variable.
50058         (gnulib_tool_options): Use it.
50059
50060 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50061
50062         * tests/test-des.c: Use new namespace.
50063
50064 2007-03-15  Bruno Haible  <bruno@clisp.org>
50065
50066         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50067         Reported by James Youngman <jay@gnu.org>.
50068
50069 2007-03-15  Bruno Haible  <bruno@clisp.org>
50070
50071         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50072         declared prototype. Needed with cc on OSF/1 5.1.
50073
50074 2007-03-15  Bruno Haible  <bruno@clisp.org>
50075
50076         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50077         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50078         (struct gl_list_implementation): Add dispose_fn argument to the
50079         'create_empty', 'create' methods.
50080         (struct gl_list_impl_base): Add field 'dispose_fn'.
50081         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50082         argument.
50083         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50084         dispose_fn argument.
50085         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50086         dispose_fn on the dropped values.
50087         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50088         dispose_fn argument.
50089         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50090         dropped values.
50091         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50092         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50093         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50094         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50095         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50096         argument.
50097         (gl_tree_list_free): Call dispose_fn on the dropped values.
50098         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50099         the dropped values.
50100         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50101         Add dispose_fn argument.
50102         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50103         Call dispose_fn on the dropped values.
50104         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50105         Add dispose_fn argument.
50106         (gl_sublist_create): Initialize the 'dispose_fn' field.
50107         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50108         * tests/test-array_list.c (main): Update.
50109         * tests/test-carray_list.c (main): Update.
50110         * tests/test-avltree_list.c (main): Update.
50111         * tests/test-rbtree_list.c (main): Update.
50112         * tests/test-avltreehash_list.c (main): Update.
50113         * tests/test-rbtreehash_list.c (main): Update.
50114         * tests/test-linked_list.c (main): Update.
50115         * tests/test-linkedhash_list.c (main): Update.
50116         * tests/test-array_oset.c (main): Update.
50117
50118 2007-03-15  Bruno Haible  <bruno@clisp.org>
50119
50120         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50121         (gl_oset_create_empty): Add dispose_fn argument.
50122         (struct gl_oset_implementation): Add dispose_fn argument to
50123         'create_empty' method.
50124         (struct gl_oset_impl_base): Add dispose_fn field.
50125         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50126         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50127         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50128         values.
50129         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50130         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50131         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50132         dropped value.
50133         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50134         dropped value.
50135         * tests/test-array_oset.c (main): Update.
50136         * tests/test-avltree_oset.c (main): Update.
50137         * tests/test-rbtree_oset.c (main): Update.
50138         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50139
50140 2007-03-13  Bruno Haible  <bruno@clisp.org>
50141
50142         * tests/test-stdbool.c (i): Update after last patch.
50143
50144 2007-03-12  Bruno Haible  <bruno@clisp.org>
50145
50146         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50147         the iswprint macro. Needed on Solaris 2.5.1.
50148
50149 2007-03-12  Bruno Haible  <bruno@clisp.org>
50150
50151         * tests/test-printf-frexp.c (main): Declare x as volatile.
50152
50153 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50154
50155         * doc/gnulib.texi (Build robot for gnulib): New section.
50156
50157 2007-03-12  Jim Meyering  <jim@meyering.net>
50158
50159         * build-aux/bootstrap: New file.
50160         * build-aux/bootstrap.conf: New file, from coreutils.
50161
50162 2007-03-11  Bruno Haible  <bruno@clisp.org>
50163
50164         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50165
50166 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50167
50168         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50169         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50170         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50171
50172 2007-03-11  Bruno Haible  <bruno@clisp.org>
50173
50174         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50175         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50176
50177 2007-03-11  Bruno Haible  <bruno@clisp.org>
50178
50179         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50180         formula. Needed for SunPRO C 5.0.
50181
50182 2007-03-11  Bruno Haible  <bruno@clisp.org>
50183
50184         * modules/long-options (Depends-on): Add getopt.
50185
50186 2007-03-11  Bruno Haible  <bruno@clisp.org>
50187
50188         * modules/modechange (Depends-on): Add stdbool.
50189
50190 2007-03-11  Bruno Haible  <bruno@clisp.org>
50191
50192         * modules/i-ring (Depends-on): Add stdbool.
50193
50194 2007-03-11  Bruno Haible  <bruno@clisp.org>
50195
50196         * modules/gc-des (Depends-on): Add stdbool.
50197
50198 2007-03-11  Bruno Haible  <bruno@clisp.org>
50199
50200         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50201
50202 2007-03-11  Bruno Haible  <bruno@clisp.org>
50203
50204         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50205
50206 2007-03-11  Bruno Haible  <bruno@clisp.org>
50207
50208         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50209
50210 2007-03-11  Bruno Haible  <bruno@clisp.org>
50211
50212         * lib/vasnprintf.c (sprintf): Undefine.
50213
50214 2007-03-11  Bruno Haible  <bruno@clisp.org>
50215
50216         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50217         initializers in SunPRO C and Compaq C compilers.
50218
50219 2007-03-11  Bruno Haible  <bruno@clisp.org>
50220
50221         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50222         decrementing code ANSI C compliant.
50223
50224 2007-03-11  Bruno Haible  <bruno@clisp.org>
50225
50226         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50227         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50228
50229 2007-03-11  Bruno Haible  <bruno@clisp.org>
50230
50231         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50232         <stdbool.h> substitute doesn't pass.
50233
50234 2007-03-11  Bruno Haible  <bruno@clisp.org>
50235
50236         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50237
50238 2007-03-11  Bruno Haible  <bruno@clisp.org>
50239
50240         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50241         script, for submission to autobuild.josefsson.org.
50242
50243 2007-03-10  Bruno Haible  <bruno@clisp.org>
50244
50245         * modules/canonicalize-lgpl-tests: New file.
50246         * tests/test-canonicalize-lgpl.sh: New file.
50247         * tests/test-canonicalize-lgpl.c: New file.
50248
50249         * modules/c-strcase-tests: New file.
50250         * tests/test-c-strcase.sh: New file.
50251         * tests/test-c-strcasecmp.c: New file.
50252         * tests/test-c-strncasecmp.c: New file.
50253
50254         * modules/atexit-tests: New file.
50255         * tests/test-atexit.sh: New file.
50256         * tests/test-atexit.c: New file.
50257
50258 2007-03-10  Bruno Haible  <bruno@clisp.org>
50259
50260         * tests/test-binary-io.sh: Use temporary filenames that are not so
50261         likely to clash with those of other tests (in a parallel make).
50262         * tests/test-binary-io.c: Likewise.
50263
50264 2007-03-10  Bruno Haible  <bruno@clisp.org>
50265
50266         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50267         fallback; use #error instead.
50268         Suggested by Simon Josefsson.
50269
50270 2007-03-10  Bruno Haible  <bruno@clisp.org>
50271
50272         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50273         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50274         first and the last.
50275
50276 2007-03-10  Bruno Haible  <bruno@clisp.org>
50277
50278         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50279
50280 2007-03-10  Bruno Haible  <bruno@clisp.org>
50281
50282         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50283         "make distcheck".
50284         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50285         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50286         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50287
50288 2007-03-10  Bruno Haible  <bruno@clisp.org>
50289
50290         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50291         variable.
50292         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50293         variable.
50294
50295 2007-03-09  Eric Blake  <ebb9@byu.net>
50296         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50297
50298         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50299         types are not being provided by gnulib.
50300         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50301         types are supported.
50302
50303 2007-03-10  Bruno Haible  <bruno@clisp.org>
50304
50305         * lib/stdio_.h (__attribute__): New macro.
50306         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50307         vsprintf): Specify __attribute__ __format__ for GCC.
50308         Suggested by Eric Blake.
50309
50310 2007-03-09  Bruno Haible  <bruno@clisp.org>
50311
50312         * modules/printf-posix-tests: New file.
50313         * tests/test-printf-posix.sh: New file.
50314         * tests/test-printf-posix.c: New file.
50315
50316         * modules/printf-posix: New file.
50317         * lib/printf.c: New file.
50318         * m4/printf-posix-rpl.m4: New file.
50319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50320         REPLACE_PRINTF.
50321         * lib/stdio_.h (printf): New declaration.
50322         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50323         ____strfmon____): New macros.
50324         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50325         REPLACE_PRINTF.
50326
50327 2007-03-09  Bruno Haible  <bruno@clisp.org>
50328
50329         * tests/test-vasnprintf-posix2.sh: New file.
50330         * tests/test-vasnprintf-posix2.c: New file.
50331         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50332         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50333         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50334
50335         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50336         a locale dependent decimal point, rather than always '.'.
50337
50338 2007-03-09  Eric Blake  <ebb9@byu.net>
50339
50340         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50341         spite of platforms like Tandem/NSK that define it to -1.
50342
50343 2007-03-08  Bruno Haible  <bruno@clisp.org>
50344
50345         * modules/vprintf-posix-tests: New file.
50346         * tests/test-vprintf-posix.sh: New file.
50347         * tests/test-vprintf-posix.c: New file.
50348         * tests/test-printf-posix.h: New file.
50349
50350         * modules/vprintf-posix: New file.
50351         * lib/vprintf.c: New file.
50352         * m4/vprintf-posix.m4: New file.
50353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50354         REPLACE_VPRINTF.
50355         * lib/stdio_.h (vprintf): New declaration.
50356         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50357         REPLACE_VPRINTF.
50358
50359 2007-03-08  Bruno Haible  <bruno@clisp.org>
50360
50361         * modules/fprintf-posix-tests: New file.
50362         * tests/test-fprintf-posix.sh: New file.
50363         * tests/test-fprintf-posix.c: New file.
50364
50365         * modules/fprintf-posix: New file.
50366         * lib/fprintf.c: New file.
50367         * m4/fprintf-posix.m4: New file.
50368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50369         REPLACE_FPRINTF.
50370         * lib/stdio_.h (fprintf): New declaration.
50371         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50372         REPLACE_FPRINTF.
50373
50374 2007-03-08  Bruno Haible  <bruno@clisp.org>
50375
50376         * modules/vfprintf-posix-tests: New file.
50377         * tests/test-vfprintf-posix.sh: New file.
50378         * tests/test-vfprintf-posix.c: New file.
50379         * tests/test-fprintf-posix.h: New file.
50380         * tests/test-fprintf-posix.out: New file.
50381
50382         * modules/vfprintf-posix: New file.
50383         * lib/vfprintf.c: New file.
50384         * m4/vfprintf-posix.m4: New file.
50385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50386         REPLACE_VFPRINTF.
50387         * lib/stdio_.h (vfprintf): New declaration.
50388         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50389         REPLACE_VFPRINTF.
50390
50391 2007-03-08  Bruno Haible  <bruno@clisp.org>
50392
50393         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50394
50395 2007-03-08  Bruno Haible  <bruno@clisp.org>
50396
50397         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50398         instead of 'expr' invocations.
50399         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50400         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50401         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50402         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50403         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50404         Suggested by Paul Eggert.
50405
50406 2007-03-08  Bruno Haible  <bruno@clisp.org>
50407
50408         * modules/fseterr-tests: New file.
50409         * tests/test-fseterr.c: New file.
50410
50411         * modules/fseterr: New file.
50412         * lib/fseterr.h: New file.
50413         * lib/fseterr.c: New file.
50414
50415 2007-03-08  Bruno Haible  <bruno@clisp.org>
50416
50417         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
50418         * lib/getopt_.h: Likewise.
50419         * lib/mbswidth.h: Likewise.
50420         * lib/setenv.h: Likewise.
50421         * lib/vasnprintf.h: Likewise.
50422         * lib/vasprintf.h: Likewise.
50423         * lib/verror.h: Likewise.
50424         * lib/xsetenv.h: Likewise.
50425         * lib/xvasprintf.h: Likewise.
50426
50427 2007-03-08  Jim Meyering  <jim@meyering.net>
50428
50429         * users.txt: Add parted.
50430
50431         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
50432
50433 2007-03-07  Bruno Haible  <bruno@clisp.org>
50434
50435         * m4/printf.m4: Make the shell script snippets copy&pastable.
50436
50437 2007-03-02  Bruno Haible  <bruno@clisp.org>
50438
50439         * lib/netinet_in_.h: New file.
50440         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
50441         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
50442         * modules/netinet_in (Files): Add lib/netinet_in_.h.
50443         (Depends-on): Add absolute-header.
50444         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
50445         into netinet/in.h.
50446
50447 2007-03-03  Bruno Haible  <bruno@clisp.org>
50448
50449         * lib/sys_select_.h: New file.
50450         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
50451         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
50452         * modules/sys_select (Files): Add lib/sys_select_.h.
50453         (Depends-on): Add absolute-header.
50454         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
50455         into sys/select.h.
50456
50457 2007-03-02  Bruno Haible  <bruno@clisp.org>
50458
50459         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
50460         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
50461         values.
50462         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
50463         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
50464         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
50465         * modules/sys_socket (Depends-on): Add absolute-header.
50466         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
50467         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
50468         (Include): Remove requirement of inclusion of <sys/types.h>.
50469
50470 2007-03-02  Bruno Haible  <bruno@clisp.org>
50471
50472         * lib/byteswap_.h (bswap_32): Fix formula.
50473
50474 2007-03-06  Bruno Haible  <bruno@clisp.org>
50475
50476         * modules/sprintf-posix-tests: New file.
50477         * tests/test-sprintf-posix.c: New file.
50478
50479         * modules/sprintf-posix: New file.
50480         * lib/sprintf.c: New file.
50481         * m4/sprintf-posix.m4: New file.
50482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
50483         REPLACE_SPRINTF.
50484         * lib/stdio_.h (sprintf): New declaration.
50485         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
50486         REPLACE_SPRINTF.
50487
50488 2007-03-06  Bruno Haible  <bruno@clisp.org>
50489
50490         * modules/vsprintf-posix-tests: New file.
50491         * tests/test-vsprintf-posix.c: New file.
50492         * tests/test-sprintf-posix.h: New file.
50493
50494         * modules/vsprintf-posix: New file.
50495         * lib/vsprintf.c: New file.
50496         * m4/vsprintf-posix.m4: New file.
50497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
50498         REPLACE_VSPRINTF.
50499         * lib/stdio_.h (vsprintf): New declaration.
50500         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
50501         REPLACE_VSPRINTF.
50502
50503 2007-03-06  Bruno Haible  <bruno@clisp.org>
50504
50505         * modules/vsnprintf (Depend-on): Remove minmax.
50506
50507 2007-03-06  Bruno Haible  <bruno@clisp.org>
50508
50509         * modules/snprintf-posix-tests: New file.
50510         * tests/test-snprintf-posix.c: New file.
50511
50512         * modules/snprintf-posix: New file.
50513         * m4/snprintf-posix.m4: New file.
50514         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
50515         gl_FUNC_SNPRINTF.
50516         (gl_FUNC_SNPRINTF): Invoke it.
50517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
50518         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
50519         is set.
50520         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
50521
50522 2007-03-06  Bruno Haible  <bruno@clisp.org>
50523
50524         * modules/vsnprintf-posix-tests: New file.
50525         * tests/test-vsnprintf-posix.c: New file.
50526         * tests/test-snprintf-posix.h: New file.
50527
50528         * modules/vsnprintf-posix: New file.
50529         * m4/vsnprintf-posix.m4: New file.
50530         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
50531         gl_FUNC_VSNPRINTF.
50532         (gl_FUNC_VSNPRINTF): Invoke it.
50533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
50534         * lib/stdio_.h (vsnprintf): Define as a replacement if
50535         REPLACE_VSNPRINTF is set.
50536         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
50537
50538 2007-03-06  Bruno Haible  <bruno@clisp.org>
50539
50540         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
50541         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
50542
50543 2007-03-06  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
50546         (asinl): Declare also if HAVE_DECL_ASINL is set.
50547         (atanl): Declare also if HAVE_DECL_ATANL is set.
50548         (ceill): Declare also if HAVE_DECL_CEILL is set.
50549         (cosl): Declare also if HAVE_DECL_COSL is set.
50550         (expl): Declare also if HAVE_DECL_EXPL is set.
50551         (floorl): Declare also if HAVE_DECL_FLOORL is set.
50552         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
50553         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
50554         (logl): Declare also if HAVE_DECL_LOGL is set.
50555         (sinl): Declare also if HAVE_DECL_SINL is set.
50556         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
50557         (tanl): Declare also if HAVE_DECL_TANL is set.
50558         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
50559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
50560         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
50561         declaration of frexpl, ldexpl.
50562         * modules/printf-frexpl (Depends-on): Add math.
50563         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
50564
50565 2007-03-05  Bruno Haible  <bruno@clisp.org>
50566
50567         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
50568         frexpl and ldexpl are declared.
50569         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
50570
50571 2007-03-05  Bruno Haible  <bruno@clisp.org>
50572
50573         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
50574         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
50575
50576 2007-03-05  Bruno Haible  <bruno@clisp.org>
50577
50578         * lib/stdio_.h: Include <stddef.h>.
50579
50580 2007-03-05  Bruno Haible  <bruno@clisp.org>
50581
50582         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
50583
50584 2007-03-05  Bruno Haible  <bruno@clisp.org>
50585
50586         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
50587         NetBSD 4, from Ralf Wildenhues.
50588
50589 2007-03-04  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/vasprintf.h: Update #if logic for the case when the functions
50592         exist but are overridden.
50593
50594 2007-03-04  Bruno Haible  <bruno@clisp.org>
50595
50596         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
50597         implementations: glibc-2.4 and MacOS X 10.3.
50598         * tests/test-vasnprintf-posix.c (test_function): Test also the case
50599         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
50600         * tests/test-vasprintf-posix.c (test_function): Likewise.
50601
50602 2007-03-04  Bruno Haible  <bruno@clisp.org>
50603
50604         * modules/vasprintf-posix-tests: New file.
50605         * tests/test-vasprintf-posix.c: New file.
50606
50607         * modules/vasprintf-posix: New file.
50608         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
50609         defined.
50610         * m4/vasprintf-posix.m4: New file.
50611         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
50612         gl_FUNC_VASPRINTF.
50613         (gl_FUNC_VASPRINTF): Invoke it.
50614         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
50615         here.
50616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
50617
50618 2007-03-04  Bruno Haible  <bruno@clisp.org>
50619
50620         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
50621         REPLACE_GETTIMEOFDAY.
50622         * modules/sys_time (Makefile.am): Likewise.
50623         * m4/sys_time_h.m4: Likewise.
50624         * m4/gettimeofday.m4: Likewise.
50625
50626 2007-03-04  Bruno Haible  <bruno@clisp.org>
50627
50628         * modules/vasnprintf-posix-tests: New file.
50629         * tests/test-vasnprintf-posix.c: New file.
50630
50631         * modules/vasnprintf-posix: New file.
50632         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
50633         printf-frexpl.h.
50634         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
50635         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
50636         REPLACE_VASNPRINTF is defined.
50637         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
50638         gl_FUNC_VASNPRINTF.
50639         (gl_FUNC_VASNPRINTF): Invoke it.
50640         * m4/vasnprintf-posix.m4: New file.
50641         * m4/printf.m4: New file.
50642
50643 2007-03-04  Bruno Haible  <bruno@clisp.org>
50644
50645         Compile progreloc.c only if --enable-relocatable is specified.
50646         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
50647         if --enable-relocatable was specified.
50648         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
50649         lib_SOURCES.
50650
50651 2007-03-04  Jim Meyering  <jim@meyering.net>
50652
50653         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
50654         Use it consistently, rather than enumerating errno constants.
50655
50656 2007-03-04  Bruno Haible  <bruno@clisp.org>
50657
50658         * modules/xvasprintf-tests: New file.
50659         * tests/test-xvasprintf.c: New file.
50660
50661         * modules/vasprintf-tests: New file.
50662         * tests/test-vasprintf.c: New file.
50663
50664         * modules/vasnprintf-tests: New file.
50665         * tests/test-vasnprintf.c: New file.
50666
50667         * modules/vsnprintf-tests: New file.
50668         * tests/test-vsnprintf.c: New file.
50669
50670         * modules/snprintf-tests: New file.
50671         * tests/test-snprintf.c: New file.
50672
50673 2007-03-04  Bruno Haible  <bruno@clisp.org>
50674
50675         Compile relocatable.c only if --enable-relocatable is specified.
50676         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
50677         gl_RELOCATABLE_LIBRARY.
50678         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
50679         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
50680         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
50681         gl_RELOCATABLE_LIBRARY.
50682         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
50683         (Makefile.am): Remove lib_SOURCES.
50684         * modules/relocatable-lib-lgpl (configure.ac): Invoke
50685         gl_RELOCATABLE_LIBRARY.
50686         (Makefile.am): Remove lib_SOURCES.
50687         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
50688         always.
50689         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50690         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
50691
50692 2007-03-04  Bruno Haible  <bruno@clisp.org>
50693
50694         * modules/argmatch-tests: New file.
50695         * tests/test-argmatch.c: New file.
50696
50697         * tests/test-allocsa.c (main): Halve the number of loop runs.
50698
50699         * modules/alloca-opt-tests: New file.
50700         * tests/test-alloca-opt.c: New file.
50701
50702 2007-03-04  Jim Meyering  <jim@meyering.net>
50703
50704         Work around difference between Linux ACLs and Solaris 10 ZFS.
50705         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
50706         for EINVAL.
50707
50708 2007-03-03  Bruno Haible  <bruno@clisp.org>
50709
50710         * modules/relocatable-prog (Depends-on): Add back progreloc's
50711         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
50712
50713 2007-03-03  Bruno Haible  <bruno@clisp.org>
50714
50715         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
50716         * modules/relocatable-lib: New file.
50717
50718 2007-03-03  Bruno Haible  <bruno@clisp.org>
50719
50720         * modules/relocatable-prog: Renamed from modules/relocatable.
50721         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
50722
50723 2007-03-03  Bruno Haible  <bruno@clisp.org>
50724
50725         * modules/relocatable-script (Files): Add doc/relocatable.texi,
50726         m4/relocatable-lib.m4.
50727         (Depends-on): Remove 'relocatable'.
50728         (configure.ac): Add gl_RELOCATABLE_NOP.
50729
50730 2007-03-03  Bruno Haible  <bruno@clisp.org>
50731
50732         * modules/relocatable-prog-wrapper: New file.
50733         * modules/relocatable (Depends-on): Add it. Remove all other
50734         dependencies except progname.
50735         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
50736
50737         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
50738         (gl_FUNC_STRERROR): Nop.
50739         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
50740
50741         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
50742         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
50743
50744         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
50745         (gl_FUNC_READLINK): Update.
50746
50747         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
50748
50749 2007-03-03  Bruno Haible  <bruno@clisp.org>
50750
50751         * lib/xreadlink.c: Include <unistd.h> unconditionally.
50752         * modules/xreadlink (Depends-on): Add unistd.
50753         * modules/xreadlink-with-size (Depends-on): Likewise.
50754
50755 2007-03-03  Bruno Haible  <bruno@clisp.org>
50756
50757         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
50758         extracted from gt_FUNC_SETENV.
50759         (gt_FUNC_SETENV): Remove macro.
50760         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
50761         remove gt_FUNC_SETENV.
50762
50763 2007-03-03  Bruno Haible  <bruno@clisp.org>
50764
50765         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
50766         ENABLE_RELOCATABLE here.
50767         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
50768
50769 2007-03-03  Bruno Haible  <bruno@clisp.org>
50770
50771         * modules/rbtreehash-list-tests (Depends-on): Add progname.
50772         * tests/test-rbtreehash_list.c: Include progname.h.
50773         (main): Call set_program_name.
50774
50775         * modules/rbtree-oset-tests (Depends-on): Add progname.
50776         * tests/test-rbtree_oset.c: Include progname.h.
50777         (main): Call set_program_name.
50778
50779         * modules/rbtree-list-tests (Depends-on): Add progname.
50780         * tests/test-rbtree_list.c: Include progname.h.
50781         (main): Call set_program_name.
50782
50783         * modules/linked-list-tests (Depends-on): Add progname.
50784         * tests/test-linked_list.c: Include progname.h.
50785         (main): Call set_program_name.
50786
50787 2007-03-03  Bruno Haible  <bruno@clisp.org>
50788
50789         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
50790         All uses of __restrict changed to _Restrict_.
50791         * lib/glob_.h (__restrict): Remove macro.
50792
50793 2007-03-02  Bruno Haible  <bruno@clisp.org>
50794
50795         * modules/gettext (configure.ac): Require gettext infrastructure
50796         from version 0.16.1.
50797
50798 2007-03-02  Bruno Haible  <bruno@clisp.org>
50799
50800         * modules/linkedhash-list-tests (Depends-on): Add progname.
50801         * tests/test-linkedhash_list.c: Include progname.h.
50802         (main): Call set_program_name.
50803
50804         * modules/carray-list-tests (Depends-on): Add progname.
50805         * tests/test-carray_list.c: Include progname.h.
50806         (main): Call set_program_name.
50807
50808         * modules/avltreehash-list-tests (Depends-on): Add progname.
50809         * tests/test-avltreehash_list.c: Include progname.h.
50810         (main): Call set_program_name.
50811
50812         * modules/avltree-oset-tests (Depends-on): Add progname.
50813         * tests/test-avltree_oset.c: Include progname.h.
50814         (main): Call set_program_name.
50815
50816         * modules/avltree-list-tests (Depends-on): Add progname.
50817         * tests/test-avltree_list.c: Include progname.h.
50818         (main): Call set_program_name.
50819
50820         * modules/array-oset-tests (Depends-on): Add progname.
50821         * tests/test-array_oset.c: Include progname.h.
50822         (main): Call set_program_name.
50823
50824         * modules/array-list-tests (Depends-on): Add progname.
50825         * tests/test-array_list.c: Include progname.h.
50826         (main): Call set_program_name.
50827
50828         * modules/argp-tests (Depends-on): Add progname.
50829         * tests/test-argp.c: Include argp.h first. Include progname.h.
50830         (main): Call set_program_name.
50831
50832 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
50833
50834         * doc/gnulib-tool.texi (Initial import): Reword description of
50835         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
50836         limited effect even if defined after the first system include.
50837
50838 2007-03-01  Bruno Haible  <bruno@clisp.org>
50839
50840         * build-aux/config.libpath: Update to libtool-1.5.22.
50841         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50842
50843 2007-03-01  Bruno Haible  <bruno@clisp.org>
50844
50845         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
50846         foo_CFLAGS.
50847         Reported by Ralf Wildenhues.
50848
50849 2007-03-01  Bruno Haible  <bruno@clisp.org>
50850
50851         * build-aux/install-reloc: Remove object files left over by some
50852         compilers.
50853         Reported by Ralf Wildenhues.
50854
50855 2007-03-01  Bruno Haible  <bruno@clisp.org>
50856
50857         * build-aux/install-reloc: Break long lines.
50858
50859 2007-03-01  Bruno Haible  <bruno@clisp.org>
50860
50861         * doc/relocatable.texi: Document that it may not work on OpenBSD.
50862         Reported by Ralf Wildenhues.
50863
50864 2007-03-01  Bruno Haible  <bruno@clisp.org>
50865
50866         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
50867         include ordering constraints.
50868
50869 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50870
50871         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
50872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
50873         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
50874         as another example.
50875         * lib/time_.h: Fix misspelling.
50876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50877         Require gl_HEADER_TIME_H_DEFAULTS.
50878         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
50879         * m4/time_r.m4 (gl_TIME_R): Likewise.
50880         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
50881
50882 2007-03-01  Bruno Haible  <bruno@clisp.org>
50883
50884         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
50885         * m4/utimens.m4 (gl_UTIMENS): Likewise.
50886
50887 2007-03-01  Jim Meyering  <jim@meyering.net>
50888
50889         * modules/xreadlink (Maintainer): Add my name.
50890         * modules/xreadlink-with-size (Depends-on): Alphabetize.
50891
50892 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
50893             Bruno Haible  <bruno@clisp.org>
50894
50895         * build-aux/install-reloc: Compile also c-ctype.c.
50896         * build-aux/relocatable.sh.in: New file.
50897         * doc/relocatable.texi: New file.
50898         * doc/relocatable-maint.texi: New file.
50899         * doc/gnulib.texi: Include relocatable-maint.texi.
50900         * lib/progreloc.c: Include unistd.h unconditionally.
50901         * lib/relocwrapper.c: Include unistd.h unconditionally.
50902         Include c-ctype.h.
50903         (add_dotbin): Use c_tolower.
50904         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
50905         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
50906         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
50907         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
50908         to m4/relocatable-lib.m4.
50909         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
50910         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
50911         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
50912         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
50913         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
50914         * modules/relocatable: New file.
50915         * modules/relocatable-lib: New file.
50916         * modules/relocatable-script: New file.
50917
50918 2007-02-28  Bruno Haible  <bruno@clisp.org>
50919
50920         Import --enable-relocatable infrastructure.
50921         * build-aux/config.libpath: New file, from GNU gettext.
50922         * build-aux/install-reloc: New file, from GNU gettext.
50923         * build-aux/reloc-ldflags: New file, from GNU gettext.
50924         * lib/relocatable.h: New file, from GNU gettext.
50925         * lib/relocatable.c: New file, from GNU gettext.
50926         * lib/relocwrapper.c: New file, from GNU gettext.
50927         * m4/relocatable.m4: New file, from GNU gettext.
50928
50929 2007-02-28  Bruno Haible  <bruno@clisp.org>
50930
50931         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
50932
50933         * modules/xreadlink: New file, from GNU gettext with modifications.
50934         * lib/xreadlink.c: New file, from GNU gettext.
50935         * lib/xreadlink.h: Add comments.
50936         (xreadlink): New declaration.
50937
50938         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
50939         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
50940         lib/xreadlink-with-size.c.
50941         (configure.ac): Remove gl_XREADLINK invocation.
50942         (Makefile.am): Augment lib_SOURCES.
50943         * m4/xreadlink.m4: Remove file.
50944         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
50945         (xreadlink_with_size): Renamed from xreadink.
50946         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
50947         * modules/canonicalize (Depends-on): Replace xreadlink with
50948         xreadlink-with-size.
50949         * lib/canonicalize.c (canonicalize_filename_mode): Update.
50950
50951 2007-02-25  Jim Meyering  <jim@meyering.net>
50952
50953         * build-aux/announce-gen: When complaining about excess arguments,
50954         list them.
50955
50956 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50957
50958         * README: Document signed integer overflow situation more
50959         accurately.
50960
50961 2007-02-25  Bruno Haible  <bruno@clisp.org>
50962
50963         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
50964         'a' or 'A' conversion.
50965
50966 2007-02-25  Bruno Haible  <bruno@clisp.org>
50967
50968         * modules/filename: Renamed from modules/pathname.
50969         (Files): Replace lib/pathname.h with lib/filename.h. Replace
50970         lib/concatpath.c with lib/concat-filename.c.
50971         (Makefile.am): Update.
50972         (Include): Replace pathname.h with filename.h.
50973         * lib/filename.h: Renamed from lib/pathname.h.
50974         (concatenated_filename): Renamed from concatenated_pathname.
50975         * lib/concat-filename.c: Renamed from lib/concatpath.c.
50976         (concatenated_filename): Renamed from concatenated_pathname.
50977         * lib/findprog.c: Include filename.h instead of pathname.h.
50978         (find_in_path): Update.
50979         * lib/javacomp.c: Include filename.h instead of pathname.h.
50980         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50981         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50982         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50983         is_oldgcj_14_13_usable, is_javac_usable): Update.
50984         * lib/javaexec.c: Include filename.h instead of pathname.h.
50985         (execute_java_class): Update.
50986         * modules/findprog: Update.
50987         * modules/javacomp: Update.
50988         * modules/javaexec: Update.
50989         * MODULES.html.sh (File system functions): Add 'filename', remove
50990         'pathname'.
50991
50992 2007-02-25  Bruno Haible  <bruno@clisp.org>
50993
50994         * modules/printf-frexpl-tests: New file.
50995         * tests/test-printf-frexpl.c: New file.
50996
50997         * modules/printf-frexpl: New file.
50998         * lib/printf-frexpl.h: New file.
50999         * lib/printf-frexpl.c: New file.
51000         * m4/printf-frexpl.m4: New file.
51001
51002 2007-02-25  Bruno Haible  <bruno@clisp.org>
51003
51004         * modules/printf-frexp-tests: New file.
51005         * tests/test-printf-frexp.c: New file.
51006
51007         * modules/printf-frexp: New file.
51008         * lib/printf-frexp.h: New file.
51009         * lib/printf-frexp.c: New file.
51010         * m4/printf-frexp.m4: New file.
51011
51012 2007-02-25  Bruno Haible  <bruno@clisp.org>
51013
51014         Assume automake >= 1.10 for the tests.
51015         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51016         * modules/arctwo-tests: Likewise.
51017         * modules/argp-tests: Likewise.
51018         * modules/avltree-list-tests: Likewise.
51019         * modules/avltree-oset-tests: Likewise.
51020         * modules/avltreehash-list-tests: Likewise.
51021         * modules/carray-list-tests: Likewise.
51022         * modules/crc-tests: Likewise.
51023         * modules/des-tests: Likewise.
51024         * modules/gc-arcfour-tests: Likewise.
51025         * modules/gc-arctwo-tests: Likewise.
51026         * modules/gc-des-tests: Likewise.
51027         * modules/gc-hmac-md5-tests: Likewise.
51028         * modules/gc-hmac-sha1-tests: Likewise.
51029         * modules/gc-md2-tests: Likewise.
51030         * modules/gc-md4-tests: Likewise.
51031         * modules/gc-md5-tests: Likewise.
51032         * modules/gc-pbkdf2-sha1-tests: Likewise.
51033         * modules/gc-rijndael-tests: Likewise.
51034         * modules/gc-sha1-tests: Likewise.
51035         * modules/gc-tests: Likewise.
51036         * modules/getaddrinfo-tests: Likewise.
51037         * modules/hmac-md5-tests: Likewise.
51038         * modules/hmac-sha1-tests: Likewise.
51039         * modules/linked-list-tests: Likewise.
51040         * modules/linkedhash-list-tests: Likewise.
51041         * modules/lock-tests: Likewise.
51042         * modules/md2-tests: Likewise.
51043         * modules/md4-tests: Likewise.
51044         * modules/md5-tests: Likewise.
51045         * modules/rbtree-list-tests: Likewise.
51046         * modules/rbtree-oset-tests: Likewise.
51047         * modules/rbtreehash-list-tests: Likewise.
51048         * modules/read-file-tests: Likewise.
51049         * modules/rijndael-tests: Likewise.
51050         * modules/stdint-tests: Likewise.
51051         * modules/tls-tests: Likewise.
51052
51053 2007-02-24  Bruno Haible  <bruno@clisp.org>
51054
51055         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51056         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51057         function; instead check whether isnan with a double argument links.
51058         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51059         function; instead check whether isnan with a 'long double' argument
51060         links.
51061         Reported by Eric Blake <ebb9@byu.net>.
51062
51063 2007-02-24  Bruno Haible  <bruno@clisp.org>
51064
51065         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51066         defined.
51067         * lib/isnanl.c: Remove all code. Just include isnan.c.
51068         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51069
51070 2007-02-25  Jim Meyering  <jim@meyering.net>
51071
51072         Avoid conflicting types for 'unsetenv' on FreeBSD.
51073         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51074         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51075         in stdlib.h.
51076
51077 2007-02-24  Bruno Haible  <bruno@clisp.org>
51078
51079         * modules/isnanl-nolibm-tests: New file.
51080         * tests/test-isnanl.c: New file.
51081
51082         * modules/isnanl-nolibm: New file.
51083         * lib/isnanl.h: New file.
51084         * lib/isnanl.c: New file.
51085         * m4/isnanl.m4: New file.
51086
51087 2007-02-24  Bruno Haible  <bruno@clisp.org>
51088
51089         * modules/isnan-nolibm-tests: New file.
51090         * tests/test-isnan.c: New file.
51091
51092         * modules/isnan-nolibm: New file.
51093         * lib/isnan.h: New file.
51094         * lib/isnan.c: New file.
51095         * m4/isnan.m4: New file.
51096
51097 2007-02-24  Bruno Haible  <bruno@clisp.org>
51098
51099         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51100         assume that an exponent fits in 20 bits.
51101
51102 2007-02-24  Jim Meyering  <jim@meyering.net>
51103
51104         * m4/regex.m4: Update the description of the configure-time option,
51105         --without-included-regex, to state accurately what the defaults are,
51106         and perhaps to give people an idea why using this option is risky.
51107
51108 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51109
51110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51111         loops on small arguments.  This attempts to avoid the problem
51112         Bruno Haible reported for AIX 4.3.2 in
51113         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51114
51115 2007-02-23  Bruno Haible  <bruno@clisp.org>
51116
51117         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51118         Needed for help2man.
51119
51120 2007-02-23  Karl Berry  <karl@gnu.org>
51121
51122         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51123         exists, foo.h should be cvs-ignored, not committed.
51124
51125 2007-02-23  Eric Blake  <ebb9@byu.net>
51126
51127         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51128         * lib/stat-time.h (includes): Likewise.
51129         * lib/utimecmp.c (includes): Likewise.
51130         * lib/utimens.h (includes): Likewise.
51131         * lib/getdate.y (includes): Also include "timespec.h" for use
51132         internal to the module.
51133         * modules/utimens (Depends-on): Revert yesterday's patch.
51134         * modules/nanosleep (Depends-on): Add missing dependency.
51135
51136 2007-02-22  Bruno Haible  <bruno@clisp.org>
51137
51138         * lib/glob.c: Don't include getlogin_r.h.
51139
51140 2007-02-22  Jim Meyering  <jim@meyering.net>
51141
51142         * modules/utimens (Depends-on): Add timespec, required for
51143         utimens.h's inclusion of timespec.h.
51144
51145 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51146
51147         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51148         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51149         Schwab in
51150         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51151         I'll try to think of a better way to fix the Solaris problem.
51152
51153         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51154         like glibc; on Solaris 10, it fails with errno == EINVAL.
51155         POSIX says the behavior is unspecified if the first argument is NULL,
51156         so play it safe and never pass NULL to the system getcwd.
51157
51158 2007-02-21  Jim Meyering  <jim@meyering.net>
51159
51160         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51161         of gettimeofday.  It would conflict with the one now always
51162         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51163         an IRIX 6.5 build failure.
51164
51165 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51166
51167         Minor fixups to port to Solaris 10 with Sun C 5.8.
51168         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51169         * modules/getcwd (Depends-on): Add dirfd.
51170         * lib/putenv.c (putenv): #undef it.
51171         (rpl_putenv): New decl.
51172         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51173
51174 2007-02-20  Bruno Haible  <bruno@clisp.org>
51175
51176         * modules/stdio-tests: New file.
51177         * tests/test-stdio.c: New file.
51178
51179         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51180         (Depends-on): Add stdio.
51181         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51182         (Include): Use <stdio.h> instead of vsnprintf.h.
51183         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51184         HAVE_DECL_VSNPRINTF.
51185         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51186
51187         * modules/snprintf (Files): Remove lib/snprintf.h.
51188         (Depends-on): Add stdio.
51189         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51190         (Include): Use <stdio.h> instead of snprintf.h.
51191         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51192         HAVE_DECL_SNPRINTF.
51193         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51194         * lib/getaddrinfo.c: Likewise.
51195
51196         * modules/stdio: New file.
51197         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51198         * lib/snprintf.h: Remove file.
51199         * lib/vsnprintf.h: Remove file.
51200         * lib/.cppi-disable: Remove snprintf.h.
51201         * m4/stdio_h.m4: New file.
51202         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51203
51204 2007-02-20  Jim Meyering  <jim@meyering.net>
51205
51206         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51207         used by e.g., mingw.  From Bruno Haible.
51208
51209 2007-02-19  Bruno Haible  <bruno@clisp.org>
51210
51211         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51212         warnings.
51213         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51214
51215 2007-02-19  Bruno Haible  <bruno@clisp.org>
51216
51217         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51218         from mingw users.
51219
51220 2007-02-19  Bruno Haible  <bruno@clisp.org>
51221
51222         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51223         warnings.
51224         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51225
51226 2007-02-19  Jim Meyering  <jim@meyering.net>
51227
51228         Don't use FD after a successful "fdopendir (fd)".
51229         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51230         Reset it by calling dirfd on the just-obtained DIR*.
51231
51232         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51233         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51234
51235 2007-02-18  Bruno Haible  <bruno@clisp.org>
51236
51237         * lib/readlink.c: Include <unistd.h>.
51238         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51239         HAVE_READLINK.
51240         * modules/readlink (Depends-on): Add unistd.
51241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51242         (Include): Add <unistd.h>.
51243
51244         * lib/getlogin_r.h: Remove file.
51245         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51246         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51247         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51248         HAVE_DECL_GETLOGIN_R.
51249         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51250         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51251         (Include): Use <unistd.h> instead of getlogin_r.h.
51252
51253         * lib/getcwd.h: Remove file.
51254         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51255         * lib/xgetcwd.c: Likewise.
51256         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51257         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51258         * modules/getcwd (Files): Remove lib/getcwd.h.
51259         (Depends-on): Add unistd.
51260         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51261         (Include): Use <unistd.h> instad of getcwd.h.
51262
51263         * lib/ftruncate.c: Include <unistd.h> first.
51264         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51265         Set HAVE_FTRUNCATE.
51266         * modules/ftruncate (Depends-on): Add unistd.
51267         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51268
51269         * lib/fchdir.c: Include <unistd.h> first.
51270         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51272         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51273         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51274         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51275
51276         * lib/dup2.c: Include <unistd.h> first.
51277         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51278         HAVE_DUP2.
51279         * modules/dup2 (Depends-on): Add unistd.
51280         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51281
51282         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51283         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51284         REPLACE_CHOWN. Don't define chown as a macro here.
51285         * modules/chown (Depends-on): Add unistd.
51286         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51287
51288         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51289         Add definition for GL_LINK_WARNING.
51290         (chown, dup2): New declarations.
51291         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51292         link warning.
51293         (ftruncate): New declaration.
51294         (getcwd): New declaration, taken from old getcwd.h.
51295         (getlogin_r): New declaration, taken from old getlogin_r.h.
51296         (readlink): New declaration.
51297         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51298         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51299         (gl_PREREQ_UNISTD): Remove macro.
51300         (gl_UNISTD_MODULE_INDICATOR): New macro.
51301         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51302         many new variables. Don't set UNISTD_H.
51303         * modules/unistd (Description): Change.
51304         (Depends-on): Add link-warning.
51305         (configure.ac): Update.
51306         (Makefile.am): Create unistd.h always. Substitute many new variables
51307         into it.
51308
51309 2007-02-18  Bruno Haible  <bruno@clisp.org>
51310
51311         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51312         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51313         HAVE_GETSUBOPT.
51314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51315         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51316         * lib/getsubopt.h: Remove file.
51317         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51318         (Depends-on): Add stdlib.
51319         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51320         (Includes): Use <stdlib.h> instead of getsubopt.h.
51321         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51322         Set HAVE_GETSUBOPT.
51323         * lib/getsubopt.c: Don't include getsubopt.h.
51324
51325 2007-02-18  Bruno Haible  <bruno@clisp.org>
51326
51327         * modules/fchdir (Depends-on): Add dup2.
51328
51329 2007-02-18  Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/stdlib_.h: Handle glibc's special invocation convention
51332         specially.
51333
51334 2007-02-18  Bruno Haible  <bruno@clisp.org>
51335
51336         * modules/stdlib-tests: New file.
51337         * tests/test-stdlib.c: New file.
51338
51339         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51340         (Depends-on): Add stdlib.
51341         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51342         (Includes): Use <stdlib.h> instead of mkstemp.h.
51343         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51344         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51345         * lib/mkstemp.c: Don't include mkstemp.h.
51346         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51347         * lib/stdlib--.h: Don't include mkstemp.h.
51348
51349         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51350         (Depends-on): Add stdlib.
51351         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51352         (Includes): Use <stdlib.h> instead of mkdtemp.h.
51353         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51354         HAVE_MKDTEMP.
51355         * lib/mkdtemp.c: Don't include mkdtemp.h.
51356         * lib/clean-temp.c: Don't include mkdtemp.h.
51357
51358         * modules/exit (Files): Remove lib/exit.h.
51359         (Depends-on): Add stdlib.
51360         (Makefile.am): Remove lib_SOURCES.
51361         (Include): Use <stdlib.h> instead of exit.h.
51362         * lib/argmatch.c: Don't include exit.h.
51363         * lib/execute.c: Likewise.
51364         * lib/pagealign_alloc.c: Likewise.
51365         * lib/pipe.c: Likewise.
51366         * lib/wait-process.c: Likewise.
51367         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51368         * lib/exitfail.c: Likewise.
51369         * lib/savewd.c: Likewise.
51370         * lib/xsetenv.c: Likewise.
51371
51372         * modules/stdlib: New file.
51373         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51374         and extra comments about mkstemp().
51375         * lib/exit.h: Remove file.
51376         * lib/mkdtemp.h: Remove file.
51377         * lib/mkstemp.h: Remove file.
51378         * m4/stdlib_h.m4: New file.
51379         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51380
51381 2007-02-18  Bruno Haible  <bruno@clisp.org>
51382
51383         * modules/math-tests: New file.
51384         * tests/test-math.c: New file.
51385
51386         * modules/math: New file.
51387         * modules/mathl (Files): Remove lib/mathl.h.
51388         (Depends-on): Add math.
51389         (Makefile.am): Don't mention mathl.h.
51390         (Include): Use <math.h> instead of mathl.h.
51391         * lib/math_.h: New file.
51392         * lib/mathl.h: Remove file.
51393         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51394         mathl.h.
51395         * lib/asinl.c: Likewise.
51396         * lib/atanl.c: Likewise.
51397         * lib/ceill.c: Likewise.
51398         * lib/cosl.c: Likewise.
51399         * lib/expl.c: Likewise.
51400         * lib/floorl.c: Likewise.
51401         * lib/frexpl.c: Likewise.
51402         * lib/ldexpl.c: Likewise.
51403         * lib/logl.c: Likewise.
51404         * lib/sincosl.c: Likewise.
51405         * lib/sinl.c: Likewise.
51406         * lib/sqrtl.c: Likewise.
51407         * lib/tanl.c: Likewise.
51408         * lib/trigl.c: Likewise.
51409         * m4/math_h.m4: New file.
51410         * MODULES.html.sh (Mathematics): Add math.
51411
51412 2007-02-17  Bruno Haible  <bruno@clisp.org>
51413
51414         * modules/wctype-tests: New file.
51415         * tests/test-wctype.c: New file.
51416
51417         * modules/wchar-tests: New file.
51418         * tests/test-wchar.c: New file.
51419
51420         * modules/unistd-tests: New file.
51421         * tests/test-unistd.c: New file.
51422
51423         * modules/time-tests: New file.
51424         * tests/test-time.c: New file.
51425
51426         * modules/sysexits-tests: New file.
51427         * tests/test-sysexits.c: New file.
51428
51429         * modules/sys_time-tests: New file.
51430         * tests/test-sys_time.c: New file.
51431
51432         * modules/sys_stat-tests: New file.
51433         * tests/test-sys_stat.c: New file.
51434
51435         * modules/sys_socket-tests: New file.
51436         * tests/test-sys_socket.c: New file.
51437
51438         * modules/sys_select-tests: New file.
51439         * tests/test-sys_select.c: New file.
51440
51441         * modules/string-tests: New file.
51442         * tests/test-string.c: New file.
51443
51444         * modules/stdbool-tests: New file.
51445         * tests/test-stdbool.c: New file.
51446
51447         * modules/netinet_in-tests: New file.
51448         * tests/test-netinet_in.c: New file.
51449
51450         * modules/inttypes-tests: New file.
51451         * tests/test-inttypes.c: New file.
51452
51453         * modules/fcntl-tests: New file.
51454         * tests/test-fcntl.c: New file.
51455
51456         * modules/byteswap-tests: New file.
51457         * tests/test-byteswap.c: New file.
51458
51459         * modules/arpa_inet-tests: New file.
51460         * tests/test-arpa_inet.c: New file.
51461
51462 2007-02-17  Bruno Haible  <bruno@clisp.org>
51463
51464         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
51465         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
51466         if the corresponding module is not enabled. Emit link warnings if
51467         the function is used nevertheless.
51468         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
51469         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
51470         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
51471         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
51472         * modules/inttypes (Depends-on): Add link-warning.
51473         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51474         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
51475         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
51476         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
51477         * modules/imaxdiv (configure.ac): Likewise.
51478         * modules/strtoimax (configure.ac): Likewise.
51479         * modules/strtoumax (configure.ac): Likewise.
51480
51481 2007-02-17  Bruno Haible  <bruno@clisp.org>
51482
51483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
51484         gl_STRING_MODULE_INDICATOR_DEFAULTS.
51485         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
51486         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
51487
51488 2007-02-17  Bruno Haible  <bruno@clisp.org>
51489
51490         * modules/link-warning: New file.
51491         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
51492         * lib/string_.h (GL_LINK_WARNING): Remove definition.
51493         * modules/string (Depends-on): Add link-warning.
51494         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51495         string.h.
51496         * MODULES.html.sh (Support for building libraries and executables): Add
51497         link-warning.
51498
51499 2007-02-17  Bruno Haible  <bruno@clisp.org>
51500
51501         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
51502         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
51503         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
51504         long lines.
51505
51506 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
51507             Bruno Haible  <bruno@clisp.org>
51508
51509         * modules/tmpfile: New file.
51510         * lib/tmpfile.c: New file.
51511         * m4/tmpfile.m4: New file.
51512         * MODULES.html.sh (func_all_modules): New section "Input/output".
51513
51514 2007-02-15  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
51517         (supports_delete_on_close): New function.
51518         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
51519
51520 2007-02-14  Bruno Haible  <bruno@clisp.org>
51521
51522         * modules/mbspcasecmp-tests: New file.
51523         * tests/test-mbspcasecmp.sh: New file.
51524         * tests/test-mbspcasecmp.c: New file.
51525
51526         New module mbspcasecmp.
51527         * modules/mbspcasecmp: New file.
51528         * lib/mbspcasecmp.c: New file.
51529         * lib/string_.h (strncasecmp): Change warning message.
51530         (mbspcasecmp): New declaration.
51531         * m4/mbspcasecmp.m4: New file.
51532         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51533         GNULIB_MBSPCASECMP.
51534         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
51535         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
51536
51537 2007-02-14  Bruno Haible  <bruno@clisp.org>
51538
51539         * modules/mbsncasecmp-tests: New file.
51540         * tests/test-mbsncasecmp.sh: New file.
51541         * tests/test-mbsncasecmp.c: New file.
51542
51543         New module mbsncasecmp.
51544         * modules/mbsncasecmp: New file.
51545         * lib/mbsncasecmp.c: New file.
51546         * lib/string_.h (mbsncasecmp): New declaration.
51547         * m4/mbsncasecmp.m4: New file.
51548         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51549         GNULIB_MBSNCASECMP.
51550         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
51551         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
51552
51553 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51554
51555         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
51556         Verify that it doesn't overlap with our flags.
51557         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
51558         do not have the desired effect in multibyte locales; instead, use
51559         mbscasecmp.
51560         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
51561         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
51562         we don't require GNU fnmatch ourselves (if our users require it, they
51563         should do so explicitly).
51564
51565         Fix regex code so it doesn't rely on strcasecmp.
51566         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
51567         Otherwise, include gnulib's langinfo.h.
51568         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
51569         undesirable behavior in non-C locales.  Instead, rely on localecharset.
51570         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
51571         * modules/regex (FILES): Remove m4/codeset.m4.
51572         (Depends-on): Add localcharset.  Remove strcase.
51573
51574 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51575
51576         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
51577         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
51578
51579 2007-02-13  Bruno Haible  <bruno@clisp.org>
51580
51581         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
51582         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51583
51584 2007-02-12  Bruno Haible  <bruno@clisp.org>
51585
51586         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51587         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
51588         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
51589         time warning rather than a link error.
51590
51591 2007-02-12  Bruno Haible  <bruno@clisp.org>
51592
51593         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
51594         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51595         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51596
51597 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51598
51599         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
51600         args, not 2.
51601
51602 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51603
51604         New module 'time', so that apps can include <time.h> as per
51605         POSIX and GNU instead of separate include files like time_r.h
51606         and timegm.h.  This implementation tries out a simpler approach
51607         for replacing decls in standard include files (as compared to
51608         the string module), somewhat as an experiment.
51609
51610         * config/srclist.txt: Comment out mktime.c for now.
51611         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
51612         since it doesn't apply any more.  Use generic wording instead.
51613         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
51614         'time'.
51615         * lib/time_.h, m4/time_h.m4, modules/time: New files.
51616         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
51617         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
51618         Don't include <sys/types.h>; no longer needed since we assume C89.
51619         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
51620         * lib/strftime.c: Likewise.
51621         * lib/time_r.c: Likewise.
51622         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
51623         * lib/nanosleep.c: Include <time.h> first, to check interface.
51624         * lib/strptime.c: Likewise.
51625         * lib/time_r.c: Likewise.
51626         * lib/timegm.c: Likewise.
51627         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
51628         needed.
51629         * lib/timegm.c: Don't include timegm.h; no longer needed.
51630         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
51631         time.h now handles any problems in that area.
51632         (struct timespec, nanosleep): Remove; time.h now arranges for these.
51633         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
51634         that time.h defines struct timespec.
51635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
51636         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
51637         handles that.
51638         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
51639         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
51640         needed.  Set REPLACE_LOCALTIME.
51641         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
51642         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
51643         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
51644         nanosleep; time_h.m4 now does that.  Don't require
51645         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
51646         module handles this now.
51647         * modules/getdate (Depends-on): Remove timespec.  Add time.
51648         * modules/nanosleep (Depends-on): Likewise.
51649         * modules/stat-time (Depends-on): Likewise.
51650         * modules/nanosleep (Include): Include time.h, not timespec.h.
51651         * modules/strptime (Files): Remove lib/strptime.h.
51652         (Depends-on): Add extensions, time.
51653         (Include): Include time.h, not strptime.h.
51654         * modules/time_r (Files): Remove lib/time_r.h.
51655         (Depends-on): Add time.
51656         (Include): Include time.h, not time_r.h.
51657         * modules/timegm: Likewise.
51658         * modules/timespec (Description): Now does timespec-related decls
51659         of our own, instead of struct timespec itself.
51660         (Depends-on): Add time; remove extensions.
51661         (Maintainer): Add self.
51662         * modules/utimecmp (Depends-on): Add time; remove timespec.
51663         * modules/utimens (Depends-on): Likewise.
51664         * modules/xnanosleep (Depends-on): Likewise.
51665
51666 2007-02-11  Bruno Haible  <bruno@clisp.org>
51667
51668         * lib/c-strstr.c: Include allocsa.h.
51669         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51670         * lib/c-strcasestr.c: Include allocsa.h.
51671         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51672         * lib/strcasestr.c: Include allocsa.h.
51673         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51674         * lib/mbsstr.c: Include allocsa.h.
51675         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51676         allocsa/freesa instead of malloc/free.
51677         * lib/mbscasestr.c: Include allocsa.h.
51678         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51679         allocsa/freesa instead of malloc/free.
51680         * modules/c-strstr (Depends-on): Add allocsa.
51681         * modules/c-strcasestr (Depends-on): Likewise.
51682         * modules/strcasestr (Depends-on): Likewise.
51683         * modules/mbsstr (Depends-on): Likewise.
51684         * modules/mbscasestr (Depends-on): Likewise.
51685
51686 2007-02-11  Bruno Haible  <bruno@clisp.org>
51687
51688         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
51689
51690         * modules/mbsspn-tests: New file.
51691         * tests/test-mbsspn.sh: New file.
51692         * tests/test-mbsspn.c: New file.
51693
51694 2007-02-11  Bruno Haible  <bruno@clisp.org>
51695
51696         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
51697
51698         * modules/mbspbrk-tests: New file.
51699         * tests/test-mbspbrk.sh: New file.
51700         * tests/test-mbspbrk.c: New file.
51701
51702 2007-02-11  Bruno Haible  <bruno@clisp.org>
51703
51704         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
51705         unneeded cast.
51706
51707         * modules/mbscspn-tests: New file.
51708         * tests/test-mbscspn.sh: New file.
51709         * tests/test-mbscspn.c: New file.
51710
51711 2007-02-11  Bruno Haible  <bruno@clisp.org>
51712
51713         * modules/mbscasecmp-tests: New file.
51714         * tests/test-mbscasecmp.sh: New file.
51715         * tests/test-mbscasecmp.c: New file.
51716
51717 2007-02-11  Bruno Haible  <bruno@clisp.org>
51718
51719         Ensure O(n) worst-case complexity of mbscasestr.
51720         * lib/mbscasestr.c: Include stdbool.h.
51721         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51722         functions.
51723         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
51724         the bookkeeping indicates that it's worth it.
51725         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
51726
51727         * modules/mbscasestr-tests: New file.
51728         * tests/test-mbscasestr1.c: New file.
51729         * tests/test-mbscasestr2.sh: New file.
51730         * tests/test-mbscasestr2.c: New file.
51731         * tests/test-mbscasestr3.sh: New file.
51732         * tests/test-mbscasestr3.c: New file.
51733         * tests/test-mbscasestr4.sh: New file.
51734         * tests/test-mbscasestr4.c: New file.
51735         * m4/locale-tr.m4: New file.
51736
51737 2007-02-11  Bruno Haible  <bruno@clisp.org>
51738
51739         Ensure O(n) worst-case complexity of mbsstr.
51740         * lib/mbsstr.c: Include stdbool.h.
51741         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51742         functions.
51743         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
51744         bookkeeping indicates that it's worth it.
51745         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
51746
51747         * modules/mbsstr-tests: New file.
51748         * tests/test-mbsstr1.c: New file.
51749         * tests/test-mbsstr2.sh: New file.
51750         * tests/test-mbsstr2.c: New file.
51751         * tests/test-mbsstr3.sh: New file.
51752         * tests/test-mbsstr3.c: New file.
51753         * m4/locale-fr.m4: New file.
51754
51755 2007-02-11  Bruno Haible  <bruno@clisp.org>
51756
51757         * lib/mbsrchr.c (mbsrchr): Fix bug.
51758
51759         * modules/mbsrchr-tests: New file.
51760         * tests/test-mbsrchr.sh: New file.
51761         * tests/test-mbsrchr.c: New file.
51762
51763 2007-02-11  Bruno Haible  <bruno@clisp.org>
51764
51765         * lib/mbschr.c (mbschr): Fix bug.
51766
51767         * modules/mbschr-tests: New file.
51768         * tests/test-mbschr.sh: New file.
51769         * tests/test-mbschr.c: New file.
51770         * m4/locale-zh.m4: New file.
51771
51772 2007-02-11  Bruno Haible  <bruno@clisp.org>
51773
51774         Support for copying multibyte string iterators.
51775         * lib/mbiter.h: Include <string.h>.
51776         (mbiter_multi_copy): New function.
51777         (mbi_copy): New macro.
51778         * lib/mbuiter.h: Include <string.h>.
51779         (mbuiter_multi_copy): New function.
51780         (mbui_copy): New macro.
51781
51782 2007-02-11  Bruno Haible  <bruno@clisp.org>
51783
51784         New module mbslen.
51785         * modules/mbslen: New file.
51786         * lib/mbslen.c: New file.
51787         * lib/string_.h (mbslen): New declaration.
51788         * m4/mbslen.m4: New file.
51789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51790         GNULIB_MBSLEN.
51791         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
51792         * MODULES.html.sh (Internationalization functions): Add mbslen.
51793
51794 2007-02-11  Bruno Haible  <bruno@clisp.org>
51795
51796         Ensure O(n) worst-case complexity of strcasestr substitute.
51797         * lib/strcasestr.c: Include stdbool.h.
51798         (knuth_morris_pratt): New function.
51799         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51800         bookkeeping indicates that it's worth it.
51801         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
51802
51803         * modules/strcasestr-tests: New file.
51804         * tests/test-strcasestr.c: New file.
51805
51806 2007-02-11  Bruno Haible  <bruno@clisp.org>
51807
51808         Ensure O(n) worst-case complexity of c_strcasestr.
51809         * lib/c-strcasestr.c: Include stdbool.h, string.h.
51810         (knuth_morris_pratt): New function.
51811         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
51812         the bookkeeping indicates that it's worth it.
51813         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
51814
51815         * modules/c-strcasestr-tests: New file.
51816         * tests/test-c-strcasestr.c: New file.
51817
51818 2007-02-11  Bruno Haible  <bruno@clisp.org>
51819
51820         Ensure O(n) worst-case complexity of c_strstr.
51821         * lib/c-strstr.c: Include stdbool.h, string.h.
51822         (knuth_morris_pratt): New function.
51823         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51824         bookkeeping indicates that it's worth it.
51825         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
51826
51827         * lib/c-strstr.c: Complete rewrite for maintainability.
51828
51829         * modules/c-strstr-tests: New file.
51830         * tests/test-c-strstr.c: New file.
51831
51832 2007-02-11  Bruno Haible  <bruno@clisp.org>
51833
51834         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
51835         5.2.1 and earlier, whereby \055 was treated just like the range
51836         delimiter '-'.
51837         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51838
51839 2007-02-08  Bruno Haible  <bruno@clisp.org>
51840
51841         * modules/regex (Depends-on): Add stdbool.
51842         Reported by Dalibor Topic <robilad@kaffe.org>.
51843
51844 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51845
51846         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
51847         Prefer returning from main to exiting from it.
51848         Remove unnecessary parens after sizeof.
51849
51850 2007-02-05  Bruno Haible  <bruno@clisp.org>
51851
51852         New module mbssep.
51853         * modules/mbssep: New file.
51854         * lib/mbssep.c: New file.
51855         * lib/string_.h (strsep): Add a conditional link warning.
51856         (mbssep): New declaration.
51857         * m4/mbssep.m4: New file.
51858         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51859         GNULIB_MBSSEP.
51860         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
51861         * MODULES.html.sh (Internationalization functions): Add mbssep.
51862
51863 2007-02-05  Bruno Haible  <bruno@clisp.org>
51864
51865         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
51866         Optimize search in case of 1 delimiter.
51867
51868 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51869
51870         * lib/acl.h: Include sys/types.h before sys/acl.h.
51871
51872 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51873
51874         Merge upstream fix for glibc bugzilla #3957:
51875
51876         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
51877
51878         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
51879         bit for RE_HAT_LISTS_NOT_NEWLINE.
51880         (build_charclass_op): Remove bogus comment.
51881
51882 2007-02-05  Simon Josefsson  <simon@josefsson.org>
51883
51884         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
51885
51886 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51887
51888         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
51889         * lib/memmem.c [!defined _LIBC]: Include config.h.
51890
51891 2007-02-04  Bruno Haible  <bruno@clisp.org>
51892
51893         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
51894         warning message.
51895
51896 2007-02-04  Bruno Haible  <bruno@clisp.org>
51897
51898         New module mbstok_r.
51899         * modules/mbstok_r: New file.
51900         * lib/mbstok_r.c: New file.
51901         * lib/string_.h (strtok_r): Change argument names to match the
51902         comments. Add a conditional link warning.
51903         (mbstok_r): New declaration.
51904         * m4/mbstok_r.m4: New file.
51905         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51906         GNULIB_MBSTOK_R.
51907         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
51908         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
51909
51910 2007-02-04  Bruno Haible  <bruno@clisp.org>
51911
51912         New module mbsspn.
51913         * modules/mbsspn: New file.
51914         * lib/mbsspn.c: New file.
51915         * lib/string_.h (strspn): Add a conditional link warning.
51916         (mbsspn): New declaration.
51917         * m4/mbsspn.m4: New file.
51918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51919         GNULIB_MBSSPN.
51920         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
51921         * MODULES.html.sh (Internationalization functions): Add mbsspn.
51922
51923 2007-02-04  Bruno Haible  <bruno@clisp.org>
51924
51925         New module mbspbrk.
51926         * modules/mbspbrk: New file.
51927         * lib/mbspbrk.c: New file.
51928         * lib/string_.h (strpbrk): Add a conditional link warning.
51929         (mbspbrk): New declaration.
51930         * m4/mbspbrk.m4: New file.
51931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51932         GNULIB_MBSPBRK.
51933         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
51934         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
51935
51936 2007-02-04  Bruno Haible  <bruno@clisp.org>
51937
51938         New module mbscspn.
51939         * modules/mbscspn: New file.
51940         * lib/mbscspn.c: New file.
51941         * lib/string_.h (strcspn): Add a conditional link warning.
51942         (mbscspn): New declaration.
51943         * m4/mbscspn.m4: New file.
51944         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51945         GNULIB_MBSCSPN.
51946         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
51947         * MODULES.html.sh (Internationalization functions): Add mbscspn.
51948
51949 2007-02-04  Bruno Haible  <bruno@clisp.org>
51950
51951         New module mbscasestr, reduced goal of strcasestr.
51952         * modules/mbscasestr: New file.
51953         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
51954         (mbscasestr): Renamed from strcasestr.
51955         * lib/strcasestr.c: Don't include mbuiter.h.
51956         (strcasestr): Remove support for multibyte locales.
51957         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
51958         Change the conditional link warning.
51959         (mbscasestr): New declaration.
51960         * m4/mbscasestr.m4: New file.
51961         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
51962         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
51963         REPLACE_STRCASESTR.
51964         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
51965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51966         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51967         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
51968         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
51969         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51970         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
51971         (Depends-on): Remove mbuiter.
51972         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
51973
51974 2007-02-04  Bruno Haible  <bruno@clisp.org>
51975
51976         Simplify handling of strncasecmp.
51977         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
51978         the conditional link warning.
51979         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51980         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
51981         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
51982         * modules/strcase (configure.ac): Don't invoke
51983         gl_STRING_MODULE_INDICATOR.
51984         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
51985
51986 2007-02-04  Bruno Haible  <bruno@clisp.org>
51987
51988         New module mbscasecmp, reduced goal of strcasecmp.
51989         * modules/mbscasecmp: New file.
51990         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
51991         (mbscasecmp): Renamed from strcasecmp.
51992         * lib/strcasecmp.c: Don't include mbuiter.h.
51993         (strcasecmp): Remove support for multibyte locales.
51994         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
51995         Change the conditional link warning.
51996         (mbscasecmp): New declaration.
51997         * m4/mbscasecmp.m4: New file.
51998         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
51999         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52000         REPLACE_STRCASECMP.
52001         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52002         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52003         GNULIB_MBSCASECMP.
52004         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52005         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52006         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52007         (Depends-on): Remove mbuiter.
52008         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52009
52010 2007-02-04  Bruno Haible  <bruno@clisp.org>
52011
52012         New module mbsstr. Remove module strstr.
52013         * modules/mbsstr: New file.
52014         * modules/strstr: Remove file.
52015         * lib/mbsstr.c: Renamed from lib/strstr.c.
52016         (mbsstr): Renamed from strstr.
52017         * lib/string_.h (strstr): Remove declaration. Change the conditional
52018         link warning.
52019         (mbsstr): New declaration.
52020         * m4/mbsstr.m4: New file.
52021         * m4/strstr.m4: Remove file.
52022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52023         REPLACE_STRSTR.
52024         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52025         Don't initialize GNULIB_STRSTR.
52026         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52027         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52028         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52029         (Support for systems lacking ANSI C 89): Remove strstr.
52030
52031 2007-02-04  Bruno Haible  <bruno@clisp.org>
52032
52033         New module mbsrchr.
52034         * modules/mbsrchr: New file.
52035         * lib/mbsrchr.c: New file.
52036         * lib/string_.h (strrchr): Add a conditional link warning.
52037         (mbsrchr): New declaration.
52038         * m4/mbsrchr.m4: New file.
52039         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52040         GNULIB_MBSRCHR.
52041         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52042         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52043
52044 2007-02-04  Bruno Haible  <bruno@clisp.org>
52045
52046         New module mbschr.
52047         * modules/mbschr: New file.
52048         * lib/mbschr.c: New file.
52049         * lib/string_.h (strchr): Add a conditional link warning.
52050         (mbschr): New declaration.
52051         * m4/mbschr.m4: New file.
52052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52053         GNULIB_MBSCHR.
52054         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52055         * MODULES.html.sh (Internationalization functions): Add mbschr.
52056
52057 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52058
52059         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52060
52061         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52062
52063 2007-02-04  Bruno Haible  <bruno@clisp.org>
52064
52065         New module description section 'configure.ac-early'.
52066         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52067         (func_get_autoconf_early_snippet): New function.
52068         (func_import, func_create_testdir): Use it. Remove special cases for
52069         modules 'extensions' and 'lock'.
52070         * modules/extensions (configure.ac-early): Require
52071         gl_USE_SYSTEM_EXTENSIONS.
52072         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52073
52074 2007-02-04  Bruno Haible  <bruno@clisp.org>
52075
52076         Make use of gcj-4.3's -fsource and -ftarget option.
52077         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52078         and if so try the options -fsource and -ftarget.
52079         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52080         source_version, ftarget_option, target_version arguments.
52081         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52082         (is_envjavac_oldgcj_14_14_usable): Renamed from
52083         is_envjavac_gcj_14_14_usable.
52084         (is_envjavac_oldgcj_14_13_usable): Renamed from
52085         is_envjavac_gcj_14_13_usable.
52086         (is_gcj_present): Update.
52087         (is_gcj_43, is_gcj43_usable): New functions.
52088         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52089         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52090         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52091         try the options -fsource and -ftarget.
52092
52093 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52094
52095         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52096         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52097         larger value.
52098
52099 2007-02-03  Jim Meyering  <jim@meyering.net>
52100
52101         Give tools a better chance to allocate space for very large buffers.
52102         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52103
52104         Make pwd and readlink work also when run with an unreadable parent dir
52105         on systems with openat support.
52106         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52107         provided getcwd function, even when we have openat support.
52108         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52109
52110 2007-02-02  Bruno Haible  <bruno@clisp.org>
52111
52112         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52113         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52114         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52115         portability problems if one of these functions is only used on specific
52116         platforms.
52117         Reported by Paul Eggert.
52118
52119 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52120
52121         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52122         is causing more trouble than it's curing.
52123         * lib/regex_internal.h (__mempcpy): Remove.
52124         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52125         (and make the code a tad smaller to boot).
52126         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52127
52128 2007-02-02  Jim Meyering  <jim@meyering.net>
52129
52130         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52131         section, not in the Makefile.am: one.
52132
52133 2007-02-02  Eric Blake  <ebb9@byu.net>
52134
52135         * lib/strchrnul.c: Always include config.h first.
52136
52137         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52138         gnulib strstr is not necessary here.
52139
52140 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52141
52142         * m4/socklen.m4: Fix typo.
52143
52144 2007-02-02  Eric Blake  <ebb9@byu.net>
52145
52146         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52147         * modules/netinet_in (Makefile.am): Likewise.
52148
52149 2007-02-01  Bruno Haible  <bruno@clisp.org>
52150
52151         * lib/string_.h (GL_LINK_WARNING): New macro.
52152         (strcasecmp, strstr, strcasestr): If provided by the system,
52153         conditionally define as a macro that leads to a warning instead of to
52154         an error.
52155         (strncasecmp): Conditionally define as a macro that leads to a warning.
52156
52157 2007-02-01  Karl Berry  <karl@gnu.org>
52158
52159         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52160
52161 2007-02-01  Bruno Haible  <bruno@clisp.org>
52162
52163         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52164         renamings.
52165
52166 2007-02-01  Eric Blake  <ebb9@byu.net>
52167
52168         * modules/regex (Depends-on): Revert dependence on mempcpy.
52169         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52170         module's definition of mempcpy.
52171         Reported by Paul Eggert.
52172
52173 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52174
52175         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52176         the symbol XYZ before redefining it.  This fixes a problem with
52177         programs that don't use XYZ, when compiled on systems that define
52178         XYZ to something else.
52179
52180 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52183         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52184         writeable to group or other and (2) is intended to have a special
52185         mode bit that is set or cleared.  In such a case, the directory
52186         should be neither group- nor other-writeable until the special
52187         mode bits are right.
52188
52189 2007-01-31  Eric Blake  <ebb9@byu.net>
52190
52191         * modules/mountlist (Depends-on): Add strstr.
52192
52193         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52194         bug.
52195         * modules/string (Makefile.am): Remove redundant replacement.
52196         * modules/regex (Depends-on): Add mempcpy.
52197
52198 2007-01-31  Bruno Haible  <bruno@clisp.org>
52199
52200         New module description field 'Link'.
52201         * gnulib-tool (func_usage): Document --extract-link-directive.
52202         (sed_extract_prog): Recognize 'Link' directive.
52203         (func_get_link_directive): New function.
52204         (func_import): Show summary of link directives.
52205         Handle --extract-link-directive option.
52206         * modules/acl (Link): New section.
52207         * modules/clock-time (Link): New section.
52208         * modules/euidaccess (Link): New section.
52209         * modules/gettext (Link): New section.
52210         * modules/iconv (Link): New section.
52211         * modules/lock (Link): New section.
52212         * modules/nanosleep (Link): New section.
52213         * modules/readline (Link): New section.
52214
52215 2007-01-27  Bruno Haible  <bruno@clisp.org>
52216
52217         Enforce the use of gnulib modules for unportable <string.h> functions.
52218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52219         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52220         (gl_HEADER_STRING_H_BODY): Require it.
52221         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52222         the symbol XYZ to one that gives a link error.
52223         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52224         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52225         * modules/mempcpy (configure.ac): Likewise.
52226         * modules/memrchr (configure.ac): Likewise.
52227         * modules/stpcpy (configure.ac): Likewise.
52228         * modules/stpncpy (configure.ac): Likewise.
52229         * modules/strcase (configure.ac): Likewise.
52230         * modules/strcasestr (configure.ac): Likewise.
52231         * modules/strchrnul (configure.ac): Likewise.
52232         * modules/strdup (configure.ac): Likewise.
52233         * modules/strndup (configure.ac): Likewise.
52234         * modules/strnlen (configure.ac): Likewise.
52235         * modules/strpbrk (configure.ac): Likewise.
52236         * modules/strsep (configure.ac): Likewise.
52237         * modules/strstr (configure.ac): Likewise.
52238         * modules/strtok_r (configure.ac): Likewise.
52239
52240 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52241
52242         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52243
52244 2007-01-30  Jim Meyering  <jim@meyering.net>
52245
52246         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52247
52248 2007-01-29  Bruno Haible  <bruno@clisp.org>
52249
52250         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52251         * lib/execute.c: Likewise.
52252         * lib/pipe.c: Likewise.
52253         * lib/printf-args.h: Likewise.
52254         * lib/printf-args.c: Likewise.
52255         * lib/printf-parse.c: Likewise.
52256         * lib/vasnprintf.c: Likewise.
52257
52258 2007-01-29  Eric Blake  <ebb9@byu.net>
52259
52260         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52261         declaration.
52262
52263 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52264
52265         * lib/strptime.h (strptime): Use 'restrict' for args where
52266         POSIX requires this.
52267         * lib/strptime.c (strptime): Likewise.
52268         Change license notice from LGPL to GPL, since gnulib-tool will
52269         change this as needed.
52270         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52271         defined.
52272         Include "strptime.h" first, to check interface.
52273         Do not #undef _LIBC and _NL_CURRENT.
52274         Do not include <stdlib.h>; no longer needed.
52275         Include "time_r.h" and declare ptime_locale_status
52276         only if _LIBC is not defined.
52277         (__P): Remove unused macro.
52278         (match_string): Bring back glibc version, but use it only if _LIBC
52279         is defined.
52280         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52281         Remove unnecessary assertion and abort() call.
52282         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52283         * m4/strptime.m4: Fix serial number comment.
52284         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52285         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52286         (Depends-on): Add time_r.
52287
52288 2007-01-29  Bruno Haible  <bruno@clisp.org>
52289
52290         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52291         strptime.
52292         * modules/strptime (Depends-on): Add stdbool.
52293         * lib/strptime.h: Include <time.h> always. Add comments.
52294
52295 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52296
52297         * modules/strptime: New file.
52298         * lib/strptime.h: New file.
52299         * lib/strptime.c: New file.
52300         * m4/strptime.m4: New file.
52301
52302 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52303
52304         * MODULES.html.sh: New module mpsort.
52305         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52306
52307         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52308         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52309         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52310         All uses changed.
52311         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52312         All uses changed.
52313         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52314         to _Restrict_.
52315         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52316         the parameter matches the prototype.
52317
52318 2007-01-28  Jim Meyering  <jim@meyering.net>
52319
52320         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52321         sys/time.h here, reverting that part of the previous patch:
52322         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52323
52324 2007-01-28  Bruno Haible  <bruno@clisp.org>
52325
52326         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52327         value of $(SYS_TIME_H).
52328         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52329         remove it conditionally, too. [added by Jim Meyering]
52330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52331         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52332         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52333         GETTIMEOFDAY_REPLACEMENT to 1.
52334
52335 2007-01-28  Bruno Haible  <bruno@clisp.org>
52336
52337         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52338         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52339         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52340         Set UNISTD_H instead of UNISTD_H2.
52341         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52342
52343 2007-01-28  Bruno Haible  <bruno@clisp.org>
52344
52345         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52346         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52347
52348 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52349
52350         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
52351         (func_create_testdir): Ensure C locale for `grep' and `tr'
52352         character ranges.
52353         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52354         ACLOCAL_AMFLAGS parsing state machine.
52355
52356 2007-01-27  Bruno Haible  <bruno@clisp.org>
52357
52358         * modules/unistr/base: Update.
52359
52360 2007-01-27  Bruno Haible  <bruno@clisp.org>
52361
52362         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52363         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52364         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52365         modules/unistr/u32-mbtouc.
52366         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52367         * lib/unistr.h: Update.
52368         * lib/linebreak.c: Update.
52369         * modules/unistr/u32-mbtouc: Renamed from
52370         modules/unistr/u32-mbtouc-safe.
52371         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52372         * lib/unistr.h: Update.
52373         * lib/unistr/u32-to-u8.c: Update.
52374         * lib/unistr/u32-to-u16.c: Update.
52375
52376 2007-01-27  Bruno Haible  <bruno@clisp.org>
52377
52378         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52379         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52380         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52381         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52382         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52383         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52384         modules/unistr/u16-mbtouc.
52385         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52386         * lib/unistr.h: Update.
52387         * lib/linebreak.c: Update.
52388         * modules/linebreak: Update.
52389         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52390         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52391         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52392         * modules/unistr/u16-mbtouc: Renamed from
52393         modules/unistr/u16-mbtouc-safe.
52394         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52395         * lib/unistr.h: Update.
52396         * lib/unistr/u16-to-u8.c: Update.
52397         * modules/unistr/u16-to-u8: Update.
52398         * lib/unistr/u16-to-u32.c: Update.
52399         * modules/unistr/u16-to-u32: Update.
52400
52401 2007-01-27  Bruno Haible  <bruno@clisp.org>
52402
52403         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52404         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52405         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52406         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52407         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52408         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52409         modules/unistr/u8-mbtouc.
52410         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52411         * lib/unistr.h: Update.
52412         * lib/striconveh.c: Update.
52413         * modules/striconveh: Update.
52414         * lib/linebreak.c: Update.
52415         * modules/linebreak: Update.
52416         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
52417         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
52418         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
52419         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
52420         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
52421         * lib/unistr.h: Update.
52422         * lib/striconveh.c: Update.
52423         * modules/striconveh: Update.
52424         * lib/unistr/u8-to-u16.c: Update.
52425         * modules/unistr/u8-to-u16: Update.
52426         * lib/unistr/u8-to-u32.c: Update.
52427         * modules/unistr/u8-to-u32: Update.
52428
52429 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52430
52431         Sync from Libtool.
52432         * lib/argz.c: Do not include strings.h nor memory.h, include
52433         string.h unconditionally.  Patch by Simon Josefsson.
52434
52435 2007-01-27  Bruno Haible  <bruno@clisp.org>
52436
52437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
52438         from gl_HEADER_STRING_H_BODY.
52439         (gl_HEADER_STRING_H_BODY): Require it.
52440         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
52441         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52442         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52443         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52445         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
52446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52447         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52448         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
52449         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52450         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52451         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
52452         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52453         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52455
52456 2007-01-27  Bruno Haible  <bruno@clisp.org>
52457
52458         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
52459         check_PROGRAMS into noinst_PROGRAMS.
52460         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
52461         check_PROGRAMS in this case.
52462         (func_import): Set for_test to false.
52463         (func_create_testdir): Set for_test to true.
52464
52465 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52466             Bruno Haible  <bruno@clisp.org>
52467
52468         * modules/strcasestr (Files): Remove lib/strcasestr.h.
52469         (Depends-on): Add string.
52470         (Includes): Use <string.h> instead of strcasestr.h.
52471         * modules/string (Makefile.am): Also substitute the value of
52472         REPLACE_STRCASESTR.
52473         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
52474         assume strcasestr is declared in <string.h> not <strings.h>. Also
52475         set REPLACE_STRCASESTR.
52476         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
52477         REPLACE_STRCASESTR.
52478         * lib/strcasestr.h: Remove file.
52479         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
52480         * lib/string_.h (strcasestr): New declaration.
52481
52482 2007-01-27  Bruno Haible  <bruno@clisp.org>
52483
52484         * lib/string_.h: Use 'extern'.
52485
52486 2007-01-27  Jim Meyering  <jim@meyering.net>
52487
52488         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
52489         of set-but-not-used local, "q".
52490
52491         * lib/mempcpy.c: Include <config.h> before <string.h>.
52492         This fixes a compilation error on HP-UX, due to the system's
52493         "restrict"-using mempcpy prototype.
52494
52495 2007-01-26  Bruno Haible  <bruno@clisp.org>
52496
52497         Small optimization.
52498         * lib/javacomp.c: Include c-strstr.h.
52499          (is_envjavac_gcj): Use c_strstr instead of strstr.
52500         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
52501
52502 2007-01-26  Bruno Haible  <bruno@clisp.org>
52503
52504         * MODULES.html.sh (Unicode string functions): Add the new modules.
52505
52506         * modules/uniconv/u32-strconv-to-locale: New file.
52507         * lib/uniconv/u32-strconv-to-locale.c: New file.
52508
52509         * modules/uniconv/u16-strconv-to-locale: New file.
52510         * lib/uniconv/u16-strconv-to-locale.c: New file.
52511
52512         * modules/uniconv/u8-strconv-to-locale: New file.
52513         * lib/uniconv/u8-strconv-to-locale.c: New file.
52514
52515         * modules/uniconv/u32-strconv-from-locale: New file.
52516         * lib/uniconv/u32-strconv-from-locale.c: New file.
52517
52518         * modules/uniconv/u16-strconv-from-locale: New file.
52519         * lib/uniconv/u16-strconv-from-locale.c: New file.
52520
52521         * modules/uniconv/u8-strconv-from-locale: New file.
52522         * lib/uniconv/u8-strconv-from-locale.c: New file.
52523
52524         * modules/uniconv/u32-strconv-to-enc: New file.
52525         * lib/uniconv/u32-strconv-to-enc.c: New file.
52526         * modules/uniconv/u32-strconv-to-enc-tests: New file.
52527         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
52528
52529         * modules/uniconv/u16-strconv-to-enc: New file.
52530         * lib/uniconv/u16-strconv-to-enc.c: New file.
52531         * lib/uniconv/u-strconv-to-enc.h: New file.
52532         * modules/uniconv/u16-strconv-to-enc-tests: New file.
52533         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
52534
52535         * modules/uniconv/u8-strconv-to-enc: New file.
52536         * lib/uniconv/u8-strconv-to-enc.c: New file.
52537         * modules/uniconv/u8-strconv-to-enc-tests: New file.
52538         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
52539
52540         * modules/uniconv/u32-strconv-from-enc: New file.
52541         * lib/uniconv/u32-strconv-from-enc.c: New file.
52542         * modules/uniconv/u32-strconv-from-enc-tests: New file.
52543         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
52544
52545         * modules/uniconv/u16-strconv-from-enc: New file.
52546         * lib/uniconv/u16-strconv-from-enc.c: New file.
52547         * modules/uniconv/u16-strconv-from-enc-tests: New file.
52548         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
52549
52550         * modules/uniconv/u8-strconv-from-enc: New file.
52551         * lib/uniconv/u8-strconv-from-enc.c: New file.
52552         * lib/uniconv/u-strconv-from-enc.h: New file.
52553         * modules/uniconv/u8-strconv-from-enc-tests: New file.
52554         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
52555
52556         * modules/uniconv/u32-conv-from-enc: New file.
52557         * lib/uniconv/u32-conv-from-enc.c: New file.
52558         * modules/uniconv/u32-conv-from-enc-tests: New file.
52559         * tests/uniconv/test-u32-conv-from-enc.c: New file.
52560
52561         * modules/uniconv/u16-conv-from-enc: New file.
52562         * lib/uniconv/u16-conv-from-enc.c: New file.
52563         * lib/uniconv/u-conv-from-enc.h: New file.
52564         * modules/uniconv/u16-conv-from-enc-tests: New file.
52565         * tests/uniconv/test-u16-conv-from-enc.c: New file.
52566
52567         * modules/uniconv/u8-conv-from-enc: New file.
52568         * lib/uniconv/u8-conv-from-enc.c: New file.
52569         * modules/uniconv/u8-conv-from-enc-tests: New file.
52570         * tests/uniconv/test-u8-conv-from-enc.c: New file.
52571
52572         * modules/uniconv/base: New file.
52573         * lib/uniconv.h: New file.
52574
52575 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52576
52577         * doc/gnulib-tool.texi (Initial import): Update to match current
52578         behavior with strdup module.
52579         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
52580         * lib/memmem.h: Remove; all uses removed.  This is now done
52581         by <string.h>.
52582         * lib/mempcpy.h: Likewise.
52583         * lib/memrchr.h: Likewise.
52584         * lib/stpcpy.h: Likewise.
52585         * lib/stpncpy.h: Likewise.
52586         * lib/strcase.h: Likewise.
52587         * lib/strchrnul.h: Likewise.
52588         * lib/strdup.h: Likewise.
52589         * lib/strndup.h: Likewise.
52590         * lib/strnlen.h: Likewise.
52591         * lib/strpbrk.h: Likewise.
52592         * lib/strsep.h: Likewise.
52593         * lib/strstr.h: Likewise.
52594         * lib/strtok_r.h: Likewise.
52595         * lib/string_.h: New file.
52596         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
52597         Rely on <string.h> instead.
52598         * lib/canon-host.c: Likewise.
52599         * lib/chdir-long.c: Likewise.
52600         * lib/concatpath.c: Likewise.
52601         * lib/exclude.c: Likewise.
52602         * lib/fchdir.c: Likewise.
52603         * lib/getaddrinfo.c: Likewise.
52604         * lib/getcwd.c: Likewise.
52605         * lib/getsubopt.c: Likewise.
52606         * lib/glob.c: Likewise.
52607         * lib/hard-locale.c: Likewise.
52608         * lib/iconvme.c: Likewise.
52609         * lib/javacomp.c: Likewise.
52610         * lib/mempcpy.c: Likewise.
52611         * lib/memrchr.c: Likewise.
52612         * lib/regex_internal.h: Likewise.
52613         * lib/stpncpy.c: Likewise.
52614         * lib/strcasecmp.c: Likewise.
52615         * lib/strchrnul.c: Likewise.
52616         * lib/strdup.c: Likewise.
52617         * lib/striconv.c: Likewise.
52618         * lib/striconveh.c: Likewise.
52619         * lib/striconveha.c: Likewise.
52620         * lib/strncasecmp.c: Likewise.
52621         * lib/strndup.c: Likewise.
52622         * lib/strnlen.c: Likewise.
52623         * lib/strsep.c: Likewise.
52624         * lib/strstr.c: Likewise.
52625         * lib/strtok_r.c: Likewise.
52626         * lib/userspec.c: Likewise.
52627         * lib/w32spawn.h: Likewise.
52628         * lib/xstrndup.c: Likewise.
52629         * lib/mountlist.c (strstr): Remove decl.
52630         * m4/string_h.m4: New file.
52631         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
52632         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
52633         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
52634         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
52635         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
52636         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
52637         Set REPLACE_STRCASECMP if necessary.
52638         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
52639         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
52640         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
52641         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
52642         HAVE_DECL_STRDUP if necessary.
52643         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
52644         since gl_FUNC_STRNDUP does that now.
52645         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
52646         Check for decl here...
52647         (gl_PREREQ_STRNLEN): ... not here.
52648         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
52649         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
52650         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
52651         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
52652         necessary.
52653         * modules/string: New file.
52654         * modules/memmem (Files): Remove special-purpose include file.
52655         (Depends-on): Add string.
52656         (Include): Include <string.h>, not the removed file.
52657         * modules/mempcpy: Likewise.
52658         * modules/memrchr: Likewise.
52659         * modules/stpcpy: Likewise.
52660         * modules/stpncpy: Likewise.
52661         * modules/strcase: Likewise.
52662         * modules/strchrnul: Likewise.
52663         * modules/strdup: Likewise.
52664         * modules/strndup: Likewise.
52665         * modules/strnlen: Likewise.
52666         * modules/strpbrk: Likewise.
52667         * modules/strsep: Likewise.
52668         * modules/strstr: Likewise.
52669         * modules/strtok_r: Likewise.
52670         * tests/test-dirname.c: Don't include "strdup.h", since
52671         <string.h> now suffices.
52672         * tests/test-memmem.c: Don't include "memmem.h", since
52673         <string.h> now suffices.
52674
52675 2007-01-25  Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
52678         *resultp is 0.
52679
52680         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
52681         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
52682         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
52683         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
52684
52685         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
52686         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
52687         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
52688         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
52689         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
52690         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
52691
52692 2007-01-24  Bruno Haible  <bruno@clisp.org>
52693
52694         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
52695         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
52696         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
52697         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
52698         gl_FUNC_FTS_CORE.
52699         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
52700         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
52701         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52702         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
52703         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
52704         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
52705         gl_FUNC_FCHOWNAT.
52706         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
52707         gl_FUNC_STRFTIME.
52708         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
52709         Reported by Ralf Wildenhues.
52710
52711 2007-01-24  Bruno Haible  <bruno@clisp.org>
52712
52713         Drop AC_REQUIRE calls that are redundant with the module dependencies.
52714         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
52715         gl_GETADDRINFO.
52716         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
52717         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
52718         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
52719
52720 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
52721
52722         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
52723         Don't use 'exit'; just return from 'main'.
52724         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
52725
52726         * lib/fnmatch_.h: Readjust white space and comments to match
52727         glibc, to avoid spurious diffs.
52728
52729 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52730
52731         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
52732         2004-12-01 change by Jakub Jelinek, since this code won't compile
52733         if !LIBC.  Problem reported by Bob Proulx.
52734
52735 2007-01-23  Bruno Haible  <bruno@clisp.org>
52736
52737         * lib/striconveh.c: Include c-strcaseeq.h.
52738         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
52739         * modules/striconveh (Depends-on): Add c-strcaseeq.
52740
52741 2007-01-23  Bruno Haible  <bruno@clisp.org>
52742
52743         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
52744
52745         * modules/c-strcaseeq: New file.
52746         * lib/c-strcaseeq.h: New file.
52747
52748         * modules/streq: New file.
52749         * lib/streq.h: New file.
52750
52751 2007-01-23  Bruno Haible  <bruno@clisp.org>
52752
52753         * modules/striconveha-tests: New file.
52754         * tests/test-striconveha.c: New file.
52755
52756         * lib/striconveha.h: Include <stdbool.h>.
52757         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
52758         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
52759         (mem_iconveha_notranslit): Renamed from mem_iconveha.
52760         (mem_iconveha): New function.
52761         (str_iconveha_notranslit): Renamed from str_iconveha.
52762         (str_iconveha): New function.
52763         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
52764         c-strcase.
52765
52766 2007-01-23  Bruno Haible  <bruno@clisp.org>
52767
52768         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
52769         encodings without forgiving before trying any encoding with handler.
52770         (str_iconveha): Try all encodings without forgiving before trying any
52771         encoding with handler.
52772
52773 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52774
52775         Import the following changes from libc.
52776
52777         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52778
52779         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
52780
52781         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52782
52783         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
52784         normal_bracket label.
52785
52786         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
52787
52788         [BZ #361]
52789         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
52790         to normal_bracket after fetching the next character.
52791
52792 2007-01-22  Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
52795         argument.
52796         * lib/striconveh.c (iconv_carefully_1): New function.
52797         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
52798         argument.
52799         (str_cd_iconveh): Update.
52800         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
52801         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
52802         * tests/test-striconveh.c (MAGIC): New macro.
52803         (new_offsets): New function.
52804         (main): Test call with and without offsets.
52805
52806 2007-01-22  Bruno Haible  <bruno@clisp.org>
52807
52808         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
52809         * modules/sys_select (Makefile.am): Likewise.
52810         * modules/sys_socket (Makefile.am): Likewise.
52811         * modules/sys_time (Makefile.am): Likewise.
52812
52813 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52814
52815         * modules/gettimeofday (License): Change from GPL to LGPL, since
52816         gettimeofday is a library function.
52817
52818 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52819
52820         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
52821
52822 2007-01-21  Bruno Haible  <bruno@clisp.org>
52823
52824         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
52825
52826 2007-01-21  Bruno Haible  <bruno@clisp.org>
52827
52828         * modules/striconveha: New file.
52829         * lib/striconveha.h: New file.
52830         * lib/striconveha.c: New file.
52831         * MODULES.html.sh (Internationalization functions): Add striconveha.
52832         * lib/striconv.c (str_iconv): Optimize the case of an empty input
52833         string.
52834         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
52835
52836 2007-01-21  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
52839         * lib/striconveh.c (str_iconveh): Likewise.
52840
52841 2007-01-21  Bruno Haible  <bruno@clisp.org>
52842
52843         * lib/striconveh.h (mem_iconveh): New declaration.
52844         * lib/striconveh.c (mem_iconveh): New function.
52845         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
52846
52847 2007-01-21  Bruno Haible  <bruno@clisp.org>
52848
52849         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
52850
52851         * lib/striconveh.h (mem_cd_iconveh): Change specification.
52852         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
52853         original result buffer.
52854         (str_cd_iconveh): Update.
52855         * tests/test-striconveh.c (main): Update.
52856
52857         * lib/striconv.h (mem_cd_iconv): Change specification.
52858         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
52859         result buffer.
52860         (str_cd_iconv): Update.
52861         * tests/test-striconv.c (main): Update.
52862
52863 2007-01-21  Bruno Haible  <bruno@clisp.org>
52864
52865         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
52866
52867 2007-01-20  Jim Meyering  <jim@meyering.net>
52868
52869         * lib/userspec.c (parse_with_separator): If a user or group string
52870         starts with "+", skip the corresponding name-to-ID look-up, since
52871         such a look-up must fail: user and group names may not include "+".
52872
52873 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52874
52875         * lib/poll.c: Include sys/time.h and time.h unconditionally,
52876         since we now assume the sys_time module.
52877         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
52878         check for sys/time.h; no longer needed.
52879         * modules/poll (Depends-on): Depend on sys_time.
52880
52881 2007-01-18  Bruno Haible  <bruno@clisp.org>
52882
52883         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
52884         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52885
52886         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
52887         gettimeofday.
52888
52889         * tests/test-gettimeofday.c: Include <time.h>.
52890         (dummy): Remove variable.
52891
52892         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
52893         gl_HEADER_SYS_TIME_H.
52894         (gl_HEADER_SYS_TIME_H): New macro.
52895
52896         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
52897         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52898         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52899         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
52900         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52901         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
52902         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
52903         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52904         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
52905         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
52906         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52907
52908         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
52909         last change; it caused a compilation error when cross-compiling to
52910         Cygwin.
52911
52912 2007-01-18  Jim Meyering  <jim@meyering.net>
52913
52914         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
52915         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
52916         than the race-prone "test -d sys || mkdir sys".
52917         (configure.ac): Use AC_PROG_MKDIR_P.
52918         * modules/sys_select: Likewise.
52919         * modules/sys_socket: Likewise.
52920         * modules/sys_time: Likewise.
52921
52922 2007-01-18  Eric Blake  <ebb9@byu.net>
52923
52924         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
52925         replace gettimeofday.
52926         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
52927         name, to avoid infinite recursion.
52928
52929 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
52930
52931         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
52932         module sys_time.
52933         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
52934         assume timespec.h defines struct timeval.
52935         * lib/settime.c: Likewise.
52936         * lib/utimens.c: Likewise.
52937         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
52938         since we now assume the gettimeofday module.
52939         * lib/tempname.c (__gen_tempname): Likewise.
52940         * lib/gettimeofday.h: Remove.
52941         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
52942         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
52943         Include <time.h>, for 'time()'.
52944         (localtime_buffer_addr): Also use this workaround if
52945         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
52946         to simplify the uses.  All uses changed.
52947         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
52948         that #undef is inside {}, and 'const' follows type name consistently.
52949         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
52950         (gettimeofday): Do not use the maximum possible value for
52951         tv->tv_usec, since that might break usages other than ls.c.
52952         Instead, we'll leave ls.c alone.  This undoes today's patch
52953         by Bruno.  Add a compile-time warning for 1s-clock resolution;
52954         we've never observed the problem but might as well keep the
52955         canary.
52956         * lib/nanosleep.c: Include timespec.h first, for interface check.
52957         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
52958         now assume the sys_time module.
52959         * lib/tempname.c: Likewise.
52960         * lib/timespec.h: Likewise.
52961         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
52962         needed.
52963         * lib/strftime.c: Likewise.
52964         * lib/timespec.h: Likewise.
52965         * lib/posixtm.c: Include posixtm.h first, for interface check.
52966         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
52967         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
52968         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
52969         * lib/sys_time_.h: New file.
52970         * lib/timespec.h (struct timespec): Use long int, not long.
52971         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52972         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
52973         Remove obsolescent call to AC_HEADER_TIME.
52974         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
52975         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52976         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52977         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
52978         Likewise.
52979         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
52980         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
52981         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
52982         into the sys_time module.  Check for gettimeofday just once.
52983         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
52984         for gettimeofday signature to just check the signature.  Merely
52985         compile it, since linking doesn't test signature.  Improve test for
52986         whether gettimeofday.o is actually needed.
52987         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
52988         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
52989         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
52990         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52991         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
52992         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
52993         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
52994         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
52995         than worrying about sys/time.h.
52996         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52997         Don't bother worrying about TIME_WITH_SYS_TIME.
52998         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
52999         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53000         * m4/sys_time_h.m4: New file.
53001         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53002         Don't include sys/time.h.  Return from main rather than exiting.
53003         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53004         all uses changed.
53005         * modules/gethrxtime (Depends-on): Add sys_time.
53006         * modules/gettime (Depends-on): Likewise.
53007         * modules/gettimeofday (Depends-on): Likewise.
53008         * modules/nanosleep (Depends-on): Likewise.
53009         * modules/settime (Depends-on): Likewise.
53010         * modules/tempname (Depends-on): Likewise.
53011         * modules/utimens (Depends-on): Likewise.
53012         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53013         (Include:) Change back to <sys/time.h>.
53014         (Maintainer:) Add self.
53015         * modules/sys_time: New file.
53016         * modules/tempname (Depends-on): Add gettimeofday.
53017         * tests/test-gettimeofday.c: Include <sys/time.h>
53018         rather than gettimeofday.h.
53019
53020 2007-01-17  Bruno Haible  <bruno@clisp.org>
53021
53022         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53023         the license default to GPL.
53024         (func_create_testdir): Don't complain if a module is LGPL and its
53025         tests module depends on GPLed modules.
53026
53027 2007-01-17  Bruno Haible  <bruno@clisp.org>
53028
53029         * lib/gettimeofday.c (gettimeofday): Add code for the case
53030         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53031         maximum possible value for tv->tv_usec, rather than the minimum one.
53032
53033 2005-10-08  Martin Lambers  <marlam@marlam.de>
53034 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53035 2007-01-16  Bruno Haible  <bruno@clisp.org>
53036
53037         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53038         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53039         gl_FUNC_GETTIMEOFDAY.
53040         (Include): Add gettimeofday.h.
53041         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53042         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53043         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53044         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53045         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53046         * lib/gettimeofday.h: New file.
53047         * lib/gettimeofday.c: Include <sys/timeb.h>.
53048         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53049         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53050         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53051         fall back on time().
53052
53053         * tests/test-gettimeofday.c: New file.
53054         * modules/gettimeofday-tests: New file.
53055
53056 2007-01-16  Eric Blake  <ebb9@byu.net>
53057
53058         * modules/fnmatch (Depends-on): Depend on wchar.
53059         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53060         * m4/fnmatch.m4: Likewise.
53061         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53062         * m4/mbchar.m4: Likewise.
53063         * modules/mbswidth (Depends-on): Depend on wchar.
53064         * lib/mbswidth.c: Assume <wchar.h>.
53065         * m4/mbswidth.m4: Likewise.
53066         * modules/quotearg (Depends-on): Depend on wchar.
53067         * lib/quotearg.c: Assume <wchar.h>.
53068         * m4/quotearg.m4: Likewise.
53069         * modules/regex (Depends-on): Depend on wchar.
53070         * lib/regex_internal.h: Assume <wchar.h>.
53071         * m4/regex.m4: Likewise.
53072         * modules/stdint (Depends-on): Depend on wchar.
53073         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53074         * m4/stdint.m4: Likewise.
53075         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53076         * modules/strftime (Depends-on): Depend on wchar.
53077         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53078         * modules/strtol (Depends-on): Depend on wchar.
53079         * lib/strtol.c: Assume <wchar.h>.
53080         * modules/wcwidth (Depends-on): Depend on wchar.
53081         * lib/wcwidth.h: Assume <wchar.h>.
53082         * m4/wcwidth.m4: Likewise.
53083
53084 2007-01-16  Bruno Haible  <bruno@clisp.org>
53085
53086         * modules/csharpexec-script: New, created from...
53087         * modules/csharpexec: ... this.
53088
53089 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53090
53091         * modules/javaexec-script: New, created from...
53092         * modules/javaexec: ... this.
53093
53094 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53095
53096         * modules/poll (Dependencies): Add sys_select.
53097
53098 2007-01-15  Jim Meyering  <jim@meyering.net>
53099
53100         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53101         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53102         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53103         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53104
53105 2007-01-15  Bruno Haible  <bruno@clisp.org>
53106
53107         * modules/striconveh: New file.
53108         * lib/striconveh.h: New file.
53109         * lib/striconveh.c: New file.
53110         * MODULES.html.sh (Internationalization functions): Add striconveh.
53111
53112         * modules/striconveh-tests: New file.
53113         * tests/test-striconveh.c: New file.
53114
53115 2007-01-15  Bruno Haible  <bruno@clisp.org>
53116
53117         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53118         not from GNU libiconv or GNU libc.
53119
53120 2007-01-15  Bruno Haible  <bruno@clisp.org>
53121
53122         * doc/gnulib-intro.texi (Copyright): Explain the different license
53123         terms for module descriptions, autoconf macros, tests, documentation.
53124
53125 2007-01-14  Bruno Haible  <bruno@clisp.org>
53126
53127         * modules/striconv-tests: New file.
53128         * tests/test-striconv.c: New file.
53129
53130 2007-01-14  Bruno Haible  <bruno@clisp.org>
53131
53132         * modules/iconv-tests: New file.
53133         * tests/test-iconv.c: New file.
53134
53135 2007-01-14  Bruno Haible  <bruno@clisp.org>
53136
53137         * gnulib-tool (func_get_license): For test modules, use the license of
53138         the main module.
53139
53140 2007-01-14  Bruno Haible  <bruno@clisp.org>
53141
53142         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53143         if iconv is found to exist.
53144
53145 2007-01-14  Bruno Haible  <bruno@clisp.org>
53146
53147         * modules/c-ctype-tests: New file.
53148         * tests/test-c-ctype.c: New file.
53149
53150 2007-01-14  Bruno Haible  <bruno@clisp.org>
53151
53152         * modules/binary-io-tests: New file.
53153         * tests/test-binary-io.sh: New file.
53154         * tests/test-binary-io.c: New file.
53155
53156 2007-01-14  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/array-oset-tests: New file.
53159         * tests/test-array_oset.c: New file.
53160
53161 2007-01-14  Bruno Haible  <bruno@clisp.org>
53162
53163         * modules/array-list-tests: New file.
53164         * tests/test-array_list.c: New file.
53165
53166 2007-01-14  Bruno Haible  <bruno@clisp.org>
53167
53168         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53169         and make.
53170         Reported by Simon Josefsson in
53171         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53172
53173 2007-01-14  Bruno Haible  <bruno@clisp.org>
53174
53175         * modules/allocsa-tests: New file.
53176         * tests/test-allocsa.c: New file.
53177
53178 2007-01-14  Bruno Haible  <bruno@clisp.org>
53179
53180         * modules/fchdir (Depends-on): Add absolute-header.
53181         * modules/unistd (Depends-on): Likewise.
53182
53183 2006-12-30  Bruno Haible  <bruno@clisp.org>
53184
53185         * modules/fchdir: New file.
53186         * modules/unistd (Files): Add lib/unistd_.h.
53187         (Makefile.am): Generate unistd.h from unistd_.h.
53188         * lib/fchdir.c: New file.
53189         * lib/dirent_.h: New file.
53190         * lib/unistd_.h: New file.
53191         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53192         * m4/fchdir.m4: New file.
53193         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53194         (gl_HEADER_UNISTD): Invoke it.
53195         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53196         function.
53197         * lib/backupfile.c (opendir, closedir): Undefine.
53198         * lib/chown.c (open, close): Undefine.
53199         * lib/clean-temp.c (open, close): Undefine.
53200         * lib/copy-file.c (open, close): Undefine.
53201         * lib/execute.c (open, close): Undefine.
53202         * lib/fsusage.c (open, close): Undefine.
53203         * lib/gc-gnulib.c (open, close): Undefine.
53204         * lib/getcwd.c (opendir, closedir): Undefine.
53205         * lib/glob.c (opendir, closedir): Undefine.
53206         * lib/javacomp.c (open, close): Undefine.
53207         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53208         * lib/openat-proc.c (open, close): Undefine.
53209         * lib/pagealign_alloc.c (open, close): Undefine.
53210         * lib/pipe.c (open, close): Undefine.
53211         * lib/progreloc.c (open, close): Undefine.
53212         * lib/savedir.c (opendir, closedir): Undefine.
53213         * lib/utime.c (open, close): Undefine.
53214         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53215
53216 2007-01-10  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53219
53220 2007-01-12  Eric Blake  <ebb9@byu.net>
53221
53222         Provide a robust <wchar.h>.  Further simplifications are now
53223         possible in other modules, but not included here.
53224         * modules/wchar: New module.
53225         * m4/wchar.m4: New file.
53226         * lib/wchar_.h: Likewise.
53227         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53228         of the new module.
53229         * MODULES.html.sh (Extended multibyte and wide character utilities):
53230         New section.
53231
53232 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53233
53234         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53235         to a reasonable default for memory allocation.
53236         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53237         file system that reports garbage st_size values for symlinks.
53238         Problem reported by Liyang Hu.
53239
53240 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53241
53242         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53243         Emacs .#* auto-save files).
53244
53245 2007-01-11  Bruno Haible  <bruno@clisp.org>
53246
53247         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53248         directory.
53249
53250 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53251
53252         Use @...@ consistently in lib/wctype_.h.
53253         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53254         on it being set to 1 or 0.
53255         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53256         go back to AC_SUBSTing it.
53257         * modules/wctype (Makefile.am): Undo previous change.
53258
53259 2007-01-10  Eric Blake  <ebb9@byu.net>
53260
53261         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53262         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53263         * modules/wctype (Makefile.am): Likewise.
53264         Reported by Chris McGuire.
53265
53266 2007-01-10  Jim Meyering  <jim@meyering.net>
53267
53268         fts.c: a small readability/maintainability improvement
53269         * lib/fts.c (fts_read): Make this code slightly more readable and
53270         maintainable by hoisting the "sp->fts_cur = p" assignments to
53271         immediately follow the statements that set P.  Derived from
53272         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53273
53274 2007-01-10  Eric Blake  <ebb9@byu.net>
53275
53276         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53277         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53279         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53280         Reported by Chris McGuire.
53281
53282 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53283
53284         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53285         in sed script.
53286
53287 2007-01-09  Bruno Haible  <bruno@clisp.org>
53288
53289         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53290         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53291         variables.
53292         (func_module): Use them.
53293
53294 2007-01-09  Bruno Haible  <bruno@clisp.org>
53295
53296         * modules/unistr/base: New file.
53297         * lib/unistr.h: New file.
53298
53299         * modules/unistr/u8-to-u16: New file.
53300         * lib/unistr/u8-to-u16.c: New file.
53301
53302         * modules/unistr/u8-to-u32: New file.
53303         * lib/unistr/u8-to-u32.c: New file.
53304
53305         * modules/unistr/u16-to-u8: New file.
53306         * lib/unistr/u16-to-u8.c: New file.
53307
53308         * modules/unistr/u16-to-u32: New file.
53309         * lib/unistr/u16-to-u32.c: New file.
53310
53311         * modules/unistr/u32-to-u8: New file.
53312         * lib/unistr/u32-to-u8.c: New file.
53313
53314         * modules/unistr/u32-to-u16: New file.
53315         * lib/unistr/u32-to-u16.c: New file.
53316
53317         * modules/unistr/u8-check: New file.
53318         * modules/unistr/u16-check: New file.
53319         * modules/unistr/u32-check: New file.
53320         * lib/unistr/u8-check.c: New file.
53321         * lib/unistr/u16-check.c: New file.
53322         * lib/unistr/u32-check.c: New file.
53323
53324         * modules/unistr/u8-chr: New file.
53325         * modules/unistr/u16-chr: New file.
53326         * modules/unistr/u32-chr: New file.
53327         * lib/unistr/u8-chr.c: New file.
53328         * lib/unistr/u16-chr.c: New file.
53329         * lib/unistr/u32-chr.c: New file.
53330
53331         * modules/unistr/u8-cmp: New file.
53332         * modules/unistr/u16-cmp: New file.
53333         * modules/unistr/u32-cmp: New file.
53334         * lib/unistr/u8-cmp.c: New file.
53335         * lib/unistr/u16-cmp.c: New file.
53336         * lib/unistr/u32-cmp.c: New file.
53337
53338         * modules/unistr/u8-cpy: New file.
53339         * modules/unistr/u16-cpy: New file.
53340         * modules/unistr/u32-cpy: New file.
53341         * lib/unistr/u8-cpy.c: New file.
53342         * lib/unistr/u16-cpy.c: New file.
53343         * lib/unistr/u32-cpy.c: New file.
53344         * lib/unistr/u-cpy.h: New file.
53345
53346         * modules/unistr/u8-cpy-alloc: New file.
53347         * modules/unistr/u16-cpy-alloc: New file.
53348         * modules/unistr/u32-cpy-alloc: New file.
53349         * lib/unistr/u8-cpy-alloc.c: New file.
53350         * lib/unistr/u16-cpy-alloc.c: New file.
53351         * lib/unistr/u32-cpy-alloc.c: New file.
53352         * lib/unistr/u-cpy-alloc.h: New file.
53353
53354         * modules/unistr/u8-endswith: New file.
53355         * modules/unistr/u16-endswith: New file.
53356         * modules/unistr/u32-endswith: New file.
53357         * lib/unistr/u8-endswith.c: New file.
53358         * lib/unistr/u16-endswith.c: New file.
53359         * lib/unistr/u32-endswith.c: New file.
53360         * lib/unistr/u-endswith.h: New file.
53361
53362         * modules/unistr/u8-mblen: New file.
53363         * modules/unistr/u16-mblen: New file.
53364         * modules/unistr/u32-mblen: New file.
53365         * lib/unistr/u8-mblen.c: New file.
53366         * lib/unistr/u16-mblen.c: New file.
53367         * lib/unistr/u32-mblen.c: New file.
53368
53369         * modules/unistr/u8-mbtouc: New file.
53370         * modules/unistr/u16-mbtouc: New file.
53371         * modules/unistr/u32-mbtouc: New file.
53372         * lib/unistr/u8-mbtouc.c: New file.
53373         * lib/unistr/u16-mbtouc.c: New file.
53374         * lib/unistr/u32-mbtouc.c: New file.
53375
53376         * modules/unistr/u8-mbtouc-safe: New file.
53377         * modules/unistr/u16-mbtouc-safe: New file.
53378         * modules/unistr/u32-mbtouc-safe: New file.
53379         * lib/unistr/u8-mbtouc-safe.c: New file.
53380         * lib/unistr/u16-mbtouc-safe.c: New file.
53381         * lib/unistr/u32-mbtouc-safe.c: New file.
53382
53383         * modules/unistr/u8-move: New file.
53384         * modules/unistr/u16-move: New file.
53385         * modules/unistr/u32-move: New file.
53386         * lib/unistr/u8-move.c: New file.
53387         * lib/unistr/u16-move.c: New file.
53388         * lib/unistr/u32-move.c: New file.
53389         * lib/unistr/u-move.h: New file.
53390
53391         * modules/unistr/u8-next: New file.
53392         * modules/unistr/u16-next: New file.
53393         * modules/unistr/u32-next: New file.
53394         * lib/unistr/u8-next.c: New file.
53395         * lib/unistr/u16-next.c: New file.
53396         * lib/unistr/u32-next.c: New file.
53397
53398         * modules/unistr/u8-prev: New file.
53399         * modules/unistr/u16-prev: New file.
53400         * modules/unistr/u32-prev: New file.
53401         * lib/unistr/u8-prev.c: New file.
53402         * lib/unistr/u16-prev.c: New file.
53403         * lib/unistr/u32-prev.c: New file.
53404
53405         * modules/unistr/u8-set: New file.
53406         * modules/unistr/u16-set: New file.
53407         * modules/unistr/u32-set: New file.
53408         * lib/unistr/u8-set.c: New file.
53409         * lib/unistr/u16-set.c: New file.
53410         * lib/unistr/u32-set.c: New file.
53411         * lib/unistr/u-set.h: New file.
53412
53413         * modules/unistr/u8-startswith: New file.
53414         * modules/unistr/u16-startswith: New file.
53415         * modules/unistr/u32-startswith: New file.
53416         * lib/unistr/u8-startswith.c: New file.
53417         * lib/unistr/u16-startswith.c: New file.
53418         * lib/unistr/u32-startswith.c: New file.
53419         * lib/unistr/u-startswith.h: New file.
53420
53421         * modules/unistr/u8-stpcpy: New file.
53422         * modules/unistr/u16-stpcpy: New file.
53423         * modules/unistr/u32-stpcpy: New file.
53424         * lib/unistr/u8-stpcpy.c: New file.
53425         * lib/unistr/u16-stpcpy.c: New file.
53426         * lib/unistr/u32-stpcpy.c: New file.
53427         * lib/unistr/u-stpcpy.h: New file.
53428
53429         * modules/unistr/u8-stpncpy: New file.
53430         * modules/unistr/u16-stpncpy: New file.
53431         * modules/unistr/u32-stpncpy: New file.
53432         * lib/unistr/u8-stpncpy.c: New file.
53433         * lib/unistr/u16-stpncpy.c: New file.
53434         * lib/unistr/u32-stpncpy.c: New file.
53435         * lib/unistr/u-stpncpy.h: New file.
53436
53437         * modules/unistr/u8-strcat: New file.
53438         * modules/unistr/u16-strcat: New file.
53439         * modules/unistr/u32-strcat: New file.
53440         * lib/unistr/u8-strcat.c: New file.
53441         * lib/unistr/u16-strcat.c: New file.
53442         * lib/unistr/u32-strcat.c: New file.
53443         * lib/unistr/u-strcat.h: New file.
53444
53445         * modules/unistr/u8-strchr: New file.
53446         * modules/unistr/u16-strchr: New file.
53447         * modules/unistr/u32-strchr: New file.
53448         * lib/unistr/u8-strchr.c: New file.
53449         * lib/unistr/u16-strchr.c: New file.
53450         * lib/unistr/u32-strchr.c: New file.
53451
53452         * modules/unistr/u8-strcmp: New file.
53453         * modules/unistr/u16-strcmp: New file.
53454         * modules/unistr/u32-strcmp: New file.
53455         * lib/unistr/u8-strcmp.c: New file.
53456         * lib/unistr/u16-strcmp.c: New file.
53457         * lib/unistr/u32-strcmp.c: New file.
53458
53459         * modules/unistr/u8-strcpy: New file.
53460         * modules/unistr/u16-strcpy: New file.
53461         * modules/unistr/u32-strcpy: New file.
53462         * lib/unistr/u8-strcpy.c: New file.
53463         * lib/unistr/u16-strcpy.c: New file.
53464         * lib/unistr/u32-strcpy.c: New file.
53465         * lib/unistr/u-strcpy.h: New file.
53466
53467         * modules/unistr/u8-strcspn: New file.
53468         * modules/unistr/u16-strcspn: New file.
53469         * modules/unistr/u32-strcspn: New file.
53470         * lib/unistr/u8-strcspn.c: New file.
53471         * lib/unistr/u16-strcspn.c: New file.
53472         * lib/unistr/u32-strcspn.c: New file.
53473         * lib/unistr/u-strcspn.h: New file.
53474
53475         * modules/unistr/u8-strdup: New file.
53476         * modules/unistr/u16-strdup: New file.
53477         * modules/unistr/u32-strdup: New file.
53478         * lib/unistr/u8-strdup.c: New file.
53479         * lib/unistr/u16-strdup.c: New file.
53480         * lib/unistr/u32-strdup.c: New file.
53481         * lib/unistr/u-strdup.h: New file.
53482
53483         * modules/unistr/u8-strlen: New file.
53484         * modules/unistr/u16-strlen: New file.
53485         * modules/unistr/u32-strlen: New file.
53486         * lib/unistr/u8-strlen.c: New file.
53487         * lib/unistr/u16-strlen.c: New file.
53488         * lib/unistr/u32-strlen.c: New file.
53489         * lib/unistr/u-strlen.h: New file.
53490
53491         * modules/unistr/u8-strmblen: New file.
53492         * modules/unistr/u16-strmblen: New file.
53493         * modules/unistr/u32-strmblen: New file.
53494         * lib/unistr/u8-strmblen.c: New file.
53495         * lib/unistr/u16-strmblen.c: New file.
53496         * lib/unistr/u32-strmblen.c: New file.
53497
53498         * modules/unistr/u8-strmbtouc: New file.
53499         * modules/unistr/u16-strmbtouc: New file.
53500         * modules/unistr/u32-strmbtouc: New file.
53501         * lib/unistr/u8-strmbtouc.c: New file.
53502         * lib/unistr/u16-strmbtouc.c: New file.
53503         * lib/unistr/u32-strmbtouc.c: New file.
53504
53505         * modules/unistr/u8-strncat: New file.
53506         * modules/unistr/u16-strncat: New file.
53507         * modules/unistr/u32-strncat: New file.
53508         * lib/unistr/u8-strncat.c: New file.
53509         * lib/unistr/u16-strncat.c: New file.
53510         * lib/unistr/u32-strncat.c: New file.
53511         * lib/unistr/u-strncat.h: New file.
53512
53513         * modules/unistr/u8-strncmp: New file.
53514         * modules/unistr/u16-strncmp: New file.
53515         * modules/unistr/u32-strncmp: New file.
53516         * lib/unistr/u8-strncmp.c: New file.
53517         * lib/unistr/u16-strncmp.c: New file.
53518         * lib/unistr/u32-strncmp.c: New file.
53519
53520         * modules/unistr/u8-strncpy: New file.
53521         * modules/unistr/u16-strncpy: New file.
53522         * modules/unistr/u32-strncpy: New file.
53523         * lib/unistr/u8-strncpy.c: New file.
53524         * lib/unistr/u16-strncpy.c: New file.
53525         * lib/unistr/u32-strncpy.c: New file.
53526         * lib/unistr/u-strncpy.h: New file.
53527
53528         * modules/unistr/u8-strnlen: New file.
53529         * modules/unistr/u16-strnlen: New file.
53530         * modules/unistr/u32-strnlen: New file.
53531         * lib/unistr/u8-strnlen.c: New file.
53532         * lib/unistr/u16-strnlen.c: New file.
53533         * lib/unistr/u32-strnlen.c: New file.
53534         * lib/unistr/u-strnlen.h: New file.
53535
53536         * modules/unistr/u8-strpbrk: New file.
53537         * modules/unistr/u16-strpbrk: New file.
53538         * modules/unistr/u32-strpbrk: New file.
53539         * lib/unistr/u8-strpbrk.c: New file.
53540         * lib/unistr/u16-strpbrk.c: New file.
53541         * lib/unistr/u32-strpbrk.c: New file.
53542         * lib/unistr/u-strpbrk.h: New file.
53543
53544         * modules/unistr/u8-strrchr: New file.
53545         * modules/unistr/u16-strrchr: New file.
53546         * modules/unistr/u32-strrchr: New file.
53547         * lib/unistr/u8-strrchr.c: New file.
53548         * lib/unistr/u16-strrchr.c: New file.
53549         * lib/unistr/u32-strrchr.c: New file.
53550
53551         * modules/unistr/u8-strspn: New file.
53552         * modules/unistr/u16-strspn: New file.
53553         * modules/unistr/u32-strspn: New file.
53554         * lib/unistr/u8-strspn.c: New file.
53555         * lib/unistr/u16-strspn.c: New file.
53556         * lib/unistr/u32-strspn.c: New file.
53557         * lib/unistr/u-strspn.h: New file.
53558
53559         * modules/unistr/u8-strstr: New file.
53560         * modules/unistr/u16-strstr: New file.
53561         * modules/unistr/u32-strstr: New file.
53562         * lib/unistr/u8-strstr.c: New file.
53563         * lib/unistr/u16-strstr.c: New file.
53564         * lib/unistr/u32-strstr.c: New file.
53565         * lib/unistr/u-strstr.h: New file.
53566
53567         * modules/unistr/u8-strtok: New file.
53568         * modules/unistr/u16-strtok: New file.
53569         * modules/unistr/u32-strtok: New file.
53570         * lib/unistr/u8-strtok.c: New file.
53571         * lib/unistr/u16-strtok.c: New file.
53572         * lib/unistr/u32-strtok.c: New file.
53573         * lib/unistr/u-strtok.h: New file.
53574
53575         * modules/unistr/u8-uctomb: New file.
53576         * modules/unistr/u16-uctomb: New file.
53577         * modules/unistr/u32-uctomb: New file.
53578         * lib/unistr/u8-uctomb.c: New file.
53579         * lib/unistr/u16-uctomb.c: New file.
53580         * lib/unistr/u32-uctomb.c: New file.
53581
53582         * MODULES.html.sh (Unicode string functions): Add the new modules.
53583
53584 2007-01-08  Bruno Haible  <bruno@clisp.org>
53585
53586         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
53587         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
53588         subdirectories.
53589
53590 2007-01-08  Karl Berry  <karl@gnu.org>
53591
53592         * doc/error.texi: mention that main() fns must set program_name
53593         when progname is used.
53594
53595 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
53596
53597         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
53598         WCTYPE_H is empty, for the benefit of builds from non-distclean
53599         directories.  Problem reported by Eric Blake in
53600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
53601
53602 2007-01-08  Bruno Haible  <bruno@clisp.org>
53603
53604         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
53605         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
53606         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
53607         PROVIDE_CANONICALIZE_FILENAME_MODE.
53608         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
53609
53610 2007-01-08  Bruno Haible  <bruno@clisp.org>
53611
53612         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
53613         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
53614         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
53615         * lib/fts.c: Likewise.
53616         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
53617
53618 2006-12-25  Bruno Haible  <bruno@clisp.org>
53619
53620         * modules/utf8-ucs4-safe: New file.
53621         * lib/utf8-ucs4-safe.h: New file.
53622         * lib/unistr/utf8-ucs4-safe.c: New file.
53623
53624         * modules/utf16-ucs4-safe: New file.
53625         * lib/utf16-ucs4-safe.h: New file.
53626         * lib/unistr/utf16-ucs4-safe.c: New file.
53627
53628         * MODULES.html.sh (Unicode string functions): Add the new modules.
53629
53630 2007-01-08  Bruno Haible  <bruno@clisp.org>
53631
53632         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
53633         (Depends-on): Add unitypes.
53634         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53635         (u8_mbtouc_aux): Move out to separate file.
53636         (u8_mbtouc): Use ucs4_t, uint8_t types.
53637         * lib/unistr/utf8-ucs4.c: New file.
53638
53639         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
53640         (Depends-on): Add unitypes.
53641         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53642         (u16_mbtouc_aux): Move out to separate file.
53643         (u16_mbtouc): Use ucs4_t, uint16_t types.
53644         * lib/unistr/utf16-ucs4.c: New file.
53645
53646         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
53647         (Depends-on): Add unitypes.
53648         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
53649         (u8_uctomb_aux): Move out to separate file.
53650         (u8_uctomb): Use ucs4_t, uint8_t types.
53651         * lib/unistr/ucs4-utf8.c: New file.
53652
53653         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
53654         (Depends-on): Add unitypes.
53655         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
53656         (u16_uctomb_aux): Move out to separate file.
53657         (u16_uctomb): Use ucs4_t, uint16_t types.
53658         * lib/unistr/ucs4-utf16.c: New file.
53659
53660 2006-12-25  Bruno Haible  <bruno@clisp.org>
53661
53662         * modules/unitypes: New file.
53663         * lib/unitypes.h: New file.
53664         * MODULES.html.sh (func_all_modules): New section "Unicode string
53665         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
53666         this section. Add unitypes.
53667
53668 2007-01-08  Bruno Haible  <bruno@clisp.org>
53669
53670         Avoid variable names that conflict with those from libtool.
53671         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
53672         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
53673         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
53674         library_names_spec to acl_library_names_spec, hardcode_* to
53675         acl_hardcode_*.
53676         Reported by Ralf Wildenhues.
53677
53678 2007-01-08  Bruno Haible  <bruno@clisp.org>
53679
53680         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
53681         definition.
53682         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
53683         definition.
53684         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
53685         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
53686         definition.
53687         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
53688         definition.
53689         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
53690         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
53691         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
53692         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
53693         definition.
53694         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
53695         definition.
53696         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
53697         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
53698         GC_USE_<algorithm>.
53699         * lib/gc-libgcrypt.c: Likewise.
53700         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
53701         * modules/gc-arctwo (configure.ac): Likewise.
53702         * modules/gc-des (configure.ac): Likewise.
53703         * modules/gc-hmac-md5 (configure.ac): Likewise.
53704         * modules/gc-hmac-sha1 (configure.ac): Likewise.
53705         * modules/gc-md2 (configure.ac): Likewise.
53706         * modules/gc-md4 (configure.ac): Likewise.
53707         * modules/gc-md5 (configure.ac): Likewise.
53708         * modules/gc-random (configure.ac): Likewise.
53709         * modules/gc-rijndael (configure.ac): Likewise.
53710         * modules/gc-sha1 (configure.ac): Likewise.
53711
53712 2007-01-08  Bruno Haible  <bruno@clisp.org>
53713
53714         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
53715         macro definition.
53716         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
53717         definition.
53718         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
53719         definition.
53720         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
53721         * modules/fcntl-safer (configure.ac): Likewise.
53722         * modules/fopen-safer (configure.ac): Likewise.
53723         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
53724         GNULIB_FWRITEERROR macro definition.
53725
53726 2007-01-08  Bruno Haible  <bruno@clisp.org>
53727
53728         * m4/gnulib-common.m4: New file.
53729         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
53730         (func_get_filelist): Add m4/gnulib-common.m4.
53731
53732 2007-01-08  Bruno Haible  <bruno@clisp.org>
53733
53734         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
53735         command.
53736
53737 2007-01-08  Jim Meyering  <jim@meyering.net>
53738
53739         Use a more robust test for a "can't happen" condition.
53740         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
53741         narrowed the st_size value.  Presuming the "can't happen" condition
53742         is true, that narrowing could conceivably convert an invalid st_size
53743         value into a valid one.  Instead, use a change based on Matthew
53744         Woehlke's original patch.
53745
53746         Slight readability improvement: use an assert-like macro
53747         in place of literal "abort ()" uses.
53748         * lib/fts.c (fts_assert): Define.
53749         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
53750         Use this macro instead of a bare 'abort'.
53751
53752 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
53753
53754         Don't worry about using IRIX 5.3's wctype.h broken definitions;
53755         simply work around them.
53756         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
53757         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
53758         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
53759         declaring.
53760         Don't bother to define as macros, since the standard doesn't require it.
53761         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
53762         longer worry about IRIX 5.3.
53763         (HAVE_WCTYPE_CTMP_BUG): Remove.
53764
53765 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53766
53767         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
53768         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
53769         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53770         Problems reported by Georg Schwarz for IRIX 5.3.
53771
53772         * gnulib-tool (autoconf_minversion): Take the maximum version number
53773         found, not the minimum.  Problem reported by James Youngman.
53774
53775 2007-01-03  Karl Berry  <karl@gnu.org>
53776
53777         * doc/error.texi: new file, explaining interaction with progname.
53778         * doc/gnulib.texi: include it.  Update copyright.
53779
53780 2007-01-03  Simon Josefsson  <simon@josefsson.org>
53781
53782         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
53783         AC_CANONICAL_HOST, to improve autobuild outputs.
53784
53785 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
53786             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53787
53788         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
53789         sockets, server sockets, and other file descriptors.  Count errors
53790         to compute the return value.  Reorder the code a bit to be easier
53791         to follow.  Don't set event bits that were not requested (except
53792         POLLERR and POLLHUP).
53793
53794 2007-01-01  Bruno Haible  <bruno@clisp.org>
53795
53796         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53797
53798 2007-01-03  Jim Meyering  <jim@meyering.net>
53799
53800         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
53801
53802 2007-01-02  Bruno Haible  <bruno@clisp.org>
53803
53804         * modules/settime (Include): Require timespec.h.
53805         * modules/nanosleep (Include): Likewise.
53806
53807 2007-01-01  Bruno Haible  <bruno@clisp.org>
53808
53809         * gnulib-tool (func_emit_copyright_notice): Bump year.
53810         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
53811
53812 2007-01-01  Bruno Haible  <bruno@clisp.org>
53813
53814         Improve support for OpenBSD.
53815         * build-aux/config.rpath (libname_spec): Export.
53816         (library_names_spec): New variable. Export.
53817         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
53818         library_names_spec from the config.rpath output. Locate shared library
53819         through the name pattern in library_names_spec.
53820
53821 2007-01-01  Eric Blake  <ebb9@byu.net>
53822
53823         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
53824
53825 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
53826
53827         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
53828         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
53829         assume the C locale, and avoid an "eval" that could cause trouble.
53830         Problem with SORT reported by Bob Proulx.
53831
53832         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
53833         Define.  Trivial patch from Henning Nielsen Lund, originally
53834         sent to bug-grep@gnu.org today.
53835
53836 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53837
53838         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
53839         struct stat.  Problem reported by Henning Nielsen Lund.
53840         * lib/acl.c: Include acl.h first, to check interface.  Don't
53841         bother to include sys/types.h and sys/stat.h again.
53842
53843 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53844
53845         Import the following change from libc; problem reported by
53846         Sven Verdoolaege.
53847
53848         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
53849
53850         [BZ #1373]
53851         * lib/argp.h: Remove __NTH for __argp_usage inline function.
53852
53853 2006-12-28  Jim Meyering  <jim@meyering.net>
53854
53855         * build-aux/announce-gen: Do not assume that the package
53856         builds any of tar.gz, tar.bz2, and .xdelta files.
53857         Suggestion from Simon Josefsson.
53858
53859 2006-12-28  Simon Josefsson  <simon@josefsson.org>
53860
53861         * modules/announce-gen: New file.
53862
53863 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53864
53865         * lib/mbchar.h: Just include <wctype.h>; the wctype module
53866         handles its gotchas now.
53867         * lib/mbswidth.c: Likewise.
53868         * lib/wcwidth.h: Likewise.
53869         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
53870         and iswcntrl; the wctype module does this stuff now.
53871         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53872         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53873         * modules/mbchar (Depends-on): Add wctype.
53874         * modules/mbswidth (Depends-on): Likewise.
53875         * modules/wcwidth (Depends-on): Likewise.
53876
53877 2006-12-27  Eric Blake  <ebb9@byu.net>
53878
53879         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
53880         module uses more than what <wctype.h> is required to provide.
53881
53882 2006-12-26  Eric Blake  <ebb9@byu.net>
53883
53884         * gnulib-tool (sed_extract_prog): Avoid space-tab.
53885
53886 2006-12-26  Eric Blake  <ebb9@byu.net>
53887
53888         * modules/absolute-header: New module.
53889         * modules/fcntl (Depends-on): Depend on it.
53890         * modules/inttypes (Depends-on): Likewise.
53891         * modules/stdint (Depends-on): Likewise.
53892         * modules/sys_stat (Depends-on): Likewise.
53893         * modules/wctype (Depends-on): Likewise.
53894         * MODULES.html.sh (Support for building libraries and
53895         executables): Document it.
53896
53897 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53898
53899         * gnulib-tool (SED): Remove, undoing previous change.
53900         The problem was that it broke coreutils on Solaris, because
53901         "sed --posix" leaked into a makefile.
53902         (sed): New alias, if 'alias' and GNU sed.
53903
53904 2006-12-24  Jim Meyering  <jim@meyering.net>
53905
53906         Work around an fchownat bug in glibc-2.4:
53907         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
53908         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
53909         in spite of the -P option.
53910         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
53911         New macros.
53912         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
53913         * modules/openat (Files): Add lib/fchownat.c.
53914         * lib/openat.c (fchownat): Don't define here.  Move to...
53915         * lib/fchownat.c: ...this new file.
53916
53917 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53918
53919         Fix bug reported by Bruno Haible in
53920         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
53921         where quotearg.c didn't compile on Mac OS X 10.2 because it
53922         lacks <wchar.h> and wint_t.
53923         * lib/wctype_.h (__wctype_wint_t): New type.
53924         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
53925         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
53926         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
53927         Arg is now of type __wctype_wint_t, not wint_t.
53928         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
53929         substitute HAVE_WINT_T.
53930         * modules/wctype (Files): Add m4/wint_t.m4.
53931         (wctype.h): Substitute HAVE_WINT_T.
53932
53933 2006-12-23  Bruno Haible  <bruno@clisp.org>
53934
53935         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
53936
53937 2006-12-23  Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
53940         S_ISLNK.
53941         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
53942         mingw.
53943
53944 2006-12-22  Bruno Haible  <bruno@clisp.org>
53945
53946         * lib/copy-file.c: Include acl.h.
53947         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
53948         Close the file descriptors only after being done with copy_acl.
53949         * modules/copy-file (Depends-on): Add acl.
53950
53951 2006-12-22  Bruno Haible  <bruno@clisp.org>
53952
53953         * gnulib-tool (SED): New variable.
53954         Use $SED instead of sed everywhere.
53955
53956 2006-12-22  Bruno Haible  <bruno@clisp.org>
53957
53958         * modules/no-c++: New file.
53959         * m4/no-c++.m4: New file.
53960         * MODULES.html.sh (Support for building libraries and executables):
53961         Add no-c++.
53962
53963 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53964
53965         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53966         Include <limits.h>, and use its INT_MAX to rewrite the
53967         j loop so that it does not overflow 'int'.  Problem reported by
53968         Ralf Wildenhues in
53969         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
53970         Play it safe by shifting left by 1 rather than multiplying by 2,
53971         as GCC is less likely to optimize this away when the value
53972         is signed (when it assumes overflow leads to undefined behavior).
53973         Also, don't assume time_t uses two's complement.
53974
53975 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
53976
53977         * MODULES.html.sh: New module wctype.
53978         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
53979         * lib/fnmatch.c: Don't bother to include <wchar.h> before
53980         <wctype.h>, since the new wctype module should fix this.
53981         * lib/quotearg.c: Include <wctype.h> unconditionally, since
53982         the wctype module should arrange for it.
53983         * lib/regex_internal.h: Likewise.
53984         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
53985         since the wctype module should handle this now.
53986         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
53987         * modules/fnmatch (Depends-on): Add wctype.
53988         * modules/quotearg (Depends-on): Likewise.
53989         * modules/regex (Depends-on): Likewise.
53990
53991 2006-12-19  Bruno Haible  <bruno@clisp.org>
53992
53993         * lib/strdup.h [C++]: Wrap definitions in extern "C".
53994         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
53995
53996 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53997
53998         * modules/savewd (Depends-on): Fix dependency on fcntl.
53999
54000 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54001
54002         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54003         conforms to C99, rather than relying on the user's environment
54004         setting of STDINT_H.
54005
54006 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54007         and Eric Blake  <ebb9@byu.net>
54008
54009         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54010         This is more consistent with the other defines here.
54011         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54012         Port to z/OS.  Problem reported by Paul Gilmartin.
54013         Change local vars to use gl_ prefix rather than ac_.
54014         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54015         with other defines.
54016         * modules/double-slash-root: New module.
54017         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54018         (Depends-on): Add double-slash-root.
54019         * MODULES.html.sh (File system functions): Mention new module.
54020
54021 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54024         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54025         This is for the benefit of gzip, which doesn't do i18n.
54026
54027 2006-12-12  Jim Meyering  <jim@meyering.net>
54028
54029         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54030         Reported by Andreas Schwab <schwab@suse.de>.
54031
54032 2006-12-12  Bruno Haible  <bruno@clisp.org>
54033
54034         Merge these changes.
54035         2006-09-05  Bruno Haible  <bruno@clisp.org>
54036         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54037         iconv_alloc succeeded.
54038         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54039         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54040         test for " && dest " at the end - dest is always != NULL there. Call
54041         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54042         with 2xNULL arguments, also to flush the state storage. Handle the
54043         IRIX iconv behaviour. Realloc the final result, to throw away unused
54044         memory.
54045
54046 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54047
54048         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54049         and fchmodat unconditionally, since glibc 2.4 has them.
54050         Problem reported by Arkadiusz Miskiewicz.
54051
54052 2006-12-10  Bruno Haible  <bruno@clisp.org>
54053
54054         * gnulib-tool (func_import): Show the include files only for those
54055         modules that are copied and specified.
54056         Reported by Karl Berry.
54057
54058 2006-12-08  Jim Meyering  <jim@meyering.net>
54059
54060         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54061         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54062
54063         * build-aux/announce-gen: Add two new options, both optional:
54064         --bootstrap-tools=TOOL_LIST
54065               a comma-separated list of tools, e.g.,
54066               autoconf,automake,bison,gnulib
54067         --gnulib-snapshot-date=DATE
54068               if gnulib is in the bootstrap tool list,
54069               then report this as the snapshot date.
54070               If not specified, use the current date/time.
54071               If you specify a date here, be sure it's UTC.
54072
54073 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54074
54075         * tests/test-argp-2.sh: Fix test to match actual output.
54076         (func_compare): Fix sed script to be portable.
54077
54078 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54079
54080         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54081         workaround for this case.  It is not autoconfigured now; offhand
54082         it's hard to see how to autoconfigure it.
54083
54084 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54085
54086         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54087         a directory that is about to be chowned.  Such a directory's
54088         initial file permissions should permit the owner only and this
54089         should not be changed until after the chown, since the group and
54090         other bits would be incorrect if they granted permission before
54091         the chown.
54092
54093         Fix porting problem for iswctype reported by Georg Schwarz in:
54094         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54095         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54096         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54097         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54098         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54099
54100 2006-12-03  Jim Meyering  <jim@meyering.net>
54101
54102         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54103         p->fts_statp may not yet be defined.
54104         (fts_read): Instead, set it in the caller, once p->fts_statp is
54105         sure to be defined, and corresponds to a top-level directory.
54106         This bug made du -x fail.  Here's the coreutils test case:
54107         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54108         Reported by Mike Frysinger.
54109
54110 2006-12-01  Jim Meyering  <jim@meyering.net>
54111
54112         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54113         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54114         Reported by Simon Josefsson.
54115
54116 2006-11-30  Jim Meyering  <jim@meyering.net>
54117
54118         * m4/warning.m4: Use the all-permissive copyright notice
54119         recommended by RMS (rather than LGPL).
54120         * m4/vararrays.m4: Likewise.
54121         * m4/flexmember.m4: Likewise.
54122
54123 2006-11-29  Bruno Haible  <bruno@clisp.org>
54124
54125         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54126         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54127         using +=.
54128         Reported by Simon Josefsson <simon@josefsson.org>.
54129
54130 2006-11-28  James Youngman <jay@gnu.org>
54131
54132         * README: Advise users that they might find the bug-gnulib@gnu.org
54133         and autotools-announce@gnu.org mailing lists useful.
54134
54135 2006-11-28  Bruno Haible  <bruno@clisp.org>
54136
54137         * m4/ptrdiff_max.m4: Remove file.
54138
54139 2006-11-21  Bruno Haible  <bruno@clisp.org>
54140
54141         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54142         _AC_COMPUTE_INT.
54143         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54144         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54145         _AC_COMPUTE_INT.
54146         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54147         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54148         _AC_COMPUTE_INT.
54149         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54150
54151 2006-11-28  Jim Meyering  <jim@meyering.net>
54152
54153         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54154         warning from "gcc -Wshadow" about shadowing the builtin.
54155
54156 2006-11-27  Bruno Haible  <bruno@clisp.org>
54157
54158         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54159         _AC_COMPUTE_INT.
54160         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54161
54162 2006-11-27  Bruno Haible  <bruno@clisp.org>
54163             Paul Eggert  <eggert@cs.ucla.edu>
54164
54165         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54166
54167 2006-11-26  Bruno Haible  <bruno@clisp.org>
54168
54169         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54170         noinst_LTLIBRARIES.
54171
54172 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54173             Bruno Haible  <bruno@clisp.org>
54174
54175         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54176         if compiling with "gcc -ansi".
54177
54178 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54179
54180         Fix some incompatibilities with gcc -ansi -pedantic.
54181         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54182         if compiling pedantically with GCC, unless it's C99 or later.
54183         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54184         it mishandles gcc -ansi -pedantic as well.
54185         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54186         if gcc -pedantic.
54187         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54188         initializers for struct if -pedantic, unless it's C99 or later.
54189
54190 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54191
54192         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54193         Don't close an fd more than once. Identical atimes indicate
54194         success, not failure.
54195
54196 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54197
54198         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54199
54200 2006-11-23  Jim Meyering  <jim@meyering.net>
54201
54202         * build-aux/announce-gen: New file.  From coreutils.
54203
54204 2006-11-22  Jim Meyering  <jim@meyering.net>
54205
54206         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54207         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54208         (fts_read): Use a temporary to narrow the overused st_size member
54209         before using it in a switch statement.  Reported by Matthew Woehlke.
54210
54211         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54212         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54213
54214 2006-11-20  Bruno Haible  <bruno@clisp.org>
54215
54216         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54217         changequote instead of pairs of brackets.
54218         Reported by Andreas Schwab <schwab@suse.de>.
54219
54220 2006-11-21  Jim Meyering  <jim@meyering.net>
54221
54222         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54223         so as to remain compatible with older compilers.
54224         Patch from Michael Deutschmann.
54225
54226 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54227
54228         * MODULES.html.sh (File system functions): Add openat.
54229
54230         * lib/openat.h (rpl_fstatat): New macro, if
54231         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54232         (fstatat): Define to rpl_fstatat under the same conditions,
54233         unless COMPILING_FSTATAT.
54234         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54235         seems to have the bug.
54236         * lib/fstatat.c: New file.
54237         * modules/openat (Files): Add it.
54238
54239 2006-11-20  Bruno Haible  <bruno@clisp.org>
54240
54241         * Makefile: New file.
54242
54243 2006-11-20  Jim Meyering  <jim@meyering.net>
54244
54245         The beginnings of syntax-related checks for gnulib.
54246         * lib/Makefile: New file.
54247         * lib/t-idcache: New script.  Ensure that the two halves of
54248         idcache.c stay in sync.
54249
54250         * lib/idcache.c: Adjust comments in user- and group- portions to
54251         be more accurate, and to be consistent with one another.
54252
54253 2006-11-20  Jim Meyering  <jim@meyering.net>
54254
54255         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54256         continue using the flexible array member (thus, this module performs
54257         half as many malloc calls), with the addition that...
54258         (getgroup, getuser): Consistently record a non-match via an empty
54259         "name" string, and map an empty string match to a NULL return value.
54260         * modules/idcache (Depends-on): Re-add flexmember.
54261
54262         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54263         (getuidbyname, getgroup, getgidbyname): Likewise.
54264
54265         Use cleaner syntax: NULL rather than 0.
54266         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54267
54268 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54269
54270         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54271         It mishandled the case where the group was missing.
54272         Problem reported by Greg Schafer.
54273         * modules/idcache: Likewise.
54274
54275 2006-11-18  Jim Meyering  <jim@meyering.net>
54276
54277         * check-module (%exempt_header): Add exception for some
54278         conditionally-included headers.
54279
54280         * modules/i-ring (Depends-on): Add verify.
54281         (License): Change to LGPL.
54282
54283 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54284
54285         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54286         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54287         and inttostr.h.  Use snprintf rather than uinttostr, so that
54288         LGPLed code doesn't depend on GPLed.
54289
54290 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54291
54292         * modules/inline (License): Change from GPL to LGPL.
54293
54294 2006-11-17  Jim Meyering  <jim@meyering.net>
54295
54296         * modules/d-type (License): Switch to LGPL.
54297
54298 2006-11-15  Bruno Haible  <bruno@clisp.org>
54299
54300         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54301
54302 2006-11-15  Eric Blake  <ebb9@byu.net>
54303
54304         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54305         the module dependency.
54306
54307 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54308             Bruno Haible  <bruno@clisp.org>
54309
54310         * gnulib-tool (func_create_testdir): Add license consistency check.
54311
54312 2006-11-15  Eric Blake  <ebb9@byu.net>
54313
54314         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54315         random "(cached)" in configure output.
54316
54317 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54318
54319         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54320         test for conforming inttypes.h is both announced and cached.
54321
54322         * MODULES.html.sh (seen_modules, seen_files): New variables.
54323         (func_module): Rewrite to use a few less gnulib-tool and sed
54324         invocations.  Avoid a couple of quadratic algorithms for ...
54325         (missed_modules, missed_files): ... these, with ...
54326         (func_append, func_tmpdir): ... these new functions, from
54327         gnulib-tool.  Analogously, install traps for cleanup.
54328
54329         * tests/test-gc.c (main): Remove unused variables.
54330         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54331
54332 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54333
54334         * modules/inttostr (License): Change to LGPL.
54335
54336 2006-11-14  Eric Blake  <ebb9@byu.net>
54337
54338         * modules/tempname (License): Change to LGPL.
54339
54340 2006-11-14  Eric Blake  <ebb9@byu.net>
54341
54342         * doc/functions.texi (Function Portability): *printf functions on
54343         Cygwin now understand all POSIX size specifiers.
54344
54345 2006-11-14  Bruno Haible  <bruno@clisp.org>
54346
54347         * modules/c-ctype (License): Change to LGPL.
54348
54349 2006-11-12  Bruno Haible  <bruno@clisp.org>
54350
54351         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54352         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
54353         for GNOME libraries, for which the include files are installed in
54354         subdirectories of $prefix/include.
54355
54356 2006-11-12  Bruno Haible  <bruno@clisp.org>
54357
54358         * m4/lib-link.m4: Require at least autoconf-2.54.
54359         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54360         name to underscores for the --with option.
54361
54362 2006-11-13  Bruno Haible  <bruno@clisp.org>
54363
54364         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54365         the tests directory.
54366         Reported by Ralf Wildenhues.
54367
54368 2006-11-13  Bruno Haible  <bruno@clisp.org>
54369
54370         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54371         (func_emit_initmacro_end): Undo the override here.
54372         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54373         Works around the famous automake error in coreutils.
54374
54375 2006-11-13  Eric Blake  <ebb9@byu.net>
54376
54377         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54378         element, not its node.
54379
54380 2006-11-12  Bruno Haible  <bruno@clisp.org>
54381
54382         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54383         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54384
54385 2006-11-12  Bruno Haible  <bruno@clisp.org>
54386
54387         * gnulib-tool: New option --local-symlink.
54388         (func_usage): Document it.
54389         (lsymbolic): New variable.
54390         (func_import, func_create_testdir): If --symlink was not specified,
54391         test whether --local-symlink was specified and the file comes from
54392         the local_gnulib_dir.
54393
54394 2006-11-12  Bruno Haible  <bruno@clisp.org>
54395
54396         * gnulib-tool (func_ln): New function.
54397         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54398
54399 2006-11-12  Bruno Haible  <bruno@clisp.org>
54400
54401         Finish support for source files in subdirectories.
54402         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54403         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54404         AUTOMAKE_OPTIONS.
54405         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54406
54407 2006-11-12  Bruno Haible  <bruno@clisp.org>
54408
54409         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54410         EXTRA_lib_SOURCES augmentation.
54411         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54412
54413 2006-11-12  Jim Meyering  <jim@meyering.net>
54414
54415         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54416         file descriptors.  This also averts a failure on systems with
54417         native openat support when a traversed directory lacks "x" access.
54418         * lib/fts_.h: Include "i-ring.h"
54419         (struct FTS) [fts_fd_ring]: New member.
54420         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
54421         (FCHDIR): Add parentheses.
54422         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
54423         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
54424         When descending, rather than simply closing the previous
54425         fts_cwd_fd value, push that file descriptor onto the ring.
54426         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
54427         (fts_open): Initialize the new fd_ring member.
54428         (fts_close): Clear the ring.
54429         (fts_safe_changedir): When possible, use our new fd_ring to skip
54430         the diropen and fstat and dev/ino comparison that would normally
54431         accompany a virtual `chdir ("..")'.
54432
54433         * modules/fts (Depends-on): Add i-ring.
54434         * modules/i-ring: New module.
54435         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
54436         * m4/i-ring.m4: New file.
54437
54438 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54439
54440         * gnulib-tool (func_create_testdir): Fix replacement of
54441         `build-aux' in configure.ac.  Run autotools in gltests
54442         subdirectory.
54443         (func_create_testdir, func_create_megatestdir, test): There is
54444         no need for '--force' in most autotool invocations in a new
54445         tree.  Actually fail the whole test if any of the tools, or the
54446         configure or make stages fail.
54447
54448         Sync from Automake.
54449         * build-aux/gnupload: Revert last change.  Add pointer to upload
54450         instructions of the GNU Maintenance Instructions.
54451         Suggestion by Karl Berry.
54452
54453 2006-11-10  Jim Meyering  <jim@meyering.net>
54454
54455         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
54456
54457 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54458
54459         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
54460         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
54461         (bind_textdomain_codeset) [! ENABLE_NLS]:
54462         Evaluate all the arguments.  That way, callers get compatible behavior
54463         if the arguments have side effects.  Also, it avoids some GCC
54464         diagnostics in some cases; Joel E. Denny reported problems when Bison
54465         was configured with --enable-gcc-warnigs.
54466
54467 2006-11-10  Jim Meyering  <jim@meyering.net>
54468
54469         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
54470         relevant options in CFLAGS (like -O, -fno-inline) are taken into
54471         account.
54472
54473 2006-11-10  Jim Meyering  <jim@meyering.net>
54474
54475         * modules/inline: New file/module.
54476         * modules/xalloc (Files): Remove m4/inline.m4.
54477         (Depends-on): Add inline, instead.
54478         * modules/oset: Likewise.
54479         * modules/list: Likewise.
54480
54481 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54482
54483         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
54484         Problem reported by Matthew Woehlke.
54485
54486 2006-11-09  Bruno Haible  <bruno@clisp.org>
54487
54488         * lib/tempname.c (gen_tempname): Remove variant that invokes
54489         __gen_tempname.
54490         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
54491         __gen_tempname.
54492
54493 2006-11-08  Bruno Haible  <bruno@clisp.org>
54494
54495         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
54496         to 'yes' instead of 'cross-compiling'.
54497
54498 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
54499
54500         * lib/quotearg.h (quotearg_free): New decl.
54501         * lib/quotearg.c (quotearg_free): New function.
54502         (slot0, nslots, slotvec0, slotvec):
54503         Now file-scope so that quotearg_free can get at them.
54504
54505 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54506
54507         Sync from Automake.
54508         * build-aux/gnupload: Add missing 'gnu' to example URL.
54509         Report by Karl Berry.
54510
54511 2006-11-08  Bruno Haible  <bruno@clisp.org>
54512
54513         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
54514         Suggested by Paul Eggert.
54515
54516 2006-11-08  Jim Meyering  <jim@meyering.net>
54517
54518         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
54519         It's already included if !_LIBC.
54520         (fts_safe_changedir): Add a comment.
54521
54522 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54523
54524         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
54525         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
54526         Matthew Woehlke.
54527
54528         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
54529         definitions up, to avoid colliding with change below.
54530         (static_inline) [HAVE_INLINE]: New macro.
54531         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
54532         Provide extern decls when !HAVE_INLINE.  Do not define unless
54533         static_inline is defined, either by us or by xmalloc.c.  Use
54534         static_inline rather than static inline.
54535         (XCALLOC): Optimize sizeof(T) = 1 case.
54536         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
54537
54538 2006-11-07  Bruno Haible  <bruno@clisp.org>
54539
54540         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
54541         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
54542         AC_C_INLINE.
54543         * modules/xalloc (Files): Add m4/inline.m4.
54544
54545 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54546
54547         * README: Fix typo.
54548         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
54549         (Miscellanous Notes): ...from this.
54550
54551 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54552
54553         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
54554         Mention that offsetof should be used instead of sizeof.
54555         From Bruno Haible.
54556
54557 2006-11-07  Bruno Haible  <bruno@clisp.org>
54558
54559         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
54560
54561 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54562
54563         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54564         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
54565         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54566         (gl_tree_add_before, gl_tree_add_after):
54567         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
54568         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
54569         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54570         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
54571         (gl_linked_add_after, gl_linked_add_at): Likewise.
54572         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
54573         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54574         (gl_tree_add_before, gl_tree_add_after): Likewise.
54575         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
54576         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
54577         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
54578
54579 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54580
54581         * lib/gl_oset.h: Use C comment style, not C++ comment style.
54582
54583 2006-11-06  Bruno Haible  <bruno@clisp.org>
54584
54585         * m4/inline.m4: New file.
54586         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
54587         * modules/list (Files): Add m4/inline.m4.
54588         * modules/oset (Files): Likewise.
54589
54590 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54591
54592         * lib/idcache.c: Include <stddef.h>, for offsetof.
54593         (struct userid.name): Change from char * to a flexible array member.
54594         All uses changed.
54595         * modules/idcache (Depends-on): Add flexmember.
54596
54597         * MODULES.html.sh (Core language properties): New module flexmember.
54598         * modules/flexmember, m4/flexmember.m4: New files.
54599
54600         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
54601         inline functions that are identical with the old xnmalloc_inline,
54602         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
54603         that we can avoid some unnecessary integer multiplications and
54604         divisions in the common case where the element size is known at
54605         compile time.
54606         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
54607         needed.
54608         (xnboundedmalloc): Remove.
54609         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
54610         arguments, for consistency with rest of this header.
54611         (xcharalloc): Rewrite using XNMALLOC.
54612         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
54613         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
54614         versions have been moved to lib/xalloc.h and renamed to be the
54615         non-*_inline versions.
54616         (xmalloc, xrealloc): Implement without reference to the xnmalloc
54617         and xnrealloc functions, since those functions are now inline and
54618         now call us.
54619         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
54620         renaming described above.
54621         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
54622         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
54623         captures the dependency in AC_C_INLINE.
54624
54625         New module canonicalize-lgpl, proposed by Charles Wilson in
54626         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
54627         with a few small changes afterwards.
54628         * MODULES.html.sh (File system functions): New module
54629         canonicalize-lgpl.
54630         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
54631         and canonicalize_file_name.
54632         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
54633         * modules/canonicalize-lgpl: New files.
54634
54635 2006-11-05  Bruno Haible  <bruno@clisp.org>
54636
54637         * gnulib-tool (func_import, func_create_testdir): Create directories
54638         also for files in subdirectories of lib/.
54639
54640 2006-11-05  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
54643         ANSI C compliant.
54644
54645 2006-11-03  Bruno Haible  <bruno@clisp.org>
54646
54647         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54648         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
54649         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
54650         (xnboundedmalloc): New inline function.
54651         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
54652         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
54653         xmalloc.
54654         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
54655         xmalloc.
54656         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
54657         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
54658         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
54659         xmalloc.
54660         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54661         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
54662         xmalloc.
54663         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
54664         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54665         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
54666         xmalloc.
54667         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54668         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
54669         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54670         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
54671         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
54672         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
54673         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
54674
54675 2006-11-03  Bruno Haible  <bruno@clisp.org>
54676
54677         * lib/c-ctype.h [C++]: Define functions without name mangling.
54678         * lib/fwriteerror.h [C++]: Likewise.
54679         * lib/gcd.h [C++]: Likewise.
54680         * lib/linebreak.h [C++]: Likewise.
54681
54682 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54683
54684         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
54685         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
54686         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
54687         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54688         Check for functions and headers just once.
54689         Check for declaration of canonicalize_file_name.
54690         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
54691
54692 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54693
54694         * gnulib-tool (func_import): Fix typo in actioncmd.
54695
54696 2006-11-02  Bruno Haible  <bruno@clisp.org>
54697
54698         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
54699         newline sequence in the Makefile.am snippet as a space, like "make"
54700         does.
54701         Reported by Roger Persson <perrog@gmail.com>.
54702
54703 2006-11-01  Bruno Haible  <bruno@clisp.org>
54704
54705         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
54706         already declared in <string.h>.
54707         * lib/strcase.h (strncasecmp): Don't declare it if yes.
54708
54709 2006-11-01  Bruno Haible  <bruno@clisp.org>
54710
54711         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
54712         * lib/strcase.h: Include <string.h>.
54713         (strcasecmp): Define to rpl_strcasecmp here.
54714
54715 2006-11-01  Bruno Haible  <bruno@clisp.org>
54716
54717         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
54718
54719 2006-11-01  Eric Blake  <ebb9@byu.net>
54720
54721         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
54722
54723         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
54724
54725 2006-10-29  Bruno Haible  <bruno@clisp.org>
54726
54727         Make it compile in C++ mode.
54728         * lib/full-write.c (full_rw): Add a cast.
54729
54730 2006-11-01  Bruno Haible  <bruno@clisp.org>
54731
54732         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
54733         be POSIX compliant.
54734         Reported by Roger Persson <perrog@gmail.com>.
54735
54736 2006-11-01  Eric Blake  <ebb9@byu.net>
54737
54738         * lib/getopt_.h: Fix comments.
54739
54740 2006-10-31  Eric Blake  <ebb9@byu.net>
54741
54742         * modules/tmpdir (Depends-on): Add sys_stat.
54743         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
54744         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
54745         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
54746         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
54747         tempname.
54748
54749 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
54750
54751         Avoid some C++ diagnostics reported by Bruno Haible.
54752         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
54753         xmalloc.
54754         (quotearg_alloc): Use xcharalloc rather than xmalloc.
54755         (struct slotvec): Move to top level.
54756         (quotearg_n_options): Rewrite to avoid xmalloc.
54757         * lib/xalloc.h (xcharalloc): New function.
54758         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
54759         [defined __cplusplus]: Add function template that provides result
54760         type propagation.  This part of the change is from Bruno Haible.
54761
54762 2006-10-29  Bruno Haible  <bruno@clisp.org>
54763
54764         Make it compile in C++ mode.
54765         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
54766         * lib/strnlen1.c (strnlen1): Cast memchr result.
54767         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
54768         * lib/clean-temp.c (string_equals, string_hash): Add casts.
54769         (create_temp_dir): Rename local variable 'template'.
54770         (compile_csharp_using_sscli): Add cast.
54771         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54772         * lib/findprog.c (find_in_path): Likewise.
54773         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
54774         * lib/wait-process.c (register_slave_subprocess): Likewise.
54775
54776 2006-10-22  Bruno Haible  <bruno@clisp.org>
54777
54778         * modules/tsearch: New file.
54779         * lib/tsearch.h: New file.
54780         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
54781         * m4/tsearch.m4: New file.
54782         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
54783
54784 2006-10-29  Eric Blake  <ebb9@byu.net>
54785
54786         * lib/arcfour.c: Assume config.h.
54787         * lib/arctwo.c: Likewise.
54788         * lib/base64.c: Likewise.
54789         * lib/check-version.c: Likewise.
54790         * lib/crc.c: Likewise.
54791         * lib/des.c: Likewise.
54792         * lib/gc-gnulib.c: Likewise.
54793         * lib/gc-libgcrypt.c: Likewise.
54794         * lib/gc-pbkdf2-sha1.c: Likewise.
54795         * lib/getaddrinfo.c: Likewise.
54796         * lib/getdelim.c: Likewise.
54797         * lib/getline.c: Likewise.
54798         * lib/hmac-md5.c: Likewise.
54799         * lib/hmac-sha1.c: Likewise.
54800         * lib/iconvme.c: Likewise.
54801         * lib/md2.c: Likewise.
54802         * lib/md4.c: Likewise.
54803         * lib/memxor.c: Likewise.
54804         * lib/read-file.c: Likewise.
54805         * lib/readline.c: Likewise.
54806         * lib/rijndael-alg-fst.c: Likewise.
54807         * lib/rijndael-api-fst.c: Likewise.
54808         * lib/xgetdomainname.c: Likewise.
54809
54810 2006-10-28  Eric Blake  <ebb9@byu.net>
54811
54812         * lib/xstrndup.c: Assume config.h.
54813
54814 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54815
54816         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
54817         stat-macros.h is now for our own macros, whereas stat_h is for
54818         macros in the <sys/stat.h> name space.
54819         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
54820         (STAT_MACROS_H): Remove.
54821         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
54822         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
54823         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
54824         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
54825         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
54826         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
54827         Move these macros to ...
54828         * lib/stat_.h: here.  Don't include stat-macros.h.
54829         * lib/canonicalize.c: Don't include stat-macros.h.
54830         * lib/chown.c: Likewise.
54831         * lib/euidaccess.c: Likewise.
54832         * lib/file-type.c: Likewise.
54833         * lib/filemode.c: Likewise.
54834         * lib/glob.c: Likewise.
54835         * lib/isapipe.c: Likewise.
54836         * lib/lchown.c: Likewise.
54837         * lib/lstat.c: Likewise.
54838         * lib/mkdir-p.c: Likewise.
54839         * lib/rmdir.c: Likewise.
54840         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
54841         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
54842         unless mkdir isn't declared, to speed up 'configure'.
54843         Always create sys/stat.h, since it's unlikely any real sys/stat.h
54844         would define all the S_* symbols.
54845         * modules/canonicalize (Depends-on):
54846         Depend on sys_stat, not stat-macros.
54847         * modules/chown: Likewise.
54848         * modules/euidaccess: Likewise.
54849         * modules/filemode: Likewise.
54850         * modules/file-type: Likewise.
54851         * modules/glob: Likewise.
54852         * modules/isapipe: Likewise.
54853         * modules/lchown: Likewise.
54854         * modules/lstat: Likewise.
54855         * modules/mkancesdirs: Likewise.
54856         * modules/rmdir: Likewise.
54857         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
54858         * modules/modechange: Likewise.
54859         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
54860         (configure.ac): Remove gl_STAT_MACROS.
54861         * modules/sys_stat (Depends-on): Remove stat-macros.
54862
54863 2006-10-27  Bruno Haible  <bruno@clisp.org>
54864
54865         * m4/signed.m4: Remove file.
54866         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
54867         invocation.
54868         * modules/vasnprintf (Files): Remove m4/signed.m4.
54869
54870 2006-10-27  Bruno Haible  <bruno@clisp.org>
54871
54872         Update to GNU gettext 0.16.
54873         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
54874         m4/inttypes-h.m4, m4/signed.m4.
54875         * m4/gettext.m4: Update to GNU gettext 0.16.
54876         * m4/intl.m4: New file, from GNU gettext.
54877         * m4/intldir.m4: New file, from GNU gettext.
54878         * config/srclist.txt: Update
54879
54880 2006-10-27  Eric Blake  <ebb9@byu.net>
54881
54882         * MODULES.html.sh: Document tempname.
54883         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
54884         dependencies.
54885         (Files): Move lib/tempname.c...
54886         * modules/tempname: ...to this new module.
54887         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
54888         (gl_PREREQ_TEMPNAME): Move...
54889         * m4/tempname.m4: ...to this new file.
54890         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
54891         * modules/sys_stat (Depends-on): Add stat-macros.
54892         * lib/stat_.h (includes): Pick up stat macros.
54893         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
54894         if stat macros are broken.
54895         * lib/tempname.c (includes): No need to include "stat-macros.h".
54896         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
54897         (direxists, __path_search) [!_LIBC]: Don't compile these in
54898         gnulib; the tmpdir module covers that.
54899         * lib/tempname.h: New file.
54900
54901 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
54902
54903         * COPYING: Explain how gnulib-tool converts licence headers.
54904         Almost all wording by Eric Blake.
54905
54906 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
54907
54908         * lib/mbchar.h (is_basic_table): Make read-only.
54909         * lib/mbchar.c (is_basic_table): Likewise.
54910         Reported by John Darrington.
54911
54912 2006-10-25  Bruno Haible  <bruno@clisp.org>
54913
54914         * lib/progname.h (set_program_name): Undefine before defining.
54915
54916 2006-10-25  Bruno Haible  <bruno@clisp.org>
54917
54918         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
54919         false for non-gcc C++ compilers.
54920         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54921
54922 2006-10-24  Bruno Haible  <bruno@clisp.org>
54923
54924         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
54925         iconv implementations like Irix iconv.
54926
54927 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54928
54929         * modules/vararrays: New file.
54930         * m4/vararrays.m4: New file, taken from diffutils.
54931         * MODULES.html.sh: New module vararrays.
54932
54933 2006-10-24  Karl Berry  <karl@gnu.org>
54934
54935         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
54936         Don't call GNU Unix.
54937
54938 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54939
54940         * users.txt: Add Libtool.
54941
54942         Sync from Libtool:
54943
54944         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54945
54946         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
54947         to gnulib's policy of including config.h unconditionally.
54948
54949 2006-10-24  Bruno Haible  <bruno@clisp.org>
54950
54951         * modules/wcwidth (Files): Add m4/wint_t.m4.
54952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
54953         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
54954
54955 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54956
54957         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
54958         to pacify GCC with some -W flags enabled.  Problem reported by
54959         Bruno Haible.
54960
54961 2006-10-24  Jim Meyering  <jim@meyering.net>
54962
54963         * MODULES.html.sh: Remove uinttostr.  It's not a module.
54964         Reported by Karl Berry.
54965
54966 2006-10-23  Bruno Haible  <bruno@clisp.org>
54967
54968         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
54969
54970 2006-10-24  Bruno Haible  <bruno@clisp.org>
54971
54972         * lib/gl_list.h: Use C comment style, not C++ comment style.
54973
54974 2006-10-23  Eric Blake  <ebb9@byu.net>
54975
54976         * lib/getaddrinfo.c (includes): Add missing include.
54977
54978 2006-10-23  Bruno Haible  <bruno@clisp.org>
54979             Paul Eggert  <eggert@cs.ucla.edu>
54980
54981         Ability to rename obstack_free.
54982         * lib/obstack.h (__obstack_free): New macro. Declare instead of
54983         obstack_free.
54984         (obstack_free): Invoke the __obstack_free macro.
54985         * lib/obstack.c (obstack_free): Use __obstack_free macro.
54986
54987 2006-10-23  Bruno Haible  <bruno@clisp.org>
54988             Paul Eggert  <eggert@cs.ucla.edu>
54989
54990         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
54991         __argc, __argv from the declaration. (They are defined as macros on
54992         mingw.)
54993
54994 2006-10-22  Bruno Haible  <bruno@clisp.org>
54995
54996         * doc/gnulib-intro.texi: New file.
54997         * doc/gnulib.texi: Include it.
54998
54999 2006-10-21  Bruno Haible  <bruno@clisp.org>
55000
55001         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55002         "Introduction", "Miscellanous Notes", "Particular Modules".
55003
55004 2006-10-21  Bruno Haible  <bruno@clisp.org>
55005
55006         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55007         Change mostlyclean-local rule to avoid sh syntax error from bash
55008         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55009
55010 2006-10-23  Jim Meyering  <jim@meyering.net>
55011
55012         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55013         in place of snprintf.
55014
55015         * modules/inttostr (Files): Add lib/uinttostr.c.
55016         * lib/uinttostr.c (inttostr): New file/function.
55017         * lib/inttostr.h (uinttostr): Declare.
55018         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55019         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55020         Add uinttostr.
55021         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55022
55023 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55024
55025         * lib/canonicalize.c (ELOOP): Define if not already defined.
55026         Problem reported by Bruno Haible in
55027         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55028
55029 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55030
55031         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55032         Problem reported by Perry Smith and Ville Laurikari.
55033
55034         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55035         uses.
55036
55037 2006-10-19  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55040         for mingw.
55041
55042 2006-10-19  Bruno Haible  <bruno@clisp.org>
55043
55044         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55045         Needed for mingw.
55046
55047 2006-10-19  Bruno Haible  <bruno@clisp.org>
55048
55049         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55050
55051 2006-10-19  Bruno Haible  <bruno@clisp.org>
55052
55053         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55054         it.
55055
55056 2006-10-19  Bruno Haible  <bruno@clisp.org>
55057
55058         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55059         invocation.
55060
55061 2006-10-19  Bruno Haible  <bruno@clisp.org>
55062
55063         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55064         mountlist by default.
55065
55066 2006-10-16  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/c-strstr.c: Include c-strstr.h.
55069
55070 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55071
55072         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55073         in a slash.
55074
55075 2006-10-18  Bruno Haible  <bruno@clisp.org>
55076
55077         * lib/lock.h [C++]: Wrap definitions in extern "C".
55078
55079 2006-10-18  Bruno Haible  <bruno@clisp.org>
55080
55081         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55082         gl_LIBOBJS list.
55083
55084 2006-10-18  Bruno Haible  <bruno@clisp.org>
55085
55086         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55087
55088 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55089
55090         * lib/xstrtol.h: Include gettext.h.
55091         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55092         Problem reported by Eric Blake.
55093         * modules/xstrtol (Depends-on): Add gettext-h.
55094
55095 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55096
55097         * lib/strftime.c (advance): New macro.
55098         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55099         incomplete type, so you can't add 0 to it.  Problem and patch
55100         reported by Eelco Dolstra for dietlibc.
55101
55102 2006-10-18  Jim Meyering  <jim@meyering.net>
55103
55104         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55105         type for a local, and rename it: s/up/user_proc/.
55106
55107 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55108
55109         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55110         READ_UTMP_USER_PROCESS.
55111         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55112
55113 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55114
55115         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55116         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55117
55118 2006-10-17  Eric Blake  <ebb9@byu.net>
55119
55120         * lib/sigprocmask.c (sigprocmask): Fix typo.
55121
55122         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55123
55124         * modules/clean-temp (Makefile.am): Don't add to make output...
55125         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55126         config.h.
55127
55128 2006-10-17  Bruno Haible  <bruno@clisp.org>
55129
55130         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55131         differently if DEFAULT_TEXT_DOMAIN is set.
55132
55133 2006-10-16  Bruno Haible  <bruno@clisp.org>
55134
55135         * lib/clean-temp.c: Include fwriteerror.h.
55136
55137 2006-10-16  Bruno Haible  <bruno@clisp.org>
55138
55139         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55140
55141 2006-10-16  Bruno Haible  <bruno@clisp.org>
55142
55143         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55144         * lib/sigprocmask.h: Include <sys/types.h>.
55145         (sigset_t): Use the system's definition if present.
55146
55147 2006-10-17  Eric Blake  <ebb9@byu.net>
55148
55149         * lib/xvasprintf.c (includes): Assume config.h.
55150         * lib/xasprintf.c (includes): Likewise.
55151
55152 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55153
55154         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55155         at least as wide as intmax_t.
55156
55157 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55158
55159         (Imported from Automake.)
55160         * build-aux/gnupload: Update to version 1.1 of directive file.
55161
55162 2006-10-16  Eric Blake  <ebb9@byu.net>
55163
55164         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55165         match Automake 1.10a.
55166
55167 2006-10-14  Bruno Haible  <bruno@clisp.org>
55168
55169         * modules/sigprocmask: New file.
55170         * lib/sigprocmask.h: New file.
55171         * lib/sigprocmask.c: New file.
55172         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55173         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55174         request sigprocmask.o.
55175         (gl_PREREQ_SIGPROCMASK): New macro.
55176         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55177         (Depends-on): Add sigprocmask.
55178         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55179         gt_SIGNALBLOCKING. Test for 'raise' only once.
55180         * lib/fatal-signal.c: Include sigprocmask.h.
55181         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55182         unblock_fatal_signals): Define always.
55183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55184         sigprocmask.
55185
55186 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55187
55188         Sync from Automake.
55189         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55190         which incorrectly sets the mode of an existing destination
55191         directory.  In some cases the unpatched install-sh could do the
55192         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55193         system.  We hope this is rare in practice, but it's clearly worth
55194         fixing.  Problem reported by Alex Unleashed in
55195         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55196         Also, don't bother to check for -m bugs unless we're using -m;
55197         suggested by Stepan Kasal.
55198
55199 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55200
55201         Sync from Automake.
55202         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55203         `-c' flag, so they appear at the same position as in %FASTDEP%
55204         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55205         which ignores unknown options only after the first non-option.
55206         Bug report against M4 by Nelson H. F. Beebe.
55207
55208 2006-10-13  Jim Meyering  <jim@meyering.net>
55209
55210         Fix a bug in yesterday's change.
55211         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55212         p->fts_statp->st_dev would be used uninitialized.
55213         Ensures that we always call fts_stat on the very first entry.
55214         Miklos Szeredi reported that find -xdev stopped working.
55215
55216 2006-10-12  Bruno Haible  <bruno@clisp.org>
55217
55218         * gnulib-tool (func_get_automake_snippet): Append an automatically
55219         computed EXTRA_DIST augmentation.
55220         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55221         * modules/alloca-opt (Makefile.am): Likewise.
55222         * modules/allocsa (Makefile.am): Likewise.
55223         * modules/arcfour (Makefile.am): Likewise.
55224         * modules/arctwo (Makefile.am): Likewise.
55225         * modules/argmatch (Makefile.am): Likewise.
55226         * modules/argz (Makefile.am): Likewise.
55227         * modules/atexit (Makefile.am): Likewise.
55228         * modules/backupfile (Makefile.am): Likewise.
55229         * modules/byteswap (Makefile.am): Likewise.
55230         * modules/c-strtod (Makefile.am): Likewise.
55231         * modules/c-strtold (Makefile.am): Likewise.
55232         * modules/calloc (Makefile.am): Likewise.
55233         * modules/canon-host (Makefile.am): Likewise.
55234         * modules/canonicalize (Makefile.am): Likewise.
55235         * modules/chdir-long (Makefile.am): Likewise.
55236         * modules/chdir-safer (Makefile.am): Likewise.
55237         * modules/check-version (Makefile.am): Likewise.
55238         * modules/chown (Makefile.am): Likewise.
55239         * modules/cloexec (Makefile.am): Likewise.
55240         * modules/close-stream (Makefile.am): Likewise.
55241         * modules/closeout (Makefile.am): Likewise.
55242         * modules/crc (Makefile.am): Likewise.
55243         * modules/csharpexec (Makefile.am): Likewise.
55244         * modules/cycle-check (Makefile.am): Likewise.
55245         * modules/des (Makefile.am): Likewise.
55246         * modules/dev-ino (Makefile.am): Likewise.
55247         * modules/dirfd (Makefile.am): Likewise.
55248         * modules/dirname (Makefile.am): Likewise.
55249         * modules/dup2 (Makefile.am): Likewise.
55250         * modules/eealloc (Makefile.am): Likewise.
55251         * modules/error (Makefile.am): Likewise.
55252         * modules/euidaccess (Makefile.am): Likewise.
55253         * modules/exclude (Makefile.am): Likewise.
55254         * modules/exitfail (Makefile.am): Likewise.
55255         * modules/fcntl-safer (Makefile.am): Likewise.
55256         * modules/fcntl (Makefile.am): Likewise.
55257         * modules/file-type (Makefile.am): Likewise.
55258         * modules/fileblocks (Makefile.am): Likewise.
55259         * modules/filemode (Makefile.am): Likewise.
55260         * modules/filenamecat (Makefile.am): Likewise.
55261         * modules/fnmatch (Makefile.am): Likewise.
55262         * modules/fopen-safer (Makefile.am): Likewise.
55263         * modules/fpending (Makefile.am): Likewise.
55264         * modules/fprintftime (Makefile.am): Likewise.
55265         * modules/free (Makefile.am): Likewise.
55266         * modules/fsusage (Makefile.am): Likewise.
55267         * modules/ftruncate (Makefile.am): Likewise.
55268         * modules/fts (Makefile.am): Likewise.
55269         * modules/gc-arcfour (Makefile.am): Likewise.
55270         * modules/gc-des (Makefile.am): Likewise.
55271         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55272         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55273         * modules/gc-md4 (Makefile.am): Likewise.
55274         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55275         * modules/gc-sha1 (Makefile.am): Likewise.
55276         * modules/gc (Makefile.am): Likewise.
55277         * modules/getaddrinfo (Makefile.am): Likewise.
55278         * modules/getcwd (Makefile.am): Likewise.
55279         * modules/getdelim (Makefile.am): Likewise.
55280         * modules/getdomainname (Makefile.am): Likewise.
55281         * modules/getgroups (Makefile.am): Likewise.
55282         * modules/gethostname (Makefile.am): Likewise.
55283         * modules/gethrxtime (Makefile.am): Likewise.
55284         * modules/getline (Makefile.am): Likewise.
55285         * modules/getloadavg (Makefile.am): Likewise.
55286         * modules/getlogin_r (Makefile.am): Likewise.
55287         * modules/getndelim2 (Makefile.am): Likewise.
55288         * modules/getopt (Makefile.am): Likewise.
55289         * modules/getpagesize (Makefile.am): Likewise.
55290         * modules/getpass-gnu (Makefile.am): Likewise.
55291         * modules/getpass (Makefile.am): Likewise.
55292         * modules/getsubopt (Makefile.am): Likewise.
55293         * modules/gettime (Makefile.am): Likewise.
55294         * modules/gettimeofday (Makefile.am): Likewise.
55295         * modules/getugroups (Makefile.am): Likewise.
55296         * modules/getusershell (Makefile.am): Likewise.
55297         * modules/glob (Makefile.am): Likewise.
55298         * modules/group-member (Makefile.am): Likewise.
55299         * modules/hard-locale (Makefile.am): Likewise.
55300         * modules/hash (Makefile.am): Likewise.
55301         * modules/hmac-md5 (Makefile.am): Likewise.
55302         * modules/hmac-sha1 (Makefile.am): Likewise.
55303         * modules/human (Makefile.am): Likewise.
55304         * modules/idcache (Makefile.am): Likewise.
55305         * modules/imaxabs (Makefile.am): Likewise.
55306         * modules/imaxdiv (Makefile.am): Likewise.
55307         * modules/inet_ntop (Makefile.am): Likewise.
55308         * modules/inet_pton (Makefile.am): Likewise.
55309         * modules/intprops (Makefile.am): Likewise.
55310         * modules/inttostr (Makefile.am): Likewise.
55311         * modules/inttypes (Makefile.am): Likewise.
55312         * modules/isapipe (Makefile.am): Likewise.
55313         * modules/javaversion (Makefile.am): Likewise.
55314         * modules/lchmod (Makefile.am): Likewise.
55315         * modules/lchown (Makefile.am): Likewise.
55316         * modules/localcharset (Makefile.am): Likewise.
55317         * modules/long-options (Makefile.am): Likewise.
55318         * modules/lstat (Makefile.am): Likewise.
55319         * modules/malloc (Makefile.am): Likewise.
55320         * modules/mathl (Makefile.am): Likewise.
55321         * modules/mbchar (Makefile.am): Likewise.
55322         * modules/md2 (Makefile.am): Likewise.
55323         * modules/md4 (Makefile.am): Likewise.
55324         * modules/md5 (Makefile.am): Likewise.
55325         * modules/memcasecmp (Makefile.am): Likewise.
55326         * modules/memchr (Makefile.am): Likewise.
55327         * modules/memcmp (Makefile.am): Likewise.
55328         * modules/memcoll (Makefile.am): Likewise.
55329         * modules/memcpy (Makefile.am): Likewise.
55330         * modules/memmem (Makefile.am): Likewise.
55331         * modules/memmove (Makefile.am): Likewise.
55332         * modules/mempcpy (Makefile.am): Likewise.
55333         * modules/memrchr (Makefile.am): Likewise.
55334         * modules/memset (Makefile.am): Likewise.
55335         * modules/memxor (Makefile.am): Likewise.
55336         * modules/mkancesdirs (Makefile.am): Likewise.
55337         * modules/mkdir-p (Makefile.am): Likewise.
55338         * modules/mkdir (Makefile.am): Likewise.
55339         * modules/mkdtemp (Makefile.am): Likewise.
55340         * modules/mkstemp (Makefile.am): Likewise.
55341         * modules/mktime (Makefile.am): Likewise.
55342         * modules/modechange (Makefile.am): Likewise.
55343         * modules/mountlist (Makefile.am): Likewise.
55344         * modules/nanosleep (Makefile.am): Likewise.
55345         * modules/obstack (Makefile.am): Likewise.
55346         * modules/openat (Makefile.am): Likewise.
55347         * modules/pagealign_alloc (Makefile.am): Likewise.
55348         * modules/pathmax (Makefile.am): Likewise.
55349         * modules/physmem (Makefile.am): Likewise.
55350         * modules/poll (Makefile.am): Likewise.
55351         * modules/posixtm (Makefile.am): Likewise.
55352         * modules/posixver (Makefile.am): Likewise.
55353         * modules/putenv (Makefile.am): Likewise.
55354         * modules/quote (Makefile.am): Likewise.
55355         * modules/quotearg (Makefile.am): Likewise.
55356         * modules/raise (Makefile.am): Likewise.
55357         * modules/read-file (Makefile.am): Likewise.
55358         * modules/readline (Makefile.am): Likewise.
55359         * modules/readlink (Makefile.am): Likewise.
55360         * modules/readtokens (Makefile.am): Likewise.
55361         * modules/readutmp (Makefile.am): Likewise.
55362         * modules/realloc (Makefile.am): Likewise.
55363         * modules/regex (Makefile.am): Likewise.
55364         * modules/rename-dest-slash (Makefile.am): Likewise.
55365         * modules/rename (Makefile.am): Likewise.
55366         * modules/rijndael (Makefile.am): Likewise.
55367         * modules/rmdir (Makefile.am): Likewise.
55368         * modules/rpmatch (Makefile.am): Likewise.
55369         * modules/safe-read (Makefile.am): Likewise.
55370         * modules/safe-write (Makefile.am): Likewise.
55371         * modules/same-inode (Makefile.am): Likewise.
55372         * modules/same (Makefile.am): Likewise.
55373         * modules/save-cwd (Makefile.am): Likewise.
55374         * modules/savedir (Makefile.am): Likewise.
55375         * modules/setenv (Makefile.am): Likewise.
55376         * modules/settime (Makefile.am): Likewise.
55377         * modules/sha1 (Makefile.am): Likewise.
55378         * modules/sig2str (Makefile.am): Likewise.
55379         * modules/snprintf (Makefile.am): Likewise.
55380         * modules/stat-macros (Makefile.am): Likewise.
55381         * modules/stat-time (Makefile.am): Likewise.
55382         * modules/stdbool (Makefile.am): Likewise.
55383         * modules/stdint (Makefile.am): Likewise.
55384         * modules/stdlib-safer (Makefile.am): Likewise.
55385         * modules/stpcpy (Makefile.am): Likewise.
55386         * modules/stpncpy (Makefile.am): Likewise.
55387         * modules/strcase (Makefile.am): Likewise.
55388         * modules/strcasestr (Makefile.am): Likewise.
55389         * modules/strchrnul (Makefile.am): Likewise.
55390         * modules/strcspn (Makefile.am): Likewise.
55391         * modules/strdup (Makefile.am): Likewise.
55392         * modules/strerror (Makefile.am): Likewise.
55393         * modules/strftime (Makefile.am): Likewise.
55394         * modules/strndup (Makefile.am): Likewise.
55395         * modules/strnlen (Makefile.am): Likewise.
55396         * modules/strpbrk (Makefile.am): Likewise.
55397         * modules/strsep (Makefile.am): Likewise.
55398         * modules/strstr (Makefile.am): Likewise.
55399         * modules/strtod (Makefile.am): Likewise.
55400         * modules/strtoimax (Makefile.am): Likewise.
55401         * modules/strtok_r (Makefile.am): Likewise.
55402         * modules/strtol (Makefile.am): Likewise.
55403         * modules/strtoll (Makefile.am): Likewise.
55404         * modules/strtoul (Makefile.am): Likewise.
55405         * modules/strtoull (Makefile.am): Likewise.
55406         * modules/strtoumax (Makefile.am): Likewise.
55407         * modules/strverscmp (Makefile.am): Likewise.
55408         * modules/sys_socket (Makefile.am): Likewise.
55409         * modules/sys_stat (Makefile.am): Likewise.
55410         * modules/sysexits (Makefile.am): Likewise.
55411         * modules/time_r (Makefile.am): Likewise.
55412         * modules/timegm (Makefile.am): Likewise.
55413         * modules/timespec (Makefile.am): Likewise.
55414         * modules/tmpfile-safer (Makefile.am): Likewise.
55415         * modules/trim (Makefile.am): Likewise.
55416         * modules/unistd-safer (Makefile.am): Likewise.
55417         * modules/unlinkdir (Makefile.am): Likewise.
55418         * modules/unlocked-io (Makefile.am): Likewise.
55419         * modules/userspec (Makefile.am): Likewise.
55420         * modules/utime (Makefile.am): Likewise.
55421         * modules/utimecmp (Makefile.am): Likewise.
55422         * modules/utimens (Makefile.am): Likewise.
55423         * modules/vasnprintf (Makefile.am): Likewise.
55424         * modules/vasprintf (Makefile.am): Likewise.
55425         * modules/vsnprintf (Makefile.am): Likewise.
55426         * modules/xalloc (Makefile.am): Likewise.
55427         * modules/xgetcwd (Makefile.am): Likewise.
55428         * modules/xnanosleep (Makefile.am): Likewise.
55429         * modules/xreadlink (Makefile.am): Likewise.
55430         * modules/xstrtod (Makefile.am): Likewise.
55431         * modules/xstrtol (Makefile.am): Likewise.
55432         * modules/xstrtold (Makefile.am): Likewise.
55433         * modules/yesno (Makefile.am): Likewise.
55434         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
55435
55436 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55437
55438         * modules/error (Makefile.am): Distribute files through
55439         EXTRA_DIST, not lib_SOURCES.
55440
55441 2006-10-12  Eric Blake  <ebb9@byu.net>
55442
55443         * modules/error (Makefile.am): Distribute files in /lib.
55444         * modules/obstack (Makefile.am): Likewise.
55445
55446 2006-10-12  Bruno Haible  <bruno@clisp.org>
55447
55448         * modules/acl (Makefile.am): Distribute all files in lib/ through
55449         EXTRA_DIST.
55450         * modules/arcfour (Makefile.am): Likewise.
55451         * modules/arctwo (Makefile.am): Likewise.
55452         * modules/argmatch (Makefile.am): Likewise.
55453         * modules/argz (Makefile.am): Likewise.
55454         * modules/atexit (Makefile.am): Likewise.
55455         * modules/backupfile (Makefile.am): Likewise.
55456         * modules/c-strtod (Makefile.am): Likewise.
55457         * modules/c-strtold (Makefile.am): Likewise.
55458         * modules/calloc (Makefile.am): Likewise.
55459         * modules/canon-host (Makefile.am): Likewise.
55460         * modules/canonicalize (Makefile.am): Likewise.
55461         * modules/chdir-long (Makefile.am): Likewise.
55462         * modules/chdir-safer (Makefile.am): Likewise.
55463         * modules/check-version (Makefile.am): Likewise.
55464         * modules/chown (Makefile.am): Likewise.
55465         * modules/cloexec (Makefile.am): Likewise.
55466         * modules/close-stream (Makefile.am): Likewise.
55467         * modules/closeout (Makefile.am): Likewise.
55468         * modules/crc (Makefile.am): Likewise.
55469         * modules/cycle-check (Makefile.am): Likewise.
55470         * modules/des (Makefile.am): Likewise.
55471         * modules/dirfd (Makefile.am): Likewise.
55472         * modules/dirname (Makefile.am): Likewise.
55473         * modules/dup2 (Makefile.am): Likewise.
55474         * modules/euidaccess (Makefile.am): Likewise.
55475         * modules/exclude (Makefile.am): Likewise.
55476         * modules/exitfail (Makefile.am): Likewise.
55477         * modules/fcntl-safer (Makefile.am): Likewise.
55478         * modules/file-type (Makefile.am): Likewise.
55479         * modules/fileblocks (Makefile.am): Likewise.
55480         * modules/filemode (Makefile.am): Likewise.
55481         * modules/filenamecat (Makefile.am): Likewise.
55482         * modules/fnmatch (Makefile.am): Likewise.
55483         * modules/fopen-safer (Makefile.am): Likewise.
55484         * modules/fpending (Makefile.am): Likewise.
55485         * modules/fprintftime (Makefile.am): Likewise.
55486         * modules/free (Makefile.am): Likewise.
55487         * modules/fsusage (Makefile.am): Likewise.
55488         * modules/ftruncate (Makefile.am): Likewise.
55489         * modules/fts (Makefile.am): Likewise.
55490         * modules/gc (Makefile.am): Likewise.
55491         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55492         * modules/getaddrinfo (Makefile.am): Likewise.
55493         * modules/getcwd (Makefile.am): Likewise.
55494         * modules/getdelim (Makefile.am): Likewise.
55495         * modules/getdomainname (Makefile.am): Likewise.
55496         * modules/getgroups (Makefile.am): Likewise.
55497         * modules/gethostname (Makefile.am): Likewise.
55498         * modules/gethrxtime (Makefile.am): Likewise.
55499         * modules/getline (Makefile.am): Likewise.
55500         * modules/getloadavg (Makefile.am): Likewise.
55501         * modules/getlogin_r (Makefile.am): Likewise.
55502         * modules/getopt (Makefile.am): Likewise.
55503         * modules/getpass (Makefile.am): Likewise.
55504         * modules/getpass-gnu (Makefile.am): Likewise.
55505         * modules/getsubopt (Makefile.am): Likewise.
55506         * modules/gettime (Makefile.am): Likewise.
55507         * modules/gettimeofday (Makefile.am): Likewise.
55508         * modules/getugroups (Makefile.am): Likewise.
55509         * modules/getusershell (Makefile.am): Likewise.
55510         * modules/glob (Makefile.am): Likewise.
55511         * modules/group-member (Makefile.am): Likewise.
55512         * modules/hard-locale (Makefile.am): Likewise.
55513         * modules/hash (Makefile.am): Likewise.
55514         * modules/hmac-md5 (Makefile.am): Likewise.
55515         * modules/hmac-sha1 (Makefile.am): Likewise.
55516         * modules/human (Makefile.am): Likewise.
55517         * modules/idcache (Makefile.am): Likewise.
55518         * modules/imaxabs (Makefile.am): Likewise.
55519         * modules/imaxdiv (Makefile.am): Likewise.
55520         * modules/inet_ntop (Makefile.am): Likewise.
55521         * modules/inet_pton (Makefile.am): Likewise.
55522         * modules/inttostr (Makefile.am): Likewise.
55523         * modules/isapipe (Makefile.am): Likewise.
55524         * modules/lchown (Makefile.am): Likewise.
55525         * modules/long-options (Makefile.am): Likewise.
55526         * modules/lstat (Makefile.am): Likewise.
55527         * modules/malloc (Makefile.am): Likewise.
55528         * modules/mathl (Makefile.am): Likewise.
55529         * modules/mbchar (Makefile.am): Likewise.
55530         * modules/md2 (Makefile.am): Likewise.
55531         * modules/md4 (Makefile.am): Likewise.
55532         * modules/md5 (Makefile.am): Likewise.
55533         * modules/memcasecmp (Makefile.am): Likewise.
55534         * modules/memchr (Makefile.am): Likewise.
55535         * modules/memcmp (Makefile.am): Likewise.
55536         * modules/memcoll (Makefile.am): Likewise.
55537         * modules/memcpy (Makefile.am): Likewise.
55538         * modules/memmem (Makefile.am): Likewise.
55539         * modules/memmove (Makefile.am): Likewise.
55540         * modules/mempcpy (Makefile.am): Likewise.
55541         * modules/memrchr (Makefile.am): Likewise.
55542         * modules/memset (Makefile.am): Likewise.
55543         * modules/memxor (Makefile.am): Likewise.
55544         * modules/mkancesdirs (Makefile.am): Likewise.
55545         * modules/mkdir (Makefile.am): Likewise.
55546         * modules/mkdir-p (Makefile.am): Likewise.
55547         * modules/mkdtemp (Makefile.am): Likewise.
55548         * modules/mkstemp (Makefile.am): Likewise.
55549         * modules/mktime (Makefile.am): Likewise.
55550         * modules/modechange (Makefile.am): Likewise.
55551         * modules/mountlist (Makefile.am): Likewise.
55552         * modules/nanosleep (Makefile.am): Likewise.
55553         * modules/openat (Makefile.am): Likewise.
55554         * modules/pagealign_alloc (Makefile.am): Likewise.
55555         * modules/physmem (Makefile.am): Likewise.
55556         * modules/poll (Makefile.am): Likewise.
55557         * modules/posixtm (Makefile.am): Likewise.
55558         * modules/posixver (Makefile.am): Likewise.
55559         * modules/putenv (Makefile.am): Likewise.
55560         * modules/quote (Makefile.am): Likewise.
55561         * modules/quotearg (Makefile.am): Likewise.
55562         * modules/raise (Makefile.am): Likewise.
55563         * modules/read-file (Makefile.am): Likewise.
55564         * modules/readline (Makefile.am): Likewise.
55565         * modules/readlink (Makefile.am): Likewise.
55566         * modules/readtokens (Makefile.am): Likewise.
55567         * modules/readutmp (Makefile.am): Likewise.
55568         * modules/realloc (Makefile.am): Likewise.
55569         * modules/regex (Makefile.am): Likewise.
55570         * modules/rename (Makefile.am): Likewise.
55571         * modules/rename-dest-slash (Makefile.am): Likewise.
55572         * modules/rijndael (Makefile.am): Likewise.
55573         * modules/rmdir (Makefile.am): Likewise.
55574         * modules/rpmatch (Makefile.am): Likewise.
55575         * modules/safe-read (Makefile.am): Likewise.
55576         * modules/safe-write (Makefile.am): Likewise.
55577         * modules/same (Makefile.am): Likewise.
55578         * modules/save-cwd (Makefile.am): Likewise.
55579         * modules/savedir (Makefile.am): Likewise.
55580         * modules/setenv (Makefile.am): Likewise.
55581         * modules/settime (Makefile.am): Likewise.
55582         * modules/sha1 (Makefile.am): Likewise.
55583         * modules/sig2str (Makefile.am): Likewise.
55584         * modules/snprintf (Makefile.am): Likewise.
55585         * modules/stdlib-safer (Makefile.am): Likewise.
55586         * modules/stpcpy (Makefile.am): Likewise.
55587         * modules/stpncpy (Makefile.am): Likewise.
55588         * modules/strcase (Makefile.am): Likewise.
55589         * modules/strcasestr (Makefile.am): Likewise.
55590         * modules/strchrnul (Makefile.am): Likewise.
55591         * modules/strcspn (Makefile.am): Likewise.
55592         * modules/strdup (Makefile.am): Likewise.
55593         * modules/strerror (Makefile.am): Likewise.
55594         * modules/strftime (Makefile.am): Likewise.
55595         * modules/strndup (Makefile.am): Likewise.
55596         * modules/strnlen (Makefile.am): Likewise.
55597         * modules/strpbrk (Makefile.am): Likewise.
55598         * modules/strsep (Makefile.am): Likewise.
55599         * modules/strstr (Makefile.am): Likewise.
55600         * modules/strtod (Makefile.am): Likewise.
55601         * modules/strtoimax (Makefile.am): Likewise.
55602         * modules/strtok_r (Makefile.am): Likewise.
55603         * modules/strtol (Makefile.am): Likewise.
55604         * modules/strtoll (Makefile.am): Likewise.
55605         * modules/strtoul (Makefile.am): Likewise.
55606         * modules/strtoull (Makefile.am): Likewise.
55607         * modules/strtoumax (Makefile.am): Likewise.
55608         * modules/strverscmp (Makefile.am): Likewise.
55609         * modules/time_r (Makefile.am): Likewise.
55610         * modules/timegm (Makefile.am): Likewise.
55611         * modules/tmpfile-safer (Makefile.am): Likewise.
55612         * modules/unistd-safer (Makefile.am): Likewise.
55613         * modules/unlinkdir (Makefile.am): Likewise.
55614         * modules/userspec (Makefile.am): Likewise.
55615         * modules/utime (Makefile.am): Likewise.
55616         * modules/utimecmp (Makefile.am): Likewise.
55617         * modules/utimens (Makefile.am): Likewise.
55618         * modules/vasnprintf (Makefile.am): Likewise.
55619         * modules/vasprintf (Makefile.am): Likewise.
55620         * modules/vsnprintf (Makefile.am): Likewise.
55621         * modules/xalloc (Makefile.am): Likewise.
55622         * modules/xgetcwd (Makefile.am): Likewise.
55623         * modules/xnanosleep (Makefile.am): Likewise.
55624         * modules/xreadlink (Makefile.am): Likewise.
55625         * modules/xstrtod (Makefile.am): Likewise.
55626         * modules/xstrtol (Makefile.am): Likewise.
55627         * modules/xstrtold (Makefile.am): Likewise.
55628         * modules/yesno (Makefile.am): Likewise.
55629
55630 2006-10-12  Jim Meyering  <jim@meyering.net>
55631
55632         * m4/getloadavg.m4: Revert the change below.
55633
55634         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
55635         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
55636         fail with a symlink, which is what coreutils' ./bootstrap now
55637         creates by default.
55638
55639 2006-10-12  Bruno Haible  <bruno@clisp.org>
55640
55641         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
55642         mingw.
55643         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
55644         MSVC and mingw explicitly.
55645
55646 2006-10-11  Simon Josefsson  <jas@extundo.com>
55647             Bruno Haible  <bruno@clisp.org>
55648
55649         Add support for multiple gnulib-tool invocations in the scope of a
55650         single configure.ac file.
55651         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
55652         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
55653         with the same contents as the _LIBADD variable.
55654         (func_emit_initmacro_start, func_emit_initmacro_end,
55655         func_emit_initmacro_done): New functions.
55656         (func_import, func_create_testdir): Invoke them. Allow the identifiers
55657         gl_LIBOBJS and gl_LTLIBOBJS.
55658
55659 2006-10-11  Bruno Haible  <bruno@clisp.org>
55660
55661         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
55662         (func_create_testdir): Don't create po/Makefile.am, don't invoke
55663         autoreconf. Instead, invoke autopoint explicitly but move back the
55664         *.m4 files from gnulib.
55665
55666 2006-10-11  Bruno Haible  <bruno@clisp.org>
55667
55668         * gnulib-tool (func_usage): Make module names after --create-testdir
55669         optional.
55670         (func_create_testdir): If no module was specified, use nearly all
55671         modules.
55672
55673 2006-10-12  Jim Meyering  <jim@meyering.net>
55674
55675         Big performance improvement for fts-based tools that use FTS_NOSTAT.
55676         Avoid spurious inode-mismatch problems on non-POSIX file systems.
55677         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
55678         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
55679         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
55680         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
55681         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
55682         (fts_set_stat_required): New function.
55683         (fts_open): Defer the calls to fts_stat, if possible or requested.
55684         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
55685         into fts_stat itself.
55686         (fts_read): Perform any required (deferred) fts_stat call.
55687         (fts_build): Likewise, for the directory we're about to open and read.
55688         In the readdir loop, carefully decide whether each entry will require
55689         an eventual call to fts_stat, using dirent.d_type info if available.
55690         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
55691         a command line argument into this function.  Update all callers.
55692         Map a return value of FTS_DOT to FTS_D for a command line argument.
55693         * modules/fts (Depends-on): Add d-type.  Alphabetize.
55694         Thanks to Miklos Szeredi for his tenacity and for the initial
55695         bug report about "find" failing on a FUSE-based file system.
55696
55697         * lib/fts.c (fts_open): Use consistent indentation.
55698
55699 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55700
55701         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
55702         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
55703         reported by Jim Meyering.  All uses of cache variables renamed
55704         to match Autoconf's.
55705         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
55706         the other one.
55707
55708         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
55709         Fix misspelling in diagnostic.
55710
55711 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55712
55713         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
55714         defined.  Problem reported by Matthew Woehlke.
55715
55716         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
55717         Add support for Tandem NonStop R series.
55718         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
55719         Use new macro.
55720
55721         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
55722         (has_trailing_slash): Omit size arg; all callers changed.
55723         Omit 'inline', since it doesn't help performance and we'd
55724         need to configure it.
55725         Don't count //, ///, etc. as having a trailing slash.
55726         As a side effect, this removes a C99ism reported by Matthew Woehlke.
55727         (rpl_rename_dest_slash): On failure, use rename's errno rather
55728         than (in some cases) an incorrect or junk errno.
55729         Simplify code by removing need to compute length; this does
55730         cause it to make two passes instead of one over the file name,
55731         but it's worth it.
55732
55733         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
55734         change, since Autoconf's version may no longer be appropriate now
55735         that we are using CVS Autoconf's version.  Add support for Tandem.
55736
55737 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55738             Bruno Haible  <bruno@clisp.org>
55739
55740         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
55741         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
55742         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
55743         gl_AC_TYPE_LONG_LONG.
55744
55745         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
55746         instead of HAVE_LONG_LONG.
55747         * lib/printf-args.c (printf_fetchargs): Likewise.
55748         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55749         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55750         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
55751         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
55752         gl_AC_TYPE_LONG_LONG.
55753
55754 2006-10-11  Bruno Haible  <bruno@clisp.org>
55755
55756         * m4/longlong.m4: Add comments.
55757         * m4/ulonglong.m4: Likewise.
55758
55759 2006-10-10  Bruno Haible  <bruno@clisp.org>
55760
55761         Make it possible to #define stpcpy, strdup to aliases.
55762         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
55763         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
55764
55765 2006-10-10  Bruno Haible  <bruno@clisp.org>
55766
55767         Make it possible to #define gcd to an alias.
55768         * lib/gcd.c: Include config.h.
55769
55770 2006-10-10  Bruno Haible  <bruno@clisp.org>
55771
55772         Make it possible to #define c_isascii to an alias.
55773         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
55774         defined. Undefine the macros before defining them, to avoid gcc
55775         warnings.
55776         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
55777         define NO_C_CTYPE_MACROS early.
55778
55779 2006-10-10  Bruno Haible  <bruno@clisp.org>
55780
55781         Make it possible to #define set_program_name to an alias.
55782         * lib/progname.c: Don't undefine set_program_name; instead, undefine
55783         ENABLE_RELOCATABLE early.
55784
55785 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55786
55787         Port to Tandem NSK OSS, which has 64-bit signed int but at most
55788         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
55789         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
55790         More generally, don't assume that 64-bit signed int is available
55791         if unsigned int is, and vice versa.
55792         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
55793         unsigned symbols, not on their signed counterparts.
55794         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
55795         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
55796         (UINT64_C, UINTMAX_C):
55797         Likewise.
55798         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
55799         unsigned counterparts.
55800         (Have_long_long, Unsigned): New macros.
55801         (Int): Renamed from INT.
55802         (strtoimax): Use the new macros.
55803         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
55804         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
55805         * modules/inttypes (inttypes.h): Substitute
55806         HAVE_UNSIGNED_LONG_LONG_INT.
55807         * modules/stdint (stdint.h): Likewise.
55808         (Files): Add m4/ulonglong.m4.
55809
55810 2006-10-10  Bruno Haible  <bruno@clisp.org>
55811
55812         Fix a gcc -Wshadow warning.
55813         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
55814         to 'bucket'.
55815         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
55816         gl_linked_indexof_from_to): Likewise.
55817         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
55818         Likewise.
55819         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
55820         Likewise.
55821         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
55822         Reported by Eric Blake.
55823
55824 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
55825
55826         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
55827         for NetBSD.  Problem reported by Bruno Haible.
55828
55829 2006-10-09  Jim Meyering  <jim@meyering.net>
55830
55831         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
55832         Patch from Bruno Haible.
55833
55834 2006-10-09  Jim Meyering  <jim@meyering.net>
55835
55836         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
55837         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
55838         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
55839
55840 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55841
55842         Don't include <config.h> twice; this doesn't work in some cases,
55843         e.g., when config.h has "#define intmax_t long long int" and
55844         we include <config.h>, <inttypes.h>, <config.h> in that order.
55845         Problem reported by Matthew Woehlke in:
55846         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
55847         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
55848         * lib/fts-cycle.c: Don't include config.h.
55849         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
55850         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
55851         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
55852         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
55853         inttypes.h.
55854         * lib/xstrtoumax.c: Likewise.
55855         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
55856         __strtol and the like, so that this module is more like its siblings.
55857         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
55858         Remove; no longer needed now that we assume gnulib inttypes.h.
55859
55860 2006-10-08  Bruno Haible  <bruno@clisp.org>
55861
55862         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
55863         option.
55864
55865 2006-10-07  Jim Meyering  <jim@meyering.net>
55866
55867         * modules/inttypes (inttypes.h): Revert what seems to have been
55868         an inadvertent part of today's change: use "|", not "/" in the
55869         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
55870
55871 2006-10-07  Bruno Haible  <bruno@clisp.org>
55872
55873         * modules/sublist: New file.
55874
55875 2006-10-07  Bruno Haible  <bruno@clisp.org>
55876
55877         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
55878         * modules/argz (argz.h): Likewise.
55879         * modules/arpa_inet (arpa/inet.h): Likewise.
55880         * modules/byteswap (byteswap.h): Likewise.
55881         * modules/configmake (configmake.h): Likewise.
55882         * modules/fcntl (fcntl.h): Likewise.
55883         * modules/fnmatch (fnmatch.h): Likewise.
55884         * modules/getopt (getopt.h): Likewise.
55885         * modules/glob (glob.h): Likewise.
55886         * modules/inttypes (inttypes.h): Likewise.
55887         * modules/netinet_in (netinet/in.h): Likewise.
55888         * modules/poll (poll.h): Likewise.
55889         * modules/stdbool (stdbool.h): Likewise.
55890         * modules/stdint (stdint.h): Likewise.
55891         * modules/sys_select (sys/select.h): Likewise.
55892         * modules/sys_socket (sys/socket.h): Likewise.
55893         * modules/sys_stat (sys/stat.h): Likewise.
55894         * modules/sysexits (sysexits.h): Likewise.
55895         * modules/unistd (unistd.h): Likewise.
55896         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55897         Add a "DO NOT EDIT" comment to the generated file.
55898         (func_import): Likewise for gnulib-comp.m4.
55899
55900 2006-10-07  Bruno Haible  <bruno@clisp.org>
55901
55902         * lib/gl_sublist.h: New file.
55903         * lib/gl_sublist.c: New file.
55904
55905 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55906
55907         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
55908         name (relative to the original working directory) and the file
55909         name component (relative to the temporary working directory).  All
55910         callers changed.
55911         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
55912         * lib/mkdir-p.c (make_dir_parents): Likewise.
55913         * lib/mkdir-p.h (make_dir_parents): Likewise.
55914
55915 2006-10-06  Eric Blake  <ebb9@byu.net>
55916
55917         Define several macros for use by the clean-temp module.
55918         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
55919         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
55920         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
55921
55922         * lib/clean-temp.h (close_stream_temp): New declaration.
55923         * lib/clean-temp.c (includes): Pull in headers according to what
55924         other modules are in use.
55925         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
55926
55927 2006-10-06  Bruno Haible  <bruno@clisp.org>
55928
55929         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
55930         instead of fopen, fwriteerror.
55931
55932 2006-10-06  Bruno Haible  <bruno@clisp.org>
55933
55934         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
55935         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
55936         int.
55937         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
55938         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
55939         Return an error indicator.
55940         Suggested by Eric Blake.
55941
55942 2006-10-06  Bruno Haible  <bruno@clisp.org>
55943
55944         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
55945         Reported by Eric Blake.
55946
55947 2006-10-06  Bruno Haible  <bruno@clisp.org>
55948
55949         * modules/closeout (Description): Mention stderr too.
55950
55951 2006-10-06  Bruno Haible  <bruno@clisp.org>
55952         and Paul Eggert  <eggert@cs.ucla.edu>
55953
55954         * lib/closeout.c (close_stdout): Also close stderr.
55955         * lib/closeout.h: Update comment.
55956
55957 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55958
55959         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
55960         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
55961         * lib/dirchownmod.c: Include lchown.h.
55962         * lib/lchown.c: Don't include files that lchown.h now includes.
55963         Don't declare chown, since lchown.h now does that.
55964         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
55965         (lchown): Define to rpl_chown if lchown is declared but
55966         does not exist.  Declare using a prototype if lchown is not
55967         declared.  Add a copyright notice.
55968         * lib/mkstemp.h: Include <unistd.h>.
55969         * lib/openat.c: Include lchown.h.
55970
55971         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
55972         we now test for that separately.
55973         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
55974         rather than O_NOFOLLOW, when testing whether it's possible to
55975         avoid a race condition reliably.
55976         * lib/savewd.c (savewd_chdir): Likewise.
55977
55978         Remove macros that are no longer needed now that stdint.h is
55979         reliable.
55980         * lib/fsusage.c (UINTMAX_MAX): Remove.
55981         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
55982         * lib/utimecmp.c (SIZE_MAX): Remove.
55983
55984         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
55985
55986         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
55987         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
55988         O_NOATIME works.
55989
55990 2006-10-05  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/gl_list.h (gl_sortedlist_search_from_to,
55993         gl_sortedlist_indexof_from_to): New declarations.
55994         (gl_list_implementation): New fields sortedlist_search_from_to,
55995         sortedlist_indexof_from_to.
55996         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
55997         inline functions.
55998         * lib/gl_list.c (gl_sortedlist_search_from_to,
55999         gl_sortedlist_indexof_from_to): New functions.
56000         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56001         function.
56002         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56003         (gl_array_sortedlist_search_from_to): New function.
56004         (gl_array_list_implementation): Update.
56005         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56006         function.
56007         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56008         (gl_carray_sortedlist_search_from_to): New function.
56009         (gl_carray_list_implementation): Update.
56010         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56011         gl_linked_sortedlist_indexof_from_to): New functions.
56012         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56013         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56014         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56015         gl_tree_sortedlist_indexof_from_to): New functions.
56016         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56017         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56018         Update.
56019         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56020         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56021         Update.
56022
56023 2006-10-05  Bruno Haible  <bruno@clisp.org>
56024
56025         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56026         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56027         (struct gl_list_implementation): Add fields search_from_to,
56028         indexof_from_to. Remove fields search, indexof.
56029         (gl_list_search): Use the search_from_to method.
56030         (gl_list_search_from, gl_list_search_from_to): New functions.
56031         (gl_list_indexof): Use the indexof_from_to method.
56032         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56033         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56034         (gl_list_search_from, gl_list_search_from_to): New functions.
56035         (gl_list_indexof): Use the indexof_from_to method.
56036         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56037         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56038         gl_array_indexof. Add start_index, end_index arguments.
56039         (gl_array_search_from_to): Renamed from gl_array_search. Add
56040         start_index, end_index arguments.
56041         (gl_array_remove, gl_array_list_implementation): Update.
56042         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56043         gl_carray_indexof. Add start_index, end_index arguments.
56044         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56045         start_index, end_index arguments.
56046         (gl_carray_remove, gl_carray_list_implementation): Update.
56047         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56048         gl_linked_search. Add start_index, end_index arguments.
56049         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56050         start_index, end_index arguments.
56051         (gl_linked_remove): Update.
56052         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56053         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56054         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56055         field to 'size_t'.
56056         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56057         gl_tree_search. Add start_index, end_index arguments.
56058         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56059         start_index, end_index arguments.
56060         (gl_tree_remove): Update.
56061         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56062         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56063         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56064         function.
56065         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56066         gl_tree_search. Add start_index, end_index arguments.
56067         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56068         start_index, end_index arguments.
56069         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56070         Update.
56071         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56072
56073 2006-10-05  Bruno Haible  <bruno@clisp.org>
56074
56075         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56076
56077         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56078         fwriteerror_temp): New declarations.
56079         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56080         (descriptors): New variable.
56081         (cleanup): First, close the descriptors.
56082         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56083         fclose_temp, fwriteerror_temp): New functions.
56084
56085 2006-10-04  Jim Meyering  <jim@meyering.net>
56086
56087         * lib/fts.c (fts_open): Tiny comment change.
56088
56089 2006-10-04  Bruno Haible  <bruno@clisp.org>
56090
56091         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56092         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56093         gl_LOCK_BODY.
56094         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56095         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56096         gl_LOCK_EARLY_BODY.
56097         (gl_LOCK): Require gl_LOCK_BODY.
56098
56099 2006-10-04  Bruno Haible  <bruno@clisp.org>
56100
56101         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56102         (gl_oset_search_atleast): New declaration.
56103         (struct gl_oset_implementation): Add field 'search_atleast'.
56104         (gl_oset_search_atleast): New inline function.
56105         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56106         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56107         (gl_array_oset_implementation): Update.
56108         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56109         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56110         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56111
56112 2006-10-04  Bruno Haible  <bruno@clisp.org>
56113
56114         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56115
56116 2006-10-03  Bruno Haible  <bruno@clisp.org>
56117
56118         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56119         from gl_avltreehash_list_implementation.
56120
56121 2006-10-03  Bruno Haible  <bruno@clisp.org>
56122
56123         * lib/gl_oset.c (gl_oset_add): Fix return type.
56124
56125 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56126
56127         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56128
56129 2006-10-02  Eric Blake  <ebb9@byu.net>
56130
56131         * modules/strnlen (Depends-on): Add extensions.
56132
56133 2006-10-02  Eric Blake  <ebb9@byu.net>
56134
56135         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56136         definition in 2.60+.
56137
56138 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56139
56140         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56141         checks.
56142
56143 2006-10-02  Bruno Haible  <bruno@clisp.org>
56144
56145         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56146         to the AUTOMAKE_OPTIONS.
56147         Reported by Jim Meyering.
56148
56149 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56150
56151         Work around bug in Solaris 10 /proc file system:
56152         /proc/self/fd/NNN/.. isn't the parent directory of
56153         the directory whose file descriptor is NNN.  This needs to
56154         be worked around at run time, not compile time, since a
56155         program might be built on Solaris 8, where things work, and
56156         run on Solaris 10.
56157         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56158         to use the following interface instead:
56159         (OPENAT_BUFFER_SIZE): New macro.
56160         (openat_proc_name): New function.
56161         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56162         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56163         Likewise.
56164         * lib/openat-proc.c: New file.
56165         * modules/openat (Files): Add lib/openat-proc.c.
56166         (Depends-on): Add same-inode, stdbool.
56167         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56168
56169 2006-09-29  Bruno Haible  <bruno@clisp.org>
56170
56171         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56172         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56173         argument. Set stdout_closed before testing for ferror, not after.
56174         (fwriteerror, fwriteerror_no_ebadf): New functions.
56175
56176 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56177
56178         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56179
56180 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56181
56182         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56183         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56184
56185 2006-09-28  Jim Meyering  <jim@meyering.net>
56186
56187         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56188         Include <unistd.h>.
56189
56190 2006-09-28  Bruno Haible  <bruno@clisp.org>
56191
56192         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56193         * modules/linkedhash-list (Depends-on): Likewise.
56194         * modules/rbtreehash-list (Depends-on): Likewise.
56195
56196 2006-09-28  Bruno Haible  <bruno@clisp.org>
56197
56198         * lib/strndup.h: Simplify the redefinition of strndup.
56199         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56200         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56201
56202 2006-09-28  Bruno Haible  <bruno@clisp.org>
56203
56204         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56205         * lib/gl_linkedhash_list.c: Likewise.
56206         * lib/gl_rbtreehash_list.c: Likewise.
56207
56208 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56209
56210         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56211         getaddrinfo.
56212
56213         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56214         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56215         it causes <stdio_ext.h> to cause a compile-time error.
56216         Problem reported by Nelson H. F. Beebe.
56217         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56218         of HAVE_DECL___PENDING.
56219
56220         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56221         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56222         declaration.
56223
56224 2006-09-27  Jim Meyering  <jim@meyering.net>
56225
56226         This file could end up with a definition for a function
56227         named __strndup, rather than rpl_strndup on a system with
56228         incomplete weak_alias support.
56229         * lib/strndup.c (strndup): Rename from __strndup.
56230         Remove #defines that used to map __strndup to strndup.
56231         Don't use K&R prototypes.
56232         Remove LIBC-related code, since this file is not sync'd with glibc.
56233         * lib/strndup.h: Revamp, accordingly.
56234         * m4/strndup.m4: Modernize.
56235
56236 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56237
56238         * modules/savewd (Depends-on): Add 'raise'.
56239         * lib/savewd.c: Include <signal.h>, for 'raise'.
56240
56241 2006-09-26  Jim Meyering  <jim@meyering.net>
56242
56243         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56244         when we detect Darwin 8.7.0's acl_get_file bug.
56245         Rearrange to perform the new (below) run-test while $LIBS
56246         contains any acl-related library.  Set USE_ACL at the end.
56247         (gl_ACL_GET_FILE): New function.
56248
56249 2006-09-26  Eric Blake  <ebb9@byu.net>
56250
56251         * lib/verror.c: Include <config.h> unconditionally.
56252
56253 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56254
56255         * modules/clock-time (Maintainer): Add self.
56256         * modules/getlogin_r (Depends-on): Add extensions.
56257
56258 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56259
56260         * modules/clock-time: New module.
56261         * modules/nanosleep (Depends-on): Add clock-time.
56262         * modules/gethrxtime (Depends-on): Likewise.
56263         * modules/gettime (Depends-on): Likewise.
56264         * modules/settime (Depends-on): Likewise.
56265
56266         * modules/fts-lgpl: Depend on openat.
56267         * modules/mkancesdirs: Depend on savewd.
56268         * modules/mkdir-p: Likewise.
56269
56270 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56271
56272         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56273
56274         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56275         `gl_have_arbitrary_file_name_length_limit' to
56276         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56277         actually works between configure runs.
56278
56279 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56280             Bruno Haible  <bruno@clisp.org>
56281
56282         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56283
56284 2006-09-25  Jim Meyering  <jim@meyering.net>
56285
56286         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56287         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56288
56289 2006-09-25  Eric Blake  <ebb9@byu.net>
56290
56291         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56292         exec's in 2006-09-18 patch when shuffling fds.
56293
56294 2006-09-25  Bruno Haible  <bruno@clisp.org>
56295
56296         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56297         Reported by Jim Meyering.
56298
56299 2006-09-24  Jim Meyering  <jim@meyering.net>
56300
56301         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56302         compare a pointer against a literal "0".  That caused failures with
56303         at least HP-UX's hpcc.
56304
56305 2006-09-22  Simon Josefsson  <jas@extundo.com>
56306
56307         * modules/gc-sha1:
56308         * modules/gc-md4:
56309         * modules/gc-hmac-sha1:
56310         * modules/gc-hmac-md5:
56311         * modules/gc-des:
56312         * modules/gc-arcfour: Distribute more files.
56313
56314 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56315
56316         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56317         (gl_linked_iterator_from_to): Initialize struct completely.
56318         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56319         (gl_tree_iterator_from_to): Likewise
56320         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56321         * lib/gl_array_list.c [lint] (gl_array_iterator)
56322         (gl_array_iterator_from_to): Likewise.
56323         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56324         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56325         (gl_carray_iterator_from_to): Likewise.
56326
56327         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56328         * lib/md4.c (md4_process_block): Remove unused variable.
56329         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56330         parentheses for clarity.
56331
56332 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56333
56334         * modules/bison-i18n (Depends-on): Add gettext.
56335
56336 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56337
56338         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56339         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56340         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56341         also add missing comma that caused broken test.
56342         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56343         stdlib.h, for `abort'.
56344         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56345         variables.
56346         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56347         include unistd.h if present, for `rmdir'.
56348         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56349         variables.
56350         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
56351         in the process include standard headers for prototypes.
56352         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
56353         gets declared on GNU/Linux.
56354         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56355         unistd.h, for `rmdir'.
56356         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56357
56358         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56359         always true.
56360         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56361
56362         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56363
56364 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56365
56366         * gnulib-tool (func_version): Create output all at once.  This
56367         may help avoid triggering unnecessary SIGPIPEs, and at any
56368         rate it doesn't hurt.
56369
56370 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56371             Bruno Haible  <bruno@clisp.org>
56372
56373         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56374         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56375         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56376
56377         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56378         (gl_FUNC_VASPRINTF): Invoke it.
56379
56380 2006-09-22  Bruno Haible  <bruno@clisp.org>
56381
56382         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56383         getloadavg.c as first argument.
56384
56385 2006-09-22  Bruno Haible  <bruno@clisp.org>
56386
56387         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56388         at the beginning of the gl_INIT macro.
56389         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56390         gl_GETLOADAVG.
56391
56392 2006-09-22  Bruno Haible  <bruno@clisp.org>
56393
56394         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56395         module.
56396         Suggested by Ralf Wildenhues.
56397
56398 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56399
56400         Import this patch from libc:
56401
56402         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56403
56404         * lib/regex_internal.c (re_string_reconstruct): Handle
56405         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56406         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56407         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56408         re_string_context_at.
56409
56410         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56411         now requires it.
56412         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56413         gl_REGEX now does it for us.
56414         (gl_REGEX): Add test taken from
56415         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56416
56417         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
56418         Check that large offsets work.  Modernize Autoconf usages.
56419         Prefer "yes" to mean a good thing rather than a bad.
56420         Don't put "#define mkstemp" in config.h, as this might interfere
56421         with standard system headers that "#define mkstemp mkstemp64".
56422
56423         * modules/mkstemp (Depends-on): Add extensions, so that
56424         mkstemp is visible on some platforms.
56425         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
56426         (Include): Change to "mkstemp.h" from <stdlib.h>.
56427         (Files): Add mkstemp.h.
56428
56429         * lib/mkstemp.h: New file, since some standard headers
56430         #define mkstemp.
56431         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
56432         Include "mkstemp.h".
56433         Make the _LIBC code resemble glibc original more,
56434         e.g., use K&R style.
56435         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
56436         (mkstemp): Remove, since mkstemp.h does this for us.
56437         * lib/stdlib--.h: Include mkstemp.h.
56438
56439         Import this patch from libc:
56440
56441         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56442
56443         * lib/tempname.c (__gen_tempname): Change attempts_min
56444         into a macro.  Use preprocessor to decide how to initialize
56445         attempts [Coverity CID 67].
56446
56447 2006-09-20  Bruno Haible  <bruno@clisp.org>
56448
56449         * lib/mkdtemp.c: Import from libc.
56450         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56451                 * sysdeps/posix/tempname.c (__gen_tempname): Change
56452                 attempts_min into a macro.  Use preprocessor to decide how to
56453                 initialize attempts [Coverity CID 67].
56454         2001-11-27  Paul Eggert  <eggert@twinsun.com>
56455                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
56456                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
56457
56458 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56459
56460         * gnulib-tool (func_exit): New function, to allow to pass the
56461         exit status portably through the trap.  Use everywhere.
56462         (--help, --version): Signal a write error.
56463         (trap): catch SIGPIPE, for write errors.
56464         Exit at the end of the trap, with the correct exit status.
56465
56466 2006-09-19  Karl Berry  <karl@gnu.org>
56467
56468         * doc/gnulib.texi: note about the license texinfo files.
56469
56470 2006-09-19  Eric Blake  <ebb9@byu.net>
56471
56472         * gnulib-tool: Avoid space-tab.
56473
56474 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
56477         that prevented coreutils 6.1 from building.  Problem reported
56478         by Petter Reinholdtsen.
56479
56480 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56481
56482         * gnulib-tool (avoidlist): Fix typo that broke options like
56483         --avoid=lock that are used by coreutils bootstrap.
56484
56485 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
56486
56487         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
56488         more systematically.
56489
56490 2006-09-18  Jim Meyering  <jim@meyering.net>
56491
56492         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
56493
56494 2006-09-18  Bruno Haible  <bruno@clisp.org>
56495
56496         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
56497
56498 2006-09-18  Bruno Haible  <bruno@clisp.org>
56499
56500         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
56501         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
56502         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
56503         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
56504         * m4/gettext.m4: Require autoconf >= 2.52.
56505         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
56506         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
56507         of gl_cv_header_inttypes_h.
56508
56509 2006-09-18  Bruno Haible  <bruno@clisp.org>
56510
56511         * lib/javaversion.c: Include configmake.h.
56512
56513 2006-09-18  Bruno Haible  <bruno@clisp.org>
56514
56515         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
56516         avoid that the while loops be executed in a subshell.
56517
56518 2006-09-18  Bruno Haible  <bruno@clisp.org>
56519
56520         * MODULES.html.sh (func_module): Break long lines.
56521         Suggested by Bruce Korb <bkorb@gnu.org>.
56522
56523 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56524
56525         Speed up by a factor of 1.12.
56526         * gnulib-tool (nl): New variable.
56527         (func_import): Rewrite include directive extraction to only read each
56528         directive once.
56529
56530 2006-09-17  Bruno Haible  <bruno@clisp.org>
56531
56532         * modules/javaversion (Makefile.am): Remove DEFS setting.
56533         (Depends-on): Add configmake, for PKGDATADIR definition.
56534
56535 2006-09-17  Bruno Haible  <bruno@clisp.org>
56536
56537         * gnulib-tool (func_create_testdir): Rewrite all files at once.
56538
56539 2006-09-17  Bruno Haible  <bruno@clisp.org>
56540
56541         * gnulib-tool (func_append): New function, stolen from libtool.m4.
56542         (func_modules_transitive_closure, func_modules_add_dummy,
56543         func_modules_to_filelist, func_import, func_create_testdir,
56544         func_create_megatestdir, ...): Use it wherever possible.
56545         Suggested by Ralf Wildenhues.
56546
56547 2006-09-16  Karl Berry  <karl@gnu.org>
56548
56549         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
56550         to avoid sectioning errors.
56551         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
56552         [ifinfo]: blank line after @center-ed titles.
56553         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
56554         Spell FSF address consistently with others.
56555         (These changes approved by rms.)
56556
56557 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56558
56559         Speed up by a factor of 1.61.
56560         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
56561         already checked module names again.
56562
56563 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56564
56565         Speed up by a factor of 1.13.
56566         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
56567         for new_files, and the input to func_add_or_update.
56568
56569 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56570
56571         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
56572         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
56573
56574 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56575
56576         * modules/mkancesdirs (Depends-on): Add fcntl.
56577         * modules/savewd: New file.
56578         * MODULES.html.sh (File system functions): Add savewd.
56579
56580         * modules/configmake (Makefile.am): Add support for the
56581         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
56582
56583 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56584
56585         * m4/savewd.m4: New file.
56586
56587 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56588
56589         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
56590         (dirchownmod): New arg FD.  All callers changed.
56591         Use FD rather than opening the directory ourself, as opening is
56592         now the caller's responsibility.
56593         * lib/dirchownmod.h: Likewise.
56594         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
56595         hosts that require <sys/types.h> before <sys/stat.h>.  Include
56596         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
56597         (test_dir): Remove.
56598         (mkancesdirs): Return length of prefix of FILE that has already
56599         been made, or -2 if there is a child doing the work.  Redo
56600         algorithm so that it is O(N) rather than O(N**2).  Optimize away
56601         ".", and treat ".." specially since it might stray back into
56602         already-created areas.  Use a subprocess if necessary.  New arg
56603         WD; all users changed.  MAKE_DIR function should now return 1
56604         if it creates a directory that is not readable.  Return -2 if
56605         a child process is spun off.
56606         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
56607         Adjust signature to match code.
56608         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
56609         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
56610         all users changed.
56611         * lib/savewd.c, lib/savewd.h: New files.
56612
56613 2006-09-15  Jim Meyering  <jim@meyering.net>
56614
56615         * modules/rename-dest-slash: New module.
56616         * MODULES.html.sh (posix_compat): Add it here.
56617
56618         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
56619
56620 2006-09-15  Jim Meyering  <jim@meyering.net>
56621
56622         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
56623         file.
56624
56625         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
56626
56627 2006-09-15  Jim Meyering  <jim@meyering.net>
56628
56629         * lib/rename-dest-slash.c (has_trailing_slash): Use
56630         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
56631         (rpl_rename_dest_slash): Perform the cheaper trailing slash
56632         test before testing whether SRC is a directory.
56633         Suggestions from Bruno Haible.
56634
56635         Avoid a warning about an unused variable.
56636         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
56637         into the #ifdef block where it's used.
56638
56639         * lib/rename-dest-slash.c: New file.
56640
56641 2006-09-14  Bruno Haible  <bruno@clisp.org>
56642
56643         * lib/allocsa.c: Include <config.h> unconditionally.
56644         * lib/asnprintf.c: Likewise.
56645         * lib/asprintf.c: Likewise.
56646         * lib/c-strcasecmp.c: Likewise.
56647         * lib/c-strcasestr.c: Likewise.
56648         * lib/c-strncasecmp.c: Likewise.
56649         * lib/c-strstr.c: Likewise.
56650         * lib/classpath.c: Likewise.
56651         * lib/clean-temp.c: Likewise.
56652         * lib/concatpath.c: Likewise.
56653         * lib/copy-file.c: Likewise.
56654         * lib/csharpcomp.c: Likewise.
56655         * lib/csharpexec.c: Likewise.
56656         * lib/execute.c: Likewise.
56657         * lib/fatal-signal.c: Likewise.
56658         * lib/findprog.c: Likewise.
56659         * lib/fwriteerror.c: Likewise.
56660         * lib/gl_array_list.c: Likewise.
56661         * lib/gl_array_oset.c: Likewise.
56662         * lib/gl_avltree_list.c: Likewise.
56663         * lib/gl_avltree_oset.c: Likewise.
56664         * lib/gl_avltreehash_list.c: Likewise.
56665         * lib/gl_carray_list.c: Likewise.
56666         * lib/gl_linked_list.c: Likewise.
56667         * lib/gl_linkedhash_list.c: Likewise.
56668         * lib/gl_list.c: Likewise.
56669         * lib/gl_oset.c: Likewise.
56670         * lib/gl_rbtree_list.c: Likewise.
56671         * lib/gl_rbtree_oset.c: Likewise.
56672         * lib/gl_rbtreehash_list.c: Likewise.
56673         * lib/imaxabs.c: Likewise.
56674         * lib/imaxdiv.c: Likewise.
56675         * lib/javacomp.c: Likewise.
56676         * lib/javaexec.c: Likewise.
56677         * lib/javaversion.c: Likewise.
56678         * lib/linebreak.c: Likewise.
56679         * lib/localcharset.c: Likewise.
56680         * lib/lock.c: Likewise.
56681         * lib/mbchar.c: Likewise.
56682         * lib/mbswidth.c: Likewise.
56683         * lib/mkdtemp.c: Likewise.
56684         * lib/pipe.c: Likewise.
56685         * lib/printf-args.c: Likewise.
56686         * lib/printf-parse.c: Likewise.
56687         * lib/progname.c: Likewise.
56688         * lib/progreloc.c: Likewise.
56689         * lib/readlink.c: Likewise.
56690         * lib/sh-quote.c: Likewise.
56691         * lib/stpcpy.c: Likewise.
56692         * lib/stpncpy.c: Likewise.
56693         * lib/strcasecmp.c: Likewise.
56694         * lib/strcasestr.c: Likewise.
56695         * lib/strcspn.c: Likewise.
56696         * lib/striconv.c: Likewise.
56697         * lib/strncasecmp.c: Likewise.
56698         * lib/strnlen1.c: Likewise.
56699         * lib/strstr.c: Likewise.
56700         * lib/strtok_r.c: Likewise.
56701         * lib/tls.c: Likewise.
56702         * lib/tmpdir.c: Likewise.
56703         * lib/unicodeio.c: Likewise.
56704         * lib/unsetenv.c: Likewise.
56705         * lib/vasnprintf.c: Likewise.
56706         * lib/vasprintf.c: Likewise.
56707         * lib/wait-process.c: Likewise.
56708         * lib/xallocsa.c: Likewise.
56709         * lib/xsetenv.c: Likewise.
56710         * lib/xstriconv.c: Likewise.
56711
56712 2006-09-13  Simon Josefsson  <jas@extundo.com>
56713
56714         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
56715         that internally, suggested by Ralf Wildenhues
56716         <Ralf.Wildenhues@gmx.de>.
56717
56718 2006-09-13  Simon Josefsson  <jas@extundo.com>
56719
56720         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
56721         @LIBOBJS@.
56722         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56723
56724 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56725
56726         * lib/_fpending.c: Include <config.h> unconditionally, since we no
56727         longer worry about uses that don't define HAVE_CONFIG_H.
56728         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
56729         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
56730         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
56731         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
56732         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
56733         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
56734         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
56735         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
56736         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
56737         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
56738         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
56739         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
56740         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
56741         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
56742         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
56743         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
56744         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
56745         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
56746         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
56747         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
56748         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
56749         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
56750         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
56751         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
56752         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
56753         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
56754         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
56755         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
56756         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
56757         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
56758         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
56759         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
56760         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
56761         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
56762         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
56763         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
56764         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
56765         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
56766         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
56767         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
56768         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
56769         Likewise.
56770
56771 2006-09-13  Eric Blake  <ebb9@byu.net>
56772
56773         * lib/getopt.c: Fix typo in last commit.
56774
56775 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56776
56777         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
56778         dgettext.
56779
56780 2006-09-12  Jim Meyering  <jim@meyering.net>
56781
56782         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
56783         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
56784         Reported by Nelson H. F. Beebe.
56785
56786 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56787
56788         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
56789         program_invocation_name and program_invocation_short_name are
56790         initialized.
56791         * lib/argp-namefrob.h: Move declarations of program_invocation_name
56792         and program_invocation_short_name to argp.h, so they are visible
56793         to user programs.
56794         * lib/argp.h: Likewise
56795
56796 2006-09-10  Bruno Haible  <bruno@clisp.org>
56797
56798         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56799         m4/inttypes_h.m4, m4/uintmax_t.m4.
56800
56801 2006-09-10  Bruno Haible  <bruno@clisp.org>
56802
56803         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
56804         gl_AC_TYPE_UINTMAX_T.
56805
56806 2006-09-10  Bruno Haible  <bruno@clisp.org>
56807
56808         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
56809
56810 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56811
56812         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
56813         convention.  Text proposed by Bruno Haible.
56814         (struct argp_option): Document the use of N_() wrappers.
56815
56816         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
56817         '\v', and translate the two parts separately, instead of feeding
56818         the whole string to gettext.  This allows to exclude
56819         '\v' from the strings visible to the translator by writing doc
56820         strings as N_("..") "\v" N_("..").
56821
56822 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         * config/srclist.txt: Undo latest change; the bug was fixed.
56825
56826 2006-09-09  Bruno Haible  <bruno@clisp.org>
56827
56828         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
56829         assignments if building a library without libtool.
56830         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
56831         in func_emit_lib_Makefile_am.
56832         (func_import): When building a static library libfoo.a, arrange to
56833         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
56834         (func_create_testdir): Likewise.
56835         * modules/gc (configure.ac, Makefile.am): If building statically,
56836         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
56837         * modules/iconvme (configure.ac, Makefile.am): Likewise.
56838         * modules/striconv (configure.ac, Makefile.am): Likewise.
56839         Based on a suggestion by Ralf Wildenhues.
56840
56841 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56842
56843         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56844         Check for unistd.h too, since Autoconf doesn't assume POSIX.
56845         Also:
56846
56847         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56848         Add year_2050_test to catch glibc bug 2821
56849         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56850
56851         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56852         Prefer #ifdef to #if.
56853
56854         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
56855         Return from 'main' instead of calling 'exit'.
56856
56857 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56858
56859         * lib/mktime.c (guess_time_tm): Fix bug where mktime
56860         returned the maximum time_t value rather than (time_t) -1.
56861         Problem originally reported by William Bardwell
56862         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56863
56864         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56865         Moved to here ...
56866         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56867         ... from here.
56868
56869 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56870
56871         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
56872         2821 is fixed.
56873
56874 2006-09-08  Jim Meyering  <jim@meyering.net>
56875
56876         Don't make generated files read-only.  That would bother too many
56877         people.  However, do retain the ability to work when targets are
56878         read-only: remove the destination and temporary files before writing
56879         them (when generated via sed or echo), or by using the -f option for
56880         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
56881         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56882         * modules/byteswap, modules/configmake, modules/fcntl:
56883         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56884         * modules/localcharset, modules/netinet_in, modules/poll:
56885         * modules/stdbool, modules/stdint, modules/sys_select:
56886         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56887
56888 2006-09-08  Jim Meyering  <jim@meyering.net>
56889
56890         Avoid new build failure on FreeBSD 6.0.
56891         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
56892         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
56893         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
56894
56895 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56896
56897         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
56898
56899 2006-09-07  Jim Meyering  <jim@meyering.net>
56900
56901         Fix global typo in last change: use chmod u-w, not chmod u-x.
56902         Spotted by Paul Eggert and Bruce Korb.
56903         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56904         * modules/byteswap, modules/configmake, modules/fcntl:
56905         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56906         * modules/localcharset, modules/netinet_in, modules/poll:
56907         * modules/stdbool, modules/stdint, modules/sys_select:
56908         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56909
56910 2006-09-06  Jim Meyering  <jim@meyering.net>
56911
56912         Make generated files be read-only.
56913         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
56914         Ensure that each generated file is now read-only.
56915         * modules/argz: Likewise.
56916         * modules/arpa_inet: Likewise.
56917         * modules/byteswap: Likewise.
56918         * modules/configmake: Likewise.
56919         * modules/fcntl: Likewise.
56920         * modules/fnmatch: Likewise.
56921         * modules/getopt: Likewise.
56922         * modules/glob: Likewise.
56923         * modules/inttypes: Likewise.
56924         * modules/netinet_in: Likewise.
56925         * modules/poll: Likewise.
56926         * modules/stdbool: Likewise.
56927         * modules/stdint: Likewise.
56928         * modules/sys_select: Likewise.
56929         * modules/sys_socket: Likewise.
56930         * modules/sys_stat: Likewise.
56931         * modules/sysexits: Likewise.
56932         * modules/localcharset: Same as above, but continue using temporary
56933         file named "t-$@" (why different?) rather than the "$@-t" used
56934         everywhere else.
56935
56936         * modules/sysexits (Makefile.am): Replace literal occurrences
56937         of "sysexit.h" more readable, and more consistent, "$@".
56938
56939 2006-09-06  Bruno Haible  <bruno@clisp.org>
56940
56941         * modules/striconv: New file.
56942         * modules/xstriconv: New file.
56943         * MODULES.html.sh (Internationalization functions): Add striconv,
56944         xstriconv.
56945
56946 2006-09-06  Bruno Haible  <bruno@clisp.org>
56947
56948         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
56949         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
56950         not using libtool correctly.
56951
56952 2006-09-06  Bruno Haible  <bruno@clisp.org>
56953
56954         * lib/striconv.h: New file.
56955         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
56956         iconvstring.c.
56957         * lib/xstriconv.h: New file.
56958         * lib/xstriconv.c: New file.
56959
56960 2006-09-06  Bruno Haible  <bruno@clisp.org>
56961
56962         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56963         lib_..._LDFLAGS.
56964
56965 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56966
56967         * lib/argz_.h: Sync from Libtool.
56968
56969         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
56970                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56971
56972         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
56973
56974 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56975
56976         * modules/trim: New file.
56977
56978 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56979
56980         * lib/trim.h: New file.
56981         * lib/trim.c: New file.
56982
56983 2006-09-05  Bruno Haible  <bruno@clisp.org>
56984
56985         * MODULES.html.sh (String handling): Add trim.
56986
56987 2006-09-04  Karl Berry  <karl@gnu.org>
56988
56989         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
56990         until next release.
56991
56992 2006-09-03  Bruno Haible  <bruno@clisp.org>
56993
56994         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
56995         correctly.
56996
56997 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56998
56999         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57000         not gl_GETLOADAVG.  Omit unneeded semicolons.
57001         Problems reported by Ralf Wildenhues in
57002         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57003         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57004         at the end, which is the usual gnulib style.
57005
57006         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57007         of doing all the work ourselves.
57008         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57009         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57010
57011 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57012
57013         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57014         Problem reported by Ralf Wildenhues in
57015         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57016
57017         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57018         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57019
57020 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57021
57022         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57023         yesterday's patch by changing test -n to test -z.
57024
57025 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57026
57027         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57028         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57029         the former is now obsolescent.
57030
57031         * modules/chdir-long (Depends-on): Add fcntl.
57032
57033 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57034
57035         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57036         obsolescent, and programs should use gnulib instead.
57037         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57038         but with prefixes changed.
57039
57040 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57041
57042         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57043         or stdbool.h, because they might not exist while configuring.
57044
57045         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57046         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57047         does that for us.
57048         (O_DIRECTORY): Remove.
57049
57050 2006-08-31  Eric Blake  <ebb9@byu.net>
57051
57052         * gnulib-tool: Don't let emacs change spaces to TAB.
57053
57054 2006-08-31  Bruno Haible  <bruno@clisp.org>
57055
57056         * gnulib-tool: When calling func_import more than once, do it in a
57057         subshell.
57058         Reported by Eric Blake <ebb9@byu.net>.
57059
57060 2006-08-31  Bruno Haible  <bruno@clisp.org>
57061
57062         * gnulib-tool (nl): Remove variable.
57063         (sed_transform_lib_file): Use more robust test for config-h module.
57064         (func_import): Fix typo in 2006-08-25 patch.
57065
57066 2006-08-31  Bruno Haible  <bruno@clisp.org>
57067
57068         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57069         specified, augment Makefile.am variables instead of assigning them.
57070
57071 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57072
57073         Work around a bug in both the Linux and SunOS 64-bit kernels:
57074         nanosleep mishandles sleeps for longer than 2**31 seconds.
57075         Problem reported by Frank v Waveren in
57076         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57078         Check for nanosleep bug.
57079         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57080
57081 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57082
57083         Work around a bug in both the Linux and SunOS 64-bit kernels:
57084         nanosleep mishandles sleeps for longer than 2**31 seconds.
57085         Problem reported by Frank v Waveren in
57086         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57087         * lib/nanosleep.c (BILLION): New constant.
57088         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57089         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57090         implementation.
57091
57092 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57093
57094         * modules/nanosleep (Depends-on): Add gettime.
57095
57096 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57097         and Simon Josefsson  <jas@extundo.com>
57098         and Oskar Liljeblad  <oskar@osk.mine.nu>
57099
57100         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57101         * gnulib-tool (func_import): New license type 'unmodifiable license
57102         text'.
57103         * modules/fdl: Use it.  Longer description.
57104         * module/gpl, module/lgpl: New files.
57105
57106 2006-08-30  Jim Meyering  <jim@meyering.net>
57107
57108         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57109         shadowing the parameter.
57110
57111 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57112
57113         Sync from Libtool:
57114
57115         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57116
57117         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57118         sharing with gnulib.  Report by Eric Blake.
57119
57120 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57121
57122         * modules/isapipe: New file.
57123         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57124
57125 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57126
57127         * modules/configmake (Makefile.am): Add a comment, and omit
57128         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57129         by Bruno Haible.
57130
57131 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57132
57133         * m4/isapipe.m4: New file.
57134
57135 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57136
57137         * lib/isapipe.c, lib/isapipe.h: New files.
57138
57139 2006-08-29  Jim Meyering  <jim@meyering.net>
57140
57141         * modules/configmake (Makefile.am): Make configmake.h depend on
57142         Makefile.  Otherwise, a stale configmake.h could hang around.
57143
57144 2006-08-29  Eric Blake  <ebb9@byu.net>
57145
57146         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57147         resolution of upstream bug 3044.
57148
57149 2006-08-29  Bruno Haible  <bruno@clisp.org>
57150
57151         * modules/localcharset (Depends-on): Add configmake.
57152         (Makefile.am): Remove setting of LIBDIR through DEFS.
57153
57154 2006-08-29  Bruno Haible  <bruno@clisp.org>
57155
57156         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57157         defined.
57158
57159 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57160
57161         * modules/fcntl: New file.
57162         * modules/chdir-safer (Depends-on): Add fcntl.
57163         * modules/fts: Likewise.
57164         * modules/mkdir-p: Likewise.
57165
57166         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57167         This undoes the most recent change, since we're now addressing the
57168         problem in a different way.
57169
57170         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57171         into output, since the output might be called Makefile.am even
57172         if $makefile_name is something different.
57173         (func_import): Use $makefile_am rather than
57174         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57175         empty.
57176
57177         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57178
57179 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57180
57181         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57182         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57183         recent change to stdint.m4, since we're now addressing the problem in a
57184         different way.
57185
57186 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57187
57188         * m4/fcntl_h.m4: New file.
57189
57190 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57191
57192         * lib/fcntl_.h: New file.
57193         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57194         the fcntl module.
57195         * lib/dirchownmod.c: Likewise.
57196         * lib/fts.c: Likewise.
57197
57198         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57199         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57200         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57201         just before including <inttypes.h>, to avoid circular inclusion.
57202
57203 2006-08-28  Jim Meyering  <jim@meyering.net>
57204
57205         * doc/visibility.texi: Actually read and correct the grammar of the
57206         sentence affected by yesterday's change.
57207
57208 2006-08-28  Eric Blake  <ebb9@byu.net>
57209
57210         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57211         needs wrapper.
57212
57213 2006-08-28  Eric Blake  <ebb9@byu.net>
57214
57215         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57216
57217 2006-08-28  Eric Blake  <ebb9@byu.net>
57218
57219         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57220
57221 2006-08-28  Bruno Haible  <bruno@clisp.org>
57222
57223         * modules/c-strstr: New file, from GNU gettext.
57224         * MODULES.html.sh (String handling): Add c-strstr.
57225
57226 2006-08-28  Bruno Haible  <bruno@clisp.org>
57227
57228         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57229         macros.
57230         Reported by Eric Blake.
57231
57232 2006-08-28  Bruno Haible  <bruno@clisp.org>
57233
57234         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57235         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57236         * lib/vasprintf.c: Include errno.h, limits.h.
57237         (EOVERFLOW): New fallback definition.
57238         (vasprintf): Test here whether the string length is > INT_MAX.
57239         * lib/vsnprintf.c: Include errno.h, limits.h.
57240         (EOVERFLOW): New fallback definition.
57241         (vsnprintf): Fix bug when generated string was too long for the buffer.
57242         Test here whether the string length is > INT_MAX.
57243
57244 2006-08-28  Bruno Haible  <bruno@clisp.org>
57245
57246         * lib/inttypes_.h (SCNX*): Remove definitions.
57247         Reported by Eric Blake.
57248
57249 2006-08-28  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/c-strstr.h: New file, from GNU gettext.
57252         * lib/c-strstr.c: New file, from GNU gettext.
57253
57254 2006-08-28  Bruno Haible  <bruno@clisp.org>
57255
57256         * gnulib-tool: Reorder some statements.
57257
57258 2006-08-28  Bruno Haible  <bruno@clisp.org>
57259
57260         * gnulib-tool: New option --makefile-name.
57261         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57262         $makefile_name.
57263         (func_import): Write $makefile_name to the cache file, and read it from
57264         there unless explicitly specified. Use $makefile_name as file name
57265         instead of Makefile.am. Adjust the recommendations accordingly.
57266
57267 2006-08-28  Bruno Haible  <bruno@clisp.org>
57268
57269         * gnulib-tool (func_verify_module): Check against misapplying patch.
57270
57271 2006-08-28  Bruno Haible  <bruno@clisp.org>
57272
57273         * gnulib-tool (func_relativize, func_relconcat): New functions.
57274         Give an error if --local-dir is given with --update.
57275         Remove trailing slashes from $local_gnulib_dir.
57276         (func_import): Store the relativized $local_gnulib_dir in
57277         gnulib-cache.m4, and read it from there if not specified explicitly.
57278
57279 2006-08-28  Bruno Haible  <bruno@clisp.org>
57280
57281         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57282         is the current directory. Respect also $local_gnulib_dir.
57283
57284 2006-08-28  Bruno Haible  <bruno@clisp.org>
57285             Simon Josefsson  <jas@extundo.com>
57286
57287         BeOS portability.
57288         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57289
57290 2006-08-27  Jim Meyering  <jim@meyering.net>
57291
57292         * doc/visibility.texi: Remove duplicate word: "pointer".
57293
57294 2006-08-26  Bruno Haible  <bruno@clisp.org>
57295
57296         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57297         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57298         (Makefile.am): Create inttypes.h from inttypes_.h.
57299         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57300
57301         * modules/imaxabs: New file.
57302
57303         * modules/imaxdiv: New file.
57304
57305 2006-08-26  Bruno Haible  <bruno@clisp.org>
57306
57307         * m4/inttypes.m4: New file.
57308         * m4/_inttypes_h.m4: Remove file.
57309         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57310         PRI_MACROS_BROKEN.
57311         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57312
57313         * m4/imaxabs.m4: New file.
57314
57315         * m4/imaxdiv.m4: New file.
57316
57317 2006-08-26  Bruno Haible  <bruno@clisp.org>
57318
57319         * lib/inttypes_.h: New file.
57320         * lib/inttypes.h: Remove file.
57321         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57322
57323         * lib/imaxabs.c: New file.
57324
57325         * lib/imaxdiv.c: New file.
57326
57327 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57328
57329         New config-h module, so that "make" output needn't be cluttered
57330         by -DHAVE_CONFIG_H.
57331         * MODULES.html.sh (Support for building libraries and executables):
57332         Add config-h.
57333         * modules/config-h: New file.
57334         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57335         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57336         the config-h module is used.
57337
57338         New configmake module, so that "make" output needn't be cluttered
57339         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57340         * MODULES.html.sh (Support for building libraries and executables):
57341         Add configmake.
57342         * modules/configmake: New file.
57343
57344 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57345
57346         * m4/config-h.m4: New file.
57347
57348 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57349
57350         * config/srclist.txt: Add elisp-comp.
57351
57352 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57353
57354         * MODULES.html.sh (Support for building libraries and executables):
57355         Add elisp-comp.
57356         * build-aux/elisp-comp: New file.
57357         * modules/elisp-comp: New file.
57358
57359 2006-08-24  Bruno Haible  <bruno@clisp.org>
57360
57361         * gnulib-tool (func_create_testdir): Use non-default values of
57362         sourcebase and m4base.
57363
57364 2006-08-24  Bruno Haible  <bruno@clisp.org>
57365
57366         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57367         HTML structure.
57368
57369 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         * modules/openat (Depends-on): Add lchown.
57372
57373 2006-08-23  Bruno Haible  <bruno@clisp.org>
57374
57375         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57376         of gl_LOCK_EARLY instead of gl_LOCK.
57377
57378 2006-08-23  Bruno Haible  <bruno@clisp.org>
57379
57380         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57381         on OSF/1 to no.
57382         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57383
57384 2006-08-23  Bruno Haible  <bruno@clisp.org>
57385
57386         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57387         as unusable.
57388
57389         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57390         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57391         (gl_LOCK): New macro.
57392
57393 2006-08-22  Simon Josefsson  <jas@extundo.com>
57394
57395         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57396         to md5 module.
57397
57398 2006-08-22  Simon Josefsson  <jas@extundo.com>
57399
57400         * MODULES.html.sh: Add "Support for maintaining and release
57401         projects".
57402
57403         * build-aux/gnupload: New file, from coreutils.
57404
57405 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57406
57407         Avoid the need for AC_LIBSOURCES in m4 macros.
57408         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57409         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57410         * modules/check-version (EXTRA_DIST): Add check-version.h.
57411         * modules/crc (EXTRA_DIST): Add crc.h.
57412         * modules/des (EXTRA_DIST): Add des.h.
57413         * modules/gc (EXTRA_DIST): Add gc.h.
57414         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57415         * modules/getline (EXTRA_DIST): Add getline.h.
57416         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
57417         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
57418         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
57419         * modules/md2 (EXTRA_DIST): Add md2.h.
57420         * modules/md4 (EXTRA_DIST): Add md4.h.
57421         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
57422         * modules/read-file (EXTRA_DIST): Add read-file.h.
57423         * modules/readline (EXTRA_DIST): Add readline.h.
57424         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
57425         rijndael-api-fst.h.
57426
57427 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57428
57429         * m4/rijndael.m4 (gl_ARCFOUR):
57430         * m4/arctwo.m4 (gl_ARCTWO):
57431         * m4/check-version.m4 (gl_CHECK_VERSION):
57432         * m4/crc.m4 (gl_CRC):
57433         * m4/des.m4 (gl_DES):
57434         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
57435         * m4/gc.m4 (gl_GC):
57436         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
57437         * m4/getline.m4 (gl_FUNC_GETLINE):
57438         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
57439         * m4/hmac-md5.m4 (gl_HMAC_MD5):
57440         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
57441         * m4/md2.m4 (gl_MD2):
57442         * m4/md4.m4 (gl_MD4):
57443         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
57444         * m4/read-file.m4 (gl_FUNC_READ_FILE):
57445         * m4/readline.m4 (gl_FUNC_READLINE):
57446         * m4/rijndael.m4 (gl_RIJNDAEL):
57447         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57448         to get the necessary .h files and whatnot.
57449
57450 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57451
57452         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
57453         gnulib rather than the other way around.
57454         * config/srclistvars.sh (COREUTILS): Remove.
57455
57456 2006-08-22  Jim Meyering  <jim@meyering.net>
57457
57458         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
57459
57460         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
57461
57462 2006-08-22  Eric Blake  <ebb9@byu.net>
57463
57464         * modules/regexprops-generic: New file.
57465         * MODULES.html.sh (Support for building documentation): List it.
57466
57467 2006-08-22  Eric Blake  <ebb9@byu.net>
57468
57469         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
57470         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57471         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
57472         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57473
57474 2006-08-22  Bruno Haible  <bruno@clisp.org>
57475
57476         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
57477         and lib_LTLIBRARIES like the other lib_* variables.
57478
57479 2006-08-22  Bruno Haible  <bruno@clisp.org>
57480
57481         * build-aux/x-to-1.in: New file, from GNU gettext.
57482
57483 2006-08-22  Bruno Haible  <bruno@clisp.org>
57484
57485         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
57486         <utmpx.h> exists.
57487
57488 2006-08-22  Bruno Haible  <bruno@clisp.org>
57489
57490         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
57491         <utmpx.h> exists.
57492
57493 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57494
57495         BeOS portability.
57496         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
57497         exist.
57498         Problem reported by Bruno Haible.
57499
57500 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57501
57502         Avoid the need for AC_LIBSOURCES in m4 macros.
57503         * modules/acl (EXTRA_DIST): Add acl.h.
57504         * modules/argmatch (Files): Add m4/argmatch.m4.
57505         (configure.ac): Add gl_ARGMATCH.
57506         (EXTRA_DIST): Renamed from lib_SOURCES, for
57507         consistency with the other modules.  Remove argmatch.c.
57508         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
57509         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
57510         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
57511         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
57512         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
57513         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
57514         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
57515         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
57516         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
57517         * modules/closeout (EXTRA_DIST): Add closeout.h.
57518         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
57519         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
57520         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
57521         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
57522         dirname.h; remove basename.c and stripslash.c.
57523         * modules/exclude (EXTRA_DIST): Add exclude.h.
57524         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
57525         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
57526         * modules/file-type (EXTRA_DIST): Add file-type.h.
57527         * modules/filemode (EXTRA_DIST): Add filemode.h.
57528         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
57529         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57530         * modules/fpending (EXTRA_DIST): Add __fpending.h.
57531         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
57532         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
57533         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
57534         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
57535         * modules/getdate (EXTRA_DIST): Add getdate.c.
57536         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
57537         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
57538         * modules/getpass (EXTRA_DIST): Add getpass.h.
57539         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
57540         * modules/group-member (EXTRA_DIST): Add group-member.h.
57541         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
57542         * modules/hash (EXTRA_DIST): Add hash.h.
57543         * modules/human (EXTRA_DIST): Add human.h.
57544         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
57545         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
57546         * modules/lchown (EXTRA_DIST): Add lchown.h.
57547         * modules/long-options (EXTRA_DIST): Add long-options.h.
57548         * modules/lstat (EXTRA_DIST): Add lstat.h.
57549         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
57550         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
57551         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
57552         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
57553         * modules/memxor (EXTRA_DIST): Add memxor.h.
57554         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
57555         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
57556         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
57557         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
57558         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
57559         * modules/physmem (EXTRA_DIST): Add physmem.h.
57560         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
57561         * modules/posixver (EXTRA_DIST): Add posixver.h.
57562         * modules/quote (EXTRA_DIST): Add quote.h.
57563         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
57564         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
57565         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
57566         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
57567         regex_internal.h regexec.c.
57568         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
57569         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
57570         * modules/same (EXTRA_DIST): Add same.h.
57571         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
57572         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
57573         * modules/savedir (EXTRA_DIST): Add savedir.h.
57574         * modules/sha1 (EXTRA_DIST): Add sha1.h.
57575         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
57576         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
57577         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
57578         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
57579         * modules/strdup (EXTRA_DIST): Add strdup.h.
57580         * modules/strftime (EXTRA_DIST): Add strftime.h.
57581         * modules/strndup (EXTRA_DIST): Add strndup.h.
57582         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
57583         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
57584         * modules/time_r (EXTRA_DIST): Add time_r.h.
57585         * modules/timespec (EXTRA_DIST): Add timespec.h.
57586         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57587         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
57588         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
57589         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
57590         * modules/userspec (EXTRA_DIST): Add userspec.h.
57591         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
57592         * modules/utimens (EXTRA_DIST): Add utimens.h.
57593         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
57594         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
57595         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
57596         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
57597         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
57598         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
57599         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
57600         * modules/yesno (EXTRA_DIST): Add yesno.h.
57601
57602 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57603
57604         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
57605
57606         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
57607         * m4/dev-ino.m4, same-inode.m4: Remove.
57608
57609         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
57610         * m4/acl.m4 (AC_FUNC_ACL):
57611         * m4/backupfile.m4 (gl_BACKUPFILE):
57612         * m4/c-strtod.m4 (gl_C99_STRTOLD):
57613         * m4/canon-host.m4 (gl_CANON_HOST):
57614         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57615         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
57616         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
57617         * m4/cloexec.m4 (gl_CLOEXEC):
57618         * m4/close-stream.m4 (gl_CLOSE_STREAM):
57619         * m4/closeout.m4 (gl_CLOSEOUT):
57620         * m4/dirfd.m4 (gl_FUNC_DIRFD):
57621         * m4/dirname.m4 (gl_DIRNAME):
57622         * m4/exclude.m4 (gl_EXCLUDE):
57623         * m4/exitfail.m4 (gl_EXITFAIL):
57624         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
57625         * m4/file-type.m4 (gl_FILE_TYPE):
57626         * m4/filemode.m4 (gl_FILEMODE):
57627         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
57628         * m4/fpending.m4 (gl_FUNC_FPENDING):
57629         * m4/fprintftime.m4 (gl_FPRINTFTIME):
57630         * m4/fts.m4 (gl_FUNC_FTS):
57631         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
57632         * m4/getdate.m4 (gl_GETDATE):
57633         * m4/gethrxtime.m4 (gl_GETHRXTIME):
57634         * m4/getpagesize.m4 (gl_GETPAGESIZE):
57635         * m4/getpass.m4 (gl_FUNC_GETPASS):
57636         * m4/gettime.m4 (gl_GETTIME):
57637         * m4/getugroups.m4 (gl_GETUGROUPS):
57638         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
57639         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
57640         * m4/hard-locale.m4 (gl_HARD_LOCALE):
57641         * m4/hash.m4 (gl_HASH):
57642         * m4/idcache.m4 (gl_IDCACHE):
57643         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
57644         * m4/lchown.m4 (gl_FUNC_LCHOWN):
57645         * m4/long-options.m4 (gl_LONG_OPTIONS):
57646         * m4/lstat.m4 (gl_FUNC_LSTAT):
57647         * m4/md5.m4 (gl_MD5):
57648         * m4/memcasecmp.m4 (gl_MEMCASECMP):
57649         * m4/memcoll.m4 (gl_MEMCOLL):
57650         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
57651         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
57652         * m4/memxor.m4 (gl_MEMXOR):
57653         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
57654         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
57655         * m4/modechange.m4 (gl_MODECHANGE):
57656         * m4/mountlist.m4 (gl_MOUNTLIST):
57657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57658         * m4/openat.m4 (gl_FUNC_OPENAT):
57659         * m4/pathmax.m4 (gl_PATHMAX):
57660         * m4/physmem.m4 (gl_PHYSMEM):
57661         * m4/posixtm.m4 (gl_POSIXTM):
57662         * m4/posixver.m4 (gl_POSIXVER):
57663         * m4/quote.m4 (gl_QUOTE):
57664         * m4/quotearg.m4 (gl_QUOTEARG):
57665         * m4/readtokens.m4 (gl_READTOKENS):
57666         * m4/readutmp.m4 (gl_READUTMP):
57667         * m4/regex.m4 (gl_REGEX):
57668         * m4/safe-read.m4 (gl_SAFE_READ):
57669         * m4/safe-write.m4 (gl_SAFE_WRITE):
57670         * m4/same.m4 (gl_SAME):
57671         * m4/save-cwd.m4 (gl_SAVE_CWD):
57672         * m4/savedir.m4 (gl_SAVEDIR):
57673         * m4/settime.m4 (gl_SETTIME):
57674         * m4/sha1.m4 (gl_SHA1):
57675         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
57676         * m4/stat-macros.m4 (gl_STAT_MACROS):
57677         * m4/stat-time.m4 (gl_STAT_TIME):
57678         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
57679         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
57680         * m4/strdup.m4 (gl_FUNC_STRDUP):
57681         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
57682         * m4/strndup.m4 (gl_FUNC_STRNDUP):
57683         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
57684         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
57685         * m4/time_r.m4 (gl_TIME_R):
57686         * m4/timespec.m4 (gl_TIMESPEC):
57687         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
57688         * m4/unlinkdir.m4 (gl_UNLINKDIR):
57689         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
57690         * m4/userspec.m4 (gl_USERSPEC):
57691         * m4/utimecmp.m4 (gl_UTIMECMP):
57692         * m4/utimens.m4 (gl_UTIMENS):
57693         * m4/xalloc.m4 (gl_XALLOC):
57694         * m4/xgetcwd.m4 (gl_XGETCWD):
57695         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
57696         * m4/xreadlink.m4 (gl_XREADLINK):
57697         * m4/xstrtod.m4 (gl_XSTRTOD):
57698         * m4/yesno.m4 (gl_YESNO):
57699         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57700         to get the necessary .h files and whatnot.
57701
57702 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
57703             Bruno Haible  <bruno@clisp.org>
57704
57705         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
57706         /bin/sh understanding of '!' conditional negation.
57707
57708 2006-08-21  Jim Meyering  <jim@meyering.net>
57709
57710         * modules/openat (Depends-on): Really alphabetize.
57711
57712         * modules/acl (Depends-on): Add error and quote.
57713
57714         * check-module (find_included_lib_files): Add at-func.c to the
57715         ok-to-include-more-than-once white list.
57716
57717         * modules/openat (Depends-on): Add lstat.  Alphabetize.
57718
57719 2006-08-21  Bruno Haible  <bruno@clisp.org>
57720
57721         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57722         Emit a pkgdata_DATA variable only if some snippets add contents to it.
57723         Reported by Martin Lambers <marlam@marlam.de>.
57724
57725 2006-08-21  Bruno Haible  <bruno@clisp.org>
57726
57727         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
57728         specify an installation location, don't emit a noinst_LIBRARIES or
57729         noinst_LTLIBRARIES assignment.
57730
57731 2006-08-21  Bruno Haible  <bruno@clisp.org>
57732
57733         BeOS portability.
57734         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
57735         BeOS has mbrtowc() but no <wctype.h>.
57736
57737 2006-08-21  Bruno Haible  <bruno@clisp.org>
57738
57739         BeOS portability.
57740         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
57741         exist.
57742
57743 2006-08-21  Bruno Haible  <bruno@clisp.org>
57744
57745         BeOS portability.
57746         * lib/mbchar.h: Include <wctype.h> only if it exists.
57747
57748 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57749
57750         Remove files that are no longer needed by their respective modules.
57751         * m4/obstack.m4: Remove.
57752         * m4/strerror_r.m4: Remove.
57753         * m4/uint32_t.m4: Remove.
57754         * m4/uintptr_t.m4: Remove.
57755         * m4/ullong_max.m4: Remove.
57756         * m4/xstrtoimax.m4: Remove.
57757         * m4/xstrtoumax.m4: Remove.
57758
57759         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
57760         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
57761         dependencies now capture this.
57762
57763         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
57764         Do not use AC_LIBSOURCES, since gnulib modules now do this.
57765         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
57766         * m4/human.m4 (gl_HUMAN): Likewise.
57767         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
57768         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
57769
57770         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
57771
57772         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
57773         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
57774         stdint.
57775         * m4/human.m4 (gl_HUMAN): Likewise.
57776         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
57777         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
57778         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57779         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57780         * m4/xstrtol (gl_XSTRTOL): Likewise.
57781
57782         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
57783         AC_TYPE_LONG_LONG_INT.
57784         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57785         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
57786         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
57787         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57788
57789         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
57790         on stdbool.
57791
57792         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
57793         (gl_PREREQ_XSTRTOUL): Remove.
57794
57795         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
57796
57797         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
57798         mode.
57799
57800 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57801
57802         Add and change modules to make it easier for coreutils to use
57803         gnulib-tool.
57804         * modules/backupfile (Files): Remove m4/d-ino.m4.
57805         (Depends-on): Add d-ino.
57806         * modules/cycle-check (Depends-on): Add stdint.
57807         (lib_SOURCES): Add cycle-check.h.
57808         * modules/d-ino: New module.
57809         * modules/d-type: New module.
57810         * modules/error (Files): Remove m4/strerror_r.m4.
57811         * modules/filemode (Files): Add m4/st_dm_mode.m4.
57812         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57813         m4/inttypes_h.m4, m4/uintmax_t.m4.
57814         (Depends-on): Add stdint.
57815         (lib_SOURCES): Add fsusage.h.
57816         * modules/getcwd (Files): Remove d-ino.m4.
57817         (Depends-on): Add d-ino.
57818         * modules/getndelim2 (Depends-on): Add stdint.
57819         * modules/glob (Files): Remove m4/d-type.m4.
57820         (Depends-on): Add d-type.
57821         * modules/host-os: New module.
57822         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
57823         m4/inttypes_h.m4, m4/uintmax_t.m4.
57824         * Depends-on: Add stdint.
57825         (lib_SOURCES): Add human.h.
57826         * modules/inttostr (Files): Remove m4/intmax_t.m4,
57827         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
57828         m4/uintmax_t.m4, m4/ulonglong.m4.
57829         (Depends-on): Add stdint.
57830         (EXTRA_DIST): Add inttostr.h.
57831         * modules/lchmod: New module.
57832         * modules/link-follow: New module.
57833         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
57834         (Depends-on): Add lchmod.
57835         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
57836         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
57837         (Depends-on): Add stdint.
57838         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
57839         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
57840         (Depends-on): Add stdint.
57841         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
57842         * modules/perl: New module.
57843         * modules/regex (Depends-on): Add stdint.
57844         * modules/rmdir-errno: New module.
57845         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57846         m4/intmax_t.m4.
57847         (Depends-on): Add stdint.
57848         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57849         m4/uintmax_t.m4.
57850         (Depends-on): Add stdint.
57851         * modules/unlink-busy: New module.
57852         * modules/utimecmp (Depends-on): Add stdint.
57853         * modules/uptime: New module.
57854         * modules/winsz-ioctl: New module.
57855         * modules/winsz-termios: New module.
57856         * modules/xnanosleep (Depends-on): Add nanosleep.
57857         * modules/ullong_max: Remove.
57858         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
57859         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
57860         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
57861         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
57862         (Depends-on): Add inttypes.
57863         (lib_SOURCES): Add xstrtol.h.
57864         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
57865         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
57866         * MODULES.html.sh: Move 'assert' into the assert section.
57867         Move 'dummy' into the linking section.
57868         Remove ullong_max.
57869         Add section for compatibility checks for POSIX:2001 functions,
57870         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
57871         winsz-ioctl, and winsz-termios into it.
57872         Add lchmod.
57873         Add top-level Misc section and put host-os, perl, and uptime
57874         into it.
57875
57876 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57877
57878         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
57879         now assume the stdint module.  Do not include inttypes.h.
57880         * lib/fsusage.h: Likewise.
57881         * lib/getndelim2.c: Likewise.
57882         * lib/human.h: Likewise.
57883         * lib/inttostr.h: Likewise.
57884         * lib/obstack.c: Likewise.
57885         * lib/regex_internal.h: Likewise.
57886         * lib/tempname.c: Likewise.
57887         * lib/utimecmp.c: Likewise.
57888         * lib/xstrtol.h: Likewise.
57889
57890         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
57891
57892         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
57893         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
57894         * lib/xtime.h: Likewise.
57895
57896 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57897
57898         * modules/openat (Files): Add lib/fchmodat.c.
57899         Fixes problem reported by Jay Youngman.
57900
57901 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57902
57903         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
57904         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
57905
57906 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
57907             Bruno Haible  <bruno@clisp.org>
57908
57909         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
57910         and is a script that invokes bison. Tighten the code. Add comments.
57911
57912 2006-08-18  Jim Meyering  <jim@meyering.net>
57913
57914         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
57915         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
57916         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
57917         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
57918
57919 2006-08-18  Bruno Haible  <bruno@clisp.org>
57920
57921         * modules/bison-i18n: New file.
57922         * MODULES.html.sh (Internationalization functions): Add it.
57923
57924 2006-08-18  Bruno Haible  <bruno@clisp.org>
57925
57926         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
57927         sys/statvfs.h. When getmntinfo was found, check its declaration and
57928         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
57929
57930 2006-08-18  Bruno Haible  <bruno@clisp.org>
57931
57932         * m4/bison-i18n.m4: New file, from bison.
57933
57934 2006-08-18  Bruno Haible  <bruno@clisp.org>
57935
57936         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
57937         (ME_DUMMY): Treat "kernfs" as a dummy.
57938         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
57939
57940 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57941
57942         Update from coreutils.
57943
57944         2006-08-15  Jim Meyering  <jim@meyering.net>
57945
57946         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
57947
57948         2006-01-17  Jim Meyering  <jim@meyering.net>
57949
57950         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
57951
57952         2006-01-11  Jim Meyering  <jim@meyering.net>
57953
57954         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
57955         Check for the lchmod function.
57956
57957 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         Update from coreutils.
57960
57961         * lib/__fpending.h: Add copyright notice.
57962         * lib/fprintftime.h: Likewise.
57963         * lib/savedir.c: Use (C) in copyright notice.
57964         * lib/savedir.h: Likewise.
57965
57966         2006-08-15  Jim Meyering  <jim@meyering.net>
57967
57968         * lib/at-func.c: New file, with the logic of all emulated at-functions.
57969         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
57970         in support of the EXPECTED_ERRNO macro.
57971         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
57972         definitions.  Instead, define the appropriate symbols and include
57973         "at-func.c".
57974         * lib/mkdirat.c (mkdirat): Likewise.
57975         * lib/fchmodat.c (fchmodat): Likewise.
57976         (ENOSYS): Remove definition.
57977         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
57978         it.  Don't include "unistd--.h" -- it wasn't ever used.
57979
57980         2006-01-17  Jim Meyering  <jim@meyering.net>
57981
57982         Rewrite fts.c not to change the current working directory,
57983         by using openat, fstatat, fdopendir, etc..
57984
57985         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
57986         (HAVE_OPENAT_SUPPORT): Define.
57987         [_LIBC] (fchdir): Don't undef or define; no longer used.
57988         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
57989         Now, this `function' always succeeds, and consumes its file descriptor
57990         parameter -- so callers must not close such FDs.  Update callers.
57991         (diropen_fd, opendirat, cwd_advance_fd): New functions.
57992         (diropen): Add parameter, SP.  Adjust all callers.
57993         Implement using diropen_fd, rather than open.
57994         (fts_open): Initialize new member, fts_cwd_fd.
57995         Remove fts_rft-setting code.
57996         (fts_close): Close fts_cwd_fd, if necessary.
57997         (__opendir2): Define in terms of opendir or opendirat,
57998         depending on whether the FST_NOCHDIR flag is set.
57999         (fts_build): Since fts_safe_changedir consumes its FD, and since
58000         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58001         and close the dup'd file descriptor upon failure.
58002         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58003         (fts_safe_changedir): Tweak semantics to reflect that this function
58004         now calls cwd_advance_fd and hence consumes its FD argument.
58005         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58006         [struct FTS] (fts_rft): Remove now-unused member.
58007         [struct FTS] (fts_cycle.state): Improve comment.
58008
58009         * lib/openat.c (openat_needs_fchdir): New function.
58010         * lib/openat.h (openat_needs_fchdir): Declare it.
58011
58012 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58013
58014         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58015         Problem and fix reported by Pádraig Brady in
58016         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58017
58018 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58019
58020         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58021
58022 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58023
58024         * lib/memcoll.c (memcoll): Optimize for the common case where the
58025         arguments are bytewise equal.
58026
58027 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58028
58029         * doc/regexprops-generic.texi: Add a copyright notice.
58030
58031 2006-08-15  Bruno Haible  <bruno@clisp.org>
58032
58033         * modules/tmpdir (License): Change to LGPL.
58034
58035 2006-08-15  Bruno Haible  <bruno@clisp.org>
58036
58037         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58038         module.
58039
58040 2006-08-14  Simon Josefsson  <jas@extundo.com>
58041
58042         * config/srclist.txt: Add gnupload.
58043
58044 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58045
58046         Change copyright notice from LGPL 2 to GPL 2, since that's the
58047         standard form used in the gnulib repository.
58048         * tests/test-lock.c: Likewise.
58049         * tests/test-stdint.c: Likewise.
58050         * tests/test-tls.c: Likewise.
58051
58052         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58053         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58054         Add copyright notice.
58055
58056         * check-module: Add copyright notice.  Output a copyright
58057         notice if "--version" is specified.
58058         * modules/COPYING: New file.
58059         * tests/test-getaddrinfo.c: Add copyright notice.
58060         * tests/test-verify.c: Likewise.
58061
58062 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58063
58064         Change copyright notice from LGPL 2 to GPL 2, since that's the
58065         standard form used in the gnulib repository.
58066         * lib/lock.c: LGPL -> GPL.
58067         * lib/lock.h: Likewise.
58068         * lib/strnlen1.c: Likewise.
58069         * lib/strnlen1.h: Likewise.
58070         * lib/tls.c: Likewise.
58071         * lib/tls.h: Likewise.
58072         * lib/tmpdir.c: Likewise.
58073
58074         * lib/TODO: Remove; this belongs only in coreutils.
58075
58076 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         Add copyright notices to long-enough files that lack them, since
58079         otherwise the files aren't clearly free.  Use the same notice that
58080         getdate.texi already uses.
58081         * doc/alloca-opt.texi: Add copyright notice.
58082         * doc/alloca.texi: Likewise.
58083         * doc/ctime.texi: Likewise.
58084         * doc/functions.texi: Likewise.
58085         * doc/gcd.texi: Likewise.
58086         * doc/gnulib-tool.texi: Likewise.
58087         * doc/inet_ntoa.texi: Likewise.
58088         * doc/visibility.texi: Likewise.
58089
58090         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58091         * doc/quote.texi: Add copyright notice.
58092
58093         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58094         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58095         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58096         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58097         is now obsolete, and give a pointer to the Sun list.
58098         Add copyright notice.
58099
58100 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58101
58102         * config/srclistvars.sh: Add copyright notice.
58103
58104 2006-08-14  Eric Blake  <ebb9@byu.net>
58105
58106         Import the following change from libc:
58107
58108         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58109
58110         Upstream bug 2997.
58111         * lib/misc/error.c: Add space between program name and message if file
58112         name is missing.
58113
58114 2006-08-12  Karl Berry  <karl@gnu.org>
58115
58116         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58117         remove, these originate in gnulib now.
58118
58119 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58120
58121         * doc/Makefile (standards.info standards.html standards.dvi):
58122         Also depend on make-stds.texi.
58123
58124 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58125
58126         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58127         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58128
58129         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58130         in wchar_t.  Problem reported by Eric Blake.
58131
58132         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58133         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58134         Also, help the compiler to keep LEN in a register.
58135
58136 2006-08-11  Eric Blake  <ebb9@byu.net>
58137
58138         * users.txt: Sort.  Add tar.
58139
58140 2006-08-11  Bruno Haible  <bruno@clisp.org>
58141
58142         * users.txt: New file.
58143
58144 2006-08-11  Bruno Haible  <bruno@clisp.org>
58145
58146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58147         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58148
58149 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         * modules/snprintf (Depends-on): Remove minmax.
58152         (Maintainer): Add self and Bruno.
58153
58154 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58155
58156         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58157         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58158         (EOVERFLOW): Define if the system does not.
58159         Do not include "minmax.h"; it wasn't used.
58160         (snprintf): Don't assume size_t promotes to an unsigned type.
58161         Fix bug when generated string was too long for the buffer: the
58162         buffer's contents are supposed to be the initial prefix of the
58163         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58164         exceeds INT_MAX; do the check ourselves.
58165
58166         Import the following changes from libc:
58167
58168         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58169
58170         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58171         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58172         set wc to the byte which couldn't be converted.
58173         (re_string_reconstruct): Don't clear valid_raw_len before calling
58174         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58175         tip_context using re_string_context_at.
58176
58177         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58178
58179         * lib/posix/regex.h: g++ still cannot handled [restrict].
58180
58181         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58182
58183         * lib/posix/regex.h: Remove special handling for VMS.
58184
58185 2006-08-10  Jim Meyering  <jim@meyering.net>
58186
58187         * modules/same-inode: New module.
58188         * modules/dev-ino: New module.
58189         * modules/cycle-check: Depend on these modules, rather than simply
58190         including their .h files.
58191         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58192         required via m4/cycle-check.m4.
58193         * modules/same: Depend on new same-inode module, rather than
58194         including same-inode.h.
58195         * modules/chdir-safer: New file.
58196
58197         * modules/chown (Depends-on): Add stat-macros.
58198
58199 2006-08-10  Jim Meyering  <jim@meyering.net>
58200
58201         * m4/cycle-check.m4: New file.
58202         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58203         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58204
58205 2006-08-10  Eric Blake  <ebb9@byu.net>
58206
58207         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58208         in from original proposal.
58209
58210 2006-08-10  Eric Blake  <ebb9@byu.net>
58211         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58212
58213         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58214         namespace.
58215
58216 2006-08-10  Bruno Haible  <bruno@clisp.org>
58217
58218         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58219         as well.
58220
58221 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58222
58223         Sync from coreutils.
58224
58225         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58226
58227         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58228         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58229
58230 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58231
58232         * modules/restrict: Remove; no longer needed now that we assume
58233         Autoconf 2.59 or later.
58234         * MODULES.html.sh: Remove 'restrict'.
58235         * modules/argp (Depends-on): Remove 'restrict'.
58236         * modules/base64 (Depends-on): Likewise.
58237         * modules/gc (Depends-on): Likewise.
58238         * modules/getaddrinfo (Depends-on): Likewise.
58239         * modules/glob (Depends-on): Likewise.
58240         * modules/inet_ntop (Depends-on): Likewise.
58241         * modules/inet_pton (Depends-on): Likewise.
58242         * modules/memxor (Depends-on): Likewise.
58243         * modules/regex (Depends-on): Likewise.
58244         * modules/strtok_r (Depends-on): Likewise.
58245         * modules/time_r (Depends-on): Likewise.
58246
58247 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58248
58249         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58250         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58251         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58252         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58253         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58254         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58255         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58256         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58257
58258         Merge from coreutils.
58259         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58260         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58261         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58262         * m4/time_r.m4 (gl_TIME_R): Likewise.
58263
58264 2006-08-09  Karl Berry  <karl@gnu.org>
58265
58266         * config/srclist.txt: no more gettext-tools, per Bruno.
58267
58268 2006-08-08  Eric Blake  <ebb9@byu.net>
58269
58270         * modules/verror: New module.
58271         * MODULES.html.sh: Document it.
58272
58273 2006-08-08  Eric Blake  <ebb9@byu.net>
58274
58275         * lib/verror.h, lib/verror.c: New files.
58276
58277 2006-08-08  Eric Blake  <ebb9@byu.net>
58278
58279         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58280         verror_at_line output complies with GNU Coding Standards even when
58281         file is NULL.
58282
58283 2006-08-07  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58286         versions of AIX.
58287         Reported by Ralf Wildenhues.
58288
58289 2006-08-07  Bruno Haible  <bruno@clisp.org>
58290
58291         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58292         in an AC_DEFUN. Needed so that the autoconf snippets can use
58293         AC_REQUIRE.
58294
58295 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58296
58297         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58298         Initialize pkgdata_DATA.
58299         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58300         overriding it.
58301
58302 2006-08-06  Eric Blake  <ebb9@byu.net>
58303
58304         * lib/error.h: Fold in some upstream changes from glibc.
58305         * lib/error.c: Likewise.
58306
58307 2006-08-04  Bruno Haible  <bruno@clisp.org>
58308
58309         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58310         Make the mostlyclean-local rule depend on mostlyclean-generic.
58311         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58312
58313 2006-07-31  Bruno Haible  <bruno@clisp.org>
58314
58315         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58316         <stdlib.h>, <string.h>.
58317
58318 2006-07-30  Bruno Haible  <bruno@clisp.org>
58319
58320         * modules/readlink (License): Change to LGPL.
58321
58322 2006-07-30  Bruno Haible  <bruno@clisp.org>
58323
58324         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58325         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58326         set PKGDATADIR to point to it.
58327
58328 2006-07-30  Bruno Haible  <bruno@clisp.org>
58329
58330         * modules/csharpexec (configure.ac): Comment out macro invocation.
58331         * modules/javaexec (configure.ac): Likewise.
58332         * modules/javacomp-script (configure.ac): Likewise.
58333
58334         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58335
58336 2006-07-30  Bruno Haible  <bruno@clisp.org>
58337
58338         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58339         linked-list.
58340
58341 2006-07-30  Bruno Haible  <bruno@clisp.org>
58342
58343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58344
58345 2006-07-30  Bruno Haible  <bruno@clisp.org>
58346
58347         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58348         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58349         get removed.
58350
58351 2006-07-29  Bruno Haible  <bruno@clisp.org>
58352
58353         Make it possible for gnulib-tool to work with locally modified or
58354         augmented gnulib repositories.
58355         * gnulib-tool (func_usage): Document --local-dir option.
58356         (local_gnulib_dir): New variable.
58357         Handle --local-dir option.
58358         (func_lookup_file): New function.
58359         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58360         (func_get_description, func_get_filelist, func_get_description,
58361         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58362         func_get_automake_snippet, func_get_include_directive,
58363         func_get_license, func_get_maintainer): Use func_lookup_file.
58364         (func_import, func_create_testdir): Use func_lookup_file.
58365
58366 2006-07-29  Bruno Haible  <bruno@clisp.org>
58367
58368         * modules/setenv (Depends-on): Add unistd.
58369
58370 2006-07-29  Bruno Haible  <bruno@clisp.org>
58371
58372         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58373
58374 2006-07-29  Bruno Haible  <bruno@clisp.org>
58375
58376         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58377
58378 2006-07-29  Bruno Haible  <bruno@clisp.org>
58379
58380         * gnulib-tool (import, update): If there is no Makefile.am, look at
58381         aclocal.m4, instead of bailing out.
58382
58383 2006-07-29  Bruno Haible  <bruno@clisp.org>
58384
58385         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58386         Categorize the options by when they are useful.
58387
58388 2006-07-29  Bruno Haible  <bruno@clisp.org>
58389
58390         * gnulib-tool (func_usage): Document option --no-libtool.
58391         Handle option --no-libtool.
58392         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58393         for changed semantics of $libtool variable.
58394         (func_import): Likewise. If libtool is not used, show this through
58395         an option --no-libtool.
58396         (func_create_testdir): Update.
58397
58398 2006-07-29  Bruno Haible  <bruno@clisp.org>
58399
58400         * gnulib-tool (func_import): Extend error message about missing
58401         --doc-base.
58402
58403 2006-07-29  Bruno Haible  <bruno@clisp.org>
58404
58405         * gnulib-tool (func_import): Don't create the $docbase directory if
58406         there is no file to store there.
58407
58408 2006-07-29  Bruno Haible  <bruno@clisp.org>
58409
58410         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58411         relevant, look for configure.ac there, not in the current directory.
58412         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58413
58414 2006-07-29  Bruno Haible  <bruno@clisp.org>
58415
58416         * gnulib-tool (SORT): New variable.
58417         (func_usage): Undocument --assume-autoconf option.
58418         Remove --assume-autoconf option handling.
58419         (autoconf_minversion): Determine from the contents of configure.ac.
58420         (func_import): Remove autoconf_minversion handling.
58421         Suggested by Eric Blake.
58422
58423 2006-07-29  Bruno Haible  <bruno@clisp.org>
58424
58425         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
58426
58427 2006-07-29  Bruno Haible  <bruno@clisp.org>
58428
58429         * config/srclist.txt (*setenv.[ch]): Remove rules.
58430
58431 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58432
58433         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
58434
58435 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58436
58437         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
58438         arpa/inet.h.
58439
58440 2006-07-28  Simon Josefsson  <jas@extundo.com>
58441
58442         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
58443         * modules/inet_pton (Depends-on): Likewise.
58444
58445 2006-07-28  Simon Josefsson  <jas@extundo.com>
58446
58447         * m4/netinet_in_h.m4: New file.
58448
58449 2006-07-28  Simon Josefsson  <jas@extundo.com>
58450
58451         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
58452         #include's.
58453
58454 2006-07-28  Simon Josefsson  <jas@extundo.com>
58455
58456         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
58457         #include's.
58458
58459 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
58460
58461         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
58462         setgid on directories only if they set these bits.
58463         * lib/modechange.h: Remove obsolete comment about masks.
58464
58465 2006-07-28  Eric Blake  <ebb9@byu.net>
58466
58467         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
58468         macro expansion.
58469
58470 2006-07-28  Bruno Haible  <bruno@clisp.org>
58471
58472         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
58473
58474 2006-07-28  Bruno Haible  <bruno@clisp.org>
58475
58476         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
58477
58478 2006-07-28  Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58481         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58482         Define fallbacks.
58483         Avoids link error on FreeBSD 4.x.
58484         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58485
58486         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
58487         encoding.
58488         * lib/mbswidth.c (iswcntrl): Likewise.
58489
58490 2006-07-27  Bruno Haible  <bruno@clisp.org>
58491
58492         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
58493         test.
58494
58495 2006-07-27  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
58498         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
58499         defined.
58500
58501 2006-07-26  Eric Blake  <ebb9@byu.net>
58502
58503         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
58504
58505 2006-07-26  Eric Blake  <ebb9@byu.net>
58506
58507         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
58508         like mingw that lack mkstemp.
58509         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
58510         avoid compilation warning on mingw.
58511
58512 2006-07-26  Bruno Haible  <bruno@clisp.org>
58513
58514         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
58515         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
58516         INT_FAST*_MIN, INTPTR_MIN.
58517
58518 2006-07-25  Bruno Haible  <bruno@clisp.org>
58519
58520         * modules/version-etc (Depends-on): Add stdarg.
58521
58522 2006-07-25  Bruno Haible  <bruno@clisp.org>
58523
58524         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
58525         complex commands.
58526
58527 2006-07-25  Bruno Haible  <bruno@clisp.org>
58528
58529         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
58530         defined in <stdarg.h> or config.h.
58531
58532 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58533
58534         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
58535         (gl_STDIO_SAFER): Remove.
58536
58537 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58538
58539         * MODULES.html.sh (File stream based Input/Output):
58540         Add fopen-safer, tmpfile-safer; remove stdio-safer.
58541         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
58542         * modules/fopen-safer, modules/tmpfile-safer: New files.
58543         * modules/stdio-safer: Remove.
58544
58545 2006-07-24  Bruno Haible  <bruno@clisp.org>
58546
58547         * modules/tmpdir: New file.
58548         * MODULES.html.sh (File system functions): Add it.
58549
58550 2006-07-24  Bruno Haible  <bruno@clisp.org>
58551
58552         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
58553         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
58554
58555 2006-07-24  Bruno Haible  <bruno@clisp.org>
58556
58557         * modules/clean-temp: New file.
58558
58559 2006-07-24  Bruno Haible  <bruno@clisp.org>
58560
58561         * m4/tmpdir.m4: New file, from GNU gettext.
58562
58563 2006-07-24  Bruno Haible  <bruno@clisp.org>
58564
58565         * lib/tmpdir.h: New file, from GNU gettext.
58566         * lib/tmpdir.c: New file, from GNU gettext.
58567
58568 2006-07-24  Bruno Haible  <bruno@clisp.org>
58569
58570         * lib/clean-temp.h: New file, from GNU gettext.
58571         * lib/clean-temp.c: New file, from GNU gettext.
58572
58573 2006-07-23  Eric Blake  <ebb9@byu.net>
58574
58575         * modules/stdio-safer (Files): Add tmpfile-safer.c.
58576         (Depends-on): Add binary-io.
58577
58578 2006-07-23  Eric Blake  <ebb9@byu.net>
58579
58580         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
58581
58582 2006-07-23  Eric Blake  <ebb9@byu.net>
58583
58584         * lib/tmpfile-safer.c: New file.
58585         * lib/stdio-safer.h (fopen_safer): Add prototype.
58586         * lib/stdio--.h (tmpfile): Make safer.
58587
58588 2006-07-23  Bruno Haible  <bruno@clisp.org>
58589
58590         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
58591         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
58592         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
58593         gl_linked_remove_at): Use it.
58594
58595 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58596         and Simon Josefsson <jas@extundo.com>
58597
58598         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
58599
58600         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
58601
58602 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58603
58604         * modules/close-stream: New file.
58605         * modules/closeout (Description): Make it clear that it exits
58606         with a diagnostic on error.
58607         (Depends-on): Add close-stream.  Remove fpending, stdbool.
58608         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
58609
58610 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58611
58612         * m4/close-stream.m4: New file.
58613
58614 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58615
58616         * lib/close-stream.c, lib/close-stream.h: New files.
58617
58618 2006-07-22  Bruno Haible  <bruno@clisp.org>
58619
58620         Merge from GNU gettext 0.15.
58621
58622         2006-05-01  Bruno Haible  <bruno@clisp.org>
58623
58624                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
58625
58626         2006-07-22  Bruno Haible  <bruno@clisp.org>
58627
58628                 * modules/javaversion: New file.
58629                 * MODULES.html.sh (Java): Add javaversion.
58630
58631         2006-03-12  Bruno Haible  <bruno@clisp.org>
58632
58633                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
58634
58635         2005-12-04  Bruno Haible  <bruno@clisp.org>
58636
58637                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
58638                 (untested).
58639
58640         2006-06-21  Bruno Haible  <bruno@clisp.org>
58641
58642                 Avoid warnings from recent versions of mcs.
58643                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
58644                 -o, -L, -r any more. Use options documented since mcs-1.0
58645                 instead. Similarly for -g.
58646
58647         2005-12-04  Bruno Haible  <bruno@clisp.org>
58648
58649                 * build-aux/csharpcomp.sh.in: Suffix for resources is
58650                 .resources, not .resource.
58651
58652         2005-07-09  Bruno Haible  <bruno@clisp.org>
58653
58654                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
58655                 add a .dll suffix.
58656                 Reported by Mark Junker <mjscod@gmx.de>.
58657
58658         2006-07-22  Bruno Haible  <bruno@clisp.org>
58659
58660                 * modules/gettext: Upgrade to gettext-0.15.
58661                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
58662                 m4/visibility.m4.
58663                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
58664
58665 2006-07-22  Bruno Haible  <bruno@clisp.org>
58666
58667         Merge from GNU gettext 0.15.
58668
58669         2006-03-25  Bruno Haible  <bruno@clisp.org>
58670
58671                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
58672
58673         2006-07-21  Bruno Haible  <bruno@clisp.org>
58674
58675                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
58676                 "1.1".
58677
58678         2006-05-09  Bruno Haible  <bruno@clisp.org>
58679
58680                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
58681                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
58682                 for the conftestver execution.
58683
58684         2006-05-01  Bruno Haible  <bruno@clisp.org>
58685
58686                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
58687                 optional target-version argument. Verify that the compiler
58688                 groks source of the specified source-version, or add -source
58689                 option as necessary. Verify that the compiler produces
58690                 bytecode in the specified target-version, or add -target and
58691                 -source options as necessary. Make the result of the test
58692                 available as variable CONF_JAVAC. Also log error output in
58693                 config.log.
58694
58695         2006-03-11  Bruno Haible  <bruno@clisp.org>
58696
58697                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
58698
58699         2006-05-09  Bruno Haible  <bruno@clisp.org>
58700
58701                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
58702                 CLASSPATH_SEPARATOR to a semicolon.
58703
58704         2006-03-12  Bruno Haible  <bruno@clisp.org>
58705
58706                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
58707                 available as variable CONF_JAVA, for subsequent autoconf
58708                 tests. Also log error output in config.log.
58709
58710         2006-07-19  Bruno Haible  <bruno@clisp.org>
58711
58712                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
58713                 that getline works on glibc2 systems. Needed to avoid trouble
58714                 in relocatable.c.
58715                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
58716
58717         2005-12-04  Bruno Haible  <bruno@clisp.org>
58718
58719                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
58720                 launcher (untested).
58721
58722         2005-12-04  Bruno Haible  <bruno@clisp.org>
58723
58724                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
58725
58726         2006-07-22  Bruno Haible  <bruno@clisp.org>
58727
58728                 * gettext.m4: Update from GNU gettext-0.15.
58729                 * nls.m4: Likewise.
58730                 * po.m4: Likewise.
58731                 * inttypes-pri.m4: Likewise.
58732                 * inttypes-h.m4: Renamed from inttypes.m4.
58733                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
58734
58735 2006-07-22  Bruno Haible  <bruno@clisp.org>
58736
58737         Merge from GNU gettext 0.15.
58738
58739         2005-07-05  Bruno Haible  <bruno@clisp.org>
58740
58741                 * printf-args.c (printf_fetchargs): Work around broken
58742                 definition of wint_t on mingw.
58743
58744         2005-02-12  Bruno Haible  <bruno@clisp.org>
58745
58746                 * xallocsa.h: Add extern "C" for C++.
58747
58748         2006-05-17  Bruno Haible  <bruno@clisp.org>
58749
58750                 Cygwin portability.
58751                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
58752
58753         2006-04-30  Bruno Haible  <bruno@clisp.org>
58754
58755                 * progreloc.c: Include <mach-o/dyld.h> if available.
58756                 (find_executable): Use _NSGetExecutablePath when possible.
58757
58758         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58759
58760                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
58761                 function.
58762
58763         2005-12-29  Bruno Haible  <bruno@clisp.org>
58764
58765                 * progreloc.c (set_program_name_and_installdir): Fix
58766                 compilation error.
58767
58768         2005-12-04  Bruno Haible  <bruno@clisp.org>
58769
58770                 Cygwin portability.
58771                 * progreloc.c: Include <windows.h> also on Cygwin.
58772                 (find_executable): Add support for Cygwin.
58773                 (set_program_name_and_installdir): Handle also platforms with
58774                 nonempty EXEEXT.
58775
58776         2006-07-11  Bruno Haible  <bruno@clisp.org>
58777
58778                 * javacomp.c: Fix a comment.
58779                 Reported by Jim Meyering.
58780
58781         2006-04-30  Bruno Haible  <bruno@clisp.org>
58782
58783                 * javacomp.h (compile_java_class): Add source_version,
58784                 target_version arguments.
58785                 * javacomp.c: Rewritten to choose only a compiler that
58786                 respects the specified source_version and target_version.
58787
58788         2006-06-27  Bruno Haible  <bruno@clisp.org>
58789
58790                 Assume correct S_ISDIR macro.
58791                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
58792
58793         2006-07-22  Bruno Haible  <bruno@clisp.org>
58794
58795                 * javaversion.h: New file, from GNU gettext.
58796                 * javaversion.c: New file, from GNU gettext.
58797                 * javaversion.java: New file, from GNU gettext.
58798                 * javaversion.class: New file, from GNU gettext.
58799
58800         2006-05-17  Bruno Haible  <bruno@clisp.org>
58801
58802                 Cygwin portability.
58803                 * javaexec.c (execute_java_class): Test for jview program
58804                 also on Cygwin.
58805
58806         2006-04-09  Bruno Haible  <bruno@clisp.org>
58807
58808                 * fatal-signal.c: Don't include string.h.
58809                 (at_fatal_signal): Use a copying loop instead of memcpy.
58810
58811         2005-12-04  Bruno Haible  <bruno@clisp.org>
58812
58813                 * csharpexec.c: Add support for 'clix' launcher (untested).
58814                 (execute_csharp_using_sscli): New function.
58815                 (execute_csharp_program): Call it.
58816
58817         2006-06-21  Bruno Haible  <bruno@clisp.org>
58818
58819                 Avoid warnings from recent versions of mcs.
58820                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
58821                 -o, -L, -r any more. Use options documented since mcs-1.0
58822                 instead. Similarly for -g.
58823
58824         2005-07-09  Bruno Haible  <bruno@clisp.org>
58825
58826                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
58827                 add a .dll suffix.
58828                 Reported by Mark Junker <mjscod@gmx.de>.
58829
58830         2006-06-17  Bruno Haible  <bruno@clisp.org>
58831
58832                 * config.charset: Update for NetBSD 3.0.
58833
58834         2006-05-17  Bruno Haible  <bruno@clisp.org>
58835
58836                 Cygwin portability.
58837                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
58838
58839         2006-05-16  Bruno Haible  <bruno@clisp.org>
58840
58841                 * localcharset.c [CYGWIN]: Include <windows.h>.
58842                 (get_charset_aliases): For Cygwin, return the same CPxxx
58843                 aliases list as under WIN32.
58844                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
58845                 the environment variables. Fall back to GetACP().
58846
58847         2006-04-05  Bruno Haible  <bruno@clisp.org>
58848
58849                 * config.charset: Update Juan Manuel Guerrero's address.
58850
58851         2005-02-12  Bruno Haible  <bruno@clisp.org>
58852
58853                 * allocsa.h: Add extern "C" for C++.
58854
58855         2005-02-10  Bruno Haible  <bruno@clisp.org>
58856
58857                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
58858                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
58859
58860         2006-07-22  Bruno Haible  <bruno@clisp.org>
58861
58862                 * gettext.h: Update to GNU gettext-0.15.
58863
58864 2006-07-22  Bruno Haible  <bruno@clisp.org>
58865
58866         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
58867         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
58868         lib-prefix.m4, longdouble.m4, ssize_t.m4.
58869
58870 2006-07-21  Eric Blake  <ebb9@byu.net>
58871
58872         * modules/stdlib-safer: New file.
58873         * MODULES.html.sh (File stream based Input/Output): Add
58874         stdlib-safer.
58875
58876 2006-07-21  Eric Blake  <ebb9@byu.net>
58877
58878         * lib/stdlib-safer.h: New file from coreutils, required by
58879         stdlib--.h.
58880
58881 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
58882
58883         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
58884
58885 2006-07-20  Bruno Haible  <bruno@clisp.org>
58886
58887         * gnulib-tool: Recognize new option --assume-autoconf.
58888         (autoconf_minversion): New variable.
58889         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
58890
58891 2006-07-20  Bruno Haible  <bruno@clisp.org>
58892
58893         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
58894
58895 2006-07-19  Derek R. Price  <derek@ximbiot.com>
58896
58897         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
58898         Reindent and repaginate.
58899
58900 2006-07-19  Derek Price  <derek@ximbiot.com>
58901
58902         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
58903         Correct grammar.
58904
58905 2006-07-17  Bruno Haible  <bruno@clisp.org>
58906
58907         * modules/list: New file.
58908         * modules/array-list: New file.
58909         * modules/carray-list, modules/carray-list-tests: New files.
58910         * modules/linked-list, modules/linked-list-tests: New files.
58911         * modules/avltree-list, modules/avltree-list-tests: New files.
58912         * modules/rbtree-list, modules/rbtree-list-tests: New files.
58913         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
58914         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
58915         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
58916         * modules/oset: New file.
58917         * modules/array-oset: New file.
58918         * modules/avltree-oset, modules/avltree-oset-tests: New files.
58919         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
58920         * tests/test-carray_list.c: New file.
58921         * tests/test-linked_list.c: New file.
58922         * tests/test-avltree_list.c: New file.
58923         * tests/test-rbtree_list.c: New file.
58924         * tests/test-linkedhash_list.c: New file.
58925         * tests/test-avltreehash_list.c: New file.
58926         * tests/test-rbtreehash_list.c: New file.
58927         * tests/test-avltree_oset.c: New file.
58928         * tests/test-rbtree_oset.c: New file.
58929         * MODULES.html.sh (Container data structures): New section.
58930
58931 2006-07-17  Bruno Haible  <bruno@clisp.org>
58932
58933         * m4/gl_list.m4: New file.
58934
58935 2006-07-17  Bruno Haible  <bruno@clisp.org>
58936
58937         * lib/gl_list.h: New file.
58938         * lib/gl_list.c: New file.
58939         * lib/gl_array_list.h: New file.
58940         * lib/gl_array_list.c: New file.
58941         * lib/gl_carray_list.h: New file.
58942         * lib/gl_carray_list.c: New file.
58943         * lib/gl_linked_list.h: New file.
58944         * lib/gl_linked_list.c: New file.
58945         * lib/gl_anylinked_list1.h: New file.
58946         * lib/gl_anylinked_list2.h: New file.
58947         * lib/gl_avltree_list.h: New file.
58948         * lib/gl_avltree_list.c: New file.
58949         * lib/gl_anyavltree_list1.h: New file.
58950         * lib/gl_anyavltree_list2.h: New file.
58951         * lib/gl_rbtree_list.h: New file.
58952         * lib/gl_rbtree_list.c: New file.
58953         * lib/gl_anyrbtree_list1.h: New file.
58954         * lib/gl_anyrbtree_list2.h: New file.
58955         * lib/gl_anytree_list1.h: New file.
58956         * lib/gl_anytree_list2.h: New file.
58957         * lib/gl_linkedhash_list.h: New file.
58958         * lib/gl_linkedhash_list.c: New file.
58959         * lib/gl_anyhash_list1.h: New file.
58960         * lib/gl_anyhash_list2.h: New file.
58961         * lib/gl_avltreehash_list.h: New file.
58962         * lib/gl_avltreehash_list.c: New file.
58963         * lib/gl_rbtreehash_list.h: New file.
58964         * lib/gl_rbtreehash_list.c: New file.
58965         * lib/gl_anytreehash_list1.h: New file.
58966         * lib/gl_anytreehash_list2.h: New file.
58967
58968         * lib/gl_oset.h: New file.
58969         * lib/gl_oset.c: New file.
58970         * lib/gl_array_oset.h: New file.
58971         * lib/gl_array_oset.c: New file.
58972         * lib/gl_avltree_oset.h: New file.
58973         * lib/gl_avltree_oset.c: New file.
58974         * lib/gl_rbtree_oset.h: New file.
58975         * lib/gl_rbtree_oset.c: New file.
58976         * lib/gl_anytree_oset.h: New file.
58977
58978 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58979
58980         * m4/mkancesdirs.m4: New file.
58981         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
58982         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
58983         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
58984         it.
58985
58986 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
58989         * lib/mkancesdirs.h: New files.
58990         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
58991         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
58992         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
58993         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
58994         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
58995         callers changed.  Revamp internals significantly, by not
58996         attempting to create directories that are temporarily more
58997         permissive than the final results.  Do not attempt to use
58998         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
58999         This removes some race conditions, fixes some bugs, and simplifies
59000         things.  Use new dirchownmod function to do owner and mode changes.
59001         * lib/mkdir-p.h: Likewise.
59002         * lib/modechange.c (octal_to_mode): New function.
59003         (struct mode_change): New member mentioned.
59004         (make_node_op_equals): New arg mentioned.  All callers changed.
59005         (mode_compile): Keep track of which mode bits the user has explicitly
59006         mentioned.
59007         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59008         New arg PMODE_BITS, to keep track of which mode bits the user
59009         mentioned; it treats S_ISUID and S_ISGID speciall.
59010         All callers changed.
59011         * lib/modechange.h: Likewise.
59012
59013 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59014
59015         * MODULES.html.sh: Add mkancestors.
59016         * modules/mkancesdirs: New module.
59017         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59018         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59019         The chdir-safer and afs files are now orphans; I'll remove them
59020         unless someone speaks up.
59021         Add lib/dirchownmod.c, lib/dirchownmod.h.
59022         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59023         Add lchown, mkancesdirs.
59024         (Maintainer): Add self.
59025
59026 2006-07-15  Karl Berry  <karl@gnu.org>
59027
59028         * gnulib-tool: help message wording/arrangement.
59029
59030 2006-07-14  Simon Josefsson  <jas@extundo.com>
59031
59032         * doc/gnulib.texi (Libtool and Windows): New section.
59033
59034 2006-07-12  Simon Josefsson  <jas@extundo.com>
59035
59036         * modules/gendocs (License): Fix license, approved by Karl.
59037
59038 2006-07-12  Eric Blake  <ebb9@byu.net>
59039
59040         * MODULES.html.sh: Add gendocs.
59041
59042 2006-07-11  Eric Blake  <ebb9@byu.net>
59043
59044         * modules/fdl: New module, to install doc/fdl.texi.
59045         * MODULES.html.sh: Add new section for documentation modules.
59046         * gnulib-tool: Avoid space-tab.
59047         (--doc-base): New option, to manage files from doc.
59048
59049 2006-07-11  Eric Blake  <ebb9@byu.net>
59050
59051         * m4/absolute-header.m4: Fix comments to match recent change.
59052
59053 2006-07-11  Eric Blake  <ebb9@byu.net>
59054
59055         * gnulib-tool: List --doc-base before --tests-base.
59056
59057 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59058
59059         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59060
59061 2006-07-11  Bruno Haible  <bruno@clisp.org>
59062
59063         * README: Mention where to put documentation.
59064
59065 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59066
59067         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59068
59069 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59070
59071         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59072         to stdint.m4.
59073
59074 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59075
59076         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59077         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59078         "no/such/file/stdint.h" when there is no such file, so that
59079         the resulting C code can be parsed by dodgy compilers.
59080         Problems reported by Bob Proulx.
59081
59082 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59083
59084         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59085         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59086         macros into the GNU _D_EXACT_NAMLEN.
59087         * lib/savedir.c:  Likewise.
59088         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59089
59090 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59091         and Paul Eggert  <eggert@cs.ucla.edu>
59092
59093         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59094         * m4/savedir.m4:
59095         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59096         macros into the GNU _D_EXACT_NAMLEN.
59097
59098 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59099
59100         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59101         around the absolute name, to work around a problem with the HP-UX
59102         11.23 native C compiler, reported by Bob Proulx.
59103
59104 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59105
59106         * doc/maintain.texi, make-stds.texi: Sync from
59107         <http://savannah.gnu.org/projects/gnustandards>.
59108
59109 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59110
59111         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59112
59113 2006-07-09  Jim Meyering  <jim@meyering.net>
59114
59115         * m4/glob.m4: Remove a doubled word in a comment.
59116
59117 2006-07-09  Jim Meyering  <jim@meyering.net>
59118
59119         * lib/argp-pv.c: Remove a doubled word in a comment.
59120         * lib/check-version.c (check_version): Likewise.
59121         * lib/javacomp.c (compile_java_class): Likewise.
59122
59123 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59124
59125         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59126         for the benefit of people using Autoconf 2.60.  If you want to
59127         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59128         (or m4/onceonly.m4, if pre-2.57) manually.
59129
59130 2006-07-08  Jim Meyering  <jim@meyering.net>
59131
59132         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59133         comment.
59134         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59135         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59136         comment.
59137
59138 2006-07-08  Jim Meyering  <jim@meyering.net>
59139
59140         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59141
59142 2006-07-07  Simon Josefsson  <jas@extundo.com>
59143
59144         * tests/test-crc.c: Change expected crc value, the test vector
59145         were probably computed using the old broken crc.c?
59146
59147 2006-07-06  Simon Josefsson  <jas@extundo.com>
59148
59149         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59150         now the canonical place for the M4 file).
59151
59152         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59153         from the sys_socket dependency now.
59154
59155         * modules/inet_pton (Files): Ditto.
59156
59157         * modules/inet_ntop (Files): Ditto.
59158
59159 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59160
59161         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59162         not gl_PREREQ_GETUSERSHELL.
59163
59164 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59165
59166         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59167         with only one argument, for Autoconf 2.60.
59168         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59169         expand to nothing, so add a shell command to avoid syntax error.
59170         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59171
59172 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59173
59174         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59175
59176 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59177
59178         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59179         no longer needed.  Check for isblank decl.
59180         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59181         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59182         of existence.
59183
59184 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59185
59186         * lib/getloadavg.c: Use __VMS, not VMS.
59187         * lib/getopt.c: Likewise.
59188         * lib/getpagesize.h: Likewise.
59189         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59190         and probably does not work.
59191
59192 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         * lib/.cppi-disable: Add wcwidth.
59195         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59196         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59197         (ISGRAPH): Remove.  All uses changed to isgraph.
59198         (FOLD) [!defined _LIBC]: Remove special case.
59199         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59200         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59201         HAVE_ISBLANK.
59202         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59203         case.
59204
59205 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59206
59207         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59208         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59209         brackets.  Other minor changes to suppress some compiler
59210         warnings.
59211
59212 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59213         and Paul Eggert  <eggert@cs.ucla.edu>
59214
59215         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59216         of invoking obsolescent AC_HEADER_DIRENT macro.
59217         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59218         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59219         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59220         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59221         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59222         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59223         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59224         * m4/readdir.m4: Remove; no longer needed.
59225
59226 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59227         and Paul Eggert  <eggert@cs.ucla.edu>
59228
59229         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59230         Don't worry about this obsolete case any more.
59231         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59232         directories.
59233         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59234         worry about this obsolete case any more.
59235         * lib/fts.c: Likewise.
59236         * lib/getcwd.c: Likewise.
59237         * lib/glob.h: Likewise.
59238         * lib/savedir.c: Likewise.
59239
59240 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59241
59242         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59243         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59244         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59245         needed.
59246         All uses removed.
59247         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59248         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59249         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59250         needed.
59251         * m4/getdate.m4 (gl_GETDATE): Likewise.
59252         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59253         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59254         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59255         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59256         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59257         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59258         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59259         needed.
59260
59261 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59262
59263         * lib/memcasecmp.c: Include <limits.h>.
59264         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59265         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59266         Don't assume isdigit succeeds only on '0' through '9'.
59267
59268 2006-07-05  Eric Blake  <ebb9@byu.net>
59269
59270         * modules/getaddrinfo (Depends-on): Add snprintf.
59271
59272 2006-07-05  Eric Blake  <ebb9@byu.net>
59273
59274         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59275         to avoid 'header present but could not be compiled' on cygwin.
59276
59277 2006-07-05  Eric Blake  <ebb9@byu.net>
59278
59279         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59280         missing from netdb.h.
59281         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59282
59283 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59284
59285         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59286         no longer needed.
59287         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59288         * m4/getdate.m4 (gl_GETDATE): Likewise.
59289         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59290         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59291         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59292         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59293         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59294
59295 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59296
59297         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59298         All uses of is_space replaced by isspace.
59299         * lib/exit.h: Don't talk about STDC_HEADERS.
59300         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59301         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59302         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59303         replaced by isprint etc.
59304         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59305         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59306         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59307         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59308         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59309         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59310
59311 2006-07-05  Bruno Haible  <bruno@clisp.org>
59312
59313         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59314         the function exists, before testing against AIX.
59315         Reported by Martin Lambers <marlam@marlam.de>.
59316
59317 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59318
59319         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59320         From Mark D. Baushke.
59321
59322 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59323
59324         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59325         to the absolute name, not just one, to bypass Sun C 5.8's
59326         "warning: #include of /usr/include/... may be non-portable".
59327
59328 2006-07-04  Eric Blake  <ebb9@byu.net>
59329
59330         * modules/dirname-tests: New test module.
59331         * tests/test-dirname.c: New file, replacing dirname.c
59332         TEST_DIRNAME section that was recently deleted.
59333
59334 2006-07-04  Bruno Haible  <bruno@clisp.org>
59335
59336         Assume ANSI C header files and <ctype.h> functions.
59337         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59338         (mbsnwidth): Use isprint, iscntrl instead.
59339
59340 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59341
59342         Merge from coreutils.
59343         * MODULES.html.sh: Add xstrtold.
59344         * modules/xstrtold: New file.
59345         * modules/cycle-check (Files): Add lib/same-inode.h.
59346         * modules/dirname (Files): Add m4/double-slash-root.m4.
59347         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59348         * modules/mkdir-p (Files): Add lib/same-inode.h.
59349         * modules/same (Files): Add lib/same-inode.h.
59350
59351 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59352
59353         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59354         This is to keep the terminology clean; POSIX talks about
59355         "absolute pathnames", not "full pathnames", but the GNU
59356         Coding Standards say to use "path" for something else;
59357         so use "absolute" to keep both sides happy.
59358         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59359         Set gl_absolute_header, not gl_full_header_path.
59360         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59361         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59362         All uses changed.
59363
59364         Merge from coreutils.
59365
59366         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59369         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59370         want to require the building of c-strtod.o.
59371         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59372         needs -lm directly.
59373         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59374
59375         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59376
59377         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59378         --as-needed option if available.  Problem reported by Albert Chin in
59379         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59380         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59381         cc merely issues a bunch of annoying warnings for --as-needed
59382         (this problem was reported by Bob Proulx).  Also, try linking with
59383         -lm to detect a bug in binutils 2.16 (this problem was reported
59384         by Ralf Wildenhues).
59385
59386         2006-06-18  Jim Meyering  <jim@meyering.net>
59387
59388         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59389         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59390         macro.
59391         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59392         also check for glibc-2.4's abort-inducing bug.
59393
59394         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59395         Low-probability clean-up should be to use rmdir to get rid of
59396         the just-created directory, not unlink.
59397
59398         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59399         configure fail, and request a bug report to inform us about it.
59400         Add a comment that, barring reports to the contrary, in 2007 we'll
59401         assume ftruncate is universally available.
59402
59403         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59404
59405         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59406
59407         2006-03-12  Jim Meyering  <jim@meyering.net>
59408
59409         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59410         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59411         * m4/same.m4 (gl_SAME): Likewise.
59412         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59413
59414         2006-03-11  Eric Blake  <ebb9@byu.net>
59415
59416         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
59417         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
59418         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
59419         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
59420
59421 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59422
59423         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
59424         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
59425         reported by Mark D. Baushke, one in
59426         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
59427
59428         Merge from coreutils.
59429
59430         * lib/.cppi-disable: Add stdint_.h.
59431         * lib/.cvsignore: Add stdint.h.
59432
59433         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59434
59435         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
59436         both double and long double versions.
59437         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
59438         * lib/xstrtold.c: New file.
59439         * lib/xstrtod.h (xstrtold): New decl.
59440
59441         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59442
59443         * lib/filemode.c (setst): Remove.
59444         (strmode): Rewrite to avoid setst.  This makes the code shorter,
59445         (arguably) clearer, and the generated code is a bit smaller on my
59446         Debian GNU/Linux stable x86 host.
59447
59448         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59449
59450         * lib/filemode.c: Include "filemode.h" first, to test the interface.
59451         Assume that filemode.h includes sys/types.h and sys/stat.h.
59452         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
59453         (ftypelet): Reorder to put common cases first, for efficiency.
59454         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
59455         to do 'M'.
59456         (strmode): Renamed from mode_string, and now stores 12 bytes instead
59457         of 10, for compatibility with FreeBSD.  All callers changed.
59458         (filemodestring): Now stores 12 bytes instead of 10, and sets file
59459         types that can't be deduced solely from st_mode.  First arg is now a
59460         const pointer.
59461         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
59462         (strmode): Renamed from mode_string.
59463         (filemodestring): New decl.
59464         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
59465         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
59466         needed.
59467         (S_ISPORT, S_ISWHT): New macros, if not already defined.
59468
59469         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59470
59471         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
59472         fsusage.h now does that.  Include fsusage.h first, to test interface.
59473         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
59474         at most one method (the old code could have generated decls that
59475         didn't conform to C89, not that this was ever exercised).
59476         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
59477
59478         2006-03-19  Jim Meyering  <jim@meyering.net>
59479
59480         Work even in a chroot where d_ino values for entries in "/"
59481         don't match the stat.st_ino values for the same names.
59482         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
59483         number, iterate through all entries again, using lstat instead.
59484         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
59485         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
59486
59487         * lib/getcwd.c (__getcwd): Clarify a comment.
59488         Use memcpy in place of a call to strcpy.
59489
59490         2006-03-12  Jim Meyering  <jim@meyering.net>
59491
59492         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
59493         matches that of the current directory (which we're about to chdir ".."
59494         out of), then save the dev-ino of the parent, instead.
59495
59496         * lib/same-inode.h (SAME_INODE): New file/macro.
59497         * lib/chdir-safer.c (SAME_INODE): Remove definition.
59498         Include "same-inode.h", instead.
59499         * lib/same.c: Likewise.
59500         * lib/cycle-check.h: Include "same-inode.h".
59501         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
59502         * lib/cycle-check.c (SAME_INODE): Remove definition.
59503         * lib/root-dev-ino.h: Include "same-inode.h".
59504
59505         2006-03-11  Eric Blake  <ebb9@byu.net>
59506
59507         * lib/same.c (same_name): s/base_name/last_component/
59508         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
59509         * lib/filenamecat.c (file_name_concat): Likewise.
59510
59511         2006-03-11  Eric Blake  <ebb9@byu.net>,
59512                     Paul Eggert  <eggert@cs.ucla.edu>
59513
59514         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
59515         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
59516         drive prefix.
59517         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
59518         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
59519         (last_component): New method.
59520         * lib/dirname.c (dir_len): Determine when drive letters need a
59521         subsequent slash.  Preserve // when it is special.
59522         (dir_name): Don't append dot when drive letter is absolute.
59523         [TEST_DIRNAME]: Move into a full-blown gnulib test.
59524         * lib/basename.c (base_name): New semantics - malloc the result.
59525         Preserve // when it is special.  Preserve relative files that look
59526         like drive letters.
59527         (base_len): Preserve // when it is special.
59528         (last_component): New method, similar to old base_name semantics.
59529         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
59530         base_name.  Strip redundant slashes from ///.
59531
59532 2006-07-03  Jim Meyering  <jim@meyering.net>
59533
59534         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
59535         macro is used before the first cycle_check call.
59536
59537 2006-07-03  Eric Blake  <ebb9@byu.net>
59538
59539         * modules/dirname (Depends-on): Add xstrndup.
59540
59541 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59542
59543         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
59544         test cases, so that config.log is a bit easier to follow.
59545
59546 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59547
59548         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
59549         both are 64 bits, since this seems to be the tradition, and this
59550         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
59551         we ever run into a host that prefers long long to long in this
59552         case, we'll need another configure-time test.  Problem reported by
59553         Jim Meyering.
59554
59555 2006-07-02  Eric Blake  <ebb9@byu.net>
59556
59557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
59558
59559 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59560
59561         * modules/inttypes (Depends-on): No longer depends on stdint.
59562         * modules/stdint (Description): Say more about assumptions.
59563         Say that the fast types might differ.  Say macros are used.
59564         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
59565         (Makefile.am): Revise list of substituted symbols to match
59566         new stdint.m4.
59567         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
59568         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
59569         * tests/test-stdint.c (verify_same_types)
59570         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
59571         the code conforms to C99/C89.
59572         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
59573         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
59574
59575 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59576
59577         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
59578         but fix a bug, by requiring at least 64 bits.
59579         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59580         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
59581         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
59582         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
59583
59584         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
59585         changes.  Make 2.59 a prerequisite.  Check and substitute for
59586         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
59587         inttypes.h.  Do not use special include files; just use the
59588         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
59589         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
59590         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
59591         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
59592         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
59593         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
59594         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
59595         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
59596         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
59597         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
59598         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
59599         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
59600         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
59601         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
59602         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
59603         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
59604         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
59605         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
59606         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
59607         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
59608         WINT_MAX.  Check for C99 conformance more strictly, by detecting
59609         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
59610         not check for things that C99 does not require, e.g., int8_t.  If
59611         a test isn't needed unless <stdint.h> isn't working, and is
59612         unlikely to be needed for any other reason, then don't do it
59613         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
59614         size_t, since we assume C89 freestanding at least.  Do not check
59615         for sig_atomic_t, wchar_t, or wint_t, since the code now does
59616         the right thing even if the types are not defined.  Instead use:
59617         (gl_STDINT_TYPE_PROPERTIES): New macro.
59618         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
59619         testing whether <sys/types.h> clashes, as Autoconf does this for
59620         us now.  All uses removed.
59621         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
59622         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
59623         (gl_CHECK_TYPE_SAME):
59624         Remove; no longer needed.
59625         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
59626         exists, since we'll return 0 anyway in that case.
59627         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
59628
59629 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59630
59631         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
59632         possible collision with system files.
59633         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
59634         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
59635         WCHAR_MIN and WCHAR_MAX in this case.
59636         (<stddef.h>): Do not include; no longer needed.
59637         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
59638         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
59639         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
59640         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
59641         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
59642         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
59643         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
59644         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
59645         !defined(__c99))]: Include in this case too, since it's harmless
59646         now.
59647         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
59648         dangerous to do so.
59649         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
59650         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
59651         (_STDINT_MIN, _STDINT_MAX): New macros.
59652         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
59653         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
59654         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
59655         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
59656         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
59657         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
59658         macros, not typedefs; this simplifies things quite a bit.
59659         Use long int for all types narrower than int64_t.
59660         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
59661         Define in terms of long long int or int64_t or long int,
59662         not int64_t or int32_t.  This saves some compile-time testing.
59663         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
59664         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
59665         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
59666         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
59667         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
59668         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
59669         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
59670         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
59671         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
59672         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
59673         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59674         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59675         undef any previous version and define our own version, for
59676         simplicity and consistency with the new macros for types.
59677         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59678         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59679         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
59680         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
59681         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
59682         @WINT_T_SUFFIX@ to keep things simple here.
59683         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
59684         Simplify by assuming typical 8/16/32/64 host, since we're
59685         already doing that elsewhere anyway.
59686         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
59687         and assume long long int is 64 bits if available.  This
59688         speeds up 'configure'.
59689
59690 2006-07-01  Eric Blake  <ebb9@byu.net>
59691
59692         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
59693         Reported by Andreas Buening.
59694
59695 2006-07-01  Eric Blake  <ebb9@byu.net>
59696
59697         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
59698
59699 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59700
59701         * lib/getaddrinfo.c: fixed typo
59702
59703 2006-06-29  Jim Meyering  <jim@meyering.net>
59704
59705         * modules/strftime (Maintainer): Add my name, since with the
59706         FPRINTFTIME changes strftime.c has forked from glibc.
59707
59708 2006-06-29  Eric Blake  <ebb9@byu.net>
59709
59710         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
59711
59712 2006-06-29  Eric Blake  <ebb9@byu.net>
59713
59714         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
59715
59716 2006-06-29  Eric Blake  <ebb9@byu.net>
59717
59718         * lib/stat_.h: New file.
59719
59720 2006-06-29  Eric Blake  <ebb9@byu.net>
59721
59722         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
59723         unused static function.
59724
59725 2006-06-29  Eric Blake  <ebb9@byu.net>
59726
59727         * doc/functions.texi (Function Portability): Document missing lstat
59728         on mingw.
59729
59730 2006-06-29  Eric Blake  <ebb9@byu.net>
59731
59732         * MODULES.html.sh: Add sys_stat.
59733         * modules/sys_stat: New module.
59734         * modules/mkstemp (Depends-on): Add sys_stat.
59735
59736 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59737
59738         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
59739
59740 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59741
59742         * m4/c-bs-a.m4: Removed.
59743
59744 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59745
59746         * lib/strftime.c: Assume strftime() exists.
59747
59748 2006-06-29  Derek Price  <derek@ximbiot.com>
59749
59750         * modules/c-bs-a: Removed - \a is C89.
59751         * MODULES.html.sh: Remove c-bs-a.
59752
59753 2006-06-29  Bruno Haible  <bruno@clisp.org>
59754
59755         * modules/wcwidth (License): Change to LGPL.
59756
59757 2006-06-28  Simon Josefsson  <jas@extundo.com>
59758
59759         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
59760         on _WIN32.
59761
59762         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
59763         getnameinfo.
59764
59765 2006-06-28  Simon Josefsson  <jas@extundo.com>
59766
59767         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
59768
59769 2006-06-28  Simon Josefsson  <jas@extundo.com>
59770
59771         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
59772         functions there.  It will succeed on Windows XP, but on Windows
59773         2000 and (presumably) earlier, it will fail, and use the internal
59774         re-implementation.
59775         (use_win32_p): New function.
59776         (getaddrinfo): Use strtoul on servname, to support numeric ports.
59777         Support AI_NUMERICSERV to disable getservbyname.
59778         (getnameinfo): New function, only supports
59779         NI_NUMERICHOST|NI_NUMERICSERV for now.
59780
59781         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
59782         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
59783         getnameinfo.
59784
59785 2006-06-28  Eric Blake  <ebb9@byu.net>
59786
59787         * modules/wcwidth: New file.
59788         * modules/mbchar (Depends-on): Add wcwidth.
59789         * modules/mbswidth (Depends-on): Add wcwidth.
59790         * MODULES.html.sh: Add wcwidth.
59791
59792 2006-06-28  Eric Blake  <ebb9@byu.net>
59793
59794         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
59795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
59796
59797 2006-06-28  Eric Blake  <ebb9@byu.net>
59798
59799         * lib/xvasprintf.h: Fix comments.
59800
59801 2006-06-28  Eric Blake  <ebb9@byu.net>
59802
59803         * lib/mbchar.h (wcwidth): Include wcwidth.h.
59804         * lib/mbswidth.c (wcwidth): Move from here...
59805         * lib/wcwidth.h: ...to this new file.
59806
59807 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59808
59809         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
59810
59811         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
59812         it's obsolete.
59813         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
59814
59815 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59816
59817         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
59818         Autoconf 2.60 says this stuff was obsolete.
59819
59820 2006-06-28  Bruno Haible  <bruno@clisp.org>
59821
59822         * modules/wcwidth (Files): Add m4/wchar_t.m4.
59823
59824 2006-06-28  Bruno Haible  <bruno@clisp.org>
59825
59826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
59827         gt_TYPE_WCHAR_T.
59828
59829 2006-06-28  Bruno Haible  <bruno@clisp.org>
59830
59831         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
59832         declaration for wcwidth.
59833         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
59834
59835 2006-06-28  Bruno Haible  <bruno@clisp.org>
59836
59837         * lib/mkdtemp.c [MINGW]: Include <io.h>.
59838         (mkdir): Define using _mkdir.
59839
59840 2006-06-28  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/getaddrinfo.h: Fix POSIX URL.
59843         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
59844         _WIN32.
59845         (use_win32_p): Make static.
59846         (getaddrinfo): Reject service name if it is empty or does not consist
59847         solely of decimal digits, or if its value is > 65535.
59848         (getnameinfo): Remove useless casts.
59849
59850 2006-06-27  Simon Josefsson  <jas@extundo.com>
59851
59852         * modules/sys_select: New file, suggested by Bruno Haible, Paul
59853         Eggert and Martin Lambers.
59854
59855 2006-06-27  Simon Josefsson  <jas@extundo.com>
59856
59857         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
59858         Eggert and Martin Lambers.
59859
59860 2006-06-27  Bruno Haible  <bruno@clisp.org>
59861
59862         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
59863         result to 0, not to empty.
59864         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
59865
59866 2006-06-27  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
59869
59870 2006-06-26  Simon Josefsson  <jas@extundo.com>
59871
59872         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
59873         present.
59874
59875 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
59876
59877         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
59878         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
59879         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
59880
59881 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
59882
59883         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
59884
59885 2006-06-26  Bruno Haible  <bruno@clisp.org>
59886
59887         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
59888
59889 2006-06-26  Bruno Haible  <bruno@clisp.org>
59890
59891         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
59892
59893 2006-06-26  Bruno Haible  <bruno@clisp.org>
59894
59895         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
59896         SGI C compiler in pre-C99 mode.
59897         Suggested by Mark D. Baushke and Larry Jones.
59898
59899 2006-06-26  Bruno Haible  <bruno@clisp.org>
59900
59901         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
59902         WCHAR_MAX.
59903         Reported by Mark D. Baushke and Larry Jones.
59904
59905 2006-06-26  Bruno Haible  <bruno@clisp.org>
59906
59907         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
59908         in pre-C99 mode.
59909         Suggested by Mark D. Baushke and Larry Jones.
59910
59911 2006-06-23  Simon Josefsson  <jas@extundo.com>
59912             Bruno Haible  <bruno@clisp.org>
59913
59914         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
59915         Emit mostlyclean-local rule.
59916         (func_emit_tests_Makefile_am): Likewise.
59917         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
59918
59919 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
59920
59921         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
59922
59923 2006-06-23  Bruno Haible  <bruno@clisp.org>
59924
59925         * tests/test-stdint.c: Update to match ISO C 99 Technical
59926         Corrigendum 1.
59927
59928 2006-06-23  Bruno Haible  <bruno@clisp.org>
59929
59930         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
59931
59932 2006-06-23  Bruno Haible  <bruno@clisp.org>
59933
59934         * lib/stdint_.h: Treat IRIX like OpenBSD.
59935
59936 2006-06-23  Bruno Haible  <bruno@clisp.org>
59937
59938         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
59939         ISO C 99 Technical Corrigendum 1.
59940
59941 2006-06-22  Simon Josefsson  <jas@extundo.com>
59942
59943         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
59944         MinGW.
59945
59946 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
59949         needed.  Some compiler complained about some of them.  Problem reported
59950         by Larry Jones in
59951         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
59952
59953 2006-06-21  Simon Josefsson  <jas@extundo.com>
59954
59955         * tests/test-getaddrinfo.c: New file.
59956
59957         * modules/getaddrinfo-tests: New file.
59958
59959         * MODULES.html.sh: Add inet_pton.
59960
59961         * modules/inet_pton: New file.
59962
59963 2006-06-21  Simon Josefsson  <jas@extundo.com>
59964
59965         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
59966         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
59967         of using the (limited) gnulib implementation on Windows XP.
59968
59969         * m4/inet_pton.m4: New file.
59970
59971 2006-06-21  Simon Josefsson  <jas@extundo.com>
59972
59973         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
59974         variable.
59975
59976         * lib/socket_.h: Don't define WINVER.
59977
59978         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
59979         slightly modified to work in gnulib.
59980
59981 2006-06-21  Simon Josefsson  <jas@extundo.com>
59982
59983         * doc/gnulib.texi (Windows sockets): Add.
59984
59985 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59986
59987         * lib/read-file.c (fread_file): Start with buffer allocation of
59988         0 bytes rather than 1 byte; this simplifies the code.
59989         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
59990         code to free buffer and save/restore errno.
59991         (internal_read_file): Remove unused local.
59992
59993 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59994
59995         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
59996         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
59997         Problem reported by Denis Excoffier in
59998         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
59999
60000 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60001
60002         * modules/sys_socket, modules/socklen: Include sys/types since
60003         FreeBSD 4.x's sys/socket.h needs it.
60004
60005 2006-06-19  Simon Josefsson  <jas@extundo.com>
60006
60007         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60008
60009 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60010
60011         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60012
60013 2006-06-19  Bruno Haible  <bruno@clisp.org>
60014
60015         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60016         and FULL_PATH_INTTYPES_H in angle brackets.
60017         Reported by Mark D. Baushke <mdb@gnu.org>.
60018
60019 2006-06-17  Eric Blake  <ebb9@byu.net>
60020
60021         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60022         errno.
60023
60024 2006-06-17  Bruno Haible  <bruno@clisp.org>
60025
60026         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60027         <sys/inttypes.h>.
60028
60029 2006-06-17  Bruno Haible  <bruno@clisp.org>
60030
60031         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60032         whether errno is declared. Assume <errno.h> declares errno.
60033
60034 2006-06-17  Bruno Haible  <bruno@clisp.org>
60035
60036         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60037
60038 2006-06-17  Bruno Haible  <bruno@clisp.org>
60039
60040         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60041         problem on Solaris 2.5.1.
60042
60043 2006-06-16  Eric Blake  <ebb9@byu.net>
60044
60045         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60046         * lib/unicodeio.c [!defined errno]: Likewise.
60047         * lib/strtol.c [!defined errno]: Likewise.
60048         * lib/strtod.c [!defined errno]: Likewise.
60049
60050 2006-06-15  Eric Blake  <ebb9@byu.net>
60051
60052         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60053
60054 2006-06-15  Eric Blake  <ebb9@byu.net>
60055
60056         * config/srclist.txt (ssize_t.m4): Lose sync.
60057
60058 2006-06-15  Bruno Haible  <bruno@clisp.org>
60059
60060         * modules/stdint (Files): Include m4/full-header-path.m4,
60061         m4/size_max.m4, m4/wchar_t.m4.
60062         (Makefile.am): Many more substitutions.
60063         * modules/stdint-tests: New file.
60064         * tests/test-stdint.c: New file.
60065
60066 2006-06-15  Bruno Haible  <bruno@clisp.org>
60067
60068         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60069         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60070         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60071         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60072         gl_CHECK_TYPE_SAME): New macros.
60073
60074 2006-06-15  Bruno Haible  <bruno@clisp.org>
60075
60076         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60077
60078 2006-06-15  Bruno Haible  <bruno@clisp.org>
60079
60080         * lib/stdint_.h: Rewritten to be fully auto-configured.
60081         Fixes bug on HP-UX/IA64.
60082
60083 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60084
60085         * lib/getdate.y (__attribute__): Don't define if already defined.
60086         Problem reported by Larry Jones.
60087         * lib/utimens.c (__attribute__): Likewise.
60088
60089 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60092         reported by Andreas Schwab.
60093
60094 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60095             Bruno Haible  <bruno@clisp.org>
60096
60097         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60098         check for the declaration of strnlen and a run test that exposes the
60099         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60100         rpl_strndup.
60101
60102 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60103             Bruno Haible  <bruno@clisp.org>
60104
60105         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60106
60107 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60108
60109         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60110         compile test, for Tru64 4.0D.
60111
60112 2006-05-28  Karl Berry  <karl@gnu.org>
60113
60114         * config/srclist.txt (printf-args.c): lose sync.
60115
60116 2006-05-26  Martin Lambers  <marlam@marlam.de>
60117
60118         * lib/getpass.c: Updates the test for the native W32 API, and adds
60119         missing includes, thus fixing compilation warnings.
60120
60121 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60122
60123         * lib/exclude.c (exclude_fnmatch): New function.
60124         (excluded_file_name): Call exclude_fnmatch.
60125         * lib/exclude.h (excluded_file_name): New prototype
60126
60127 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60128
60129         * lib/tempname.c (small_open, large_open): New macros.
60130         (__open, __open64) [!_LIBC]: Remove.
60131         (__gen_tempname): Use small_open and large_open instead of __open
60132         and __open64.  This fixes a portability bug on HP-UX 11.11i
60133         reported by Simon Wing-Tang in
60134         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60135
60136 2006-05-24  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60139         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60140         Reported by Thorsten Maerz <torte@netztorte.de> via
60141         Aaron Stone <aaron@serendipity.cx>.
60142
60143 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60144
60145         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60146         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60147         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60148         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60149         not really conditional on the cache.
60150         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60151
60152 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60153
60154         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60155         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60156         (my_usleep): Don't mishandle maximum value.
60157
60158 2006-05-19  Jim Meyering  <jim@meyering.net>
60159
60160         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60161
60162 2006-05-17  Bruno Haible  <bruno@clisp.org>
60163
60164         Cygwin portability.
60165         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60166
60167 2006-05-17  Bruno Haible  <bruno@clisp.org>
60168
60169         * lib/stdint_.h: Fix recognition of Cygwin.
60170
60171 2006-05-15  Bruno Haible  <bruno@clisp.org>
60172
60173         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60174         on libtool patch by Ralf Wildenhues.
60175
60176 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60177
60178         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60179         test for C99 conformance; (bool) 0.5 is an integer constant
60180         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60181         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60182
60183 2006-05-11  Simon Josefsson  <jas@extundo.com>
60184
60185         * m4/xvasprintf.m4: Fix obvious typo.
60186
60187 2006-05-11  Jim Meyering  <jim@meyering.net>
60188
60189         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60190         James Lemley.
60191
60192 2006-05-10  Simon Josefsson  <jas@extundo.com>
60193
60194         * lib/md4.c: Typo fix, update copyright years.
60195         (K1, K2): Don't use L because it turn computations into 64-bit on
60196         64-bit platforms.
60197
60198 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60199
60200         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60201         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60202         unwanted sign propagation, e.g., on hosts with 64-bit int.
60203         There still are some problems with reeelly weird theoretical hosts
60204         (e.g., 33-bit int) but it's not worth worrying about now.
60205         * lib/sha1.c (rol): Likewise.
60206         (K1, K2, K3, K4): Remove unnecessary L suffix.
60207
60208 2006-05-10  Bruno Haible  <bruno@clisp.org>
60209
60210         * lib/des.c: Cast to avoid warnings.
60211
60212 2006-05-09  Bruno Haible  <bruno@clisp.org>
60213
60214         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60215         (Depends-on): Depend also on xsize, stdarg.
60216         (configure.ac): Add gl_XVASPRINTF.
60217
60218 2006-05-09  Bruno Haible  <bruno@clisp.org>
60219
60220         * m4/xvasprintf.m4: New file.
60221
60222 2006-05-09  Bruno Haible  <bruno@clisp.org>
60223
60224         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60225         (EOVERFLOW): Define fallback value.
60226         (xstrcat): New function.
60227         (xvasprintf): Recognize the special case of a string concatenation.
60228
60229 2006-05-08  Eric Blake  <ebb9@byu.net>
60230
60231         * gnulib-tool (func_version): Base copyright year on CVS date.
60232         (func_emit_copyright_notice): New function.
60233         (func_emit_lib_Makefile_am): Use it.
60234         (func_emit_tests_Makefile_am): Likewise.
60235         (func_import): Likewise.
60236
60237 2006-05-08  Bruno Haible  <bruno@clisp.org>
60238
60239         * modules/stdarg: New file.
60240         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60241
60242 2006-05-08  Bruno Haible  <bruno@clisp.org>
60243
60244         * m4/stdarg.m4: New file, from GNU gettext.
60245
60246 2006-05-08  Bruno Haible  <bruno@clisp.org>
60247
60248         * config/srclist.txt (build-aux/config.rpath): different from latest
60249         release.
60250
60251 2006-05-08  Bruno Haible  <bruno@clisp.org>
60252
60253         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60254
60255 2006-05-05  Jim Meyering  <jim@meyering.net>
60256
60257         * m4/warning.m4: New file, derived from bison's file by the same name.
60258
60259 2006-05-03  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/stdint_.h: Shorter URL.
60262         * lib/inttypes.h: Likewise.
60263
60264 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60265
60266         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60267
60268 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60269
60270         * lib/verify.h: Document the internals better.  Most of this change
60271         was written by Bruno Haible.
60272
60273 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         * doc/verify.texi: New file, partly based on a proposal by
60276         Bruno Haible.
60277
60278 2006-05-02  Bruno Haible  <bruno@clisp.org>
60279
60280         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60281         test from here...
60282         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60283
60284 2006-04-29  Bruno Haible  <bruno@clisp.org>
60285
60286         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60287         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60288
60289 2006-04-29  Bruno Haible  <bruno@clisp.org>
60290
60291         * gnulib-tool: Make --update option actually work.
60292
60293 2006-04-29  Bruno Haible  <bruno@clisp.org>
60294
60295         * doc/gcd.texi: New file.
60296         * doc/gnulib.texi: Include it.
60297
60298 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60299
60300         * lib/getdate.y (get_date): When adding relative date, start with the
60301         initial time, not with the result of the first mktime call.
60302
60303 2006-04-25  Bruno Haible  <bruno@clisp.org>
60304
60305         * gnulib-tool (func_import): Output the include directives in three
60306         blocks, sorted separately.
60307         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60308
60309 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60310
60311         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60312         to define main with arguments, for C++.  Reported by Eric Blake.
60313         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60314         Prefer 'int main ()' to 'int main (void)', for C++.
60315         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60316         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60317         for 'main', for C99 and C++.
60318
60319 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60320
60321         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60322         Don't assume that exit status -1 is valid.
60323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60324         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60325         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60326         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60327         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60328         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60329         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60330         functions can be used without declaring them, or that you can
60331         exit with status -1.
60332         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60333
60334 2006-04-24  Karl Berry  <karl@gnu.org>
60335
60336         * config/srclist.txt (longdouble.m4): sync lost.
60337
60338 2006-04-24  Eric Blake  <ebb9@byu.net>
60339
60340         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60341
60342 2006-04-24  Bruno Haible  <bruno@clisp.org>
60343
60344         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60345         poll() implementation in AIX.
60346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60347
60348 2006-04-24  Bruno Haible  <bruno@clisp.org>
60349
60350         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
60351         assigned exactly once.
60352
60353 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60354             Bruno Haible  <bruno@clisp.org>
60355
60356         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60357         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60358         for AM_CPPFLAGS.
60359
60360 2006-04-23  Bruno Haible  <bruno@clisp.org>
60361
60362         * modules/copy-file: Depend on unistd.
60363         * modules/execute: Likewise.
60364         * modules/fatal-signal: Likewise.
60365         * modules/findprog: Likewise.
60366         * modules/mkdtemp : Likewise.
60367         * modules/pipe: Likewise.
60368         * modules/wait-process: Likewise.
60369
60370 2006-04-23  Bruno Haible  <bruno@clisp.org>
60371
60372         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60373         condition was already detected.
60374         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60375
60376 2006-04-23  Bruno Haible  <bruno@clisp.org>
60377
60378         * lib/copy-file.c: Include <unistd.h> unconditionally.
60379         * lib/execute.c: Likewise.
60380         * lib/fatal-signal.c: Likewise.
60381         * lib/findprog.c: Likewise.
60382         * lib/mkdtemp.c: Likewise.
60383         * lib/pipe.h: Likewise.
60384         * lib/pipe.c: Likewise.
60385         * lib/wait-process.h: Likewise.
60386
60387 2006-04-23  Bruno Haible  <bruno@clisp.org>
60388
60389         * gnulib-tool (func_usage): Fix --import description. Document
60390         --update.
60391         (func_import): Create temporary file in a temporary directory, if
60392         --dry-run is specified. Silence errors from 'grep' when there are no
60393         m4 files in $m4dir.
60394         (func_create_testdir): Silence errors from 'grep' when there are no
60395         m4 files in $m4dir.
60396         Reported by Karl Berry <karl@freefriends.org>.
60397
60398 2006-04-20  Bruno Haible  <bruno@clisp.org>
60399
60400         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60401         one argument, so that the code will be portable to Autoconf 2.60.
60402         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60403         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60404         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60405
60406 2006-04-19  Derek Price  <derek@ximbiot.com>
60407             Eric Blake  <ebb9@byu.net>
60408
60409         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60410         rather than "/full/path.h".  Update comment to match.  Shorten &
60411         generalize m4_translit call via AS_TR_CPP.
60412
60413 2006-04-19  Derek Price  <derek@ximbiot.com>
60414             Eric Blake  <ebb9@byu.net>
60415
60416         * lib/inttypes.h: Correct grammar in comment.
60417
60418 2006-04-18  Derek Price  <derek@ximbiot.com>
60419             Paul Eggert  <eggert@cs.ucla.edu>
60420
60421         * modules/inttypes: New file.
60422         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
60423
60424 2006-04-18  Derek Price  <derek@ximbiot.com>
60425             Paul Eggert  <eggert@cs.ucla.edu>
60426
60427         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
60428         New files.
60429
60430 2006-04-18  Derek Price  <derek@ximbiot.com>
60431             Paul Eggert  <eggert@cs.ucla.edu>
60432
60433         * lib/inttypes.h: New file.
60434         * lib/strtoimax.c: Assume <inttypes.h>.
60435
60436 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
60437
60438         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
60439         isn't mounted.  Problem reported by Kir Kolyshkin.
60440
60441 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60442
60443         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
60444         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
60445         Derek R. Price.
60446         * lib/regex.h (RE_DUP_MAX): Update comment to match current
60447         implementation.
60448
60449 2006-04-12  Eric Blake  <ebb9@byu.net>
60450
60451         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
60452         is now done automatically by the corresponding Autoconf macro.
60453
60454 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
60455
60456         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
60457         time_r.h.
60458
60459 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60460
60461         Merge regex changes from libc, removing some of our
60462         POSIX-conformance changes that were rejected and redoing them in a
60463         less-intrusive way.
60464
60465         * lib/regcomp.c (re_compile_internal, init_dfa):
60466         Length arg is now size_t, not Idx.  All uses changed.
60467         (peek_token): Forward decl now says internal_function.
60468         (__re_error_msgid, __re_error_msgid_idx):
60469         Now static rather than extern with attribute_hidden.
60470         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
60471         For some reason libc prefers K&R style defns for external functions.
60472         (regerror) [!defined _LIBC]: Likewise.
60473         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
60474         (seek_collating_symbol_entry, lookup_collation_sequence_value):
60475         (build_range_exp, build_collating_symbol):
60476         Use K&R-style defn.
60477         (re_compile_fastmap): Use '\0' to memset, not 0.
60478         (utf8_sb_map): Make the calculations more obvious.
60479         (init_dfa, parse_bracket_exp, build_charclass_op):
60480         Call calloc and cast result, as glibc does.
60481         (init_word_char, fetch_token, peek_token, peek_token_bracket):
60482         (build_range_exp, build_collating_symbol):
60483         Now internal functions.
60484
60485         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
60486
60487         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
60488         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
60489         Don't depend on VMS; depend on __VMS instead, for POSIX
60490         namespace cleanness.
60491         (regoff_t): Define to ssize_t, not long int.
60492
60493         Remove the REG_ macros named below.  Instead, make the old names
60494         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
60495         __USE_GNU_REGEX.
60496         (REG_BACKSLASH_ESCAPE_IN_LISTS):
60497         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
60498         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
60499         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
60500         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
60501         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
60502         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
60503         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
60504         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
60505         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
60506         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
60507         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
60508         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
60509         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
60510         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
60511         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
60512         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
60513         (REG_NREGS):
60514         Remove.  All uses replaced by the old RE_* names.
60515         (RE_BACKSLASH_ESCAPE_IN_LISTS):
60516         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
60517         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
60518         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
60519         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
60520         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
60521         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
60522         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
60523         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
60524         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
60525         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
60526         Don't bother having these macros be independent of each others'
60527         values, since they no longer exist in the POSIX name space.
60528
60529         Rename the following member names back to their old names,
60530         unless !__USE_GNU_REGEX.  All uses changed back.
60531         (buffer): Renamed from re_buffer.
60532         (allocated): Renamed from re_allocated.
60533         (used): Renamed from re_used.
60534         (syntax): Renamed from re_syntax.
60535         (fastmap): Renamed from re_fastmap.
60536         (translate): Renamed from re_translate.
60537         (can_be_null): Renamed from re_can_be_null.
60538         (regs_allocated): Renamed from re_regs_allocated.
60539         (fastmap_accurate): Renamed from re_fastmap_accurate.
60540         (no_sub): Renamed from re_no_sub.
60541         (not_bol): Renamed from re_not_bol.
60542         (not_eol): Renamed from re_not_eol.
60543         (newline_anchor): Renamed from re_newline_anchor.
60544         (num_regs): Renamed from rm_num_regs.
60545         (start): Renamed from rm_start.
60546         (end): Renamed from rm_end.
60547
60548         (free_state): Move up a bit.
60549
60550         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
60551         #define to be empty.
60552         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
60553         when that is what is intended.
60554         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
60555         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
60556         (MAX): New macro.
60557         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
60558         All uses changed back to re_malloc, etc.  It's now the caller's
60559         responsibility to check for overflow; all callers changed.
60560         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
60561         (re_x2nrealloc): Remove.
60562         (free_state): Remove decl.
60563
60564         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
60565         (re_set_registers, re_exec):
60566         Use K&R-style defn.
60567
60568         2006-01-31  Roland McGrath  <roland@redhat.com>
60569
60570         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
60571         Reported by Mike Frysinger <vapier@gentoo.org>.
60572
60573         2006-01-15  Andreas Jaeger  <aj@suse.de>
60574
60575         [BZ #1950]
60576         * lib/regex_internal.c (re_string_reconstruct): Adjust for
60577         build_wcs_upper_buffer change.
60578         (build_wcs_upper_buffer): Change return type.
60579
60580         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
60581
60582         * lib/regex_internal.h: Include <stdint.h> if available.
60583
60584         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
60585
60586         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
60587
60588         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60589
60590         * lib/regcomp.c: Adjust for changed secondary hash function.
60591
60592         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
60593
60594         * lib/regex.h: Pretty printing.
60595         Clean up namespace a bit.
60596
60597         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
60598
60599         * lib/regexec.c (update_cur_sifted_state, check_arrival,
60600         check_arrival_add_next_nodes): Avoid using uninitialized variable.
60601
60602         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60603                     Ulrich Drepper  <drepper@redhat.com>
60604
60605         [BZ #1302]
60606         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
60607         changed.
60608         (bitset_word_t): Renamed from bitset_word.  All uses changed.
60609
60610         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
60611
60612         [BZ #281]
60613         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
60614         * lib/regcomp.c: Remove unnecessary uses of
60615         unsigned RE_TRANSLATE_TYPE.
60616         * lib/regex_internal.h: Likewise.
60617         * lib/regex_internal.c: Likewise.
60618         * lib/regexec.c: Likewise.
60619         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
60620
60621         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
60622
60623         * lib/regexec.c (find_recover_state): Remove unnecessary
60624         initialization.
60625         (transit_state_bkref): Make DFA a const pointer.
60626         (get_subexp): Likewise.
60627         (check_arrival): Likewise.
60628         (update_cur_sifted_state): Likewise.
60629         (re_search_internal): Likewise.
60630         (prune_impossible_nodes): Likewise.
60631         (acquire_init_state_context): Likewise.
60632         (proceed_next_node): Likewise.
60633         (set_regs): Likewise.
60634         (free_fail_stack_return): Likewise.
60635         (check_arrival_expand_ecl): Mark DFA parameter as const.
60636         (check_arrival_expand_ecl_sub): Likewise.
60637         (check_subexp_limits): Likewise.
60638         (sub_epsilon_src_nodes):  Likewise.
60639         (add_epsilon_src_nodes):  Likewise.
60640         (merge_state_array): Likewise.
60641         (update_regs): Likewise.
60642         (build_trtable): Likewise.
60643         (sift_states_backward): Mark MCTX parameter as const.
60644         (build_sifted_states): Likewise.
60645         (update_cur_sifted_state): Likewise.
60646         (sift_states_mkref): Likewise.
60647         (check_arrival_expand_ecl): Mark eclosure as const.
60648         (check_dst_limits_calc_pos_1): Likewise.
60649         * lib/regex_internal.h (re_match_context_t): Make dfa a const
60650         pointer.
60651
60652         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
60653
60654         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
60655         (transit_state_sb): Likewise.
60656         (transit_state_mb): Likewise.
60657         (sift_states_iter_mb): Likewise.
60658         (check_arrival_add_next_nodes): Likewise.
60659         (check_node_accept_bytes): Change first parameter to pointer-to-const.
60660         [_LIBC] (re_search_2_stub): Use mempcpy.
60661
60662         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
60663         mbrtowc for very simple UTF-8 case.
60664
60665         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
60666         a pointer-to-const.
60667         (re_acquire_state_context): Likewise.
60668         * lib/regex_internal.h: Adjust prototypes.
60669
60670         * lib/regex.c: Prevent using C++ compilers.
60671
60672         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
60673         (re_acquire_state_context): Likewise.
60674
60675 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60676
60677         * modules/regex (Depends-on): Add ssize_t.
60678
60679 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60680
60681         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
60682         translation table.
60683
60684 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60685
60686         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
60687
60688 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
60689             Bruno Haible  <bruno@clisp.org>
60690
60691         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
60692         <sys/types.h> and <inttypes.h>.
60693
60694 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60695
60696         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
60697         `__error_t_defined', so argp.h will not typedef the former.
60698
60699 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
60700
60701         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
60702         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
60703         glibc names.  Even if glibc is changed to conform to POSIX, the
60704         traditional names will be available anyway, since regex depends on
60705         the extensions module.  Also, fix a longstanding typo in the
60706         implementation of Spencer ERE test #75 from grep 2.3.  Problems
60707         reported by Emanuele Giaquinta.  Also, change sense of cached
60708         variable, so that the message makes sense.
60709
60710 2006-03-24  Simon Josefsson  <jas@extundo.com>
60711
60712         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
60713         including some doc fixes.
60714         (base64_encode_alloc): Fix +1 bug on allocation failures.
60715
60716 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60717
60718         * lib/base64.c (base64_encode): Do not read past end of array with
60719         unsanitized input on systems with CHAR_BIT > 8.
60720
60721 2006-03-24  Eric Blake  <ebb9@byu.net>
60722
60723         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
60724
60725 2006-03-22  Karl Berry  <karl@gnu.org>
60726
60727         * config/srclist.txt (*setenv.[ch]): get from coreutils.
60728         * config/srclistvars.sh (COREUTILS): new var.
60729
60730 2006-03-17  Jim Meyering  <jim@meyering.net>
60731
60732         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
60733         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
60734
60735 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60736
60737         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
60738         no longer needs it.  Instead, check that regoff_t is as least
60739         as wide as ptrdiff_t.
60740
60741         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
60742         so that our regex.h stays compatible with the installed regex.
60743         This is helpful for installers who configure --without-included-regex.
60744         Problem reported by Emanuele Giaquinta.
60745
60746 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60747
60748         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
60749         Typedef to long int, not to off_, as POSIX will likely change
60750         in that direction.
60751
60752 2006-03-15  Eric Blake  <ebb9@byu.net>
60753
60754         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
60755
60756 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60757
60758         * lib/argp-help.c (validate_uparams): Fix typo
60759         * lib/argp-parse.c (argp_default_options): Consistently begin help
60760         messages with a lowercase letter.
60761
60762 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
60763
60764         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
60765         overrun buffers and shouldn't be used (much as gets shouldn't be
60766         used).
60767         * lib/time_r.c (asctime_r, ctime_r): Likewise.
60768
60769 2006-03-08  Simon Josefsson  <jas@extundo.com>
60770
60771         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
60772         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60773
60774 2006-03-08  Simon Josefsson  <jas@extundo.com>
60775
60776         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
60777         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60778
60779 2006-03-08  Simon Josefsson  <jas@extundo.com>
60780
60781         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
60782         signal that configure disabled the device.
60783
60784 2006-03-08  Simon Josefsson  <jas@extundo.com>
60785
60786         * build-aux/maint.mk: Fix refresh-po, to handle no translated
60787         languages.
60788
60789 2006-03-07  Simon Josefsson  <jas@extundo.com>
60790
60791         * modules/getopt (Depends-on): Add unistd.
60792
60793         * modules/unistd: New file.
60794
60795 2006-03-07  Simon Josefsson  <jas@extundo.com>
60796
60797         * modules/gc-random: New file.
60798
60799 2006-03-07  Simon Josefsson  <jas@extundo.com>
60800
60801         * m4/unistd_h.m4: New file.
60802
60803 2006-03-07  Simon Josefsson  <jas@extundo.com>
60804
60805         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
60806         test to be side-effect free by storing the result in the cache
60807         variable gl_cv_lib_readline, and moving the assignment of
60808         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
60809         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60810
60811 2006-03-07  Simon Josefsson  <jas@extundo.com>
60812
60813         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
60814         error on missing devices (the functions will return an error).
60815
60816         * m4/gc.m4: Move random stuff to gc-random.m4
60817
60818 2006-03-07  Simon Josefsson  <jas@extundo.com>
60819
60820         * lib/unistd_.h: New file.
60821
60822 2006-03-07  Simon Josefsson  <jas@extundo.com>
60823
60824         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
60825
60826 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60827
60828         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
60829         Problem reported by Juan Manuel Guerrero.
60830
60831 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
60834         the unistd module.
60835         * lib/getlogin_r.c: Likewise.
60836         * lib/getlogin_r.h: Likewise.
60837         * lib/glob.c: Likewise.
60838         * lib/pagealign_alloc.c: Likewise.
60839         * lib/unistd_.h: Remove; no longer needed.
60840
60841 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60842
60843         * MODULES.html.sh (Support for systems lacking POSIX:2001):
60844         Add unistd.
60845         * modules/c-stack (Depends-on): Add unistd.
60846         * modules/getlogin_r: Likewise.
60847         * modules/glob: Likewise.
60848         * modules/pagealign_alloc: Likewise.
60849         * modules/unistd (Files): Remove lib/unistd_.h.
60850         (EXTRA_DIST): Remove.
60851         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
60852         need unistd_.h.
60853         (MOSTLYCLEANFILES): Remove unistd.h-t.
60854
60855 2006-03-03  Simon Josefsson  <jas@extundo.com>
60856
60857         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
60858
60859 2006-03-03  Simon Josefsson  <jas@extundo.com>
60860
60861         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
60862         libidn and bison.
60863
60864 2006-03-03  Simon Josefsson  <jas@extundo.com>
60865
60866         * build-aux/maint.mk: Add indent target.
60867
60868 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
60869
60870         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
60871         our replacement poll.h in any case, to avoid a differing
60872         declaration from a system header.  Seen on AIX.
60873
60874 2006-03-01  Simon Josefsson  <jas@extundo.com>
60875
60876         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
60877         <kasal@ucw.cz>.
60878
60879 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60880
60881         * modules/gettime (Depends-on): Add extensions module.
60882         * modules/nanosleep (Depends-on): Likewise.
60883         * modules/settime (Depends-on): Likewise.
60884
60885 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60886
60887         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
60888         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
60889         pedantically.
60890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60891         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
60892
60893         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
60894         not "==".  Reported by Ralf Wildenhues.
60895
60896 2006-03-01  Karl Berry  <karl@gnu.org>
60897
60898         * doc/Copyright/request-*: new files, synced from gnuorg.
60899
60900 2006-03-01  Karl Berry  <karl@gnu.org>
60901
60902         * config/srclist.txt (Copyright/*): new entries.
60903
60904 2006-02-28  Simon Josefsson  <jas@extundo.com>
60905
60906         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
60907
60908 2006-02-27  Simon Josefsson  <jas@extundo.com>
60909
60910         * lib/base64.h: Indent #define's.  From Jim Meyering
60911         <jim@meyering.net>.
60912
60913 2006-02-27  Jim Meyering  <jim@meyering.net>
60914
60915         Revert the change of 2006-02-24, so these files can continue
60916         to be sync'd from gettext.
60917         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
60918         of `config.h'.
60919
60920 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60921
60922         * modules/intprops: New file.
60923         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60924         Add intprops.
60925         * modules/getloadavg (Files): Remove lib/intprops.h.
60926         (Depends-on): Add intprops.
60927         * modules/human: Likewise.
60928         * modules/inttostr: Likewise.
60929         * modules/openat: Likewise.
60930         * modules/sig2str: Likewise.
60931         * modules/userspec: Likewise.
60932         * modules/utimecmp: Likewise.
60933         * modules/xnanosleep: Likewise.
60934         * modules/xstrtol: Likewise.
60935
60936 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
60937
60938         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
60939         * modules/lock-tests (TESTS): Use $(EXEEXT).
60940         * modules/tls-tests: Likewise.
60941         * modules/argp-tests: Likewise.
60942         (check_PROGRAMS): New var, replacing...
60943         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
60944
60945 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60946
60947         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
60948         `config.h'.
60949
60950 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
60953
60954 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60955
60956         Sync from coreutils.
60957         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
60958         gl_CHDIR_SAFER.
60959
60960 2006-02-22  Jim Meyering  <jim@meyering.net>
60961
60962         Sync from coreutils.
60963         * m4/chdir-safer.m4: New file.
60964
60965 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60966
60967         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
60968         AT_FDCWD exceeds INT_MAX.
60969         * lib/openat.h (AT_FDCWD): Likewise.
60970
60971 2006-02-17  Eric Blake  <address@hidden>
60972
60973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
60974
60975 2006-02-16  Simon Josefsson  <jas@extundo.com>
60976
60977         * modules/getaddrinfo (Depends-on): Add sys_socket.
60978
60979 2006-02-15  Simon Josefsson  <jas@extundo.com>
60980
60981         * build-aux/maint.mk: Add dsyntax-check rule.
60982
60983 2006-02-15  Eric Blake  <ebb9@byu.net>
60984
60985         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
60986         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
60987         'present but cannot compile' warnings on cygwin.
60988         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
60989         use ws2tcpip.h if sys/socket.h works.
60990         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
60991         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
60992
60993 2006-02-14  Simon Josefsson  <jas@extundo.com>
60994
60995         * modules/maintainer-makefile (Files): Rename.
60996
60997         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
60998         and (the local) Makefile.cfg to maint-cfg.mk.
60999
61000         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61001         to the latter.
61002
61003         * modules/maintainer-makefile: New module.
61004
61005         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61006         severaly stripped to make it possible to build it up from scratch
61007         with reliable tests.
61008
61009         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61010         fixes to permit overriding the default actions when configure and
61011         makefile are not available.
61012
61013 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61014
61015         Sync from coreutils.
61016         * modules/lstat (Depends-on): Don't depend on xalloc.
61017         (License): Change from GPL to LGPL, since this is now simply a
61018         replacement for a libc function.
61019
61020 2006-02-14  Jim Meyering  <jim@meyering.net>
61021
61022         Sync from coreutils.
61023
61024         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61025         failure on deficient systems, and simplify gnulib lgpl dependencies.
61026         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61027         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61028
61029         * lib/xalloc-die.c: Remove unused definition of N_.
61030
61031 2006-02-14  Jim Meyering  <jim@meyering.net>
61032
61033         Sync from coreutils.
61034         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61035         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61036         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61037         double-quote uses of that variable, to accommodate the rare case in
61038         which getmntent is available in none of the libraries checked.  This
61039         happens at least on FreeBSD 5.0.
61040
61041 2006-02-13  Simon Josefsson  <jas@extundo.com>
61042
61043         * gnulib-tool (Usage): Fix --import, from
61044         karl@freefriends.org (Karl Berry).
61045
61046 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61047
61048         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61049
61050 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61051
61052         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61053         "autoupdate" on 2005-12-12.
61054
61055 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61056
61057         * modules/closeout (Depends-on): Remove atexit.
61058
61059 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61060
61061         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61062         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61063
61064 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61065
61066         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61067         __EXTENSIONS__ if this causes compilation to fail.  Problem
61068         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61069         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61070
61071 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61072
61073         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61074         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61075         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61076         All uses changed.
61077
61078 2006-01-26  Simon Josefsson  <jas@extundo.com>
61079
61080         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61081         prototype is visible on mingw32.
61082
61083         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61084         for mingw32.
61085
61086         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61087         mingw32).
61088
61089 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61092         attempt to open for write; this always fails, at least on POSIX
61093         hosts.  This reinstates the 2006-01-09 change, which was
61094         inadvertently removed.
61095
61096 2006-01-26  Bruno Haible  <bruno@clisp.org>
61097
61098         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61099         Reported by Paul Eggert.
61100
61101 2006-01-26  Bruno Haible  <bruno@clisp.org>
61102             Paul Eggert  <eggert@cs.ucla.edu>
61103
61104         * lib/stdbool_.h (_Bool)
61105         [(! (defined __cplusplus || defined __BEOS__)
61106           && !defined __GNUC__
61107           && !(defined __HP_cc || defined __xlc__
61108                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61109                || defined __sgi))]:
61110         #define to signed char in these cases too; this simplifies
61111         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61112         etc., separately) and makes it more conservative.
61113
61114 2006-01-25  Simon Josefsson  <jas@extundo.com>
61115
61116         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61117         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61118         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61119
61120 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61121
61122         * lib/argp-namefrob.h: Bugfix. Remove stray #
61123
61124 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61125
61126         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61127         so that we test the test.
61128         Check for yet another HP-UX cc bug involving *bool |= bool.
61129
61130 2006-01-25  Karl Berry  <karl@gnu.org>
61131
61132         * config/srclist.txt (vasnprintf.c): sync lost.
61133
61134 2006-01-25  Jim Meyering  <jim@meyering.net>
61135
61136         Sync from the stable (b5) branch of coreutils:
61137
61138         * lib/fts.c (fts_children): Don't let close() clobber errno from
61139         failed fchdir().
61140
61141         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61142         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61143         a dangling symlink.  That can also happen at least for ELOOP.
61144         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61145         FYI, this bug predates the inclusion of fts.c in coreutils.
61146
61147         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61148         in their own block, so pre-c99 compilers don't object.
61149
61150         Avoid the double-free (first in fts_read, second in fts_close) that
61151         would occur when an `active' directory is made inaccessible (e.g.,
61152         via chmod a-x) during a traversal.
61153         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61154         before returning.  Reproduce this failure by
61155         mkdir -p a/b; cd a; chmod a-x . b
61156         Reported by Stavros Passas.
61157
61158 2006-01-25  Jim Meyering  <jim@meyering.net>
61159
61160         * lib/fileblocks.c: Remove more useless parentheses.
61161         * lib/readutmp.h: Likewise.
61162
61163 2006-01-25  Bruno Haible  <bruno@clisp.org>
61164
61165         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61166         warnings.
61167         Reported by Paul Eggert.
61168
61169 2006-01-25  Bruno Haible  <bruno@clisp.org>
61170
61171         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61172         rid of a trap command. For Solaris sh.
61173         Reported by Mark D. Baushke <mdb@gnu.org>.
61174
61175 2006-01-24  Simon Josefsson  <jas@extundo.com>
61176
61177         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61178         Bruno.
61179
61180 2006-01-24  Karl Berry  <karl@gnu.org>
61181
61182         * config/srclist.txt (argp-namefrob.h): sync lost.
61183
61184 2006-01-24  Jim Meyering  <jim@meyering.net>
61185
61186         * modules/openat (Files): Add lib/intprops.h.
61187         From Mark D. Baushke.
61188
61189 2006-01-24  Jim Meyering  <jim@meyering.net>
61190
61191         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61192         Reported by Mark D. Baushke.
61193
61194 2006-01-24  Jim Meyering  <jim@meyering.net>
61195
61196         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61197
61198 2006-01-24  Bruno Haible  <bruno@clisp.org>
61199
61200         * modules/strnlen (Maintainer): Change from glibc to all.
61201
61202 2006-01-24  Bruno Haible  <bruno@clisp.org>
61203
61204         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61205         Patch by Paul Eggert.
61206
61207 2006-01-24  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61210         already has it.
61211         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61212         2005-11-26.
61213
61214         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61215         'signed char' to avoid problems with the built-in _Bool type.
61216         Reported by Paul Eggert on 2005-11-26.
61217
61218 2006-01-24  Bruno Haible  <bruno@clisp.org>
61219
61220         * gnulib-tool (func_import): Avoid constructing complicated sed
61221         expressions inside backquote.
61222         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61223
61224 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61225
61226         These changes imported from libc.
61227         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61228         test and two separate function calls.
61229         * lib/strndup.c (__strndup): Add libc_hidden_def.
61230
61231 2006-01-23  Simon Josefsson  <jas@extundo.com>
61232
61233         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61234         Remove the test_*_SOURCES variable: automake infers it by default.
61235         * modules/tls-tests: Likewise.
61236
61237 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61238
61239         Work around porting bugs reported by Dieter in
61240         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61241         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61242         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61243         Include "getopt.h" first, to check interface.
61244         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61245         !HAVE_DECL_GETENV.
61246         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61247         (__strndup): Revert to K&R-style function dfns, the glibc style.
61248         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61249         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61250         Include strnlen.h first, to get prototype properly.
61251         (strnlen): Renamed from __strnlen.
61252         Remove weak alias.
61253
61254 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61255
61256         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61257
61258 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61259
61260         * config/srclist.txt: Adjust to reflect glibc reorganization.
61261         This affects only comments.
61262
61263 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61264
61265          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61266          Reported by Bruce Korb <bkorb@gnu.org>.
61267
61268 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61269
61270         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61271         to pacify gcc -Wswitch-default.
61272
61273 2006-01-22  Bruno Haible  <bruno@clisp.org>
61274
61275         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61276         temporary buffer for sprintf, take into account the precision also
61277         for 'd', 'i', 'u', 'o', 'x', 'X'.
61278
61279 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61280
61281         * modules/argp-tests: New module
61282         * tests/test-argp.c: New file
61283         * tests/test-argp-2.sh: New file
61284
61285 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61286
61287         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61288         (__argp_base_name): Removed
61289         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61290         typo.
61291         (__argp_base_name): Provide macro definition or extern declaration
61292         depending on the configuration
61293
61294 2006-01-20  Simon Josefsson  <jas@extundo.com>
61295
61296         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61297
61298 2006-01-20  Simon Josefsson  <jas@extundo.com>
61299
61300         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61301
61302 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61303
61304         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61305         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61306         Suggested by Bruno Haible.
61307
61308 2006-01-20  Karl Berry  <karl@gnu.org>
61309
61310         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61311         until changes propagate, I guess.
61312
61313 2006-01-19  Simon Josefsson  <jas@extundo.com>
61314
61315         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61316
61317 2006-01-19  Simon Josefsson  <jas@extundo.com>
61318
61319         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61320
61321 2006-01-19  Simon Josefsson  <jas@extundo.com>
61322
61323         * gnulib-tool: Set check_PROGRAMS.
61324
61325         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61326         modules/des-tests, modules/gc-arcfour-tests,
61327         modules/gc-arctwo-tests, modules/gc-des-tests,
61328         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61329         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61330         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61331         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61332         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61333         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61334         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61335         test_*_SOURCES.
61336
61337 2006-01-18  Simon Josefsson  <jas@extundo.com>
61338
61339         * modules/socklen (Depends-on): Depend on sys_socket.
61340
61341 2006-01-18  Simon Josefsson  <jas@extundo.com>
61342
61343         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61344         modules/des-tests, modules/gc-arcfour-tests,
61345         modules/gc-arctwo-tests, modules/gc-des-tests,
61346         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61347         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61348         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61349         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61350         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61351         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
61352         $(EXEEXT) to automake TESTS variable, for mingw32.
61353
61354 2006-01-17  Simon Josefsson  <jas@extundo.com>
61355
61356         * modules/socklen (Include): Need sys/socket.h.
61357
61358 2006-01-17  Bruno Haible  <bruno@clisp.org>
61359
61360         * modules/ssize_t (Include): Add <sys/types.h>.
61361
61362 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61363
61364         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61365         it's not portable and it doesn't work with cross-compiles.
61366         Problem reported by Bruno Haible.  Fix missing-$ typo in
61367         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61368         -zignore from being used with Sun's C compiler.
61369
61370 2006-01-12  Simon Josefsson  <jas@extundo.com>
61371
61372         * lib/base64.c: Fix warning, reported by Bruno Haible
61373         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61374
61375 2006-01-12  Bruno Haible  <bruno@clisp.org>
61376
61377         * modules/ldd: New file.
61378         * build-aux/ldd.sh.in: New file.
61379         * MODULES.html.sh (Support for building libraries and executables): Add
61380         ldd.
61381
61382 2006-01-12  Bruno Haible  <bruno@clisp.org>
61383
61384         * m4/ldd.m4: New file.
61385
61386 2006-01-12  Bruno Haible  <bruno@clisp.org>
61387
61388         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61389         endless loop while replacing $auxdir with build-aux.
61390
61391 2006-01-11  Simon Josefsson  <jas@extundo.com>
61392
61393         * lib/stdint_.h (SIZE_MAX): Add missing (.
61394
61395 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61396
61397         Sync from coreutils.
61398         * lib/md5.c: Fix commentary typos.
61399         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61400         * lib/md5.h (__attribute__): Remove; unused.
61401         * lib/sha1.c: Fix commentary to match md5 better.
61402         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61403         so that we don't need to worry about alignment.  All uses changed.
61404         This merges the 2005-10-28 md5 change into sha1.
61405
61406 2006-01-11  Jim Meyering  <jim@meyering.net>
61407
61408         Sync from coreutils.
61409         * lib/md5.c (OP): Fix spacing.
61410
61411 2006-01-11  Bruno Haible  <bruno@clisp.org>
61412
61413         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61414         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61415         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61416
61417 2006-01-11  Bruno Haible  <bruno@clisp.org>
61418
61419         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61420         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
61421         the "early" section as well.
61422
61423 2006-01-11  Bruno Haible  <bruno@clisp.org>
61424
61425         Avoid "ar: no archive members specified" error on MacOS X.
61426         * gnulib-tool (func_modules_add_dummy): New function.
61427         (func_import, func_create_testdir): Invoke it.
61428
61429 2006-01-11  Bruno Haible  <bruno@clisp.org>
61430
61431         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
61432         with $auxdir in AC_CONFIG_FILES statements.
61433
61434 2006-01-11  Bruno Haible  <bruno@clisp.org>
61435
61436         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61437         Initialize also noinst_HEADERS to empty.
61438
61439 2006-01-11  Bruno Haible  <bruno@clisp.org>
61440
61441         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
61442         variables.
61443         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
61444         autoreconf.
61445
61446 2006-01-11  Bruno Haible  <bruno@clisp.org>
61447
61448         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
61449         overridable by the user.
61450         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61451
61452 2006-01-10  Simon Josefsson  <jas@extundo.com>
61453
61454         * modules/sys_socket: New file.
61455
61456 2006-01-10  Simon Josefsson  <jas@extundo.com>
61457
61458         * m4/sys_socket_h.m4: New file.
61459
61460 2006-01-10  Simon Josefsson  <jas@extundo.com>
61461
61462         * lib/socket_.h: New file.
61463
61464 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         * modules/readutmp (Maintainer): Add myself.
61467
61468 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
61471         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
61472         People who are still concerned with buggy memcmp implementations
61473         can invoke gl_FUNC_MEMCMP themselves.
61474
61475 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61476
61477         * lib/regex_internal.h (BITSET_WORD_BITS):
61478         Work around a bug in 64-bit PGC (before version 6.1-2), where the
61479         preprocessor mishandles large unsigned values as if they were signed.
61480         Problem reported by Claudio Fontana in
61481         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
61482
61483 2006-01-10  Jim Meyering  <jim@meyering.net>
61484
61485         Avoid the double-free (first in fts_read, second in fts_close) that
61486         would occur when an `active' directory is made inaccessible (e.g.,
61487         via chmod a-x) during a traversal.
61488         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61489         before returning.  Reproduce this failure by
61490         mkdir -p a/b; cd a; chmod a-x . b
61491         Reported by Stavros Passas.
61492
61493         Sync from coreutils.
61494         * lib/sha1.c: Tweak grammar in a comment.
61495
61496 2006-01-10  Jim Meyering  <jim@meyering.net>
61497
61498         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
61499         Patch by Joerg Sonnenberger.
61500
61501 2006-01-10  Bruno Haible  <bruno@clisp.org>
61502
61503         * modules/readutmp: Depend on module free.
61504         * modules/strtok_r: Depend on module restrict.
61505
61506 2006-01-10  Bruno Haible  <bruno@clisp.org>
61507
61508         * modules/gettext (configure.ac): Add an invocation of
61509         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
61510
61511 2006-01-10  Bruno Haible  <bruno@clisp.org>
61512
61513         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
61514         Reported by Werner Lemberg <wl@gnu.org>.
61515
61516 2006-01-10  Bruno Haible  <bruno@clisp.org>
61517
61518         * lib/localcharset.c: Update from GNU gettext.
61519
61520 2006-01-10  Bruno Haible  <bruno@clisp.org>
61521
61522         * lib/argp.h (__const): Remove macro. Use const instead.
61523         * lib/argp-fmtstream.h (__const): Likewise.
61524         * lib/glob_.h (__const): Remove macro.
61525         * lib/glob-libc.h: Use const instead of __const.
61526
61527 2006-01-10  Bruno Haible  <bruno@clisp.org>
61528
61529         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
61530         variable.
61531         Needed to avoid an automake error regarding the 'gettext' module.
61532
61533 2006-01-09  Simon Josefsson  <jas@extundo.com>
61534
61535         * modules/inet_ntop (Depends-on): Add restrict.
61536
61537 2006-01-09  Simon Josefsson  <jas@extundo.com>
61538
61539         * modules/gc-rijndael-tests (License): Put under LGPL.
61540
61541         * modules/gc-des-tests (License): Likewise.
61542
61543         * modules/gc-arcfour-tests (License): Likewise.
61544
61545         * modules/gc-arctwo-tests (License): Likewise.
61546
61547         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
61548
61549         * modules/gc-hmac-sha1-tests (Files): Likewise.
61550
61551         * modules/gc-hmac-md5-tests (License): Likewise.
61552
61553         * modules/gc-sha1-tests (License): Likewise.
61554
61555         * modules/gc-md5-tests (License): Likewise.
61556
61557         * modules/gc-md4-tests (License): Likewise.
61558
61559         * modules/gc-md2-tests (License): Likewise.
61560
61561         * modules/gc-tests (License): Likewise.
61562
61563         * modules/des-tests (License): Likewise.
61564
61565         * modules/md4-tests (License): Likewise.
61566
61567         * modules/md2-tests (License): Likewise.
61568
61569 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61570
61571         Sync from coreutils:
61572
61573         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
61574         * modules/lib-ignore: New file.
61575         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
61576         chdir-safer.m4, lchmod.m4.
61577         * modules/openat: Add mkdirat.c, openat-priv.h.
61578
61579 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61580
61581         Sync from coreutils.
61582         * m4/lib-ignore.m4: New file.
61583         * m4/lchmod.m4: New file.
61584
61585 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61586
61587         Sync from coreutils.
61588         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
61589         for write access: POSIX says that must fail.
61590         * lib/fts.c (diropen): Likewise.
61591         * lib/save-cwd.c (save_cwd): Likewise.
61592         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
61593         well, for minor improvements on hosts that lack O_DIRECTORY.
61594         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
61595         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
61596         Fall back on chown if open failed with EACCES.
61597
61598         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
61599         Report an error at compile-time if only a 1-second nominal clock
61600         resolution is found.
61601
61602         * lib/lchmod.h: New file.
61603         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
61604         (make_dir_parents): Use lchown rather than chown, and
61605         lchmod rather than chmod.
61606
61607         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
61608         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
61609         "proc" reported by n0dalus.
61610
61611         * lib/mountlist.c: Include <limits.h>.
61612         (dev_from_mount_options)
61613         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
61614         New function.  It no longer assumes "dev=" has the System V meaning
61615         on Linux (since it doesn't).  It also parses "dev=" more carefully.
61616         (read_file_system_list)
61617         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
61618         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
61619         dev= in that case.
61620
61621         * lib/posixtm.h (PDS_PRE_2000): New macro.
61622         * lib/posixtm.c (year): Arg is now syntax_bits rather than
61623         allow_century.  All usages changed.  Reject dates outside the range
61624         1969-1999 if PDS_PRE_2000 is used.
61625
61626 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61627
61628         Sync from coreutils.
61629         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
61630         (Time of day items): Mention the possibility of leap seconds.
61631         Problem reported by Dr. David Alan Gilbert.
61632
61633 2006-01-09  Jim Meyering  <jim@meyering.net>
61634
61635         Sync from coreutils.
61636
61637         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
61638
61639         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
61640
61641         * lib/modechange.c (mode_compile): Reject an invalid mode string
61642         that starts with an octal digit.  From Andreas Gruenbacher.
61643
61644         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
61645         and dup to open_safer and dup_safer, respectively.
61646         (openat_permissive): Fix typo in comment.
61647
61648         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
61649         "gettext.h"; either no longer needed or are guaranteed by openat.h.
61650         (_): Remove; no longer needed.
61651         (openat): Renamed from rpl_openat; no need for rpl_openat
61652         since openat.h renames openat for us.
61653         Replace most of the body with a call to openat_permissive,
61654         to avoid duplicate code.
61655         Port to (probably hypothetical) environments were mode_t is
61656         wider than int.
61657         (openat_permissive): Require mode arg, so that we can check
61658         types better.  Put it just after flags.  Change cwd failure
61659         indicator from pointer-to-bool to pointer-to-errno-value.
61660         All callers changed.
61661         Invoke openat_save_fail and/or openat_restore_fail if
61662         cwd_errno is null, so that openat can call us.
61663         (openat_permissive, fdopendir, fstatat, unlinkat):
61664         Simplify errno handling to avoid some duplicate code,
61665         as it's OK to set errno on success.
61666         * lib/openat.h: Revamp code so that function macros depend on
61667         __OPENAT_PREFIX only, not also on AT_FDCWD.
61668         (openat_ro): Remove.  Caller changed to use openat_permissive.
61669         (openat_permissive): Now a macro, if not a function.
61670         (openat_restore_fail, openat_save_fail): Now always functions,
61671         since mkdirat needs them even if __OPENAT_PREFIX is defined.
61672
61673         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
61674         and openat.c.
61675         * lib/mkdirat.c: Include openat-priv.h.
61676         Remove definitions of macros defined therein.
61677         * lib/openat.c: Likewise.
61678
61679         * lib/mkdirat.c (mkdirat): New file and function.
61680         * lib/openat.h (mkdirat): Declare.
61681
61682         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
61683
61684         * lib/openat.h (openat_permissive): Declare.
61685         (openat_ro): Define.
61686
61687         * lib/openat.c (EXPECTED_ERRNO): New macro.
61688         (openat_permissive): New function -- used in remove.c rewrite.
61689         (all functions): Set errno just before returning, only if there
61690         was an actual failure.
61691         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
61692
61693         Emulate openat-family functions using Linux's procfs, if possible.
61694         Idea and some code based on Ulrich Drepper's glibc changes.
61695
61696         * lib/openat.c: (BUILD_PROC_NAME): New macro.
61697         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
61698         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
61699         before falling back on save_cwd and restore_cwd.
61700         (fdopendir, fstatat, unlinkat): Likewise.
61701
61702         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
61703         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
61704
61705         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
61706         as second argument to va_arg.  Otherwise, some versions of gcc
61707         warn that `if this code is reached, the program will abort'.
61708
61709 2006-01-09  Jim Meyering  <jim@meyering.net>
61710
61711         Sync from coreutils.
61712         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
61713         Require openat-priv.h.
61714
61715 2006-01-09  Bruno Haible  <bruno@clisp.org>
61716
61717         * modules/strnlen (Include): Use strnlen.h.
61718
61719 2006-01-09  Bruno Haible  <bruno@clisp.org>
61720
61721         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
61722
61723 2006-01-09  Bruno Haible  <bruno@clisp.org>
61724
61725         * lib/sysexit_.h (EX_OK): New macro.
61726         Suggested by Martin Lambers <marlam@marlam.de>.
61727
61728 2006-01-09  Bruno Haible  <bruno@clisp.org>
61729
61730         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
61731         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
61732
61733 2006-01-09  Bruno Haible  <bruno@clisp.org>
61734
61735         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
61736         numbers.
61737
61738 2006-01-09  Bruno Haible  <bruno@clisp.org>
61739
61740         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
61741         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
61742         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
61743         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
61744
61745 2006-01-09  Bruno Haible  <bruno@clisp.org>
61746
61747         * build-aux/javacomp.sh.in: New file, moved from lib/.
61748         * modules/javacomp-script (Files): Update.
61749         (configure.ac): Add AC_CONFIG_FILES invocation.
61750         (EXTRA_DIST): Remove variable.
61751
61752         * build-aux/javaexec.sh.in: New file, moved from lib/.
61753         * modules/javaexec (Files): Update.
61754         (configure.ac): Add AC_CONFIG_FILES invocation.
61755         (EXTRA_DIST): Remove javaexec.sh.in.
61756
61757         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
61758         * modules/csharpcomp-script (Files): Update.
61759         (configure.ac): Add AC_CONFIG_FILES invocation.
61760         (EXTRA_DIST): Remove variable.
61761
61762         * build-aux/csharpexec.sh.in: New file, moved from lib/.
61763         * modules/csharpexec (Files): Update.
61764         (configure.ac): Add AC_CONFIG_FILES invocation.
61765         (EXTRA_DIST): Remove csharpexec.sh.in.
61766
61767 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61768
61769         Sync from coreutils.
61770
61771         Add POSIX ACL support
61772         * lib/acl.h (copy_acl, set_acl): Add declarations.
61773         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
61774         systems other than Linux.
61775         (chmod_or_fchmod): New function: use fchmod when possible,
61776         and chmod otherwise.
61777         (file_has_acl): Add a POSIX ACL implementation, with a
61778         Linux-specific subcase.
61779         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
61780         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
61781         acls are unsupported.
61782         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
61783         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
61784         are unsupported.
61785
61786 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61787
61788         Sync from coreutils.
61789         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61790
61791 2006-01-07  Bruno Haible  <bruno@clisp.org>
61792
61793         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
61794         gl_EARLY.
61795
61796 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61797
61798         * lib/strftime.c (tzname): Don't declare if it is already #defined.
61799         Problem reported for Mingw by Mark Junker.
61800
61801 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61802
61803         * README: Gnulib normally doesn't generate a tarball.
61804
61805 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
61808         long int, not int, for nanosecond counts, so that people who are
61809         used to POSIX struct timespec won't be surprised.  Reported by Jim
61810         Meyering.
61811
61812 2005-12-28  Bruno Haible  <bruno@clisp.org>
61813
61814         * build-aux/config.rpath: Update from GNU gettext.
61815
61816 2005-12-16  Jim Meyering  <jim@meyering.net>
61817
61818         * modules/fprintftime: New module.
61819         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
61820
61821 2005-12-16  Jim Meyering  <jim@meyering.net>
61822
61823         * m4/fprintftime.m4: New file.
61824
61825 2005-12-16  Jim Meyering  <jim@meyering.net>
61826
61827         * lib/fprintftime.c, lib/fprintftime.h: New files.
61828
61829 2005-12-15  Simon Josefsson  <jas@extundo.com>
61830
61831         * modules/socklen (configure.ac): Fix M4 macro name, to align with
61832         new m4/socklen.m4.
61833
61834 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61835
61836         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
61837         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
61838
61839 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61840
61841         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
61842         * lib/argp-help.c (fill_in_uparams): Check if the constructed
61843         struct uparams is valid. Fall back to the default values if it is
61844         not.
61845
61846 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61847
61848         * modules/argp (Files): Add argp-pin.c
61849         (Depends-on): dirname
61850         (lib_SOURCES): Add argp-pin.c
61851
61852 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61853
61854         * m4/argp.m4:  Check if program_invocation_name and
61855         program_invocation_short_name are declared and define appropriate
61856         macros if they are not.
61857
61858 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61859
61860         * lib/argp-help.c (__argp_base_name): New function
61861         (__argp_short_program_name): Rewrite using __argp_base_name
61862         * lib/argp-namefrob.h: Define program_invocation_name and
61863         program_invocation_short_name if requested
61864         (__argp_base_name): Add prototype
61865         * lib/argp-parse.c (argp_def): Use gettext wrappers
61866         (argp_default_parser): Use __argp_base_name
61867         * lib/argp-pin.c: New file. Defines program_invocation_name and
61868         program_invocation_short_name on systems that lack them.
61869
61870 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
61873         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61874         porting problem reported by Georg Schwarz in
61875         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61876
61877 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61878
61879         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
61880         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61881         porting problem reported by Georg Schwarz in
61882         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61883
61884 2005-12-05  Bruno Haible  <bruno@clisp.org>
61885
61886         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
61887         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
61888         Reported by Mark Junker <mjscod@gmx.de>.
61889
61890 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
61891
61892         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
61893         Use implementation from Albert Chin, with some
61894         comments/corrections by Stepan Kasal and myself.
61895
61896 2005-12-02  Bruno Haible  <bruno@clisp.org>
61897
61898         * gnulib-tool (func_import): Accept GPLed build tool modules when
61899         --lgpl is given.
61900         * modules/csharpcomp-script: New file.
61901         * modules/csharpcomp: Depend on it.
61902         * modules/javacomp-script: New file.
61903         * modules/javacomp: Depend on it.
61904         Suggested by Simon Josefsson.
61905
61906 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61907
61908         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
61909         statement, to work around an HP-UX 10.20 compiler bug reported by
61910         Peter O'Gorman.
61911
61912 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61913
61914         * modules/savedir (Depends-on): Add openat.
61915
61916 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61917
61918         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
61919         (uintmax_t) [defined uintmax_t]: Do not declare.
61920         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
61921         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
61922         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
61923         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
61924         sake of portability to weird hosts that C allows (though we don't
61925         know of any practical examples).
61926
61927         * lib/savedir.h (fdsavedir): New decl.
61928         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
61929         contains most of the former guts of savedir.
61930         (savedir): Use savedirstream.
61931         Include "openat.h".
61932
61933 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61934
61935         * modules/obstack (Files): Add m4/ulonglong.m4.
61936         Problem reported by Davide Angelocola.
61937
61938 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
61941         coreutils no longer futzes with rounding modes.
61942
61943 2005-11-14  Jim Meyering  <jim@meyering.net>
61944
61945         * lib/mkstemp-safer.c: Include <config.h>, required for possible
61946         replacement of mkstemp.
61947
61948 2005-11-10  Simon Josefsson  <jas@extundo.com>
61949
61950         * lib/readline.c: Remove EOL.
61951
61952 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61953
61954         * modules/gethrxtime (Depends-on): Add gettime.
61955
61956 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61957
61958         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
61959         or gettimeofday; no longer needed.
61960
61961 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
61964         time business.
61965         (gethrxtime) [! (HAVE_NANOUPTIME
61966         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
61967         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
61968         our own approximation.
61969
61970 2005-11-08  Eric Blake  <ebb9@byu.net>
61971
61972         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61973
61974 2005-11-08  Eric Blake  <ebb9@byu.net>
61975
61976         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61977
61978 2005-11-04  Bruno Haible  <bruno@clisp.org>
61979
61980         * gnulib-tool: Implement --update mode.
61981
61982 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61983
61984         Fix porting problem reported by Theodoros V. Kalamatianos.
61985         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
61986         Don't assume that futimes failing means we must fail.
61987
61988 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61989
61990         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
61991         variables to suggest the intended function of the PATH_MAX check.
61992
61993 2005-10-30  Kean Johnston  <jkj@sco.com>
61994
61995         Trivial changes to support SCO systems.
61996         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
61997         as PATH_MAX.
61998         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
61999         where __ptr is null when no I/O is pending.
62000
62001 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62004         leave errno alone.  Problem reported by Dmitry V. Levin.
62005
62006 2005-10-28  Simon Josefsson  <jas@extundo.com>
62007
62008         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62009         Test more.
62010
62011         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62012
62013         * modules/md2, modules/md2-tests: New files.
62014
62015 2005-10-28  Simon Josefsson  <jas@extundo.com>
62016
62017         * m4/inet_ntop.m4: More tests.
62018
62019         * m4/gc-md2.m4, md2.m4: New file.
62020
62021 2005-10-28  Simon Josefsson  <jas@extundo.com>
62022
62023         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62024         "restrict" keywords, as per POSIX.  Protect the function
62025         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62026         Don't use K&R prototypes.  Check the sprintf return values.
62027         Re-define EAFNOSUPPORT if not present.  Indent.
62028
62029         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62030         suggested by Bruno Haible <bruno@clisp.org>.
62031
62032         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62033
62034         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62035
62036         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62037         libgcrypt).
62038
62039         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62040
62041         * lib/md2.h, lib/md2.c: New files.
62042
62043 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62044
62045         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62046         errno alone.  Problem reported by Frederic Jolliton.
62047
62048 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62049
62050         * modules/verify (License): Change from GPL to LGPL.  This is a
62051         tiny module and there are apparently near-equivalents that are
62052         under the BSD license.
62053
62054 2005-10-24  Simon Josefsson  <jas@extundo.com>
62055
62056         * modules/sha1: Relicense to LGPL.
62057
62058 2005-10-24  Simon Josefsson  <jas@extundo.com>
62059
62060         * lib/md4.h: Shrink buffer size, now that we changed the type.
62061
62062 2005-10-23  Simon Josefsson  <jas@extundo.com>
62063
62064         * gnulib-tool (func_import): Fix --tests-base.
62065
62066 2005-10-22  Simon Josefsson  <jas@extundo.com>
62067
62068         * modules/arcfour (Depends-on): Need stdint.
62069
62070 2005-10-22  Simon Josefsson  <jas@extundo.com>
62071
62072         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62073         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62074
62075 2005-10-22  Simon Josefsson  <jas@extundo.com>
62076
62077         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62078         suggested by Bruno Haible <bruno@clisp.org>.
62079
62080 2005-10-22  Simon Josefsson  <jas@extundo.com>
62081
62082         * lib/crc.h: Include stddef.h, for size_t.
62083
62084 2005-10-22  Simon Josefsson  <jas@extundo.com>
62085
62086         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62087         arcfour_context struct (simplify test vector testing in GNU
62088         Shishi).
62089
62090 2005-10-21  Simon Josefsson  <jas@extundo.com>
62091
62092         * modules/des, modules/des-tests: New files.
62093
62094         * modules/gc-des, modules/gc-des-tests: New files.
62095
62096         * tests/test-des.c, tests/test-gc-des.c: New file.
62097
62098 2005-10-21  Simon Josefsson  <jas@extundo.com>
62099
62100         * modules/arctwo, modules/arctwo-tests: New files.
62101
62102         * tests/test-arctwo.c: New file.
62103
62104         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62105
62106         * tests/test-gc-arctwo.c: New file.
62107
62108 2005-10-21  Simon Josefsson  <jas@extundo.com>
62109
62110         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62111         Bruno Haible <bruno@clisp.org>.
62112
62113         * m4/gc-des.m4: New file.
62114
62115 2005-10-21  Simon Josefsson  <jas@extundo.com>
62116
62117         * m4/arctwo.m4: New file.
62118
62119         * m4/gc-arctwo.m4: New file.
62120
62121 2005-10-21  Simon Josefsson  <jas@extundo.com>
62122
62123         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62124         block.
62125
62126 2005-10-21  Simon Josefsson  <jas@extundo.com>
62127
62128         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62129         <bruno@clisp.org>.
62130
62131         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62132
62133         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62134         Bruno Haible <bruno@clisp.org>.
62135
62136         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62137         <bruno@clisp.org>.
62138
62139 2005-10-21  Simon Josefsson  <jas@extundo.com>
62140
62141         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62142
62143 2005-10-21  Simon Josefsson  <jas@extundo.com>
62144
62145         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62146
62147 2005-10-21  Simon Josefsson  <jas@extundo.com>
62148
62149         * lib/des.h, lib/des.c: New files.
62150
62151         * lib/gc-gnulib.c: Support DES.c
62152
62153 2005-10-21  Simon Josefsson  <jas@extundo.com>
62154
62155         * lib/arctwo.h, lib/arctwo.c: New files.
62156
62157         * lib/gc-gnulib.c: Support ARCTWO.
62158
62159 2005-10-21  Simon Josefsson  <jas@extundo.com>
62160
62161         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62162         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62163
62164 2005-10-21  Simon Josefsson  <jas@extundo.com>
62165
62166         * gnulib-tool (func_import, func_create_testdir): Define automake
62167         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62168         Makefile.am snippet),
62169         suggested by Bruno Haible <bruno@clisp.org>.
62170
62171         * modules/gc (Makefile.am): Use it.
62172
62173 2005-10-21  Bruno Haible  <bruno@clisp.org>
62174
62175         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62176         patch.
62177
62178 2005-10-19  Simon Josefsson  <jas@extundo.com>
62179
62180         * tests/test-gc-rijndael.c: New file.
62181
62182         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62183
62184 2005-10-19  Simon Josefsson  <jas@extundo.com>
62185
62186         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62187         interface too.
62188
62189 2005-10-19  Simon Josefsson  <jas@extundo.com>
62190
62191         * tests/test-gc-arcfour.c: New file.
62192
62193         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62194
62195 2005-10-19  Simon Josefsson  <jas@extundo.com>
62196
62197         * modules/gc-md4, modules/gc-md4-tests: New file.
62198
62199         * tests/test-gc-md4.c: New file.
62200
62201 2005-10-19  Simon Josefsson  <jas@extundo.com>
62202
62203         * m4/gc-md4.m4: New file.
62204
62205 2005-10-19  Simon Josefsson  <jas@extundo.com>
62206
62207         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62208         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62209         <kasal@ucw.cz>.
62210
62211 2005-10-19  Simon Josefsson  <jas@extundo.com>
62212
62213         * m4/gc-arcfour.m4: New file.
62214
62215         * m4/gc-rijndael.m4: New file.
62216
62217 2005-10-19  Simon Josefsson  <jas@extundo.com>
62218
62219         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62220
62221 2005-10-19  Simon Josefsson  <jas@extundo.com>
62222
62223         * lib/gc-gnulib.c: Support ARCFOUR.
62224
62225 2005-10-19  Simon Josefsson  <jas@extundo.com>
62226
62227         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62228         support.
62229
62230         * lib/gc.h: Add ECB enum type.
62231
62232         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62233
62234 2005-10-18  Simon Josefsson  <jas@extundo.com>
62235
62236         * tests/test-md5.c: New file.
62237
62238         * modules/md5-tests: New file.
62239
62240 2005-10-18  Simon Josefsson  <jas@extundo.com>
62241
62242         * tests/test-md4.c: New file.
62243
62244         * modules/md4, modules/md4-tests: New files.
62245
62246 2005-10-18  Simon Josefsson  <jas@extundo.com>
62247
62248         * m4/md4.m4: New file.
62249
62250 2005-10-18  Simon Josefsson  <jas@extundo.com>
62251
62252         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62253
62254 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62255
62256         * gnulib-tool (func_create_testdir): Omit the second check whether
62257         BUILT_SOURCES in nonempty.
62258
62259 2005-10-17  Simon Josefsson  <jas@extundo.com>
62260
62261         * tests/test-rijndael.c: New file.
62262
62263 2005-10-17  Simon Josefsson  <jas@extundo.com>
62264
62265         * modules/sha1: Depend on stdint instead of md5.
62266
62267         * modules/md5: Depend on stdint, remove uint32_t.
62268
62269 2005-10-17  Simon Josefsson  <jas@extundo.com>
62270
62271         * modules/gc-sha1-tests: New file.
62272
62273         * tests/test-gc-sha1.c: New file.
62274
62275 2005-10-17  Simon Josefsson  <jas@extundo.com>
62276
62277         * m4/md5.m4: Remove call to uint32_t.m4.
62278
62279 2005-10-17  Simon Josefsson  <jas@extundo.com>
62280
62281         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62282
62283         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62284         md5.h.
62285
62286         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62287
62288         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62289
62290 2005-10-17  Simon Josefsson  <jas@extundo.com>
62291
62292         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62293
62294 2005-10-17  Simon Josefsson  <jas@extundo.com>
62295
62296         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62297
62298 2005-10-17  Simon Josefsson  <jas@extundo.com>
62299
62300         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62301
62302         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62303
62304 2005-10-17  Bruno Haible  <bruno@clisp.org>
62305
62306         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62307         that it can also be used in a test.
62308
62309 2005-10-16  Bruno Haible  <bruno@clisp.org>
62310
62311         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62312         TESTS_ENVIRONMENT, so that individual tests can augment it.
62313
62314         * gnulib-tool (func_create_testdir): Use an intermediate target for
62315         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62316         macros, like $(ALLOCA_H), which cannot be passed through the command
62317         line.
62318
62319 2005-10-15  Simon Josefsson  <jas@extundo.com>
62320
62321         * modules/rijndael-tests: New file.
62322
62323         * modules/rijndael: New file.
62324
62325 2005-10-15  Simon Josefsson  <jas@extundo.com>
62326
62327         * m4/rijndael.m4: New file.
62328
62329 2005-10-15  Simon Josefsson  <jas@extundo.com>
62330
62331         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62332
62333         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62334
62335 2005-10-14  Simon Josefsson  <jas@extundo.com>
62336
62337         * tests/test-arcfour.c: New file.
62338
62339         * modules/arcfour, modules/arcfour-tests: New files.
62340
62341 2005-10-14  Simon Josefsson  <jas@extundo.com>
62342
62343         * m4/arcfour.m4: New file.
62344
62345 2005-10-14  Simon Josefsson  <jas@extundo.com>
62346
62347         * lib/arcfour.h, lib/arcfour.c: New files.
62348
62349 2005-10-14  Roland McGrath  <roland@redhat.com>
62350
62351         Import from libc.  [BZ #1331]
62352         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
62353         macro argument.
62354         Reported by Matej Vela <vela@debian.org>.
62355
62356 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62357
62358         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62359         include <wchar.h>; no longer needed.
62360
62361 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62362
62363         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62364
62365 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62366         and  Ulrich Drepper  <drepper@redhat.com>
62367
62368         Import from libc.
62369         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62370         instead of inline stream orientation test and two separate
62371         function calls.  Pay no attention to USE_IN_LIBIO.
62372
62373 2005-10-13  Simon Josefsson  <jas@extundo.com>
62374
62375         * modules/gc-hmac-md5-tests: New file.
62376
62377         * tests/test-gc-hmac-sha1.c: New file.
62378
62379         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62380
62381         * modules/gc-hmac-md5-tests: New file.
62382
62383         * tests/test-gc-md5.c: New file.
62384
62385         * modules/gc-md5-tests: New file.
62386
62387 2005-10-13  Simon Josefsson  <jas@extundo.com>
62388
62389         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62390         Move memory allocation outside of loop.
62391
62392 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62393
62394         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62395         intermediate directory is in a read-only file system.  Problem
62396         reported by Eric Blake.
62397
62398 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62399
62400         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62401
62402 2005-10-12  Simon Josefsson  <jas@extundo.com>
62403
62404         * tests/test-hmac-sha1.c: New file.
62405
62406         * modules/hmac-sha1-tests: New file.
62407
62408         * modules/hmac-sha1: New file.
62409
62410 2005-10-12  Simon Josefsson  <jas@extundo.com>
62411
62412         * modules/gc-sha1: New file.
62413
62414 2005-10-12  Simon Josefsson  <jas@extundo.com>
62415
62416         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
62417
62418         * tests/test-gc-pbkdf2-sha1.c: New file.
62419
62420 2005-10-12  Simon Josefsson  <jas@extundo.com>
62421
62422         * modules/gc-md5, modules/gc-hmac-md5: New files.
62423
62424         * modules/gc (Files): Remove md5, memxor and hmac files.
62425
62426 2005-10-12  Simon Josefsson  <jas@extundo.com>
62427
62428         * m4/gc-pbkdf2-sha1.m4: New file.
62429
62430         * m4/gc-hmac-sha1.m4: New file.
62431
62432         * m4/gc-sha1: New file.
62433
62434         * m4/hmac-sha1.m4: New file.
62435
62436 2005-10-12  Simon Josefsson  <jas@extundo.com>
62437
62438         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
62439
62440         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
62441
62442 2005-10-12  Simon Josefsson  <jas@extundo.com>
62443
62444         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
62445         suggested by Bruno Haible <bruno@clisp.org>.
62446
62447 2005-10-12  Simon Josefsson  <jas@extundo.com>
62448
62449         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
62450
62451 2005-10-12  Simon Josefsson  <jas@extundo.com>
62452
62453         * lib/gc-pbkdf2-sha1.c: New file.
62454
62455         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
62456
62457 2005-10-12  Simon Josefsson  <jas@extundo.com>
62458
62459         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
62460
62461         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
62462
62463 2005-10-12  Simon Josefsson  <jas@extundo.com>
62464
62465         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
62466         GC_USE_HMAC_MD5, respectively.
62467
62468         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
62469         (gc_md5): Fix typo.
62470
62471         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
62472
62473         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
62474
62475         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
62476
62477 2005-10-12  Bruno Haible  <bruno@clisp.org>
62478
62479         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
62480         Reported by Stepan Kasal <kasal@ucw.cz>.
62481
62482 2005-10-11  Simon Josefsson  <jas@extundo.com>
62483
62484         * tests/test-crc.c: New file.
62485
62486         * modules/crc, modules/crc-tests: New files.
62487
62488 2005-10-11  Simon Josefsson  <jas@extundo.com>
62489
62490         * m4/crc.m4: New file.
62491
62492 2005-10-11  Simon Josefsson  <jas@extundo.com>
62493
62494         * lib/gc.h: Add gc_hash and gc_hash_buffer.
62495
62496         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
62497
62498         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
62499
62500 2005-10-11  Simon Josefsson  <jas@extundo.com>
62501
62502         * lib/crc.h, lib/crc.c: New files.
62503
62504         * lib/gc.h (gc_hash_buffer): Add doc.
62505
62506 2005-10-11  Bruno Haible  <bruno@clisp.org>
62507
62508         * modules/c-strcasestr: New file.
62509         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
62510
62511 2005-10-11  Bruno Haible  <bruno@clisp.org>
62512
62513         * modules/c-strcase: New file.
62514         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
62515
62516 2005-10-11  Bruno Haible  <bruno@clisp.org>
62517
62518         * lib/strcasecmp.c: Include limits.h.
62519         (strcasecmp): Avoid integer overflow on exotic platforms.
62520         * lib/strncasecmp.c: Include limits.h.
62521         (strncasecmp): Avoid integer overflow on exotic platforms.
62522         Reported by Paul Eggert.
62523
62524 2005-10-11  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/c-strcasestr.h: New file, from GNU gettext.
62527         * lib/c-strcasestr.c: New file, from GNU gettext.
62528
62529 2005-10-11  Bruno Haible  <bruno@clisp.org>
62530
62531         * lib/c-strcase.h: New file, from GNU gettext.
62532         * lib/c-strcasecmp.c: New file, from GNU gettext.
62533         * lib/c-strncasecmp.c: New file, from GNU gettext.
62534
62535 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * modules/mempcpy (License): GPL -> LGPL.
62538         * modules/strchrnul (License): Likewise.
62539         * modules/sysexits (License): Likewise.
62540
62541 2005-10-08  Simon Josefsson  <jas@extundo.com>
62542
62543         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
62544
62545 2005-10-07  Simon Josefsson  <jas@extundo.com>
62546
62547         * m4/memxor.m4: Remove gl_C_RESTRICT call.
62548
62549 2005-10-06  Simon Josefsson  <jas@extundo.com>
62550
62551         * tests/test-hmac-md5.c: New file.
62552
62553         * modules/hmac-md5-tests: New file.
62554
62555         * modules/hmac-md5: New file.
62556
62557 2005-10-06  Simon Josefsson  <jas@extundo.com>
62558
62559         * m4/hmac-md5.m4: New file.
62560
62561         * m4/memxor.m4: Require gl_C_RESTRICT.
62562
62563 2005-10-06  Simon Josefsson  <jas@extundo.com>
62564
62565         * lib/memxor.c (memxor): Avoid casts and warnings.
62566
62567 2005-10-06  Simon Josefsson  <jas@extundo.com>
62568
62569         * lib/hmac-md5.c: New file.
62570
62571         * lib/hmac.h: New file.
62572
62573 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62574
62575         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
62576         promotes to int, not unsigned int, to catch the AIX 5.3
62577         compiler bug.
62578
62579 2005-10-05  Simon Josefsson  <jas@extundo.com>
62580
62581         * modules/memxor: New file.
62582
62583         * modules/iconv (Files): Move config.rpath to havelib, it is used
62584         there.
62585
62586         * modules/havelib (Files): Add config.rpath.
62587
62588 2005-10-05  Simon Josefsson  <jas@extundo.com>
62589
62590         * m4/memxor.m4: New file.
62591
62592 2005-10-05  Simon Josefsson  <jas@extundo.com>
62593
62594         * lib/memxor.c (memxor): Fix compiler error.
62595
62596         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
62597         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
62598
62599         * lib/memxor.h, lib/memxor.c: New files.
62600
62601         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
62602         we assume all systems have it, suggested by Jim Meyering
62603         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
62604         any systems lack sys/socket.h; mingw32 is known to lack it, but we
62605         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
62606         same reasons.
62607
62608 2005-10-05  Simon Josefsson  <jas@extundo.com>
62609
62610         * config/srclist.txt: Add glibc bug 1423 for md5.h.
62611
62612 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
62615         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
62616         needed, since the source code now assumes these .h files.
62617
62618 2005-10-05  Derek Price  <derek@ximbiot.com>
62619
62620         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
62621
62622 2005-10-05  Bruno Haible  <bruno@clisp.org>
62623
62624         * modules/stdint (License): Change to LGPL.
62625
62626 2005-10-04  Simon Josefsson  <jas@extundo.com>
62627
62628         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
62629         D. Baushke" <mdb@gnu.org>.
62630
62631 2005-10-04  Bruno Haible  <bruno@clisp.org>
62632
62633         * lib/verify.h (verify_true): Provide alternative definition for C++.
62634
62635 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
62636
62637         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
62638         (SSIZE_MAX): New macro, if not already defined.
62639         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
62640         than 2 GiB.
62641
62642 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         Sync from coreutils.
62645         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
62646         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
62647         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
62648         ULLONG_MAX doesn't work with 2.7.2.1.
62649
62650 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62651
62652         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
62653         From Ben Pfaff.
62654
62655         * modules/exclude (Depends-on): Depend on verify.
62656         * modules/strtoimax (Depends-on): Likewise.
62657         * modules/utimecmp (Depends-on): Likewise.
62658
62659 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62660
62661         * lib/exclude.c: Include verify.h.
62662         (verify): Remove.  All callers changed to use verify.h's version.
62663         * lib/strtoimax.c: Likewise.
62664         * lib/utimecmp.c: Likewis.e
62665
62666         Sync from coreutils.
62667         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
62668         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
62669         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
62670         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
62671         bother returning ENOSYS if settimeofday or stime fails; just let
62672         them return whatever errno they want to return.
62673         * lib/utimens.c: Include unistd.h, for dup2.
62674         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
62675         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
62676
62677 2005-10-02  Jim Meyering  <jim@meyering.net>
62678
62679         Sync from coreutils.
62680         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
62681         from glibc-2.2.5 that fails for read-only files.
62682
62683 2005-10-02  Jim Meyering  <jim@meyering.net>
62684
62685         Sync from coreutils.
62686         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
62687         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
62688         `#if HAVE_CONFIG_H'.
62689         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
62690         Remove AT_FDCWD test.
62691         Do not consume the fd unless successful.
62692         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
62693         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
62694         block, so that we don't even try to compile it if settimeofday is
62695         available.  This works around a compilation failure on OSF1 V5.1,
62696         due to stime requiring a `long int*' while tv_sec is `int'.
62697
62698 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
62699
62700         Sync from coreutils.
62701         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
62702         against `yes', rather than just testing for nonempty.
62703
62704 2005-10-01  Simon Josefsson  <jas@extundo.com>
62705
62706         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
62707         and Darwin.
62708
62709         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
62710         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
62711         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
62712         freeaddrinfo and gai_strerror are declared by the POSIX headers.
62713         Check if struct addrinfo is declared.
62714
62715 2005-10-01  Simon Josefsson  <jas@extundo.com>
62716
62717         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
62718         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
62719         AI_* and EAI_* definitions.  Protect function declarations.
62720
62721 2005-10-01  Jim Meyering  <jim@meyering.net>
62722
62723         Sync from coreutils.
62724
62725         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
62726         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
62727         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
62728         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62729         in the inet and nsl libraries.  Required on Solaris 5.7.
62730
62731 2005-10-01  Jim Meyering  <jim@meyering.net>
62732
62733         Sync from coreutils.
62734         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62735         in the inet and nsl libraries.  Required on Solaris 5.7.
62736
62737 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
62738
62739         * lib/getdelim.c (getdelim): Remove unused variables.
62740
62741 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62742
62743         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
62744         so that the code works even with ancient cpp.  Portability problem
62745         with GCC 2.7.2.1 reported by Thomas M.Ott.
62746
62747 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62748
62749         * modules/regex (Depends-on): Add strcase.
62750
62751         * modules/gethostname (Licence): Change from GPL to LGPL, since
62752         gethostname.c is a trivial implementation of a standard library
62753         function.
62754         * modules/poll (License): Change from GPL to LGPL, since it's
62755         derived from LGPL code.
62756
62757 2005-09-27  Jim Meyering  <jim@meyering.net>
62758
62759         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
62760         HAVE_CONFIG_H.
62761
62762         * lib/intprops.h (signed_type_or_expr__): Define.
62763         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
62764         for unsigned types.
62765
62766 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62767
62768         * lib/verify.h (verify_expr): Remove, replacing with:
62769         (verify_true): New macro that returns true instead of void.
62770         (verify_type__): Remove.
62771         (verify): Use verify_true rather than verify_type__.
62772
62773 2005-09-26  Bruno Haible  <bruno@clisp.org>
62774
62775         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
62776         is necessary.
62777         (lib_SOURCES): Remove mbchar.c.
62778         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
62779         (Files): Add m4/mbrtowc.m4.
62780         * modules/mbiter: Likewise.
62781         * modules/mbuiter: Likewise.
62782
62783 2005-09-26  Bruno Haible  <bruno@clisp.org>
62784
62785         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
62786         compile mbchar.c if they are not both present.
62787         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
62788         * m4/mbiter.m4 (gl_MBITER): Likewise.
62789         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
62790         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
62791         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
62792
62793 2005-09-25  Jim Meyering  <jim@meyering.net>
62794
62795         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
62796         also uses socklen_t.
62797
62798 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
62799
62800         * lib/utimens.c (ENOSYS): Define if not already defined.
62801         (futimens): Support having a null PATH if the file descriptor
62802         is nonnegative.
62803
62804         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
62805         Remove.
62806         (__attribute): Define to empty unless GCC 3.1 or later.
62807         This works around a core dump on OpenBSD 3.4, which has GCC
62808         2.95.3, which dumps core when given __attribute__(()).  It also
62809         simplifies other tests, since we really don't want to bother with
62810         worrying about which ancient version of GCC supported what.
62811         Original problem reported by Yoann Vandoorselaere, with part of
62812         the fix suggested by Derek Price.
62813
62814 2005-09-24  Jim Meyering  <jim@meyering.net>
62815
62816         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
62817         so we can once again use a positive bitfield width of 1 -- now we
62818         don't have to explain why we were using a bitfield width of 2.
62819
62820 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62821
62822         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
62823         and similarly for the other external symbols.  Problem reported
62824         by James Gallager.
62825
62826         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
62827         bug reported by Jim Meyering.
62828
62829         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
62830         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
62831         not needed, since socklen is a prerequisite module.
62832
62833 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62834
62835         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
62836         Problem reported by Eric Blake.
62837         (getaddrinfo): Initialize se so that it's not garbage.
62838         Redo internal storage allocation so that it doesn't make unportable
62839         assumptions about alignment.
62840         Fix a memory leak.
62841
62842         * lib/utimens.c (futimens): Use futimesat if available.
62843         Prefer it to futimes since it doesn't have the futimes bug.
62844
62845         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
62846         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
62847         Instead, declare a function that returns a pointer to an array,
62848         and use verify_type__ to declare the size of the array.
62849         Problem and germ of a solution reported by Bruno Haible.
62850         (verify_type__): Use 2, not 1, for bitfield size, to avoid
62851         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
62852
62853 2005-09-23  Jim Meyering  <jim@meyering.net>
62854
62855         Sync from coreutils.
62856         Correct build failure (socklen_t not defined) on at least
62857         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
62858         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
62859
62860 2005-09-23  Jim Meyering  <jim@meyering.net>
62861
62862         * modules/getaddrinfo (Depends-on): Add socklen.
62863
62864 2005-09-23  Bruno Haible  <bruno@clisp.org>
62865
62866         * tests/test-verify.c: New file.
62867
62868 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62869
62870         Sync from coreutils.
62871
62872         * modules/argmatch (Depends-on): Add verify.
62873         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
62874         unistd-safer.
62875         * modules/save-cwd (Depends-on): Likewise.
62876
62877         * modules/openat (Files): Add lib/openat-die.c.
62878         (Depends-on): Remove error, exitfail.
62879         Add dirname.
62880
62881         * modules/verify: New file.
62882         * MODULES.html.sh (Diagnostics <assert.h>): New section,
62883         with "verify" module.
62884
62885 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62886
62887         Sync from coreutils.
62888
62889         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
62890         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
62891         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
62892         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
62893         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
62894         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
62895         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
62896         Don't bother checking for string.h, stdlib.h, unistd.h.
62897         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
62898         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
62899         module's job.
62900         * m4/jm-macros.m4 (gl_MACROS): Likewise.
62901         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
62902
62903         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
62904         (gl_GETDATE): Use it.
62905
62906         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
62907
62908 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62909
62910         Sync from coreutils.
62911
62912         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
62913         stat-time.h.
62914         * lib/argmatch.h: Include verify.h
62915         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
62916         (ARGMATCH_ASSERT): Remove; unused.
62917         * lib/canonicalize.c: Assume STDC_HEADERS.
62918         * lib/exclude.c: Include "strcase.h".
62919         * lib/regex_internal.h [!defined _LIBC]: Likewise.
62920         * lib/getusershell.c: Include stdio--.h rather than stdio.h
62921         and stdio-safer.h.
62922         (getusershell): Call fopen, not fopen_safer.
62923         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
62924         Do not include unistd-safer.h.
62925         (save_cwd): Don't call fd_safer; no longer needed
62926         now that we include fcntl--.h.
62927
62928         * lib/getdate.y (relative_time): New type.
62929         (RELATIVE_TIME_0): New constant.
62930         (parser_control): Use relative_time instead of doing it ourselves.
62931         (%union): Add new relative_time rel member.
62932         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
62933         Now typeless.
62934         (relunit, relunit_snumber): Now of type rel.
62935         (zone, rel, relunit, get_date): Adjust to above changes.
62936
62937         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
62938         Do not include unistd-safer.h.
62939         (getloadavg): Don't call fd_safer; no longer needed
62940         now that we include fcntl--.h.
62941
62942         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
62943         (make_dir_parents): Treat ENOSYS like EEXIST.
62944
62945         Improve quality of diagnostics on restore_cwd failure.
62946         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
62947         (make_dir_parents): Last arg is now int * (for errno), not bool *.
62948         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
62949         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
62950         each time through the loop.  Do not diagnose restore_cwd failure;
62951         that is the caller's job (and perhaps the caller does not care).
62952
62953         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
62954         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
62955         If the file already exists but is not a directory, don't bother
62956         to try to make its parents.
62957         Close potential file descriptor leak if we can't chdir("/") (!).
62958         Don't always return true if chdir($PWD) fails; return true only
62959         if the requested action was done successfully (except for the
62960         chdir($PWD)).
62961         Don't log final directory unless we actually made it.
62962         Refactor to avoid duplicate code to fix up permissions.
62963         Don't attempt to fix up parent permissions if chdir($PWD) fails.
62964
62965         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
62966         to make it a bit faster and (I hope) clearer.
62967         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
62968         Fix bug in formats like %2N.
62969
62970         * lib/verify.h: New file.
62971
62972 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62973
62974         Sync from coreutils.
62975         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
62976
62977 2005-09-22  Jim Meyering  <jim@meyering.net>
62978
62979         Sync from coreutils.
62980
62981         * m4/lstat.m4 (gl_FUNC_LSTAT):
62982         Use AC_LIBSOURCES to require lstat.c and lstat.h.
62983         Remove obsolete comment.
62984         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
62985         * m4/xstrtod.m4: Likewise.
62986
62987         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
62988
62989 2005-09-22  Jim Meyering  <jim@meyering.net>
62990
62991         Sync from coreutils.
62992
62993         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
62994
62995         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
62996         the .tm_year member, since otherwise gcc-4.0 would now warn about
62997         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
62998
62999         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63000         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63001
63002         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63003         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63004         when run in a time zone for which daylight savings time is in effect
63005         for the starting date.
63006
63007         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63008         stop us from restricting permissions of just-created absolute-named
63009         directories.
63010         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63011         to restore initial working directory.
63012         * lib/mkdir-p.c (make_dir_parents): New parameter:
63013         different_working_dir, to tell caller if/when we change the working
63014         directory and are unable to return to the initial one.
63015         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63016         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63017         `return false'.  This fixes a bug introduced on 2004-07-30.
63018
63019         * lib/openat.c (fdopendir): Be sure to close the supplied
63020         file descriptor before returning.  This makes our replacement
63021         implementation a little closer to Solaris's, where fdopendir
63022         ties the file descriptor to the returned DIR* pointer.
63023         * lib/openat.c (unlinkat): New function.
63024         * lib/openat.h (unlinkat): Add prototype.
63025         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63026         (openat_restore_fail): Rename from openat_restore_die.
63027         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63028
63029         Provide an alternative to exiting immediately upon save_cwd or
63030         restore_cwd failure.  Now, an application can arrange e.g.,
63031         to perform a longjump in that case.
63032         * lib/openat.c: Include dirname.h.
63033         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63034         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63035         and openat_restore_die rather than calling error directly.
63036         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63037
63038         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63039         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63040         define.
63041
63042         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63043         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63044                             int utc, int nanoseconds);
63045         Background:
63046         date should not have to allocate a megabyte of virtual memory to
63047         handle a format argument like +%1048575T.  When implemented with
63048         strftime, it must allocate such a buffer, use strftime to fill it
63049         in, print it, then free it.
63050         With fprintftime, it simply prints everything and exits.
63051         With no need for memory allocation, that's one fewer way to fail.
63052         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63053         optional field width, not before, so we accept %9:z, not %:9z.
63054         (my_strftime): Be sure to use L_('x') for literals.
63055
63056         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63057         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63058         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63059         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63060         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63061         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63062         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63063         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63064         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63065         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63066         * lib/xgethostname.c, lib/xreadlink.c:
63067         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63068
63069         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63070         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63071         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63072         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63073         and don't include <sys/file.h>).
63074
63075 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63076
63077         Sync from coreutils.
63078
63079         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63080         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63081         [!LDAV_DONE]: Avoid unused variable warning.
63082
63083 2005-09-21  Bruno Haible  <bruno@clisp.org>
63084
63085         * lib/unicodeio.h (unicode_to_mb): New declaration.
63086
63087 2005-09-20  Derek Price  <derek@ximbiot.com>
63088
63089         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63090         getaddrinfo.h.
63091
63092 2005-09-20  Bruno Haible  <bruno@clisp.org>
63093
63094         * gnulib-tool: Remove trailing slashes from the values specified for
63095         --source-base, --m4-base, --tests-base, --aux-dir.
63096         Suggested by Simon Josefsson <jas@extundo.com>.
63097
63098 2005-09-20  Bruno Haible  <bruno@clisp.org>
63099
63100         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63101         func_modules_to_filelist, func_import, func_create_testdir): Make all
63102         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63103         change when gnulib-tool is invoked in a different locale.
63104
63105 2005-09-19  Simon Josefsson  <jas@extundo.com>
63106
63107         * m4/socklen.m4: Fix typo.
63108
63109 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63110
63111         Use a consistent style for including <config.h>.
63112         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63113         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63114         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63115         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63116         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63117         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63118         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63119         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63120         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63121         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63122         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63123         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63124         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63125         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63126         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63127         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63128         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63129         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63130         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63131         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63132         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63133         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63134         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63135         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63136         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63137         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63138         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63139         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63140         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63141         lib/xstrtoumax.c, lib/yesno.c:
63142         Standardize inclusion of config.h.
63143         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63144         lib/inttostr.h:  Removed inclusion of config.h from header files.
63145         * lib/inttostr.c:  Adjusted in-tree users.
63146         * lib/timespec.h: Remove superfluous warning to include config.h.
63147         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63148         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63149         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63150         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63151         config.h with HAVE_CONFIG_H.
63152
63153 2005-09-19  Jim Meyering  <jim@meyering.net>
63154
63155         * modules/pathmax (License): Change to LGPL.
63156
63157 2005-09-19  Derek Price  <derek@ximbiot.com>
63158
63159         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63160
63161 2005-09-19  Bruno Haible  <bruno@clisp.org>
63162
63163         * gnulib-tool (import): Provide default for --tests-base.
63164
63165 2005-09-19  Bruno Haible  <bruno@clisp.org>
63166
63167         * doc/quote.texi: New file, extracted from gnulib.texi.
63168         * doc/ctime.texi: New file, extracted from gnulib.texi.
63169         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63170         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63171         * doc/gnulib.texi: Include them.
63172
63173 2005-09-18  Bruno Haible  <bruno@clisp.org>
63174
63175         Portability fix.
63176         * gnulib-tool (func_readlink): New function.
63177         (func_ln_if_changed): Use it.
63178
63179 2005-09-18  Bruno Haible  <bruno@clisp.org>
63180
63181         * gnulib-tool: Support --with-tests also with --import.
63182         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63183         (func_import): Use variables $testsbase and $inctests. Emit a
63184         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63185         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63186         SUBDIRS += $testsdir.
63187         (func_create_testdir): Update.
63188
63189 2005-09-18  Bruno Haible  <bruno@clisp.org>
63190
63191         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63192         instead of $dry_run.
63193         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63194         (func_ln_if_changed): Don't handle dry-run here.
63195         (func_import): In dry-run mode, detect more precisely which actions
63196         would be performed, and don't use "...ing" verbs.
63197
63198 2005-09-18  Bruno Haible  <bruno@clisp.org>
63199
63200         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63201         (func_import): Use join on two temporary files instead of three nested
63202         loops, in order to determine which files are new or old.
63203
63204 2005-09-18  Bruno Haible  <bruno@clisp.org>
63205
63206         * gnulib-tool (func_import): Comment out code that spits out the
63207         new files with --dry-run.
63208
63209 2005-09-18  Bruno Haible  <bruno@clisp.org>
63210
63211         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63212
63213 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63214
63215         * lib/stat-time.h: New file.
63216         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63217         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63218         in a different way.
63219         (timespec_cmp): New function.
63220         * lib/utimecmp.c: Include stat-time.h.
63221         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63222         members exist, not on the obsolescent ST_MTIM_NSEC.
63223         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63224
63225 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63226
63227         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63228
63229 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         * MODULES.html.sh (File system functions): Add stat-time.
63232         * modules/stat-time: New file.
63233         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63234         is now done in a different way, by the stat-time module.
63235         * modules/utimecmp (Depends-on): Add stat-time.
63236
63237 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63238
63239         * m4/st_mtim.m4: Remove.  Superseded by...
63240         * m4/stat-time.m4: New file.
63241         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63242         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63243
63244 2005-09-15  Derek Price  <derek@ximbiot.com>
63245
63246         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63247
63248 2005-09-15  Derek Price  <derek@ximbiot.com>
63249
63250         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63251         * lib/regex_internal.c: Ditto, using this...
63252         (__GNUC_PREREQ): ...new macro.
63253         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63254         using...
63255         (__GNUC_PREREQ): ...this new macro.
63256
63257         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63258
63259 2005-09-15  Derek Price  <derek@ximbiot.com>
63260             Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63263         changes, consolidating in...
63264         * lib/regex_internal.h: ...this file.
63265
63266 2005-09-13  Jim Meyering  <jim@meyering.net>
63267
63268         * lib/canon-host.c: Filter through gnu indent and reword comments
63269         slightly.
63270         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63271
63272 2005-09-13  Derek Price  <derek@ximbiot.com>
63273
63274         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63275         failure.
63276         Reported by Jim Meyering  <jim@meyering.net>.
63277
63278 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63279
63280         * lib/base64.c: Typo.
63281         (base64_encode): Put b64str in initialized data section.
63282
63283 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63284
63285         Merge glibc and coreutils changes into gnulib, plus a few
63286         extra fixes.
63287         * lib/md5.c: Use #error rather than a string.
63288         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63289         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63290         (__attribute__): Define to empty for non recent-GCC.
63291         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63292         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63293         Renamed from their non-__ counterparts, with new macros replacing
63294         them if not _LIBC.  Add __THROW attribute.
63295         (rol): Remove.
63296         (struct md5_ctx): Align buffer if using GCC.
63297         * lib/sha1.h (struct sha1_ctx): Likewise.
63298         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63299         The old name was backwards.
63300         (NOTSWAP): Remove; not used.
63301         (rol): New macro, moved here from md5.h.
63302         (sha1_process_block): Remove a FIXME that doesn't make sense.
63303
63304 2005-09-12  Derek Price  <derek@ximbiot.com>
63305
63306         Return usable errors from canon-host.
63307         * lib/canon-host.h: New file.
63308         * lib/canon-host.c (canon_host): Wrap...
63309         (canon_host_r): ...this new function, which now relies exclusively on
63310         getaddrinfo.
63311         (ch_strerror): New function.
63312         (last_cherror): New global.
63313         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63314         interface.
63315         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63316         void *.
63317         (freeaddrinfo): Free ai->ai_canonname when set.
63318
63319 2005-09-12  Derek Price  <derek@ximbiot.com>
63320
63321         Make canon-host require getaddrinfo.
63322         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63323         AC_LIBSOURCE canon-host.h.  Call...
63324         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63325         gl_GETADDRINFO.
63326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63327
63328 2005-09-12  Derek Price  <derek@ximbiot.com>
63329
63330         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63331         LGPL.
63332         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63333
63334 2005-09-12  Derek Price  <derek@ximbiot.com>
63335
63336         * lib/gai_strerror.c: Include config.h when available.  Include
63337         getaddrinfo.h before other headers to test interface.
63338         Reported by Larry Jones <lawrence.jones@ugs.com>.
63339
63340 2005-09-12  Derek Price  <derek@ximbiot.com>
63341             Paul Eggert  <eggert@cs.ucla.edu>
63342
63343         * modules/glob (Files): Add glob-libc.h.
63344
63345 2005-09-12  Derek Price  <derek@ximbiot.com>
63346             Paul Eggert  <eggert@cs.ucla.edu>
63347
63348         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63349         glob_.h, glob-libc.h.
63350         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
63351
63352 2005-09-12  Derek Price  <derek@ximbiot.com>
63353             Paul Eggert  <eggert@cs.ucla.edu>
63354
63355         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63356         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63357         protecting things that should be done only in gnulib contexts.
63358         * lib/glob_.h: New file, containing only the glob things needed for
63359         gnulib.
63360         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63361         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63362         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63363         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63364         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63365         and to respect the namespace rules better.
63366
63367 2005-09-08  Simon Josefsson  <jas@extundo.com>
63368
63369         * modules/socklen: New file.
63370
63371 2005-09-08  Simon Josefsson  <jas@extundo.com>
63372
63373         * m4/socklen.m4: New file.
63374
63375 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63376
63377         * modules/utimens (Files): Add m4/utimbuf.m4, since
63378         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63379         Reported by Sergey Poznyakoff.
63380
63381 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63384         definitions, since that's the preferred style in glibc.
63385         Fix a minor spacing issue, and update copyright notice to match
63386         glibc's.
63387
63388 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63389
63390         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63391
63392 2005-09-06  Simon Josefsson  <jas@extundo.com>
63393
63394         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63395         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63396
63397 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63398
63399         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63400         warning.
63401
63402 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63403
63404         * config/srclist.txt: Add glibc bug 1302.
63405
63406 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63407
63408         Change bitset word type from unsigned int to unsigned long int,
63409         as this has better performance on typical 64-bit hosts.
63410         Port bitset code to hosts with unusual word sizes.
63411         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63412         (build_collating_symbol):
63413         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63414         argument is a bitset.  This is merely a style issue, but it makes
63415         it clearer that an entire array is expected.
63416         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
63417         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
63418         Port to the case where bitset_word is not the same as unsigned int.
63419         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63420         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
63421         Likewise.
63422         * lib/regexec.c (check_dst_limits_calc_pos_1,
63423         check_subexp_matching_top):
63424         (build_trtable, group_nodes_into_DFAstates):
63425         Likewise.
63426         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
63427         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
63428         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
63429         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
63430         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
63431         * lib/regcomp.c (optimize_subexps, lower_subexp):
63432         Work even if bitset_word has holes in its bitwise representation.
63433         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
63434         * lib/regexec.c (check_dst_limits_calc_pos_1,
63435         check_subexp_matching_top):
63436         Likewise.
63437         * lib/regex_internal.c (re_string_reconstruct):
63438         Don't assume UCHAR_MAX == 255.
63439         * lib/regex_internal.h (bitset_set_all): Likewise.
63440         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
63441         All uses changed.
63442         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
63443         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
63444         All uses changed.
63445         (BITSET_WORD_MAX): New macro.
63446         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
63447         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
63448         (bitset_empty, bitset_copy):
63449         Prefer sizeof (bitset) to multiplying it out ourselves.
63450         (bitset_not_merge): Remove; unused.
63451         (bitset_contain): Return bool, not unsigned int with one bit on.
63452         All callers changed.
63453         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
63454         alignment than re_node_set; do this by defining a new internal
63455         type struct dests_alloc and using it to allocate memory.
63456
63457 2005-09-05  Bruno Haible  <bruno@clisp.org>
63458
63459         * gnulib-tool (func_import): Fix comparison in handling of symbolic
63460         links.
63461
63462 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
63463
63464         * modules/size_max (Makefile.am): Add size_max.h
63465
63466 2005-09-04  Derek Price  <derek@ximbiot.com>
63467
63468         * gnulib-tool (func_import): Fix reversed $symbolic logic.
63469
63470 2005-09-03  Simon Josefsson  <jas@extundo.com>
63471
63472         * gnulib-tool: Fix typo.
63473
63474 2005-09-03  Simon Josefsson  <jas@extundo.com>
63475
63476         * config/srclist.txt: Add glibc bug 1293.
63477
63478 2005-09-03  Derek Price  <derek@ximbiot.com>
63479
63480         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
63481         From Larry Jones <lawrence.jones@ugs.com>.
63482
63483 2005-09-02  Simon Josefsson  <jas@extundo.com>
63484
63485         * modules/socklen: New file.
63486
63487 2005-09-02  Simon Josefsson  <jas@extundo.com>
63488
63489         * modules/havelib: New module.
63490
63491         * modules/gettext, modules/iconv, modules/lock, modules/readline:
63492         Use havelib.
63493
63494 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63495
63496         Check for arithmetic overflow when calculating sizes, to prevent
63497         some buffer-overflow issues.  These patches are conservative, in the
63498         sense that when I couldn't determine whether an overflow was possible,
63499         I inserted a run-time check.
63500         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
63501         macros.
63502         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
63503         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
63504         (re_xnrealloc, re_x2nrealloc): New inline functions.
63505         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
63506         parse_bracket_exp):
63507         (build_equiv_class, build_charclass): Check for arithmetic overflow
63508         in size expression calculations.
63509         * lib/regex_internal.c (re_string_realloc_buffers):
63510         (build_wcs_upper_buffer, re_node_set_add_intersect):
63511         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
63512         (re_dfa_add_node, register_state): Likewise.
63513         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
63514         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
63515         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
63516         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
63517
63518 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63519
63520         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63521         m4/ulonglong.m4.  Problem reported by Martin Lambers.
63522
63523 2005-09-02  Bruno Haible  <bruno@clisp.org>
63524
63525         Support for lib vs. lib64 distinction on biarch platforms.
63526         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
63527         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
63528         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
63529
63530 2005-09-02  Bruno Haible  <bruno@clisp.org>
63531
63532         * gnulib-tool (import): In the other first-use case, provide defaults
63533         as well.
63534
63535 2005-09-02  Bruno Haible  <bruno@clisp.org>
63536
63537         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
63538         patches not yet found in the latest gettext release.
63539
63540 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63541
63542         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
63543         to avoid a collision with bits/local_lim.h in glibc.
63544         All uses changed.  Problem reported by Dmitry V. Levin in
63545         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
63546
63547         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
63548         bugs in int versus size_t comparisons.
63549         (re_string_context_at): Fix bug where the code assumed that
63550         Idx is signed.
63551
63552         Use bool where appropriate.
63553         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
63554         All callers changed.
63555         (calc_eclosure_iter): Likewise, for ROOT arg.
63556         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
63557         (build_charclass_op): Likewise, for NON_MATCH arg.
63558         * lib/regex_internal.c (re_string_allocate, re_string_construct):
63559         (re_string_construct_common): Likewise, for ICASE arg.
63560         * lib/regexec.c (re_search_2_stub, re_search_stub):
63561         Likewise, for RET_LEN arg.
63562         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
63563         (set_regs): Likewise, for FL_BACKTRACK arg.
63564         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
63565         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
63566         (calc_eclosure_iter, parse_bracket_exp):
63567         Use bool for internal variables that are booleans.
63568         * lib/regexec.c (re_search_internal, check_matching,
63569         proceed_next_node):
63570         (set_regs, build_sifted_states, sift_states_bkref):
63571         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
63572         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63573         (find_collation_sequence_value):
63574         Likewise.
63575         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
63576         (re_node_set_compare):
63577         Return bool, not int. All callers changed.
63578         * lib/regexec.c (check_halt_node_context, check_dst_limits):
63579         (build_trtable, check_node_accept): Likewise.
63580         * lib/regex_internal.h: Include stdbool.h.
63581
63582         Fix bugs uncovered when converting to bool.
63583         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
63584         failure instead of charging ahead blindly.
63585         * lib/regex_internal.c (register_state): Likewise.
63586         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
63587         for freeing internal storage.
63588         (group_nodes_into_DFA_states): Use unsigned int, not int, for
63589         bitset pieces used as boolean, to avoid undefined behavior
63590         on hosts that do int overflow checking.
63591
63592 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63593
63594         * config/srclist.txt: Add glibc bugs 1285-1287.
63595
63596 2005-09-01  Jim Meyering  <jim@meyering.net>
63597
63598         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
63599         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
63600         Require gl_STAT_MACROS, too.
63601
63602 2005-09-01  Bruno Haible  <bruno@clisp.org>
63603
63604         * gnulib-tool (import): In the first-use case, provide defaults.
63605
63606 2005-09-01  Bruno Haible  <bruno@clisp.org>
63607
63608         * gnulib-tool (func_import): Remove the .tmp files.
63609
63610 2005-09-01  Bruno Haible  <bruno@clisp.org>
63611
63612         * gnulib-tool (func_import): Fix handling of symbolic links.
63613
63614 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63615
63616         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
63617         old glibc regex code mishandles strings longer than 2**31 bytes.
63618         This patch fixes this when the regex code is used in gnulib
63619         (i.e., outside glibc).
63620
63621         This patch should not affect the use of the regex code inside
63622         glibc.  No doubt this problem also needs to be handled for glibc
63623         as well, but the result will be an incompatible change to the
63624         glibc ABI, and the old ABI will have to be supported too.  That
63625         can be the the subject for another patch.
63626
63627         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
63628         governing whether the rest of this patch is active.  By default,
63629         the macro is disabled and the patch has no effect.
63630         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
63631         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
63632         (struct re_pattern_buffer, re_search, re_search_2, re_match):
63633         (re_match_2, re_set_registers): Use the new types.
63634         * lib/regex_internal.h (Idx, re_hashval_t): New types.
63635         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
63636         New macros.
63637         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
63638         (re_string_context_at, bin_tree_t, re_dfastate_t):
63639         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
63640         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
63641         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
63642         (re_string_char_size_at, re_string_wchar_at):
63643         (re_string_elem_size_at):
63644         Use the new types and macros to port to 64-bit hosts.
63645         Use unsigned types for internal values, so that the code
63646         mostly works even for arrays larger than SSIZE_MAX.
63647         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
63648         (search_duplicated_node, calc_eclosure_iter, fetch_number):
63649         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
63650         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
63651         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
63652         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
63653         (calc_inveclosure, parse_dup_op, build_range_exp):
63654         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
63655         (fetch_number, create_token_tree, mark_opt_subexp):
63656         Likewise.
63657         * lib/regex_internal.c (re_string_construct_common,
63658         create_ci_newstate):
63659         (create_cd_newstate, re_string_allocate, re_string_construct):
63660         (re_string_realloc_buffers, build_wcs_upper_buffer):
63661         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63662         (re_string_reconstruct, re_string_peek_byte_case):
63663         (re_string_fetch_byte_case, re_string_context_at):
63664         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63665         (re_node_set_init_copy, re_node_set_add_intersect):
63666         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63667         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63668         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63669         (re_acquire_state, re_acquire_state_context, register_state):
63670         Likewise.
63671         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
63672         search_cur_bkref_entry):
63673         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
63674         (re_search_internal, re_search_2_stub, re_search_stub)
63675         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
63676         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
63677         (update_cur_sifted_state, check_dst_limits):
63678         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63679         (check_subexp_limits, sift_states_bkref, merge_state_array):
63680         (check_subexp_matching_top, get_subexp, get_subexp_sub):
63681         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
63682         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63683         (expand_bkref_cache, check_node_accept_bytes):
63684         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
63685         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
63686         (acquire_init_state_context, check_halt_node_context):
63687         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
63688         (sift_states_backward, clean_state_log_if_needed):
63689         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
63690         (find_recover_state, transit_state_sb, transit_state_mb):
63691         (transit_state_bkref, build_trtable, match_ctx_clean):
63692         Likewise.
63693         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
63694         to work around an assumption that REG_MISSING is negative.
63695
63696         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
63697         (seek_collating_symbol_entry) [defined _LIBC]:
63698         (lookup_collation_sequence_value) [defined _LIBC]:
63699         (build_range_exp, build_collating_symbol) [defined _LIBC]:
63700         Use prototypes rather than old-style function definitions.
63701         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
63702         (transit_state_sb) [0]:
63703         (find_collation_sequence_value) [defined _LIBC]: Likewise.
63704
63705         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
63706         rm_eo.
63707
63708         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
63709         (optimize_subexps, lower_subexp):
63710         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
63711         since the signed shift might overflow.  Use 1u<<31 instead.
63712         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63713         Likewise.
63714         * lib/regexec.c (check_dst_limits_calc_pos_1,
63715         check_subexp_matching_top): Likewise.
63716
63717         * lib/regcomp.c (optimize_subexps, lower_subexp):
63718         Use CHAR_BIT rather than 8, for clarity.
63719         * lib/regexec.c (check_dst_limits_calc_pos_1):
63720         (check_subexp_matching_top): Likewise.
63721         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
63722         have to worry about portability issues when shifting it left.
63723         Remove no-longer-needed test for table_size > 0.
63724         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
63725         in a word, as the resulting behavior is undefined.
63726         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
63727         in one case, a <= should have been an <, and in another case the
63728         whole test was missing.
63729         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
63730         the standard name CHAR_BIT.
63731         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
63732         this is not true on one's complement and signed-magnitude hosts.
63733
63734         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
63735         next_last_offset.
63736         (struct re_dfa_t): Remove unused member states_alloc.
63737         * lib/regcomp.c (init_dfa): Don't initialize unused members.
63738
63739 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
63742         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
63743         and large-file glibc and in 32-bit large-file Solaris.
63744
63745 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63746
63747         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
63748         lengths fit in regoff_t; this isn't true if regoff_t is the same
63749         width as size_t.
63750         * lib/regex.c (re_search_internal): 5th arg is LAST_START
63751         (= START + RANGE) instead of RANGE.  This avoids overflow
63752         problems when regoff_t is the same width as size_t.
63753         All callers changed.
63754         (re_search_2_stub): Check for overflow when adding the
63755         sizes of the two strings.
63756         (re_search_stub): Check for overflow when adding START
63757         to RANGE; if it occurs, substitute the extreme value.
63758
63759 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63760
63761         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
63762
63763 2005-08-31  Jim Meyering  <jim@meyering.net>
63764
63765         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
63766         a pointer-to-const.
63767         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
63768         (register_state): Likewise.
63769         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
63770         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63771         (group_nodes_into_DFAstates): Likewise.
63772
63773 2005-08-31  Jim Meyering  <jim@meyering.net>
63774
63775         * check-module: Add a FIXME comment.
63776
63777 2005-08-31  Eric Blake  <ebb9@byu.net>
63778
63779         * modules/unistd-safer (Files): Add unistd--.h.
63780         * modules/stdio-safer (Files): Add stdio--.h.
63781
63782 2005-08-31  Derek Price  <derek@ximbiot.com>
63783
63784         * lib/getdelim.c (getdelim): Return EOF on EOF.
63785         Reported by Larry Jones <lawrence.jones@ugs.com>.
63786
63787 2005-08-31  Bruno Haible  <bruno@clisp.org>
63788
63789         Avoid unnecessary diffs in the generated lib/Makefile.am.
63790         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
63791         the generated files.
63792         (func_import): Don't set cmd.
63793
63794 2005-08-31  Bruno Haible  <bruno@clisp.org>
63795
63796         * lib/strstr.c: Include <stddef.h>, for NULL.
63797         * lib/strcasestr.c: Likewise.
63798         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63799
63800 2005-08-31  Bruno Haible  <bruno@clisp.org>
63801
63802         * gnulib-tool: New option --macro-prefix.
63803         (func_import): Use macro_prefix.
63804         (import): Handle option --macro-prefix.
63805
63806 2005-08-31  Bruno Haible  <bruno@clisp.org>
63807
63808         * gnulib-tool (import): Rename most ac_* variables to cached_*.
63809         Also use new variables cached_lgpl, cached_libtool.
63810
63811 2005-08-31  Bruno Haible  <bruno@clisp.org>
63812
63813         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
63814         always instantiating them.
63815
63816 2005-08-31  Bruno Haible  <bruno@clisp.org>
63817
63818         * gnulib-tool (func_import): Read the previous cached settings
63819         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
63820         earlier added by gnulib but are now dropped. Warn when a gnulib file
63821         overwrites a non-gnulib file.
63822
63823 2005-08-31  Bruno Haible  <bruno@clisp.org>
63824
63825         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
63826         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
63827         projects that don't keep autogenerated files in CVS. Put into
63828         actioncmd only the specified modules, not the transitive closure.
63829
63830 2005-08-31  Bruno Haible  <bruno@clisp.org>
63831
63832         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
63833         Create directories that shall be filled.
63834         (import): Don't look for gl_* macros in configure.ac. Recurse across
63835         all directories containing a gnulib-cache.m4 files, if meaningful.
63836
63837 2005-08-31  Bruno Haible  <bruno@clisp.org>
63838
63839         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
63840         (import): Set seen_libtool when we see gl_LIBTOOL.
63841
63842 2005-08-31  Bruno Haible  <bruno@clisp.org>
63843
63844         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
63845         declaration macro definitions from generated gnulib.m4.
63846
63847 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
63848
63849         * lib/iconvme.h: Add prototype for iconv_alloc.
63850
63851 2005-08-29  Simon Josefsson  <jas@extundo.com>
63852
63853         * lib/iconvme.c: Fix errno.
63854
63855 2005-08-29  Bruno Haible  <bruno@clisp.org>
63856
63857         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
63858         that it works when the directory contains spaces.
63859
63860 2005-08-29  Bruno Haible  <bruno@clisp.org>
63861
63862         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
63863
63864 2005-08-29  Bruno Haible  <bruno@clisp.org>
63865
63866         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
63867         Emit more advice.
63868
63869 2005-08-29  Bruno Haible  <bruno@clisp.org>
63870         and Stepan Kasal  <kasal@ucw.cz>
63871
63872         * check-module: If more parameters are given, check each of them
63873         separately; add more exceptions, as noted by Jim Meyering.
63874         (check_module): New procedure.
63875         (%exempt_header): Now contains all exceptions.
63876
63877 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
63878
63879         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
63880
63881 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63882
63883         * lib/iconvme.c: Split iconv_string into iconv_alloc.
63884
63885 2005-08-28  Bruno Haible  <bruno@clisp.org>
63886
63887         * m4/gnulib-tool.m4: New file.
63888
63889 2005-08-27  Jim Meyering  <jim@meyering.net>
63890
63891         * modules/unistd-safer (Files): Add pipe-safer.c.
63892         * modules/fcntl-safer (Files): Add creat-safer.c.
63893
63894 2005-08-27  Jim Meyering  <jim@meyering.net>
63895
63896         * m4/stdlib-safer.m4: New file.  From coreutils.
63897         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
63898         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
63899         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
63900         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
63901         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
63902
63903 2005-08-27  Jim Meyering  <jim@meyering.net>
63904
63905         * lib/fopen-safer.c: Merge minor changes from coreutils.
63906         * lib/dup-safer.c: Likewise.
63907         * lib/fd-safer.c: Likewise.
63908
63909         Merge from coreutils.
63910         * lib/stdio--.h: New file.
63911         * lib/stdlib--.h: New file.
63912         * lib/mkstemp-safer.c: New file.
63913
63914         GNU tar needs these.
63915         * lib/pipe-safer.c: New file.
63916         * lib/creat-safer.c: New file.
63917         * lib/fcntl--.h (creat): Define to creat_safer.
63918         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
63919         * lib/unistd--.h (pipe): Define to pipe_safer.
63920         * lib/unistd-safer.h: Declare pipe_safer.
63921
63922 2005-08-26  Simon Josefsson  <jas@extundo.com>
63923
63924         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
63925         Haible <bruno@clisp.org>.
63926
63927 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
63928
63929         * lib/regex_internal.h: Remove all references to
63930         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
63931         or better.
63932         (bitset_not, bitset_merge, bitset_not_merge):
63933         (bitset_mask, re_string_allocate, re_string_construct):
63934         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
63935         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
63936         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
63937         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
63938         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63939         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63940         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
63941         (re_acquire_state_context):
63942         Remove unnecessary forward decls.
63943         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
63944         Put __attribute at function definition,
63945         now that the function decl has been removed.
63946         * lib/regex_internal.c (re_string_peek_byte_case):
63947         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
63948         Likewise.
63949
63950 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
63951
63952         * m4/regex.m4: Add AC_PREREQ(2.50).
63953         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
63954
63955 2005-08-25  Simon Josefsson  <jas@extundo.com>
63956
63957         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
63958         __fsetlocking.
63959
63960 2005-08-25  Simon Josefsson  <jas@extundo.com>
63961
63962         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
63963         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
63964         GLIBC specific code.
63965
63966 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63967
63968         Make regex safe for g++.  This fixes one real bug (an "err"
63969         that should have been "*err").  g++ problem reported by
63970         Sam Steingold.
63971         * lib/regex_internal.h (re_calloc): New macro, consistent with
63972         re_malloc etc.  All callers of calloc changed to use re_calloc.
63973         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
63974         not int.  All callers changed.
63975         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
63976         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
63977         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
63978         (find_recover_state): Change "err" to "*err"; this fixes what
63979         appears to be a real bug.
63980         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
63981         versus int.
63982
63983 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63984
63985         * modules/regex (Depends-on): Add malloc, since the code
63986         assumes that !malloc(0) means failure.
63987
63988 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63989
63990         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
63991
63992         alloca modernization/simplification for regex.
63993         * lib/regex.c: Remove portability cruft for alloca.  This no longer
63994         needs to be at the start of the file, and can be moved into
63995         regex_internal.h and simplified.
63996         * lib/regex_internal.h: Include <alloca.h>.
63997         (__libc_use_alloca) [!defined _LIBC]: New macro.
63998         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
63999         now works outside glibc.
64000
64001 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64002
64003         * config/srclist.txt: Add glibc bugs 1241, 1245.
64004
64005 2005-08-25  Jim Meyering  <jim@meyering.net>
64006
64007         * lib/open-safer.c: Include <config.h>.
64008         Otherwise, we'd lose LARGEFILE support in any file using
64009         e.g. "fcntl--.h"
64010
64011 2005-08-25  Bruno Haible  <bruno@clisp.org>
64012
64013         * m4/minmax.m4: Require autoconf 2.52.
64014         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64015         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64016         alternatives of translit over the alphabet.
64017         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64018
64019 2005-08-24  Simon Josefsson  <jas@extundo.com>
64020
64021         * tests/test-getpass.c: New file.
64022
64023 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64024
64025         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64026         for GNU regex features.
64027
64028 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64029
64030         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64031         * lib/regex.h (regerror): Likewise.
64032
64033         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64034         requires this.  (The code never needed it.)
64035
64036         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64037         All uses of recently-renamed identifiers changed to use the new,
64038         POSIX-compliant names.  The code will build and run just fine
64039         without these changes, but it's better to eat our own dog food
64040         and use the standard-conforming names.
64041
64042         * lib/regex.h: Fix a multitude of POSIX name space violations.
64043         These changes have an effect only for programs that define
64044         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64045         do not change anything for programs compiled in the normal way.
64046         Also, there is no effect on the ABI.
64047
64048         (_REGEX_SOURCE): New macro.
64049         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64050         defined and _GNU_SOURCE is not; this fixes a name space violation.
64051
64052         Rename the following macros to obey POSIX requirements.
64053         The old names are still visible as macros if _REGEX_SOURCE is defined.
64054         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64055         RE_BACKSLASH_ESCAPE_IN_LISTS.
64056         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64057         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64058         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64059         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64060         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64061         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64062         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64063         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64064         (REG_INTERVALS): renamed from RE_INTERVALS.
64065         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64066         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64067         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64068         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64069         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64070         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64071         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64072         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64073         RE_UNMATCHED_RIGHT_PAREN_ORD.
64074         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64075         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64076         (REG_DEBUG): renamed from RE_DEBUG.
64077         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64078         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64079         unusual, since we can't clash with the POSIX REG_ICASE.
64080         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64081         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64082         (REG_NO_SUB): renamed from RE_NO_SUB.
64083         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64084         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64085         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64086         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64087         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64088         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64089         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64090         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64091         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64092         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64093         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64094         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64095         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64096         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64097         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64098         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64099         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64100         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64101         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64102         (REG_FIXED): Renamed from REGS_FIXED.
64103         (REG_NREGS): Renamed from RE_NREGS.
64104
64105         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64106         of other REG_* macros, since POSIX says the user is allowed to
64107         #undef these macros selectively.
64108
64109         (reg_errcode_t): Update comment stating what other tables need
64110         to be consistent.
64111
64112         Rename the following enum values to obey POSIX requirements.
64113         The old names are still visible as macros.
64114         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64115         is not defined, since GNU is supposed to be a superset of POSIX as
64116         much as possible, and since we want reg_errcode_t to be a signed
64117         type for implementation consistency.
64118         (_REG_NOERROR): Renamed from REG_NOERROR.
64119         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64120         (_REG_BADPAT): Renamed from REG_BADPAT.
64121         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64122         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64123         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64124         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64125         (_REG_EBRACK): Renamed from REG_EBRACK.
64126         (_REG_EPAREN): Renamed from REG_EPAREN.
64127         (_REG_EBRACE): Renamed from REG_EBRACE.
64128         (_REG_BADBR): Renamed from REG_BADBR.
64129         (_REG_ERANGE): Renamed from REG_ERANGE.
64130         (_REG_ESPACE): Renamed from REG_ESPACE.
64131         (_REG_BADRPT): Renamed from REG_BADRPT.
64132         (_REG_EEND): Renamed from REG_EEND.
64133         (_REG_ESIZE): Renamed from REG_ESIZE.
64134         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64135         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64136         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64137         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64138         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64139
64140         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64141         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64142         changed.  But support the old name if the new one is not defined
64143         and if _REGEX_SOURCE.
64144
64145         Change the following member names in struct re_pattern_buffer.
64146         The old names are still supported if !_REGEX_SOURCE.
64147         The new names are always supported, regardless of _REGEX_SOURCE.
64148         (re_buffer): Renamed from buffer.
64149         (re_allocated): Renamed from allocated.
64150         (re_used): Renamed from used.
64151         (re_syntax): Renamed from syntax.
64152         (re_fastmap): Renamed from fastmap.
64153         (re_translate): Renamed from translate.
64154         (re_can_be_null): Renamed from can_be_null.
64155         (re_regs_allocated): Renamed from regs_allocated.
64156         (re_fastmap_accurate): Renamed from fastmap_accurate.
64157         (re_no_sub): Renamed from no_sub.
64158         (re_not_bol): Renamed from not_bol.
64159         (re_not_eol): Renamed from not_eol.
64160         (re_newline_anchor): Renamed from newline_anchor.
64161
64162         Change the following member names in struct re_registers.
64163         The old names are still supported if !_REGEX_SOURCE.
64164         The new names are always supported, regardless of _REGEX_SOURCE.
64165         (rm_num_regs): Renamed from num_regs.
64166         (rm_start): Renamed from start.
64167         (rm_end): Renamed from end.
64168
64169         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64170         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64171         Prepend __ to parameter names.
64172
64173         Undo yesterday's changes.
64174
64175 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64176
64177         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64178         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64179         lib/regex.c.
64180
64181 2005-08-24  Jim Meyering  <jim@meyering.net>
64182
64183         Sync from coreutils.
64184         * m4/fcntl-safer.m4: New file.
64185
64186         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64187         and object files for this module.
64188
64189 2005-08-24  Jim Meyering  <jim@meyering.net>
64190
64191         Sync from coreutils.
64192         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64193
64194 2005-08-24  Jim Meyering  <jim@meyering.net>
64195
64196         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64197         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64198
64199 2005-08-24  Jim Meyering  <jim@meyering.net>
64200
64201         * modules/fcntl-safer: New module.
64202         * modules/fts (Depends-on): Add fcntl-safer.
64203         * MODULES.html.sh (File descriptor based Input/Output):
64204         Add fcntl-safer.
64205
64206 2005-08-24  Bruno Haible  <bruno@clisp.org>
64207
64208         Support for unit test modules.
64209         * modules/README: Mention tests modules.
64210         * modules/TEMPLATE-TESTS: New file.
64211         * gnulib-tool: New options --extract-tests-module, --with-tests and
64212         --tests-base (unused for the moment).
64213         (testsbase, inctests): New variables.
64214         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64215         (func_verify_module): Exclude TEMPLATE-TESTS.
64216         (func_verify_nontests_module, func_verify_tests_module): New functions.
64217         (func_get_dependencies): Add implicit dependency for tests modules.
64218         (func_get_tests_module): New function.
64219         (func_modules_transitive_closure): When --with-tests was specified,
64220         include the unit tests as well, unless explicitly avoided.
64221         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64222         (func_emit_tests_Makefile_am): New function.
64223         (func_create_testdir): When --with-tests was specified, emit a
64224         tests/ directory.
64225         * MODULES.html.sh (Future developments): Update.
64226
64227 2005-08-24  Bruno Haible  <bruno@clisp.org>
64228
64229         * modules/tls-tests: New file.
64230         * tests/test-tls.c: New file, from GNU gettext.
64231
64232 2005-08-24  Bruno Haible  <bruno@clisp.org>
64233
64234         * modules/lock-tests: New file.
64235         * tests/test-lock.c: New file, from GNU gettext.
64236
64237 2005-08-24  Bruno Haible  <bruno@clisp.org>
64238
64239         * lib/lock.h: Add multiple inclusion guard.
64240         * lib/tls.h: Add multiple inclusion guard.
64241
64242 2005-08-24  Bruno Haible  <bruno@clisp.org>
64243
64244         * gnulib-tool: Add support for the --aux-dir option to
64245         --create-testdir, --create-megatestdir, --test, --megatest.
64246         (func_create_testdir, func_create_megatestdir): Optionally emit a
64247         AC_CONFIG_AUX_DIR directive.
64248         (create-testdir, create-megatestdir, test, megatest): Provide a
64249         default value for $auxdir.
64250
64251 2005-08-24  Bruno Haible  <bruno@clisp.org>
64252
64253         * gnulib-tool (import): Use compound statement instead of subshell
64254         where possible.
64255
64256 2005-08-24  Bruno Haible  <bruno@clisp.org>
64257
64258         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64259
64260 2005-08-24  Bruno Haible  <bruno@clisp.org>
64261
64262         * gnulib-tool (func_version): Update.
64263
64264 2005-08-24  Bruno Haible  <bruno@clisp.org>
64265
64266         * gnulib-tool (func_import, func_create_testdir,
64267         func_create_megatestdir): Quote all autoconf macro arguments.
64268
64269 2005-08-24  Bruno Haible  <bruno@clisp.org>
64270
64271         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64272         option --force, because --force causes the aclocal.m4 of each
64273         subdirectory to be newer than the corresponding config.h.in.
64274
64275 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64276
64277         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64278         All contents moved to gl_REGEX.
64279         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64280         assume that it does.
64281
64282 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64283
64284         * lib/regex.h (REG_NOSYS)
64285         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64286         Define, since POSIX requires it as of 2001.
64287         (_REG_ENOSYS)
64288         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64289         New private symbol, used to keep the enum signed in all cases.
64290         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64291         Youngman in
64292         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64293
64294         * lib/regex_internal.c (re_string_skip_chars, register_state):
64295         (calc_state_hash):
64296         Remove forward decls; no longer needed now that we use prototypes.
64297         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64298         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64299         (clean_state_log_if_needed): Likewise.
64300
64301 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         * config/srclist.txt: Add glibc bugs 1231-1233.
64304
64305 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64306
64307         Fix problems reported by Sam Steingold in
64308         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64309         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64310         assumed that reg_errcode_t is a signed type, which is not
64311         necessarily true if _XOPEN_SOURCE is not defined.
64312         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64313         since some compilers warn about it otherwise.
64314
64315 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64316
64317         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64318         (init_word_char, create_initial_state, duplicate_node_closure):
64319         (fetch_token, peek_token_bracket, build_range_exp):
64320         (build_collating_symbol): Remove forward decls; no longer needed
64321         now that we use prototypes.
64322
64323         * lib/regcomp.c:
64324         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64325         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64326         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64327         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64328         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64329         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64330         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64331         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64332         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64333         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64334         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64335         (build_charclass, build_charclass_op, fetch_number, create_tree):
64336         (create_token_tree, mark_opt_subexp, duplicate_tree):
64337         Use prototypes rather than old-style definitions.
64338
64339         * lib/regex_internal.c:
64340         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64341         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64342         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64343         (re_string_reconstruct, re_string_peek_byte_case):
64344         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64345         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64346         (re_node_set_init_copy, re_node_set_add_intersect):
64347         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64348         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64349         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64350         (re_acquire_state, re_acquire_state_context, register_state):
64351         (create_ci_newstate, create_cd_newstate, free_state):
64352         Likewise.
64353         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64354         re_search_2):
64355         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64356         (re_search_internal, prune_impossible_nodes):
64357         (acquire_init_state_context, check_matching, static):
64358         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64359         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64360         (update_regs, sift_states_backward, build_sifted_states):
64361         (clean_state_log_if_needed, merge_state_array):
64362         (update_cur_sifted_state, add_epsilon_src_nodes):
64363         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64364         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64365         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64366         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64367         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64368         (check_arrival, check_arrival_add_next_nodes):
64369         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64370         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64371         (check_node_accept_bytes, check_node_accept, extend_buffers):
64372         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64373         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64374         (sift_ctx_init):
64375         Likewise.
64376
64377         * lib/regex_internal.h:
64378         (re_string_allocate, re_string_construct, re_string_reconstruct):
64379         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64380         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64381         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64382         (re_string_context_at, re_string_peek_byte_case):
64383         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64384         is defined, since we now use prototypes always.
64385
64386         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64387         C89 or better.  All uses removed.
64388
64389 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64390
64391         * config/srclist.txt: Add glibc bugs 1220-1227.
64392
64393 2005-08-20  Jim Meyering  <jim@meyering.net>
64394
64395         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64396         of unused local, dfa.
64397
64398 2005-08-20  Bruno Haible  <bruno@clisp.org>
64399
64400         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64401
64402 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64403
64404         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64405         (re_node_set_insert_last, re_dfa_add_node):
64406         Rename local variables to avoid GCC shadowing warnings.
64407
64408 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64409
64410         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64411         [defined lint]: Suppress bogus uninitialized-variable warnings.
64412
64413         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64414         and let the caller return REG_ESPACE if out of space.  This
64415         removes an uninitialied-variable warning with GCC 4.0.1, and also
64416         avoids taking the address of a local variable.  All callers
64417         changed.
64418
64419 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
64422         $LIBCSRC/posix/regexec.c.
64423         Add glibc bug 1217 for regcomp.c.
64424
64425 2005-08-19  Jim Meyering  <jim@meyering.net>
64426
64427         * lib/regexec.c (proceed_next_node): Redo local variables to
64428         avoid GCC shadowing warnings.
64429
64430 2005-08-18  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/strstr.c (strstr): Fix return value in multibyte case.
64433         * lib/strcasestr.c (strcasestr): Likewise.
64434
64435 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
64438
64439 2005-08-17  Jim Meyering  <jim@meyering.net>
64440
64441         Make the %s format (seconds since the epoch) work for a negative
64442         number and when used with a zero-padded field width, e.g. %015s.
64443
64444         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
64445         label so that it precedes the code to set `digits'.  Otherwise,
64446         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
64447         print `00-22'.  Now, it prints `-0022', as it should.
64448
64449 2005-08-17  Bruno Haible  <bruno@clisp.org>
64450
64451         * modules/strstr (Files): Add m4/mbrtowc.m4.
64452         (Depends-on): Add mbuiter.
64453
64454 2005-08-17  Bruno Haible  <bruno@clisp.org>
64455
64456         * modules/strcasestr: New file.
64457         * MODULES.html.sh (String handling, based on ANSI C 89): Add
64458         strcasestr.
64459
64460 2005-08-17  Bruno Haible  <bruno@clisp.org>
64461
64462         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
64463
64464 2005-08-17  Bruno Haible  <bruno@clisp.org>
64465
64466         * modules/mbuiter: New file.
64467         * MODULES.html.sh (Extended multibyte and wide character utilities):
64468         Add mbuiter.
64469
64470 2005-08-17  Bruno Haible  <bruno@clisp.org>
64471
64472         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
64473         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
64474
64475 2005-08-17  Bruno Haible  <bruno@clisp.org>
64476
64477         * m4/strcasestr.m4: New file.
64478
64479 2005-08-17  Bruno Haible  <bruno@clisp.org>
64480
64481         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
64482         * lib/strstr.c: Completely rewritten, with multibyte locale support.
64483
64484 2005-08-17  Bruno Haible  <bruno@clisp.org>
64485
64486         * lib/strcasestr.h: New file.
64487         * lib/strcasestr.c: New file.
64488
64489 2005-08-17  Bruno Haible  <bruno@clisp.org>
64490
64491         * lib/strcasecmp.c: Use mbuiter.h.
64492
64493 2005-08-17  Bruno Haible  <bruno@clisp.org>
64494
64495         * lib/mbuiter.h: New file.
64496
64497 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64498
64499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
64500         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
64501         and gl_GETOPT are both invoked via different paths (as happens
64502         with GNU tar CVS because it uses both argp and getopt), the former
64503         wins.
64504
64505 2005-08-16  Bruno Haible  <bruno@clisp.org>
64506
64507         * modules/tls: New file.
64508         * MODULES.html.sh (Multithreading): Add tls.
64509
64510 2005-08-16  Bruno Haible  <bruno@clisp.org>
64511
64512         * modules/strnlen1: New file.
64513         * MODULES.html.sh (String handling): Add strnlen1.
64514
64515 2005-08-16  Bruno Haible  <bruno@clisp.org>
64516
64517         * modules/strcase (Files): Add m4/mbrtowc.m4.
64518         (Depends-on): Add strnlen1, mbchar.
64519
64520 2005-08-16  Bruno Haible  <bruno@clisp.org>
64521
64522         * modules/mbiter: New file.
64523         * MODULES.html.sh (Extended multibyte and wide character utilities):
64524         Add mbiter.
64525
64526 2005-08-16  Bruno Haible  <bruno@clisp.org>
64527
64528         * modules/mbfile: New file.
64529         * MODULES.html.sh (Extended multibyte and wide character utilities):
64530         Add mbfile.
64531
64532 2005-08-16  Bruno Haible  <bruno@clisp.org>
64533
64534         * modules/mbchar: New file.
64535         * MODULES.html.sh (Extended multibyte and wide character utilities):
64536         New section.
64537
64538 2005-08-16  Bruno Haible  <bruno@clisp.org>
64539
64540         * m4/tls.m4: New file, from GNU gettext.
64541
64542 2005-08-16  Bruno Haible  <bruno@clisp.org>
64543
64544         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
64545         always.
64546         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
64547
64548 2005-08-16  Bruno Haible  <bruno@clisp.org>
64549
64550         * m4/mbiter.m4: New file.
64551
64552 2005-08-16  Bruno Haible  <bruno@clisp.org>
64553
64554         * m4/mbfile.m4: New file.
64555
64556 2005-08-16  Bruno Haible  <bruno@clisp.org>
64557
64558         * m4/mbchar.m4: New file.
64559
64560 2005-08-16  Bruno Haible  <bruno@clisp.org>
64561
64562         * lib/tls.h: New file, from GNU gettext.
64563         * lib/tls.c: New file, from GNU gettext.
64564
64565 2005-08-16  Bruno Haible  <bruno@clisp.org>
64566
64567         * lib/strnlen1.h: New file.
64568         * lib/strnlen1.c: New file.
64569
64570 2005-08-16  Bruno Haible  <bruno@clisp.org>
64571
64572         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
64573         (mbi_init): Update.
64574         (mbi_avail, mbi_advance): Let the iteration end before the terminating
64575         NUL byte, not after it.
64576
64577 2005-08-16  Bruno Haible  <bruno@clisp.org>
64578
64579         * lib/strcase.h (strcasecmp): Add note in comments.
64580         * lib/strncasecmp.c: Use code from strcasecmp.c.
64581         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
64582         (strcasecmp): Work correctly in multibyte locales.
64583
64584 2005-08-16  Bruno Haible  <bruno@clisp.org>
64585
64586         * lib/mbiter.h: New file.
64587
64588 2005-08-16  Bruno Haible  <bruno@clisp.org>
64589
64590         * lib/mbfile.h: New file.
64591
64592 2005-08-16  Bruno Haible  <bruno@clisp.org>
64593
64594         * lib/mbchar.h: New file.
64595         * lib/mbchar.c: New file.
64596
64597 2005-08-16  Bruno Haible  <bruno@clisp.org>
64598
64599         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
64600         the valid ones. Makes the comparison operations transitive:
64601         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
64602         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
64603
64604 2005-08-15  Simon Josefsson  <jas@extundo.com>
64605
64606         * modules/ssize_t (License): Change to 'unlimited'.
64607
64608         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
64609
64610 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64611
64612         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
64613         Add comments for each pending glibc patch.
64614
64615 2005-08-15  Bruno Haible  <bruno@clisp.org>
64616
64617         * lib/regex.h (__restrict_arr): Don't define to __restrict if
64618         __cplusplus is defined.
64619
64620 2005-08-14  Jim Meyering  <jim@meyering.net>
64621
64622         Sync from coreutils.
64623
64624         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
64625         Use the hash-table-based cycle-detection code not just when
64626         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
64627         Reported by James Youngman in
64628         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
64629         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
64630         FTS_TIGHT_CYCLE_CHECK.
64631         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
64632         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
64633         once again.
64634         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
64635         * lib/fts.c (fd_safer): Remove decl.
64636         Include fcntl--.h rather than unistd-safer.h
64637         (fts_safe_changedir): Don't call fd_safer; no longer needed
64638         now that we include fcntl--.h.
64639
64640 2005-08-12  Simon Josefsson  <jas@extundo.com>
64641
64642         * modules/getndelim2: Use ssize_t module.
64643         * modules/getnline: Likewise.
64644         * modules/safe-read: Likewise.
64645         * modules/xreadlink: Likewise.
64646
64647         * modules/ssize_t: New file.
64648
64649 2005-08-12  Simon Josefsson  <jas@extundo.com>
64650
64651         * m4/readline.m4: Look for termcap, curses or ncurses if required.
64652
64653 2005-08-12  Simon Josefsson  <jas@extundo.com>
64654
64655         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64656         ssize_t.
64657
64658 2005-08-12  Simon Josefsson  <jas@extundo.com>
64659
64660         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
64661         readline, getdelim and check_version.
64662         (Support for systems lacking ISO C 99: Sizes of integer types):
64663         Add size_max.
64664
64665 2005-08-12  Bruno Haible  <bruno@clisp.org>
64666
64667         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
64668
64669 2005-08-11  Simon Josefsson  <jas@extundo.com>
64670
64671         * modules/readline: New file.
64672
64673         * modules/strnlen (Files): Add strnlen.h.
64674
64675 2005-08-11  Simon Josefsson  <jas@extundo.com>
64676
64677         * m4/readline.m4: New file.
64678
64679 2005-08-11  Simon Josefsson  <jas@extundo.com>
64680
64681         * lib/readline.h, readline.c: New file.
64682
64683 2005-08-11  Simon Josefsson  <jas@extundo.com>
64684
64685         * doc/gnulib.texi (Initial import, Finishing touches): Mention
64686         gl_AVOID.
64687
64688 2005-08-11  Bruno Haible  <bruno@clisp.org>
64689
64690         * lib/strnlen.h (strnlen): Change parameter name to match comment.
64691
64692 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
64693
64694         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
64695
64696 2005-08-10  Simon Josefsson  <jas@extundo.com>
64697
64698         * tests/test-iconvme.c: New file.
64699
64700 2005-08-10  Simon Josefsson  <jas@extundo.com>
64701
64702         * m4/strnlen.m4: New file.
64703
64704         * m4/strndup.m4: Don't check for strnlen declaration, done in
64705         strnlen.m4.
64706
64707 2005-08-10  Simon Josefsson  <jas@extundo.com>
64708
64709         * lib/strndup.c: Use strnlen.h.
64710
64711         * lib/strnlen.h: New file.
64712
64713 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64714
64715         * README: Typos.
64716
64717 2005-08-02  Simon Josefsson  <jas@extundo.com>
64718
64719         * modules/readline: New file.
64720
64721 2005-08-02  Simon Josefsson  <jas@extundo.com>
64722
64723         * modules/getdelim: New file.
64724
64725         * modules/getline: Rewrite, don't use getndelim2.
64726
64727 2005-08-02  Simon Josefsson  <jas@extundo.com>
64728
64729         * m4/getline.m4: Separate out getdelim stuff into separate module.
64730
64731         * m4/getdelim.m4: New file.
64732
64733 2005-08-02  Simon Josefsson  <jas@extundo.com>
64734
64735         * lib/getline.h, getline.c: Rewrite.
64736
64737         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
64738
64739 2005-07-31  Bruno Haible  <bruno@clisp.org>
64740
64741         * lib/lock.h (gl_lock_initializer): New macro.
64742         (gl_lock_define_initialized): Use it.
64743         (gl_rwlock_initializer): New macro.
64744         (gl_rwlock_define_initialized): Use it.
64745         (gl_recursive_lock_initializer): New macro.
64746         (gl_recursive_lock_define_initialized): Use it.
64747
64748 2005-07-30  Karl Berry  <karl@gnu.org>
64749
64750         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
64751         Report from Ben Pfaff, regarding getopt.
64752
64753 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
64754
64755         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
64756         normal way.
64757         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
64758         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
64759         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
64760         (gl_GETOPT): Use the new macros.  Most of the implementation
64761         is moved to the new macros.  This is for programs like Emacs
64762         that don't want all the functionality of gl_GETOPT.
64763
64764 2005-07-26  Bruno Haible  <bruno@clisp.org>
64765
64766         * m4/lock.m4: Update from GNU gettext.
64767
64768 2005-07-26  Bruno Haible  <bruno@clisp.org>
64769
64770         * lib/lock.h: Update from GNU gettext.
64771         * lib/lock.c: Update from GNU gettext.
64772
64773 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
64774
64775         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
64776         obsolescent AC_TRY_RUN.  Include the default includes files, for
64777         'exit'.
64778
64779 2005-07-24  Bruno Haible  <bruno@clisp.org>
64780
64781         * modules/visibility: New file.
64782         * MODULES.html.sh (Misc): Add visibility.
64783
64784 2005-07-24  Bruno Haible  <bruno@clisp.org>
64785
64786         * m4/visibility.m4: New file.
64787
64788 2005-07-24  Bruno Haible  <bruno@clisp.org>
64789
64790         * doc/visibility.texi: New file.
64791
64792 2005-07-22  Bruno Haible  <bruno@clisp.org>
64793
64794         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
64795         $(ALLOCA_H), redundant through BUILT_SOURCES.
64796         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
64797         redundant through BUILT_SOURCES.
64798         * modules/byteswap (Makefile.am): Remove explicit dependency on
64799         $(BYTESWAP_H), redundant through BUILT_SOURCES.
64800         * modules/fnmatch (Makefile.am): Remove explicit dependency on
64801         $(FNMATCH_H), redundant through BUILT_SOURCES.
64802         * modules/getopt (Makefile.am): Remove explicit dependency on
64803         $(GETOPT_H), redundant through BUILT_SOURCES.
64804         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
64805         redundant through BUILT_SOURCES.
64806         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
64807         redundant through BUILT_SOURCES.
64808         * modules/stdbool (Makefile.am): Remove explicit dependency on
64809         $(STDBOOL_H), redundant through BUILT_SOURCES.
64810         * modules/stdint (Makefile.am): Remove explicit dependency on
64811         $(STDINT_H), redundant through BUILT_SOURCES.
64812         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
64813         Remove explicit dependency on $(SYSEXITS_H).
64814         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
64815
64816 2005-07-18  Simon Josefsson  <jas@extundo.com>
64817
64818         * lib/check-version.c (check_version): Accept identical versions too.
64819
64820 2005-07-18  Bruno Haible  <bruno@clisp.org>
64821
64822         * modules/lock: New file.
64823         * MODULES.html.sh (Multithreading): New section.
64824
64825 2005-07-18  Bruno Haible  <bruno@clisp.org>
64826
64827         * m4/lock.m4: New file, from GNU gettext.
64828
64829 2005-07-18  Bruno Haible  <bruno@clisp.org>
64830
64831         * lib/lock.h: New file, from GNU gettext.
64832         * lib/lock.c: New file, from GNU gettext.
64833
64834 2005-07-18  Bruno Haible  <bruno@clisp.org>
64835
64836         * lib/lock.h (gl_once_t): New type.
64837         (gl_once_define, gl_once): New macros.
64838         * lib/lock.c (fresh_once): New variable.
64839         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
64840         functions.
64841
64842 2005-07-16  Simon Josefsson  <jas@extundo.com>
64843
64844         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
64845         workaround, suggested by Bruno.
64846
64847 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64848
64849         * modules/xalloc (Depends-on): Add xalloc-die.
64850         * modules/xvasprintf (Depends-on): Add xalloc-die.
64851
64852 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64853
64854         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
64855         with a minor change.
64856
64857 2005-07-15  Bruno Haible  <bruno@clisp.org>
64858
64859         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
64860         When using lib/poll.c, define poll as rpl_poll.
64861
64862 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * modules/argp (Depends-on): Remove unlocked-io.
64865
64866 2005-07-14  Derek Price  <derek@ximbiot.com>
64867
64868         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
64869         for glob symlink bug.
64870
64871 2005-07-14  Bruno Haible  <bruno@clisp.org>
64872
64873         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
64874         Instead, test for *_unlocked function declarations directly.
64875
64876 2005-07-11  Simon Josefsson  <jas@extundo.com>
64877
64878         * modules/size_max: New file.
64879
64880         * modules/xsize: Depend on size_max module for size_max.m4.
64881
64882 2005-07-11  Simon Josefsson  <jas@extundo.com>
64883
64884         * lib/size_max.h: New file.
64885
64886 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
64889         copyright symbol and the year.
64890         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
64891         (version_etc_va): Use parameterized copyright notice.
64892         Reword to conform to the current GNU coding standards.
64893
64894 2005-07-11  Karl Berry  <karl@gnu.org>
64895
64896         * doc/gnulib.texi (Quoting): new node.
64897         (Initial import): more info, from Patrice.
64898
64899 2005-07-11  Bruno Haible  <bruno@clisp.org>
64900
64901         * gnulib-tool (func_usage): Document option --avoid.
64902         (Command line options): Handle --avoid.
64903         (func_acceptable): New function.
64904         (func_modules_transitive_closure): Use it.
64905
64906 2005-07-11  Bruno Haible  <bruno@clisp.org>
64907
64908         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
64909         Reported by Jim Meyering.
64910
64911 2005-07-10  Bruno Haible  <bruno@clisp.org>
64912
64913         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
64914         Needed when size_t is smaller than 'unsigned int'.
64915         Reported by Paul Eggert.
64916
64917 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64918
64919         * modules/argp (Depends-on): Add unlocked-io
64920
64921 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64922
64923         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
64924         block of defines.
64925
64926 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64927
64928         * config/srclist.txt: Comment out regcomp.c, since we have a porting
64929         fix now.
64930
64931 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
64932         and Paul Eggert  <eggert@cs.ucla.edu>
64933
64934         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
64935         in wint_t, not wchar_t.  Remove now-unnecessary cast.
64936
64937 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64938
64939         * modules/regex (Files): Add lib/regex_internal.c,
64940         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
64941         (Depends-on): Add extensions.
64942         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
64943
64944 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64945
64946         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
64947         pathconf.
64948         * m4/same.m4 (gl_SAME): Likewise.
64949         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
64950
64951         * m4/regex.m4: Adjust to new libc regex implementation.
64952         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
64953         all the .c and .h parts of (the new) regex.
64954         Quote the m4 stuff better.
64955         Check for RE_ICASE bug of old gnulib.
64956         Check for REG_STARTEND of recent libc.
64957         Rename local variables from jm_* to gl_*.
64958         Quote operand of "test -f".
64959         Say "recent enough" version of libc, not "version 2".
64960         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
64961         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
64962         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
64963         Remove check for btowc, isascii.
64964         Require AM_LANGINFO_CODESET.
64965
64966 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64967
64968         * lib/regex.c, regex.h: Sync from libc.
64969         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
64970         * lib/regexec.c:
64971         New files, synced from libc, except that regex_internal.h
64972         currently has a small porting fix.
64973
64974 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64975
64976         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
64977         regex_internal.c, regexec.c.
64978         Add regex_internal.h too, but as a comment, since the libc version
64979         is currently broken in gnulib mode.
64980
64981 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64982
64983         Support programs like Emacs that use gnulib but not gettext.
64984         * MODULES.html.sh (Internationalization functions): Add gettext-h.
64985         * modules/gettext-h: New file.
64986         * modules/gettext (Files): Remove lib/gettext.h.
64987         (Depends-on): Add gettext-h.
64988         (Makefile.am): Remove lib_SOURCES.
64989         * modules/argmatch, modules/c-stack, modules/closeout:
64990         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
64991         * modules/execute, modules/file-type, modules/getaddrinfo:
64992         * modules/getopt, modules/human, modules/javacomp:
64993         * modules/javaexec, modules/mkdir-p, modules/obstack:
64994         * modules/openat, modules/pagealign_alloc, modules/pipe:
64995         * modules/quotearg, modules/regex, modules/rpmatch:
64996         * modules/unicodeio, modules/userspec, modules/version-etc:
64997         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
64998         * modules/xsetenv:
64999         Depend on gettext-h, not gettext.
65000
65001 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * gnulib-tool (func_import): Add support for 'public domain' license.
65004         * modules/alloca, modules/atexit, modules/memmove:
65005         Now public domain, not GPL.
65006         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65007         * modules/realloc, modules/strerror, modules/strtod:
65008         Now LGPL, not GPL.
65009
65010 2005-07-05  Bruno Haible  <bruno@clisp.org>
65011
65012         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65013         autoconf CVS. Needed for mingw.
65014
65015 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65016
65017         Remove the dependency of the strftime module on the tzset module.
65018         * modules/strftime (Depends-on): Remove dependency on tzset.
65019
65020 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65021
65022         Remove the dependency of the strftime module on the tzset module.
65023         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65024         gl_FUNC_TZSET_CLOBBER.
65025
65026 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65027
65028         Remove the dependency of the strftime module on the tzset module.
65029         * lib/strftime.c (my_strftime)
65030         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65031         Copy the input structure, to work around some of the bug with
65032         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65033         Solaris releases, you should also use the tzset module, but we won't
65034         require it as a dependency any more since we don't want LGPLed code
65035         to depend on GPLed code.
65036
65037 2005-07-02  Jim Meyering  <jim@meyering.net>
65038
65039         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65040         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65041         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65042         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65043
65044 2005-07-02  Jim Meyering  <jim@meyering.net>
65045
65046         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65047
65048 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65049
65050         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65051         declares only 'struct timespec;' (!).
65052
65053 2005-07-01  Jim Meyering  <jim@meyering.net>
65054
65055         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65056         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65057         * lib/save-cwd.c, tempname.c:
65058         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65059         and don't include <sys/file.h>).
65060
65061 2005-06-29  Jim Meyering  <jim@meyering.net>
65062
65063         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65064         type name.  Use the variable name instead.
65065         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65066         Likewise.
65067
65068 2005-06-28  Simon Josefsson  <jas@extundo.com>
65069
65070         * modules/check-version (Files): Add check-version.m4.
65071
65072 2005-06-28  Simon Josefsson  <jas@extundo.com>
65073
65074         * m4/check-version.m4: New file, suggested by Jim Meyering
65075         <jim@meyering.net>.
65076
65077 2005-06-28  Simon Josefsson  <jas@extundo.com>
65078
65079         * lib/check-version.h, lib/check-version.c: New files.
65080
65081 2005-06-28  Simon Josefsson  <jas@extundo.com>
65082
65083         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65084         collision with global variable.  Better indentation.  Don't
65085         increment buffer pointer beyond buffer end.  Based on comments
65086         from Paul Eggert <eggert@cs.ucla.edu>.
65087
65088         * lib/base64.h: Indent.
65089
65090 2005-06-28  Simon Josefsson  <jas@extundo.com>
65091
65092         * doc/gnulib.texi (Library version handling): New section.
65093
65094 2005-06-28  Jim Meyering  <jim@meyering.net>
65095
65096         * check-module (find_included_lib_files): Hard-code another
65097         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65098         but modules/fts-lgpl (correctly) does not list those files.
65099
65100         * modules/canonicalize (Files): Add lib/pathmax.h.
65101
65102 2005-06-25  Simon Josefsson  <jas@extundo.com>
65103
65104         * modules/check-version: New file.
65105
65106 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65107
65108         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65109         initializer of struct addrinfo, as an indication that we don't
65110         care how many members the structure has.
65111
65112 2005-06-24  Derek Price  <derek@ximbiot.com>
65113         and Bruno Haible  <bruno@clisp.org>
65114
65115         Remove stat module & update lstat.
65116         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65117         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65118         * m4/stat.m4: Remove this file.
65119
65120 2005-06-24  Derek Price  <derek@ximbiot.com>
65121         and Bruno Haible  <bruno@clisp.org>
65122
65123         Remove stat module & update lstat.
65124         * lib/stat.c: Remove this file...
65125         (slash_aware_lstat): ...moving this content and its support...
65126         * lib/lstat.c (rpl_lstat): ...into here.
65127         * lib/lstat.h: New file.
65128
65129 2005-06-24  Derek Price  <derek@ximbiot.com>
65130         and Bruno Haible  <bruno@clisp.org>
65131
65132         Remove stat module & update lstat.
65133         * config/srclist.txt (libc sources): Remove stat.
65134
65135 2005-06-24  Derek Price  <derek@ximbiot.com>
65136         and Bruno Haible  <bruno@clisp.org>
65137
65138         Remove stat module & update lstat.
65139         * MODULES.html.sh (stat): Remove.
65140         * MODULES.html: Regenerated.
65141         * modules/lstat (Description): Correct function name.
65142         (Files): Add "lstat.h".
65143         (Depends-on): Remove stat, add xalloc, stat-macros.
65144         * modules/stat: Remove this file.
65145         (Include): Add "lstat.h", remove <sys/stat.h>.
65146
65147 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65148
65149         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65150         (ranged_convert): Don't save conversion in a temporary struct.
65151         This causes a warning with GCC 4.0.0, and anyway in the typical
65152         case it's not worth the extra 100 bytes or so of code.
65153         (ranged_convert, __mktime_internal): When calling a function via a
65154         pointer P, use P () rather than (*P) (), as we now assume C89 or
65155         better.
65156
65157 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65158
65159         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65160         "who -r" failed to give output.  Problem reported by Tim Waugh.
65161
65162         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65163         (xcalloc): Use it to avoid needless tests.
65164         Problem reported by Jim Meyering.
65165
65166 2005-06-20  Derek Price  <derek@ximbiot.com>
65167
65168         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65169         unnecessary for Autoconfs > 2.59c.
65170
65171 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65172
65173         * lib/argp.h (__option_is_short): Check upper limit of
65174         __key. Isprint() requires its argument to have the value
65175         of an unsigned char or EOF.
65176
65177 2005-06-16  Jim Meyering  <jim@meyering.net>
65178
65179         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65180         when either N or S is zero.
65181
65182 2005-06-16  Derek Price  <derek@ximbiot.com>
65183
65184         * m4/bison.m4: Declare YACC & YFLAGS precious.
65185
65186 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65187
65188         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65189         multibyte string or pattern, fall back on unibyte matching.
65190         Problem reported by James Youngman.
65191
65192 2005-06-08  Bruno Haible  <bruno@clisp.org>
65193
65194         * modules/csharpcomp: New file.
65195         * MODULES.html.sh (C#): Add csharpcomp.
65196
65197 2005-06-08  Bruno Haible  <bruno@clisp.org>
65198
65199         * m4/csharpcomp.m4: New file, from GNU gettext.
65200
65201 2005-06-08  Bruno Haible  <bruno@clisp.org>
65202
65203         * lib/csharpcomp.h: New file, from GNU gettext.
65204         * lib/csharpcomp.c: New file, from GNU gettext.
65205         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65206
65207 2005-06-08  Bruno Haible  <bruno@clisp.org>
65208
65209         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65210         warning on mingw.
65211
65212 2005-06-07  Derek Price  <derek@ximbiot.com>
65213
65214         Sync from CVS.
65215         * lib/glob_.h: Indent nested #ifdef.
65216
65217 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65218
65219         Sync from coreutils.
65220         Use "file name" when talking about file names, instead of "filename"
65221         or "path", as per the GNU coding standards.
65222         * lib/mkdir-p.c: Renamed from makepath.c.
65223         (make_dir_parents): Renamed from make_path.  All callers changed.
65224         * lib/mkdir-p.h: Likewise.  All includers changed.
65225         * lib/filenamecat.c: Renamed from path-concat.c.
65226         (file_name_concat): Renamed from path_concat.  All callers changed.
65227         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65228         * lib/filenamecat.h: Likewise.  All includers changed.
65229         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65230         in comments or local variable names.
65231         * lib/basename.c: Likewise.
65232         * lib/canonicalize.c, canonicalize.h: Likewise.
65233         * lib/dirname.c, dirname.h: Likewise.
65234         * lib/euidaccess.c: Likewise.
65235         * lib/exclude.c: Likewise
65236         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65237         * lib/fsusage.c, fsuage.h: Likewise.
65238         * lib/fts.c, fts_.h: Likewise.
65239         * lib/getcwd.c: Likewise.
65240         * lib/getloadavg.c: Likewise.
65241         * lib/mkstemp.c: Likewise.
65242         * lib/mountlist.c, mountlist.h: Likewise.
65243         * lib/openat.c, openat.h: Likewise.
65244         * lib/readlink-stub.c: Likewise.
65245         * lib/readutmp.c, readutmp.h: Likewise.
65246         * lib/rename.c: Likewise.
65247         * lib/rmdir.c: Likewise.
65248         * lib/same.c: Likewise.
65249         * lib/savedir.c: Likewise.
65250         * lib/stripslash.c: Likewise.
65251         * lib/tempname.c: Likewise.
65252         * lib/xreadlink.c: Likewise.
65253         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65254         All uses changed.
65255         * lib/exclude.h: Likewise.
65256
65257         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65258         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65259         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65260         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65261         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65262         files have been getting away with it for years (MORE/BSD 4.3
65263         is extinct now).
65264         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65265         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65266
65267         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65268         Define to 256, not 255, as per modern POSIX.
65269
65270 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65271
65272         Sync from coreutils.
65273         Use "file name" when talking about file names, instead of "filename"
65274         or "path", as per the GNU coding standards.
65275         * MODULES.html.sh: mkdir-p renamed from makepath.
65276         filenamecat renamed from path-concat.
65277         * modules/filenamecat: Renamed from modules/path-concat.
65278         (Files): filenamecat.h and filenamecat.c renamed from
65279         path-concat.h and path-concat.c.
65280         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65281         (Include): filenamecat.h, not path-concat.h.
65282         * modules/mkdir-p: Renamed from modules/makepath.
65283         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65284         makepath.c.
65285         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65286         (Include): mkdir-p.h, not makepath.h.
65287
65288 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65289
65290         Sync from coreutils.
65291         * m4/mkdir-p.m4: Renamed from makepath.m4.
65292         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65293         Rename files from makepath.c to mkdir-p.c, and from
65294         makepath.h to mkdir-p.h.
65295         * m4/filenamecat.m4: Renamed from path-concat.m4.
65296         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65297         Rename files from path-concat.c to filenamecat.c,
65298         and from path-concat.h to filenamecat.h.
65299         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65300         "file name" in local variables or comments.
65301         * m4/rename.m4: Likewise.
65302
65303 2005-06-01  Bruno Haible  <bruno@clisp.org>
65304
65305         * modules/csharpexec: New file.
65306         * MODULES.html.sh (C#): New section.
65307
65308 2005-06-01  Bruno Haible  <bruno@clisp.org>
65309
65310         * m4/csharp.m4: New file, from GNU gettext.
65311         * m4/csharpexec.m4: New file, from GNU gettext.
65312
65313 2005-06-01  Bruno Haible  <bruno@clisp.org>
65314
65315         * lib/csharpexec.h: New file, from GNU gettext.
65316         * lib/csharpexec.c: New file, from GNU gettext.
65317         * lib/csharpexec.sh.in: New file, from GNU gettext.
65318
65319 2005-05-31  Derek Price  <derek@ximbiot.com>
65320             Paul Eggert  <eggert@cs.ucla.edu>
65321
65322         Sync from cvs.
65323         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65324
65325 2005-05-31  Derek Price  <derek@ximbiot.com>
65326             Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         Sync from cvs.
65329         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65330
65331 2005-05-29  Derek Price  <derek@ximbiot.com>
65332
65333         * config/srclist.txt (glob_.h, glob.c): Add these files.
65334
65335 2005-05-29  Derek Price  <derek@ximbiot.com>
65336
65337         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65338         * modules/glob: New file.
65339         * modules/getlogin_r: Add link to POSIX spec in description.
65340
65341 2005-05-29  Derek Price  <derek@ximbiot.com>
65342             Paul Eggert  <eggert@cs.ucla.edu>
65343
65344         * m4/glob.m4: New file.
65345
65346 2005-05-29  Derek Price  <derek@ximbiot.com>
65347             Paul Eggert  <eggert@cs.ucla.edu>
65348
65349         * lib/glob_.h, lib/glob.c: New files.
65350
65351 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65352
65353         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65354         * modules/fts-lgpl (Depends-on): Remove gettext.
65355
65356 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65357
65358         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65359         and don't require gt_INTTYPES_PRI.
65360
65361 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65362
65363         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65364
65365         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65366         the configuration hassle isn't worth it.
65367         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65368         (LONGEST_MODIFIER, PRIuMAX): Remove.
65369
65370 2005-05-27  Bruno Haible  <bruno@clisp.org>
65371
65372         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65373
65374 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65375
65376         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65377         _POSIX_PTHREAD_SEMANTICS for Solaris.
65378
65379 2005-05-25  Derek Price  <derek@ximbiot.com>
65380
65381         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65382
65383 2005-05-25  Derek Price  <derek@ximbiot.com>
65384             Paul Eggert  <eggert@cs.ucla.edu>
65385
65386         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65387         * lib/getlogin_r.c, getlogin_r.h: New files.
65388
65389 2005-05-25  Bruno Haible  <bruno@clisp.org>
65390             Derek Price  <derek@ximbiot.com>
65391
65392         * lib/getlogin_r.h: Simplify API documentation.
65393
65394 2005-05-23  Derek Price  <derek@ximbiot.com>
65395
65396         * modules/minmax (Files): Add m4/minmax.m4.
65397         (configure.ac): Add gl_MINMAX.
65398
65399 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65400
65401         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65402         so that unistd-safer.h (GPL'ed code) need not be included.
65403
65404 2005-05-22  Bruno Haible  <bruno@clisp.org>
65405
65406         * m4/minmax.m4: New file.
65407         Based on a patch by Derek Price <derek@ximbiot.com>.
65408
65409 2005-05-22  Bruno Haible  <bruno@clisp.org>
65410
65411         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65412         (INT64_MIN): Fix definition.
65413         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65414
65415         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65416         NEED_SIGNED_INT_TYPES.
65417
65418         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
65419         HAVE_SYSTEM_INTTYPES.
65420
65421 2005-05-22  Bruno Haible  <bruno@clisp.org>
65422
65423         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
65424         Also include <sys/param.h> if it defines MIN, MAX.
65425         Based on a patch by Derek Price <derek@ximbiot.com>.
65426
65427 2005-05-21  Jim Meyering  <jim@meyering.net>
65428
65429         * modules/fts (Files): Add m4/inttypes-pri.m4.
65430         (Depends-on): Add lstat and remove gettext.  Alphabetize.
65431
65432 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65433
65434         New fts module.
65435         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
65436         (setup_dir, free_dir): New functions.
65437         (enter_dir, leave_dir): Define trivial
65438         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
65439         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
65440         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
65441         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
65442         Move to fts-cycle.c.
65443         (fts_open): Use setup_dir.
65444         (fts_close): Use free_dir.
65445         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
65446         This adds a label and some gotos, but the alternatives were messier.
65447         Check for memory allocation failure when entering a dir.
65448         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
65449         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
65450         (FTS): New member fts_cycle, that is a union that contains the
65451         old active_dir_ht and cycle_state.  All uses changed to mention
65452         fts_cycle.ht and fts_cycle.state.
65453         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
65454         fts.c, with the following changes:
65455         (setup_dir, free_dir): New functions.
65456         (enter_dir): Now returns bool.  Return true if successful, false
65457         if memory exhausted.  All callers changed.
65458         Do not bother partly cleaning up on
65459         memory allocation failure; that is free_dir's job.
65460         However, free ad if hash_insert fails, to avoid memory leak.
65461         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
65462         fts->fts_options to see which union member to use.
65463
65464 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
65467         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
65468
65469 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
65472
65473 2005-05-20  Jim Meyering  <jim@meyering.net>
65474
65475         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
65476         Now a macro, to pacify GCC.
65477
65478 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65479
65480         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
65481         of -1.
65482
65483 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65484
65485         * lib/chown.c (rpl_chown): Return -1 on failure.
65486
65487 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
65490         Don't check for stddef.h.
65491         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
65492         don't use its results.
65493         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
65494         since we include them unconditionally.  Don't require
65495         AM_STDBOOL_H, since stdbool is a prerequisite.
65496         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
65497         since we assume C89 or better.
65498         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
65499         as we don't use their results.
65500         Don't check for fchdir, memmove, memset, strrchr, as we use
65501         them unconditionally.
65502         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
65503         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
65504
65505 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65506
65507         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
65508         Include <stddef.h> unconditionally, since we assume C89 now.
65509         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
65510         * lib/fts.c: Include fts_.h first, to check interface.
65511         Do not include intprops.h; no longer needed.
65512         Include cycle-check.h and hash.h, since fts_.h no longer does.
65513         Remove unnecessary casts of closedir to void.
65514         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
65515         decide whether to decrement nlinks.
65516         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
65517         (FTS): Use struct hash_table * instead of Hash_table, so that
65518         we no longer need to include hash.h here.
65519
65520 2005-05-18  Jim Meyering  <jim@meyering.net>
65521
65522         * modules/dirfd (License): Change to LGPL.  Most of the code
65523         is already in the public domain.
65524
65525 2005-05-18  Jim Meyering  <jim@meyering.net>
65526
65527         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
65528         Reported by Yoann Vandoorselaere.
65529
65530 2005-05-17  Jim Meyering  <jim@meyering.net>
65531
65532         * m4/fts.m4: New file, from coreutils.
65533
65534 2005-05-17  Jim Meyering  <jim@meyering.net>
65535
65536         * lib/fts.c, lib/fts_.h: New files, from coreutils.
65537
65538 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65539
65540         Sync from coreutils.
65541         * m4/unlinkdir.m4: New file.
65542
65543 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65544
65545         Sync from coreutils.
65546         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
65547         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
65548         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
65549         White space changes only.
65550         * lib/makepath.c (make_path): Port to hosts where leading "//" is
65551         special.
65552         * lib/yesno.c: Include getline.h, not ctype.h.
65553         (yesno): Don't remove leading white space; POSIX doesn't allow it.
65554         Use getline to remove arbitrary restriction on response length.
65555
65556 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         * config/srclist-update: Spell out "Street" in FSF postal
65559         mail address; this is the style the FSF seems to prefer.
65560
65561         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
65562         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
65563         this updates FSF postal mail address.
65564
65565         Sync from coreutils.
65566         * modules/unlinkdir: New file.
65567         * modules/yesno (Depends-on): Add getline.
65568         * MODULES.html.sh (File system functions): Add unlinkdir.
65569
65570 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65571
65572         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
65573         lib/strsep.h:
65574         Change the initial comment to refer to GPL, not LGPL.
65575         gnulib-tool will change it to LGPL as needed.
65576
65577         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
65578         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
65579         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
65580         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
65581         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
65582         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
65583         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
65584         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
65585         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
65586         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
65587         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
65588         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
65589         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
65590         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
65591         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
65592         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
65593         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
65594         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
65595         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
65596         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
65597         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
65598         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
65599         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
65600         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
65601         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
65602         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
65603         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
65604         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
65605         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
65606         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
65607         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
65608         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
65609         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
65610         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
65611         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
65612         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
65613         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
65614         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
65615         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
65616         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
65617         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
65618         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
65619         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
65620         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
65621         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
65622         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
65623         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
65624         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
65625         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
65626         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
65627         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65628         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
65629         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
65630         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
65631         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
65632         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
65633         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
65634         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
65635         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
65636         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
65637         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
65638         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
65639         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
65640         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
65641         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
65642         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
65643         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
65644         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
65645         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
65646         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
65647         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
65648         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
65649         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
65650         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
65651         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
65652         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
65653         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
65654         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
65655         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
65656         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
65657         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
65658         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
65659         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
65660         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
65661         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
65662         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
65663         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
65664         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
65665         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
65666         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
65667         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
65668         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
65669         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
65670         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
65671         lib/yesno.c, lib/yesno.h:
65672         Update FSF postal mail address.
65673
65674 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65675
65676         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
65677         tests/test-memmem.c, tests/test-stpncpy.c:
65678         Update FSF postal mail address.
65679
65680 2005-05-13  Bruno Haible  <bruno@clisp.org>
65681
65682         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
65683         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
65684         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
65685         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
65686         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
65687         Add support for 64-bit integers in the MSVC compiler.
65688
65689 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65690
65691         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
65692
65693 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
65694
65695         * gnulib-tool (func_import): Sort and uniquify recommended includes.
65696
65697 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * doc/getdate.texi (General date syntax): Don't say that date
65700         date --iso-8601=ns generates acceptable dates; it doesn't yet.
65701         Problem reported by Nic Ferrier.
65702
65703 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65704
65705         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
65706         specified in ai_socktype. Fix invalid ai_protocol
65707         check. ai_protocol is usually set to 0 or depending on
65708         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
65709         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
65710         ai_socktype / ai_protocol in the returned addrinfo structure.
65711
65712 2005-05-10  Simon Josefsson  <jas@extundo.com>
65713
65714         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
65715         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65716
65717 2005-05-10  Karl Berry  <karl@gnu.org>
65718
65719         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
65720         (from http://www.gnu.org/licenses).
65721         * doc/COPYING.LIB: also rename to COPYING.LESSER.
65722         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
65723         fdl.texi suffices.
65724
65725 2005-05-10  Karl Berry  <karl@gnu.org>
65726
65727         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
65728         (COPYING.DOC): remove.
65729
65730         * config/srclist-update: new FSF address.
65731
65732 2005-05-10  Derek Price  <derek@ximbiot.com>
65733
65734         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
65735         possible.
65736
65737 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65738             Bruno Haible  <bruno@clisp.org>
65739
65740         * modules/inet_ntop: New file.
65741         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65742         inet_ntop.
65743
65744 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65745             Bruno Haible  <bruno@clisp.org>
65746
65747         * m4/inet_ntop.m4: New file.
65748
65749 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65750             Bruno Haible  <bruno@clisp.org>
65751
65752         * lib/inet_ntop.h: New file.
65753         * lib/inet_ntop.c: New file, from glibc with modifications.
65754
65755 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * modules/time_r (License): Change to LGPL.
65758         * modules/extensions (License): Change to LGPL.  Actually,
65759         the license is more permissive than that, but currently gnulib-tool
65760         doesn't know how to handle more-permissive licenses.
65761
65762         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
65763         Problem reported by Dave Love.
65764
65765 2005-05-08  Jim Meyering  <jim@meyering.net>
65766
65767         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
65768         blank.
65769
65770 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65771
65772         * modules/argmatch (Depends-on): Add stdbool.
65773         * modules/backupfile (Depends-on): Likewise.
65774         * modules/chdir-long (Depends-on): Likewise.
65775         * modules/closeout (Depends-on): Likewise.
65776         * modules/cycle-check (Depends-on): Likewise.
65777         * modules/dirname (Depends-on): Likewise.
65778         * modules/fnmatch (Depends-on): Likewise.
65779         * modules/fsusage (Depends-on): Likewise.
65780         * modules/fwriteerror (Depends-on): Likewise.
65781         * modules/getcwd (Depends-on): Likewise.
65782         * modules/getloadavg (Depends-on): Likewise.
65783         * modules/hard-locale (Depends-on): Likewise.
65784         * modules/makepath (Depends-on): Likewise.
65785         * modules/mountlist (Depends-on): Likewise.
65786         * modules/nanosleep (Depends-on): Likewise.
65787         * modules/posixtm (Depends-on): Likewise.
65788         * modules/quotearg (Depends-on): Likewise.
65789         * modules/readtokens (Depends-on): Likewise.
65790         * modules/readtokens0 (Depends-on): Likewise.
65791         * modules/readutmp (Depends-on): Likewise.
65792         * modules/save-cwd (Depends-on): Likewise.
65793         * modules/strftime (Depends-on): Likewise.
65794         * modules/userspec (Depends-on): Likewise.
65795         * modules/utimecmp (Depends-on): Likewise.
65796         * modules/xgetcwd (Depends-on): Likewise.
65797         * modules/xnanosleep (Depends-on): Likewise.
65798         * modules/xstrtod (Depends-on): Likewise.
65799         * modules/yesno (Depends-on): Likewise.
65800
65801 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65802
65803         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
65804         needless checks.
65805
65806 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65807
65808         Merge from coreutils.  Among other things,
65809         add bulletproofing for cases where stdin, stdout, or stderr are closed.
65810         * lib/fd-safer.c: New file.
65811         * lib/fcntl-safer.h, open-safer.c: Remove.
65812         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
65813         * lib/dup-safer.c: Include unistd-safer.h first.
65814         Don't include errno.h.
65815         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
65816         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
65817         * lib/file-type.c: Rely on file-type.h change.
65818         * lib/getloadavg.c: Include unistd-safer.h.
65819         (getloadavg): Use safer open.
65820         * lib/getusershell.c: Include "stdio-safer.h".
65821         (getusershell): Use safer fopen.
65822         * lib/long-options.c (long_options): Use NULL rather than 0.
65823         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
65824         'free'.
65825         * lib/modechange.c: Likewise.
65826         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
65827         (MODE_DONE): New constant.
65828         (struct mode_change): Remove 'next' member.
65829         (make_node_op_equals): New function; like the old one of the
65830         same name, except it allocates an array.
65831         (mode_compile, mode_create_from_ref): Use it.
65832         (mode_compile): Allocate result as an array, not a linked list.
65833         Parse octal string ourself, so that we catch mistakes like "+0".
65834         (mode_adjust): Arg is an array, not a linked list.
65835         * lib/modechange.c: Include stat-macros.h, xalloc.h.
65836         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
65837         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
65838         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
65839         Remove.  This is now stat-macros.h's job.
65840         (talloc): Remove.  All callers replaced by xalloc, so that
65841         our invokers don't have to worry about reporting memory failures.
65842         (make_node_op_equals): Remove.
65843         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65844         New constants.
65845         (struct mode_change): Moved here from modechange.h.
65846         (mode_append_entry): Remove.
65847         (mode_compile): Remove MASKED_OPS arg, since it encouraged
65848         apps to have incorrect behavior.  Use simpler algorithm for head
65849         and tail.  Don't futz with umask; that's now the job of mode_adjust.
65850         Detect more invalid usages rather than having somewhat-random behavior.
65851         Don't insert an "a=" action, as that leads to incorrect behavior.
65852         (mode_compile, mode_create_from_ref): Return NULL on error instead
65853         of an enum, since now there's only one way to have an error.  All
65854         callers changed.
65855         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
65856         at the correct time.  Simplify calculation of "+u" and its ilk.
65857         Don't mishandle "+X".
65858         (mode_free): Remove "register" and localize decls.
65859         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65860         (struct mode_change): Move to modechange.c; callers don't
65861         need to see this stuff.
65862         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
65863         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
65864         (mode_change, mode_adjust): Reflect the new signatures noted above.
65865         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
65866         that might redefine system include files.
65867         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
65868         (my_usleep): Use NULL rather than (void *) 0.
65869         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
65870         Use siginterrupt to specify that system calls should be interrupted.
65871         (rpl_nanosleep): Move initialization of suspended closer to call of
65872         my_usleep.
65873         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
65874         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
65875         (desirable_utmp_entry): New function.
65876         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
65877         using x2nrealloc, to simplify logic.
65878         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
65879         size calculation.  Do not assume utmp file is a regular file.
65880         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
65881         (READ_UTMP_CHECK_PIDS): New constant.
65882         * lib/save-cwd.c: Include unistd-safer.h.
65883         (save_cwd): Use fd_safer.
65884         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
65885         [!_LIBC] Include "stat-macros.h" instead.
65886         * lib/unistd-safer.h (fd_safer): New decl.
65887
65888 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65889
65890         * modules/getloadavg (Depends-on): Add unistd-safer.
65891         * modules/getusershell (Depends-on): Add stdio-safer.
65892         * modules/lstat (Depends-on): Remove xalloc.
65893         * modules/mkstemp (Depends-on): Add stat-macros.
65894         * modules/modechange (Depends-on): Remove xstrtol.
65895         Add stat-macros, xalloc.
65896         * modules/save-cwd (Depends-on): Add unistd-safer.
65897         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
65898         * modules/unistd-safer (Files): Add lib/fd-safer.c
65899         (Makefile.am): Remove lib_SOURCES.
65900
65901         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
65902         Remove fcntl-safer; unistd-safer supersedes it.
65903
65904 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65905
65906         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
65907         AC_HEADER_STAT.
65908         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
65909         (gl_PREREQ_CHOWN): Remove.
65910         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
65911         it.  Don't require AC_HEADER_STAT.
65912         (gl_PREREQ_LSTAT): Remove.
65913         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
65914         Don't require AC_HEADER_STAT.
65915         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
65916         (gl_PREREQ_RMDIR): Remove.
65917         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
65918         mention stat-macros.h or AC_HEADER_STAT, since we'll make
65919         the stat-macros module a prerequisite.
65920         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
65921         * m4/filemode.m4 (gl_FILEMODE): Likewise.
65922         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
65923         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
65924         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
65925         variable names.
65926         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
65927         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
65928         variable prefixes.
65929         * m4/fcntl-safer.m4: Remove.
65930         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
65931         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
65932         Invoke gl_PREREQ_FD_SAFER.
65933         (gl_PREREQ_FD_SAFER): New macro.
65934         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
65935         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
65936         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
65937         Remove duplicate call to AC_LIBOBJ(readutmp).
65938         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
65939
65940         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
65941         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
65942
65943 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65944
65945         * MODULES.html.sh (Misc): Add byteswap.
65946
65947 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65948
65949         * modules/getcwd (Depends-on): Add extensions.
65950         * modules/openat (Depends-on): Likewise.
65951
65952 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65953
65954         * modules/byteswap: New file.
65955
65956 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65957
65958         * m4/byteswap.m4: New file.
65959
65960 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65961
65962         * lib/byteswap_.h: New file.
65963
65964 2005-04-25  Karl Berry  <karl@gnu.org>
65965
65966         * m4/gettext.m4: Update from GNU gettext 0.14.4.
65967
65968 2005-04-25  Albert Chin  <china@thewrittenword.com>
65969
65970         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
65971         Toolkit C bug.
65972
65973 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
65974
65975         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
65976         (func_ln_if_changed) Remove forcibly for no error message
65977         in case file does not exist.
65978
65979 2005-04-19  Simon Josefsson  <jas@extundo.com>
65980
65981         * gnulib-tool (Options): Make --symlink mean --symbolic.
65982
65983 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
65984
65985         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
65986
65987 2005-04-16  Simon Josefsson  <jas@extundo.com>
65988
65989         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
65990
65991 2005-04-15  Simon Josefsson  <jas@extundo.com>
65992
65993         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
65994
65995 2005-04-15  Simon Josefsson  <jas@extundo.com>
65996
65997         * gnulib-tool: Rename --symlink to --symbolic.
65998
65999 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66000
66001         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66002         symbolic links to files instead of copying/moving.  Add --aux-dir,
66003         specifying directory relative --dir where auxiliary build tools
66004         are placed.
66005
66006 2005-04-14  Bruno Haible  <bruno@clisp.org>
66007
66008         * modules/allocsa (License): Change to LGPL.
66009         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66010
66011 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66014         that "UTC +1 second" continues to work.  Problem reported
66015         by Dmitry V. Levin.
66016         (relunit_snumber): New rule.
66017         (relunit): Use it.
66018
66019 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66020
66021         * lib/getdate.y (universal_time_zone_table): New constant.
66022         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66023         universal_time_zone_table.
66024         (lookup_zone): Prefer universal_time_zone_table to
66025         local_time_zone_table, so that "GMT" time stamps are allowed in
66026         London during the summer.  Problem reported by Ian Abbott.
66027
66028 2005-04-12  Jim Meyering  <jim@meyering.net>
66029
66030         * lib/human.c (humblock): Set *options even when returning due to
66031         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66032         warning from gcc-4.
66033
66034 2005-04-09  Jim Meyering  <jim@meyering.net>
66035
66036         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66037         -Wuninitialized: initialize tm0.tm_year.
66038
66039 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66040
66041         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66042         count, since there's no maximum.  All uses changed.
66043         Add member dsts_seen.
66044         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66045         not being INT_MAX.
66046         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66047         Use pc_rels_seen to decide whther a date is absolute.
66048
66049         * lib/getdate.y (number): Don't overwrite year.
66050         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66051         check.
66052
66053 2005-04-02  Simon Josefsson  <jas@extundo.com>
66054
66055         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66056         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66057
66058 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66059
66060         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66061         where no absolute path name can be longer than PATH_MAX.
66062
66063 2005-03-27  Jim Meyering  <jim@meyering.net>
66064
66065         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66066
66067 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66068
66069         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66070         "one's complement" -> "ones' complement" in comment, as per Knuth.
66071         "value of type" -> "type or expression" in comment.
66072         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66073
66074 2005-03-26  Jim Meyering  <jim@meyering.net>
66075
66076         Comment nits.
66077         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66078         Correct typos: s/or/of/.
66079
66080 2005-03-26  Jim Meyering  <jim@meyering.net>
66081
66082         * modules/check-include-files: Move to ../ and rename to...
66083         * check-module: ...this.
66084
66085 2005-03-25  Jim Meyering  <jim@meyering.net>
66086
66087         * modules/xvasprintf (Files): Add xalloc.h.
66088
66089 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66090
66091         * modules/gettext (Files): config/config.rpath ->
66092         build-aux/config.rpath
66093         * modules/iconv (Files): Likewise.
66094         Problem reported by Oskar Liljeblad.
66095
66096 2005-03-23  Jim Meyering  <jim@meyering.net>
66097
66098         * modules/check-include-files: New script to check for
66099         missing dependencies, multiple includes, etc.
66100
66101         * modules/c-strtold (Depends-on): Add xalloc.
66102         * modules/c-strtod (Depends-on): Add xalloc.
66103         * modules/hash (Depends-on): Add xalloc.
66104         (Files): Remove lib/xalloc.h.
66105
66106         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66107         * modules/userspec (Files): Add lib/inttostr.h.
66108
66109 2005-03-23  Jim Meyering  <jim@meyering.net>
66110
66111         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66112
66113 2005-03-22  Jim Meyering  <jim@meyering.net>
66114
66115         * modules/stat-macros: New module.
66116         * modules/canonicalize, modules/euidaccess, modules/file-type,
66117         * modules/filemode, modules/lchown, modules/makepath,
66118         * modules/rmdir, modules/stat: Depend on new stat-macros module
66119         rather than listing lib/stat-macros.h manually.
66120         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66121
66122 2005-03-22  Jim Meyering  <jim@meyering.net>
66123
66124         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66125
66126 2005-03-22  Bruno Haible  <bruno@clisp.org>
66127
66128         * config/srclist.txt: Replace target directory 'config' with
66129         'build-aux'.
66130         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66131         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66132         ../build-aux/.
66133
66134 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66135
66136         * modules/chdir-long (Depends-on): Add mempcpy.
66137
66138         * modules/acl, modules/backupfile, modules/c-strtod,
66139         modules/c-strtold, modules/canon-host, modules/canonicalize,
66140         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66141         modules/exclude, modules/exitfail, modules/file-type,
66142         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66143         modules/getdate, modules/getline, modules/getpagesize,
66144         modules/getpass, modules/getugroups, modules/group-member,
66145         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66146         modules/inttostr, modules/long-options, modules/makepath,
66147         modules/md5, modules/memcasecmp, modules/memcoll,
66148         modules/modechange, modules/mountlist, modules/path-concat,
66149         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66150         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66151         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66152         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66153         modules/strftime, modules/strndup, modules/strverscmp,
66154         modules/timespec, modules/unlocked-io, modules/userspec,
66155         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66156         modules/yesno:
66157         Remove lib_SOURCES line from Makefile.am section, as this is now
66158         done automatically by the corresponding Autoconf macro.
66159
66160 2005-03-21  Jim Meyering  <jim@meyering.net>
66161
66162         Changes imported from coreutils.
66163
66164         * lib/cycle-check.c: Don't include xalloc.h.
66165
66166         * lib/path-concat.c: Don't include assert.h.
66167         (path_concat): Remove assertion that would have triggered
66168         for ABASE starting with more than one slash.
66169         Reported by Andreas Schwab.
66170
66171         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66172         properly when ABASE is an absolute file name.
66173         Correct the description of this function.
66174         Include <assert.h>.
66175         Add an assertion and a test driver.
66176         This fixes a bug introduced on 2004-07-02.
66177         Andreas Schwab reported the resulting failure of cp --parents:
66178         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66179
66180 2005-03-21  Jim Meyering  <jim@meyering.net>
66181
66182         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66183         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66184
66185 2005-03-21  Jim Meyering  <jim@meyering.net>
66186         and  Paul Eggert  <eggert@cs.ucla.edu>
66187
66188         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66189         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66190         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66191         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66192         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66193         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66194         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66195         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66196         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66197         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66198         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66199         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66200         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66201         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66202         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66203         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66204         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66205         for these modules.
66206
66207 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66208
66209         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66210         (which shouldn't happen), generate nothing instead of returning 0
66211         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66212
66213 2005-03-16  Bruno Haible  <bruno@clisp.org>
66214
66215         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66216         HAVE_LONGLONG_64BIT.
66217
66218 2005-03-16  Bruno Haible  <bruno@clisp.org>
66219
66220         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66221         HAVE_LONGLONG_64BIT.
66222
66223 2005-03-16  Bruno Haible  <bruno@clisp.org>
66224
66225         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66226         HAVE_LONGLONG_64BIT.
66227
66228 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66229
66230         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66231         reliably distinguish strftime failure from empty output on POSIX
66232         hosts.
66233
66234 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66237         (iconv_string): Don't guess a size-zero buffer, as that might cause
66238         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66239         result would be 'too large', where 'too large' is (heuristically)
66240         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66241         overflow concerns.  This will prevent some unwanted malloc failures
66242         when the inputs are very large.
66243
66244 2005-03-15  Karl Berry  <karl@gnu.org>
66245
66246         * config/srclist.txt (config.rpath): from gettext.
66247         * config/config.rpath: update.
66248
66249 2005-03-15  Bruno Haible  <bruno@clisp.org>
66250
66251         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66252         to 'negate'.
66253
66254         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66255         variable.
66256
66257         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66258         results.
66259
66260 2005-03-14  Simon Josefsson  <jas@extundo.com>
66261
66262         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66263         <fx@gnu.org>.
66264
66265 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66266
66267         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66268         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66269         intprops.h.
66270         * lib/strtol.c: Likewise.
66271
66272 2005-03-14  Jim Meyering  <jim@meyering.net>
66273
66274         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66275         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66276         to be nonzero so that we (and caller) can detect the difference
66277         between a valid zero-length expansion and an error return, even
66278         when the underlying strftime fails before writing anything into
66279         that location.
66280
66281 2005-03-14  Bruno Haible  <bruno@clisp.org>
66282
66283         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66284         Update from GNU gettext 0.14.3.
66285
66286 2005-03-10  Jim Meyering  <jim@meyering.net>
66287
66288         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66289
66290 2005-03-10  Jim Meyering  <jim@meyering.net>
66291
66292         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66293         so that this module works on systems without fchdir.
66294
66295 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66296
66297         Factor int-properties macros into a single file, except for
66298         glibc-related files.
66299         * lib/intprops.h: New file.
66300         * lib/getloadavg.c: Include it instead of limits.h.
66301         (INT_STRLEN_BOUND): Remove.
66302         * lib/human.c: Include intprops.h.
66303         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66304         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66305         302/1000.
66306         * lib/inttostr.h: Include intprops.h instead of limits.h.
66307         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66308         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66309         for consistency with intprops.h.
66310         (time_t_is_integer, twos_complement_arithmetic): Use them.
66311         * lib/sig2str.h: Include <signal.h>, intprops.h.
66312         (INT_STRLEN_BOUND): Remove.
66313         * lib/strftime.c (TYPE_SIGNED): Remove.
66314         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66315         * lib/strtol.c: Adjust comments to match intprops.h.
66316         * lib/userspec.c: Include intprops.h.
66317         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66318         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66319         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66320         instead of rolling our own expressions.
66321         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66322
66323         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66324         instead of int.
66325         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66326         the right thing even if adding 1900 would overflow.  Similarly
66327         for tm_mon + 1 and tm_yday + 1.
66328         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66329         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66330         (DO_SIGNED_NUMBER): New macro.
66331         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66332
66333 2005-03-07  Bruno Haible  <bruno@clisp.org>
66334
66335         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66336
66337 2005-03-07  Bruno Haible  <bruno@clisp.org>
66338
66339         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66340
66341 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66342
66343         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66344         (func_import): Only replace files via --import when they have actually
66345         changed.
66346
66347 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66348
66349         * m4/mmap-anon.m4: New file.
66350         * m4/pagealign_alloc.m4: New file.
66351
66352 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66353             Bruno Haible  <bruno@clisp.org>
66354
66355         * modules/pagealign_alloc: New file.
66356         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66357
66358 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66359             Bruno Haible  <bruno@clisp.org>
66360
66361         * lib/pagealign_alloc.h: New file.
66362         * lib/pagealign_alloc.c: New file.
66363
66364 2005-03-03  Bruno Haible  <bruno@clisp.org>
66365
66366         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66367         Use an all-permissive copyright notice, recommended by RMS.
66368
66369 2005-03-02  Bruno Haible  <bruno@clisp.org>
66370
66371         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66372         of AIX, the replacement has to be done only after <string.h> is
66373         included, therefore not in config.h. stpncpy.h does the replacement,
66374         and stpncpy.c uses it.
66375
66376 2005-03-02  Bruno Haible  <bruno@clisp.org>
66377
66378         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66379         stpncpy.c uses it.
66380
66381 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66382
66383         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66384         The workaround isn't strictly needed for POSIX conformance, and
66385         it's too much of a pain to configure and maintain.  We'll ask
66386         people to fix their kernels instead.
66387         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66388         (NANOSLEEP_BUG_WORKAROUND): Remove.
66389         (xnanosleep): Remove the workaround.
66390
66391 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66392
66393         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66394         Reported by Derek Price.
66395         (Include): Add "timespec.h".
66396
66397         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66398
66399 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66400
66401         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66402         to detect nanosleep bug.
66403
66404 2005-03-01  Bruno Haible  <bruno@clisp.org>
66405
66406         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66407
66408 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66409
66410         * modules/gethrxtime: New file.
66411         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66412         (Depends-on): Add gethrxtime.
66413         (configure.ac): Add gl_XNANOSLEEP.
66414         (Makefile.am): Remove lib_SOURCES line.
66415
66416 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
66419         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
66420
66421 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66422
66423         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
66424         * lib/timespec.h (gettime): Return void, since it always
66425         succeeds now.  All uses changed.
66426         * lib/gettime.c (gettime) Likewise.
66427         [HAVE_NANOTIME]: Prefer nanotime.
66428         Assume gettimeofday succeeds, as POSIX requires.
66429         Assime time () succeeds, since other code already does.
66430         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
66431         (timespec_subtract): Remove.
66432         (NANOSLEEP_BUG_WORKAROUND): New constant.
66433         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
66434         things considerably.  Use it only on GNU/Linux hosts, since the
66435         workaround shouldn't be needed elsewhere.
66436
66437 2005-02-24  Bruno Haible  <bruno@clisp.org>
66438
66439         * modules/gettext (Files): Add m4/glibc2.m4.
66440
66441 2005-02-24  Bruno Haible  <bruno@clisp.org>
66442
66443         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
66444         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
66445         * m4/progtest.m4:
66446         Update from GNU gettext 0.14.2.
66447         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
66448
66449 2005-02-24  Bruno Haible  <bruno@clisp.org>
66450
66451         * lib/localcharset.c: Update from GNU gettext 0.14.2.
66452         * lib/config.charset: Update from GNU gettext 0.14.2.
66453
66454 2005-02-24  Bruno Haible  <bruno@clisp.org>
66455
66456         * lib/gettext.h: Update from GNU gettext 0.14.2.
66457
66458 2005-02-23  Simon Josefsson  <jas@extundo.com>
66459
66460         * m4/iconvme.m4: New file.
66461
66462 2005-02-23  Jim Meyering  <jim@meyering.net>
66463
66464         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
66465         change.
66466         Thanks to Bruno Haible for catching it.
66467
66468 2005-02-22  Simon Josefsson  <jas@extundo.com>
66469
66470         * modules/iconvme: New file.
66471
66472         * MODULES.html.sh: Add iconvme.
66473
66474 2005-02-22  Simon Josefsson  <jas@extundo.com>
66475
66476         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
66477
66478 2005-02-22  Simon Josefsson  <jas@extundo.com>
66479
66480         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
66481
66482 2005-02-22  Jim Meyering  <jim@meyering.net>
66483
66484         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
66485         s/ifndef/ifdef/.
66486
66487 2005-02-20  Neil Conway  <neilc@samurai.com>
66488
66489         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
66490         returned by OSX/Darwin if the specified buffer is not large
66491         enough for the hostname.
66492
66493 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66494
66495         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
66496         pass it to _help, otherwise the latter coredumps trying to
66497         dereference state.root_argp.
66498
66499 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66500
66501         * modules/chdir-long (Depends-on): Add memrchr.
66502         * modules/memrchr (Files): Add lib/memrchr.h.
66503         (Include): "memrchr.h".
66504
66505 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66506
66507         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
66508
66509 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66510
66511         * lib/memrchr.h: New file.
66512         * lib/chdir-long.c: Include it.
66513         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
66514         Don't bother including stddef.h.
66515
66516 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66517
66518         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
66519         inclusion.
66520         Include <sys/types.h>, for dev_t.
66521         (ME_DUMMY, ME_REMOTE): Move from here....
66522         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
66523         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
66524         Dmitry V. Levin.
66525         Include mountlist.h first, to test the interface.
66526
66527 2005-01-29  Bruno Haible  <bruno@clisp.org>
66528
66529         * lib/progname.c (program_name): Initialize.
66530         Needed when linking statically on MacOS X.
66531
66532 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66533
66534         Sync from coreutils.
66535         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
66536         (Depends-on): Add c-strtod.
66537         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
66538
66539 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66540
66541         Sync from coreutils.
66542         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
66543
66544         Remove files that are specific to coreutils.
66545         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
66546
66547 2005-01-28  Bruno Haible  <bruno@clisp.org>
66548
66549         * modules/javacomp: New file.
66550         * MODULES.html.sh (Java): Add javacomp.
66551
66552 2005-01-28  Bruno Haible  <bruno@clisp.org>
66553
66554         * m4/javacomp.m4: New file, from GNU gettext.
66555
66556 2005-01-28  Bruno Haible  <bruno@clisp.org>
66557
66558         * lib/javacomp.sh.in: New file, from GNU gettext.
66559         * lib/javacomp.h: New file, from GNU gettext.
66560         * lib/javacomp.c: New file, from GNU gettext.
66561
66562 2005-01-26  Simon Josefsson  <jas@extundo.com>
66563
66564         * lib/gai_strerror.c: Use GPL in header.
66565
66566 2005-01-26  Bruno Haible  <bruno@clisp.org>
66567
66568         * modules/javaexec: New file.
66569         * MODULES.html.sh (Java): Add javaexec.
66570
66571 2005-01-26  Bruno Haible  <bruno@clisp.org>
66572
66573         * m4/javaexec.m4: New file, from GNU gettext.
66574
66575 2005-01-26  Bruno Haible  <bruno@clisp.org>
66576
66577         * lib/javaexec.sh.in: New file, from GNU gettext.
66578         * lib/javaexec.h: New file, from GNU gettext.
66579         * lib/javaexec.c: New file, from GNU gettext.
66580
66581 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66582
66583         * modules/lchown (Depends-on): Remove lchown.h
66584
66585 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66586
66587         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
66588         must be defined if the header file was not found, in order
66589         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
66590
66591 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66592
66593         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
66594         initializers for struct pentry_state.
66595         (__argp_error): Check return value of __asprintf
66596         (__argp_failure): Translate error message
66597
66598         * lib/argp-parse.c: Removed braces around the expansion of N_()
66599
66600 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66601
66602         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
66603         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
66604         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
66605         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
66606         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
66607         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
66608         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
66609         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
66610         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
66611         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
66612         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
66613         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
66614         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
66615         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
66616         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
66617         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
66618         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
66619         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
66620         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
66621         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
66622         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
66623         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
66624         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
66625         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
66626         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
66627         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
66628         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
66629         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
66630         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
66631         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
66632         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
66633         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
66634         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
66635         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
66636         xstrtol.m4, xstrtoumax.m4, yesno.m4:
66637         Use an all-permissive copyright notice, recommended by RMS.
66638
66639 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
66640
66641         * modules/chdir-long (Depends-on): Remove mempcpy.
66642
66643 2005-01-21  Jim Meyering  <jim@meyering.net>
66644
66645         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
66646         same value as for Solaris 9.
66647
66648         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
66649         component length.  This included changing the parameter to be
66650         of type `char *' rather than `char const *'.
66651         * lib/chdir-long.h (chdir_long): Update prototype.
66652
66653         * lib/openat.c (fdopendir, fstatat): New functions.
66654         * lib/openat.h: Include headers required for use of DIR and struct
66655         stat.
66656         [AT_SYMLINK_NOFOLLOW]: Define.
66657         (fdopendir, fstatat): Add prototypes.
66658
66659 2005-01-21  Bruno Haible  <bruno@clisp.org>
66660
66661         * modules/classpath: New file.
66662         * MODULES.html.sh (Java): Add classpath.
66663
66664 2005-01-21  Bruno Haible  <bruno@clisp.org>
66665
66666         * lib/classpath.h: New file, from GNU gettext.
66667         * lib/classpath.c: New file, from GNU gettext.
66668
66669 2005-01-20  Simon Josefsson  <jas@extundo.com>
66670
66671         * modules/version-etc-fsf: New file.
66672
66673 2005-01-20  Simon Josefsson  <jas@extundo.com>
66674
66675         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
66676         * lib/version-etc.c: Remove version_etc_copyright.
66677         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
66678         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
66679
66680 2005-01-20  Simon Josefsson  <jas@extundo.com>
66681
66682         * lib/base64.h (isbase64): Add.
66683
66684         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
66685         using a unsigned prototype, don't inline.
66686         (base64_decode): Use it.
66687
66688 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
66691         it.
66692
66693 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66694
66695         * lib/save-cwd.c (save_cwd): Remove code to support the case
66696         where fchdir is missing or flaky.
66697
66698 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66699
66700         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
66701
66702 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
66705         AC_LIBSOURCES now does this.
66706         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
66707         with new ullong_max module.
66708
66709 2005-01-19  Bruno Haible  <bruno@clisp.org>
66710
66711         * modules/sh-quote: New file.
66712         * MODULES.html.sh (Executing programs): Add sh-quote.
66713
66714 2005-01-19  Bruno Haible  <bruno@clisp.org>
66715
66716         * lib/sh-quote.h: New file, from GNU gettext.
66717         * lib/sh-quote.c: New file, from GNU gettext.
66718
66719 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66720
66721         Merge from coreutils.
66722         * m4/ullong_max.m4: New file.
66723         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
66724         (gl_MACROS): Assume localeconv exists.
66725
66726 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66727
66728         Merge changes from coreutils, as described below in several
66729         changelogs dated today.
66730
66731         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
66732         (O_DIRECTORY): Remove; not needed here, since "." must be
66733         a directory.  All uses removed.
66734         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
66735         universal on Suns, and we also need to test for IRIX.
66736         Revamp code to use 'if' rather than '#if'.
66737         Avoid unnecessary comparison of cwd->desc to 0.
66738
66739         * lib/utimens.c (futimens): Robustify the previous patch, by checking
66740         for known valid error numbers rather than observed invalid ones.
66741
66742 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66743
66744         * modules/ullong_max: New file.
66745
66746         * modules/chdir-long, modules/openat: New files.
66747         * modules/save-cwd (Depends-on): Depend on chdir-long.
66748         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
66749
66750 2005-01-18  Jim Meyering  <jim@meyering.net>
66751
66752         Merge from coreutils.
66753         * m4/chdir-long.m4, m4/openat.m4: New files.
66754         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
66755         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
66756         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
66757         is sane and DOES follow symlinks.  Besides, testing 20 different
66758         systems found no broken chown implementations.
66759         Prompted by a change in rsync's copy of this macro.
66760         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
66761
66762         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
66763
66764         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
66765         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
66766         NULL-means-set-to-current-time semantics.
66767         Remove temporary file immediately, rather than waiting
66768         for configure's at-exit trap code to do it.
66769
66770 2005-01-18  Jim Meyering  <jim@meyering.net>
66771
66772         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66773
66774         * lib/utimens.c (futimens): Account for the fact that futimes
66775         can also fail with errno == ENOSYS or errno == ENOENT.
66776         Patch from Dmitry V. Levin.
66777
66778         Change the name of the robust chdir function from chdir to chdir_long.
66779         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
66780         (restore_cwd): Use chdir_long, not chdir.
66781         * lib/chdir-long.c: Renamed from chdir.c.
66782         * lib/chdir-long.h: Renamed from chdir.h.
66783         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
66784         Hurd.
66785
66786 2005-01-18  Bruno Haible  <bruno@clisp.org>
66787
66788         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
66789         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
66790         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
66791         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
66792         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
66793         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
66794         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
66795         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
66796         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
66797         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
66798         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
66799         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
66800         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
66801         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
66802         Use an all-permissive copyright notice, recommended by RMS.
66803
66804 2005-01-18  Bob Proulx  <bob@proulx.com>
66805
66806         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
66807         simplify offsetof() macro construct to avoid compile failure with
66808         native HP-UX 11.0 ANSI C compiler.
66809
66810 2005-01-17  Bruno Haible  <bruno@clisp.org>
66811
66812         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
66813         redundant because stpncpy.m4 takes care of it.
66814
66815 2005-01-17  Bruno Haible  <bruno@clisp.org>
66816
66817         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
66818
66819 2005-01-17  Bruno Haible  <bruno@clisp.org>
66820
66821         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
66822         used.
66823
66824 2005-01-17  Bruno Haible  <bruno@clisp.org>
66825
66826         * lib/fwriteerror.h (fwriteerror): Change specification to include
66827         fclose.
66828         * lib/fwriteerror.c: Include <stdbool.h>.
66829         (fwriteerror): At the end, close the file stream. Record whether
66830         stdout was already closed.
66831
66832 2005-01-17  Bruno Haible  <bruno@clisp.org>
66833
66834         * lib/execute.c (environ): Declare if needed.
66835         * lib/pipe.c (environ): Likewise.
66836         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
66837
66838 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66839
66840         * modules/argp: Depend on vsnprintf
66841
66842 2005-01-10  Jim Meyering  <jim@meyering.net>
66843
66844         * modules/closeout (Depends-on): Add atexit.
66845
66846 2005-01-06  Bruno Haible  <bruno@clisp.org>
66847
66848         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
66849
66850 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66851
66852         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
66853         definitions to be after all include files, to avoid collisions.
66854         Problem reported by Bob Proulx.
66855
66856 2005-01-04  Jim Meyering  <jim@meyering.net>
66857
66858         Changes imported from coreutils.
66859         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
66860         as the mkstemp template, use a temporary directory and an
66861         8.3-friendly template to avoid trouble on systems like DJGPP.
66862         Reported by Juan M. Guerrero via Stepan Kasal.
66863         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
66864         close. Remove the temporary directory right away, rather than waiting
66865         for configure's at-exit trap code to do it.
66866         Suggestion from Stepan Kasal.
66867
66868 2005-01-01  Simon Josefsson  <jas@extundo.com>
66869
66870         * gnulib-tool: Print #include directives when --import'ing.
66871
66872 2004-12-28  Simon Josefsson  <jas@extundo.com>
66873
66874         * tests/test-base64.c: Include required header files.  Remove
66875         unused variables.
66876
66877 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * modules/error (Depends-on): Remove gettext.
66880
66881 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
66884         not needed.  This removes a dependency on the gettext module.
66885         [defined _LIBC]: Do not include <libintl.h>; not needed.
66886
66887 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66888
66889         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
66890         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
66891
66892 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66893
66894         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
66895         HAVE_DECL_STRTOLD.
66896
66897 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66898
66899         * modules/getdate (Depends-on): Remove alloca-opt.
66900
66901 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66902
66903         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
66904
66905 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         * lib/argp-parse.c: Include <stddef.h>.
66908         (alignof, alignto): New macros.
66909         (parser_init): Don't assume that void * is aligned sufficiently
66910         for struct option.
66911
66912         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
66913         need to extend the stack.
66914         (YYINITDEPTH): New macro, so that the initial stack isn't overly
66915         large.
66916
66917 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66918
66919         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
66920
66921 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66922
66923         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
66924         (2004-10-24) change.  Apparently this was a false alarm.
66925
66926         * modules/getdate: Depend on alloca-opt, not alloca.
66927
66928 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66929
66930         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
66931         Remove now-obsolete comment about AIX.
66932         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
66933         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
66934         (YYMAXDEPTH): New macro.
66935
66936 2004-12-18  Simon Josefsson  <jas@extundo.com>
66937
66938         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
66939
66940 2004-12-18  Bruno Haible  <bruno@clisp.org>
66941
66942         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
66943
66944 2004-12-18  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/fatal-signal.c (fatal_signals): Make non-const.
66947         (init_fatal_signals): New function.
66948         (uninstall_handlers, install_handlers): Ignore signals that were set to
66949         SIG_IGN.
66950         (at_fatal_signal): Call init_fatal_signals.
66951         (init_fatal_signal_set): Likewise. Ignore signals that were set to
66952         SIG_IGN.
66953         Reported by Paul Eggert.
66954
66955 2004-12-18  Bruno Haible  <bruno@clisp.org>
66956
66957         * doc/alloca.texi: New file.
66958         * doc/alloca-opt.texi: New file.
66959
66960 2004-12-17  Jim Meyering  <jim@meyering.net>
66961
66962         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
66963         Otherwise, install-sh could exit with improper exit status when
66964         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
66965
66966 2004-12-16  Simon Josefsson  <jas@extundo.com>
66967
66968         * tests/test-base64.c: Add license.
66969
66970 2004-12-15  Stepan Kasal  <address@hidden>
66971
66972         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
66973
66974 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
66975
66976         * modules/getcwd (Files): Add m4/d-ino.m4.
66977         Suggested by Mark D. Baushke.
66978
66979 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         * lib/getdate.y (textint): New member "negative".
66982         (time_zone_hhmm): New function.
66983         Expect 14 shift-reduce conflicts, not 13.
66984         (o_colon_minutes): New rule.
66985         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
66986         (yylex): Set the "negative" member of signed numbers.
66987
66988 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66989
66990         * doc/getdate.texi (Time of day items, Time zone items):
66991         Describe new formats +00:00, UTC+00:00.
66992
66993 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66994
66995         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
66996         spurious "-l"s.  Problem reported by Stepan Kasal.
66997
66998 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
66999
67000         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67001         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67002
67003 2004-12-04  Simon Josefsson  <jas@extundo.com>
67004
67005         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67006         Vandoorselaere <yoann@prelude-ids.org>.
67007
67008 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67009
67010         Changes imported from coreutils.
67011         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67012         exist.
67013         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67014
67015 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67016
67017         Changes imported from coreutils.
67018         * lib/hard-locale.c: Assume <locale.h> exists.
67019         Include "strdup.h".
67020         (GLIBC_VERSION): New macro.
67021         (hard_locale): Assume setlocale exists.
67022         Rewrite to avoid #ifdef.
67023         Use strdup rather than malloc + strcpy.
67024         * lib/human.c: Assume <locale.h> exists.
67025         (human_readable): Assume localeconv exists.
67026
67027 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * modules/hard-locale (Depends-on): Add strdup.
67030
67031 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67032
67033         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67034         convert T2, not T.  (Imported from libc.)
67035
67036 2004-11-30  Simon Josefsson  <jas@extundo.com>
67037
67038         * modules/restrict (License): Change to LGPL.
67039
67040 2004-11-30  Simon Josefsson  <jas@extundo.com>
67041
67042         * m4/restrict.m4: Add copyright and copying conditions.
67043
67044 2004-11-30  Simon Josefsson  <jas@extundo.com>
67045
67046         * m4/base64.m4: New file.
67047
67048 2004-11-30  Simon Josefsson  <jas@extundo.com>
67049
67050         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67051         base64.
67052
67053         * tests/test-base64.c: New file.
67054
67055         * modules/base64: New file.
67056
67057 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67058
67059         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67060         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67061
67062         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67063
67064 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67065
67066         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67067         (__getcwd.c): Don't restore errno; glibc doesn't.
67068         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67069         first, falling back to our code only if its results look suspicious.
67070         Ensure that the resulting buffer is only as large as necessary.
67071
67072         * lib/readutmp.c: Include readutmp.h first.
67073         Include <errno.h>, since readutmp.h no longer does that.
67074         * lib/readutmp.h: Don't include <errno.h>,
67075         <sys/param.h>, <time.h>; not needed to establish interface.
67076         (errno): Remove decl.
67077         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67078         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67079         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67080
67081 2004-11-28  Simon Josefsson  <jas@extundo.com>
67082
67083         * lib/base64.h, base64.c: New file.
67084
67085 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67086
67087         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67088
67089 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67090
67091         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67092         (Depends-on): Remove pathmax, same.  Add mempcpy.
67093         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67094         (Makefile.am): Append getcwd.h to lib_SOURCES.
67095         (Include): Add getcwd.h.
67096         (Maintainer): Change from Jim Meyering to "all, glibc",
67097         since getdate now uses intended-for-glibc code.
67098         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67099         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67100
67101 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67102
67103         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67104         HP's ANSI C compiler.
67105         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67106         Declaring int functions causes warnings on some modern systems and
67107         shouldn't be needed to compile on ancient ones.
67108         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67109         defined.
67110
67111         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67112         with the following changes.
67113         (__set_errno): Parenthesize properly.
67114         Include <stdbool.h>.
67115         (MIN, MAX, MATCHING_INO): New macros.
67116         (__getcwd): Define with prototype, not K&R form.
67117         Use heuristics to allocate default buffer on stack if possible.
67118         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67119         behavior, and to avoid the PATH_MAX limit when computing
67120         ../../../../...
67121         Use MATCHING_INO to compare inode number to file.
67122         Check for arithmetic overflow in size calculations.
67123         Fix bug in reallocation of dot array that caused getcwd to fail
67124         on directories nested deeper than 75.
67125         Be more careful about saving errno on error.
67126         Do not use realloc; use only free+malloc, as this is a bit
67127         more flexible and avoids a needless copy operation.
67128         Do not inspect st_dev and st_ino for symbolic links; POSIX
67129         doesn't specify the latter.
67130         Check for closedir errors.
67131         Avoid needless casts.
67132         Use "#ifdef weak_alias" around weak_alias, to be like other
67133         glibc code.
67134         The following changes to getcwd.c have effect only when used in
67135         gnulib; they have no effect inside glibc proper.
67136         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67137         as alloca isn't used.
67138         (alloca, __alloca): Likewise.
67139         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67140         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67141         unconditionally, as gnulib assumes C89 or better.
67142         Do not include <sys/param.h>.
67143         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67144         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67145         better.
67146         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67147         Include <dirent.h> in a way that is compatible with modern Autoconf.
67148         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67149         New macros, if not already defined.
67150         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67151         Use "_LIBC", not "defined _LIBC", for consistency.
67152         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67153         a mempcpy module.
67154         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67155         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67156         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67157         credit only to Jim Meyering and adjust the copyright dates.
67158         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67159         <stdlib.h>, <unistd.h>, "pathmax.h".
67160         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67161         (INITIAL_BUFFER_SIZE): Remove.
67162         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67163
67164 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67165
67166         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67167         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67168         Use the _ONCE methods, for efficiency.
67169         Check for fcntl.h.  In test program, include <errno.h>
67170         and <fcntl.h> if available.  Remove old K&R cruft from
67171         test program.  Check for common errors in GNU/Linux,
67172         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67173         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67174         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67175         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67176         name accordingly.
67177         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67178         accommodate new getcwd.c.
67179         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67180         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67181         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67182         that's all we need now.
67183
67184 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67185
67186         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67187         argp-parse.c depends on getopt internals, that means we should
67188         always use our getopt, to be on the safe side.
67189         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67190         order not to spoil the result of an eventual previous invocation
67191         of gl_GETOPT_SUBSTITUTE.
67192
67193 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67194
67195         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67196         redefinition warnings. To avoid them, include the defines
67197         in `#if !defined __need_getopt ... #endif'. The only place
67198         where __getopt_argv_const is used is in definitions
67199         of getopt_long and getopt_long_only below, which are as well
67200         protected by `#ifndef __need_getopt'.
67201         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67202         __need_getopt after including <stdio.h> and <unistd.h> These
67203         headers might have defined it.
67204
67205 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67208
67209 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67210
67211         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67212         (futimens): New function, which uses futimes if available.
67213         (futimens, utimens): Support timespec==NULL, with same semantics
67214         as utime and utimens.
67215         * lib/utimens.h (futimens): New decl.
67216
67217 2004-11-23  Jim Meyering  <jim@meyering.net>
67218
67219         * lib/getopt_.h: Remove trailing blanks.
67220
67221 2004-11-23  Jim Meyering  <jim@meyering.net>
67222
67223         * lib/__fpending.c: Add comment.
67224
67225 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67226
67227         * modules/canonicalize (Depends-on): Add xreadlink.
67228         Problem reported by James Youngman.
67229
67230 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67231
67232         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67233         New macros.
67234         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67235         optopt): Use them instead of invoking ## directly; otherwise, the
67236         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67237
67238 2004-11-19  Bruno Haible  <bruno@clisp.org>
67239
67240         * lib/strtok_r.c: Move comments from here...
67241         * lib/strtok_r.h: ... to here.
67242
67243 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67244
67245         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67246         implementations that mishandle size_t overflow.
67247
67248 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67249
67250         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67251         might fail.  Problem reported by Yoann Vandoorselaere.
67252         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67253         implementations that mishandle size_t overflow.
67254
67255 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67256
67257         * modules/canon-host (Depends-on): Add strdup.
67258
67259 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67260
67261         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67262
67263 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67264
67265         * lib/canon-host.c: Include "strdup.h".
67266         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67267         Use strdup instead of malloc/strcpy to duplicate strings.
67268
67269         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67270         (human_space_before_unit): New constant.
67271         * lib/human.c (human_readable): Support it.
67272
67273         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67274         (xgetcwd): Set errno correctly when failing.
67275         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67276         the failure is actually due to a PATH_MAX problem.
67277
67278         Further getopt changes to make it more likely that glibc will
67279         buy the changes back.
67280         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67281         (getopt): Use it, so to preserve glibc semantic
67282         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67283         when compiling for libc.
67284         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67285         (getopt_long, getopt_long_only): Use it.
67286
67287         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67288         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67289         (getopt): Argv is now char * const *, as per standard.
67290         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67291         not char *__getopt_argv_const *.
67292         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67293         _getopt_long_only_r): Likewise.
67294         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67295         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67296         _getopt_long_r, _getopt_long_only_r): Likewise.
67297         * lib/getopt_.h (__getopt_argv_const): Remove.
67298         (getopt): Argv is now char * const *, as per standard.
67299
67300         * lib/getdate.y (tORDINAL): New token.
67301         (day, relunit): Allow it for relative times.
67302         (relative_time_table): Use tORDINAL for ordinals.
67303
67304 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67305
67306         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67307         Document that "second" isn't allowed as an ordinal number.
67308
67309 2004-11-16  Jim Meyering  <jim@meyering.net>
67310
67311         * modules/closeout (Depends-on): Add fpending.
67312
67313 2004-11-15  Jim Meyering  <jim@meyering.net>
67314
67315         * lib/closeout.c: Include "__fpending.h" once again.
67316         Include <stdbool.h>.
67317         (close_stdout): Don't fail just because stdout was closed initially,
67318         since some programs don't write to stdout in the normal course of
67319         operation (other than --version and --help), and we don't want this
67320         function to make e.g. `touch file >&-' fail.
67321         But do fail if it was closed and someone has tried to write to it.
67322         E.g., `printf foo >&-' must fail.
67323
67324 2004-11-13  Jim Meyering  <jim@meyering.net>
67325
67326         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67327
67328 2004-11-12  Simon Josefsson  <jas@extundo.com>
67329
67330         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67331         small doc fix is still pending.
67332
67333 2004-11-11  Simon Josefsson  <jas@extundo.com>
67334
67335         * modules/strtok_r: New file.
67336
67337         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67338         strtok_r.
67339
67340 2004-11-11  Simon Josefsson  <jas@extundo.com>
67341
67342         * m4/strtok_r.m4: New file.
67343
67344         * m4/getopt.m4: Replace opterr.
67345
67346 2004-11-11  Simon Josefsson  <jas@extundo.com>
67347
67348         * lib/strtok_r.h, strtok_r.c: New file.
67349
67350 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
67353         of replacing opterr, getopt, etc.  This should handle the
67354         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67355
67356 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67357
67358         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67359         we can stop lying to compilers about the constness of argv when we
67360         are compiled outside glibc.
67361         (getopt, getopt_long, getopt_long_only): Use it.
67362         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67363         _getopt_internal, getopt): Likewise.
67364         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67365         _getopt_long_only_r): Likewise.
67366         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67367         _getopt_long_r, _getopt_long_only_r): Likewise.
67368
67369         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67370         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67371         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67372         the other external symbols.
67373         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67374         declaration, since the above renaming now works around collisions.
67375
67376 2004-11-11  Jim Meyering  <jim@meyering.net>
67377
67378         * lib/linebreak.c: Remove trailing blanks.
67379         * lib/alloca_.h: Likewise.
67380         * lib/acosl.c: Likewise.
67381         * lib/euidaccess.c: Likewise.
67382         * lib/allocsa.h: Likewise.
67383
67384 2004-11-10  Simon Josefsson  <jas@extundo.com>
67385
67386         * m4/getaddrinfo.m4: New file.
67387
67388 2004-11-10  Simon Josefsson  <jas@extundo.com>
67389
67390         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67391
67392 2004-11-10  Simon Josefsson  <jas@extundo.com>
67393
67394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67395         getaddrinfo.
67396
67397         * modules/getaddrinfo: New file.
67398
67399 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67402
67403 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67404
67405         * lib/mktime.c (SHR): New macro, which is a portable
67406         substitute for >> that should work even on Crays.
67407         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67408         Problem reported by Mark D. Baushke in
67409         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67410         * lib/getdate.y (SHR): Likewise.
67411         (tm_diff): Use it.
67412         * lib/strftime.c (SHR): Likewise.
67413         (tm_diff): Use it.
67414         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67415         quote_these_too, so that right shifts are well defined.  All uses
67416         changed.
67417
67418 2004-11-10  Jim Meyering  <jim@meyering.net>
67419
67420         Ensure that no close failure goes unreported.
67421         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
67422         return early when it seems there's nothing to flush.
67423         Don't include __fpending.h.
67424
67425 2004-11-10  Jim Meyering  <jim@meyering.net>
67426
67427         * modules/closeout (Depends-on): Remove fpending.
67428
67429 2004-11-10  Jim Meyering  <jim@meyering.net>
67430
67431         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
67432
67433 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67434
67435         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
67436         gl_FUNC_STRFTIME.
67437         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
67438         and AC_REQUIRE when possible, to avoid duplicate checks.
67439         Check for <wchar.h>.
67440
67441 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67442
67443         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
67444
67445 2004-11-09  Bruno Haible  <bruno@clisp.org>
67446
67447         * m4/sockpfaf.m4: New file.
67448
67449 2004-11-05  Bruno Haible  <bruno@clisp.org>
67450
67451         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
67452         Reported by Mark D. Baushke <mdb@cvshome.org>.
67453
67454 2004-11-04  Bruno Haible  <bruno@clisp.org>
67455
67456         2004-09-11  Bruno Haible  <bruno@clisp.org>
67457                 * allocsa.valgrind: New file.
67458         2004-02-06  Bruno Haible  <bruno@clisp.org>
67459                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
67460                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
67461                 Reported by Christopher Seip <chris.seip@hp.com>.
67462
67463 2004-11-04  Bruno Haible  <bruno@clisp.org>
67464
67465         * modules/allocsa (Files): Add lib/allocsa.valgrind.
67466         (Makefile.am): Distribute it.
67467
67468 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67469
67470         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
67471         with errno == ERANGE if the buffer is too small.
67472         Problem reported by Mark D. Baushke.
67473
67474 2004-11-03  Albert Chin  <china@thewrittenword.com>
67475             Paul Eggert  <eggert@cs.ucla.edu>
67476
67477         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
67478         equivalent, substitute $ac_type for equivalent type rather than
67479         blindly using uint32_t *always* which won't work if uint32_t is not
67480         available.  Define _UINT32_T to work around typedef of uint32_t if
67481         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
67482         2.5.1.
67483
67484 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67485
67486         * m4/jm-macros.m4: Sync from coreutils.
67487         (gl_MACROS): Check for mbrlen, for pathchk.
67488         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
67489
67490 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67491
67492         * lib/xreadlink.c (MAXSIZE): New macro.
67493         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
67494         size does not exceed MAXSIZE.  Avoid cast.
67495         As suggested by Mark D. Baushke in
67496         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
67497         if readlink fails with buffer size just under MAXSIZE, try again
67498         with MAXSIZE.
67499
67500 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
67503
67504 2004-11-02  Derek R. Price  <derek@ximbiot.com>
67505         and  Paul Eggert  <eggert@cs.ucla.edu>
67506
67507         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
67508         (get_date): Overparenthesize to avoid GCC warning.
67509
67510 2004-11-02  Bruno Haible  <bruno@clisp.org>
67511
67512         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
67513         returns void.
67514
67515 2004-11-02  Bruno Haible  <bruno@clisp.org>
67516
67517         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
67518         function returns void.
67519
67520 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67521
67522         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
67523         fflush_unlocked, flockfile, funlockfile, funlockfile,
67524         fputs_unlocked, putc_unlocked.
67525
67526 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67529         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
67530         already declared.
67531
67532 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67533
67534         * modules/getdate (Files): Add doc/getdate.texi.
67535         (Depends-on): Add setenv, xalloc.
67536
67537 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67538
67539         * lib/getdate.y: Add support for TZ="foo" within a date string.
67540         Fix some bugs near time_t boundaries.  Reject dates with
67541         out-of-range components, e.g., "Sept 31".
67542         Include <stdlib.h>, "setenv.h", "xalloc.h".
67543         (ISDIGIT_LOCALE): Remove; unused.
67544         Note that the TZ and time functions used here are not reentrant.
67545         (mktime_ok, get_tz): New functions.
67546         (TZBUFSIZE): New constant.
67547         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
67548         This requires that we sometimes generate our own TZ="XXX..." setting.
67549
67550 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * doc/getdate.texi: New file, from coreutils with modifications for
67553         the new TZ parsing.
67554
67555 2004-10-27  Derek R. Price  <derek@ximbiot.com>
67556
67557         * lib/mktime.c (not_equal_tm): Remove redundant check.
67558
67559 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67560
67561         * modules/regex (lib_SOURCES): Add regex.c.
67562         Reported by James Youngman in
67563         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
67564
67565 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67566
67567         * lib/getdate.y: Use Bison 1.875 features, and some minor
67568         code cleanups.  This change does not affect semantics.
67569         Don't include <stdlib.h>; no longer needed.
67570         Don't include unlocked-io.h; only the "#if TEST" code uses
67571         stdio, and performance isn't crucial there.
67572         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
67573         Bison 1.875 features as described below.
67574         All uses of "PC." replaced by "pc->".
67575         (YYSTYPE): Add a forward declaration.
67576         (yylex, yyerror): Use full prototypes in forward decls.
67577         Use "%pure-parser" rather than obsolescent "%pure_parser".
67578         Use %parse-param and %lex-param instead of obsolescent
67579         YYPARSE_PARAM and YYLEX_PARAM.
67580         (meridian_table, month_and_day_table, time_units_table,
67581         relative_time_table, time_zone_table, military_table,
67582         lookup_zone, lookup_word, get_date):
67583         Use NULL instead of 0 where appropriate.
67584         (to_hour): Avoid abort (), to avoid a dependency on
67585         stdlib.h.
67586         (yyerror, yylex): Now accepts parser_control * arg.
67587         (main) [TEST]: Use '\0' rather than 0 for char.
67588
67589 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67590
67591         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
67592
67593 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67594
67595         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
67596         It's now the caller's responsibility to handle the case where
67597         !HAVE_GETPAGESIZE && !defined getpagesize.
67598
67599         * lib/mktime.c (leapyear): Arg is long int, not int.
67600
67601 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
67602
67603         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
67604
67605 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67606
67607         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
67608         missing.  Problem reported by James Youngman.
67609
67610 2004-10-16  Simon Josefsson  <jas@extundo.com>
67611
67612         * gnulib-tool: Fix comments.  Fix parse problem.
67613         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
67614
67615 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
67618         implementation of getopt_long.  Problem reported by Alexander Taler in:
67619         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
67620
67621 2004-10-15  Bruno Haible  <bruno@clisp.org>
67622
67623         * gnulib-tool: Untabify. Initialize supplied_libname.
67624         (func_usage): More homogenous output.
67625         (func_modules_transitive_closure, func_modules_to_filelist,
67626         func_emit_lib_Makefile_am): New functions.
67627         (func_import): New function, extracted from big case statement. Use
67628         func_get_license, func_modules_transitive_closure,
67629         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
67630         opt_lgpl. Don't use test -a, as it's not portable.
67631         (func_create_testdir): Use func_modules_transitive_closure,
67632         func_modules_to_filelist, func_emit_lib_Makefile_am.
67633
67634 2004-10-15  Bruno Haible  <bruno@clisp.org>
67635
67636         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
67637
67638 2004-10-15  Bruno Haible  <bruno@clisp.org>
67639
67640         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
67641         the portions belonging to each module.
67642         Suggested by Derek Robert Price <derek@ximbiot.com>.
67643
67644 2004-10-12  Simon Josefsson  <jas@extundo.com>
67645
67646         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67647         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
67648         to real functions.
67649
67650 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67651
67652         * modules/vsnprintf: New file.
67653
67654 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67655
67656         * m4/vsnprintf.m4: New file.
67657
67658 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67659
67660         * lib/vsnprintf.h: New file.
67661         * lib/vsnprintf.c: New file.
67662
67663 2004-10-11  Bruno Haible  <bruno@clisp.org>
67664
67665         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
67666         vsnprintf.
67667
67668 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67669
67670         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
67671
67672 2004-10-07  Bruno Haible  <bruno@clisp.org>
67673
67674         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
67675         fits into the provided buffer.
67676
67677 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67678
67679         * lib/diacrit.c, diacrit.h: Add GPL notice.
67680
67681         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
67682         notice.
67683         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
67684         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
67685         This avoids a potential constant-folding bug.
67686
67687 2004-10-05  Bruno Haible  <bruno@clisp.org>
67688
67689         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
67690         for the declaration of strsep.
67691
67692 2004-10-05  Bruno Haible  <bruno@clisp.org>
67693
67694         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
67695
67696 2004-10-04  Simon Josefsson  <jas@extundo.com>
67697
67698         * modules/memmem: New file.
67699         * tests/test-memmem.c: New file.
67700         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
67701
67702 2004-10-04  Simon Josefsson  <jas@extundo.com>
67703
67704         * m4/memmem.m4: New file.
67705
67706 2004-10-04  Simon Josefsson  <jas@extundo.com>
67707
67708         * lib/memmem.h: New file.
67709         * lib/memmem.c: New file, taken from glibc.
67710
67711 2004-10-04  Simon Josefsson  <jas@extundo.com>
67712
67713         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
67714         '#ifdef USE_UNLOCKED_IO'.
67715
67716 2004-10-04  Simon Josefsson  <jas@extundo.com>
67717
67718         * config/srclist.txt: Add memmem from glibc.
67719
67720 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67721
67722         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
67723
67724         * modules/argmatch, modules/argp, modules/closeout, modules/error,
67725         modules/exclude, modules/getdate, modules/getline,
67726         modules/getndelim2, modules/getpass, modules/getpass-gnu,
67727         modules/getusershell, modules/linebuffer, modules/md5,
67728         modules/mountlist, modules/posixtm, modules/readtokens,
67729         modules/readutmp, modules/regex, modules/sha1,
67730         modules/version-etc, modules/yesno:
67731         Remove dependency on unlocked-io.
67732
67733 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67734
67735         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
67736
67737         * m4/unlocked-io.m4: Add copyright notice.
67738         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
67739
67740 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67741
67742         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
67743         * lib/xmalloc.c (xmemdup): Likewise.
67744         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
67745         XFREE): Remove these long-obsolescent macros.
67746         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
67747         * lib/xstrdup.c: Remove.
67748
67749         * lib/regex.c (re_comp): Cast gettext return value to char *,
67750         Problem reported by Martin Neitzel via Mark D. Baushke.
67751
67752 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67753
67754         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
67755         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
67756         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
67757         regex.c, sha1.c, version-etc.c, yesno.c:
67758         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
67759         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
67760         the includer's responsibility.
67761
67762         Sync from coreutils.
67763
67764         * lib/modechange.c (mode_compile): Don't decrement a pointer that
67765         points to the start of a string, as the C Standard says the
67766         resulting behavior is undefined.
67767
67768         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
67769         simple -> simple_backups, numbered_existing ->
67770         numbered_existing_backups, numbered -> numbered_backups
67771         to avoid shadowing problems.  All uses changed.
67772         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
67773         * lib/backupfile.c (check_extension, numbered_backup):
67774         Rename locals to avoid shadowing 'basename'.
67775         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
67776         once.
67777
67778         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
67779         * lib/.cvsignore: Add getopt.h.
67780
67781 2004-10-04  Bruno Haible  <bruno@clisp.org>
67782
67783         * modules/README: New file.
67784         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
67785         not a module.
67786
67787 2004-10-02  Jim Meyering  <jim@meyering.net>
67788
67789         * lib/dirfd.h, getpagesize.h: Add copyright notice.
67790
67791 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67792
67793         * modules/strsep: New file.
67794
67795 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67796
67797         * m4/strsep.m4: New file.
67798
67799 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67800
67801         * lib/strsep.h: New file.
67802         * lib/strsep.c: New file.
67803
67804 2004-10-01  Simon Josefsson  <jas@extundo.com>
67805
67806         * lib/snprintf.c (snprintf): Handle size==0.
67807
67808 2004-10-01  Simon Josefsson  <jas@extundo.com>
67809             Bruno Haible  <bruno@clisp.org>
67810
67811         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
67812         (snprintf): Declare 'args'.
67813
67814 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
67815
67816         * lib/snprintf.c: Remove comments as to why each header is needed.
67817
67818 2004-10-01  Bruno Haible  <bruno@clisp.org>
67819
67820         * MODULES.html.sh: Add strsep.
67821
67822 2004-09-30  Simon Josefsson  <jas@extundo.com>
67823
67824         * modules/snprintf: New file.
67825
67826 2004-09-30  Simon Josefsson  <jas@extundo.com>
67827
67828         * m4/snprintf.m4: New file.
67829
67830 2004-09-30  Simon Josefsson  <jas@extundo.com>
67831
67832         * lib/snprintf.h, lib/snprintf.c: New files.
67833
67834 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67835
67836         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
67837         (hol_entry_help): Never translate an empty string.
67838         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
67839         * lib/argp.h (OPTION_NO_TRANS): New option.
67840
67841 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67842
67843         * modules/argp (Maintainer): Replace Simon Josefsson
67844         by Sergey Poznyakoff.
67845
67846 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67847
67848         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
67849         changes merged back into glibc.
67850
67851 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67852
67853         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
67854
67855 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67856
67857         * lib/xvasprintf.c: Include xalloc.h.
67858         (xvasprintf): Use xalloc_die, not xmalloc_die.
67859
67860 2004-09-29  Bruno Haible  <bruno@clisp.org>
67861
67862         * modules/alloca-opt: New file, derived from modules/alloca.
67863         * modules/allocsa: Depend on alloca-opt instead of alloca.
67864         * modules/setenv: Likewise.
67865         * modules/vasnprintf: Likewise.
67866         * MODULES.html.sh: Add alloca-opt.
67867
67868 2004-09-28  Simon Josefsson  <jas@extundo.com>
67869
67870         * gnulib-tool: New parameter --lgpl, to asseert that modules are
67871         LGPL, and to replace license template from GPL to LGPL.
67872
67873 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67874
67875         * modules/dummy: Change license to LGPL.
67876
67877 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67878
67879         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
67880
67881 2004-09-24  Simon Josefsson  <jas@extundo.com>
67882
67883         * modules/minmax (License): Change from GPL to LGPL.
67884
67885 2004-09-23  Simon Josefsson  <jas@extundo.com>
67886
67887         * gnulib-tool (--import): Typo.
67888
67889 2004-09-23  Simon Josefsson  <jas@extundo.com>
67890
67891         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
67892
67893 2004-09-22  Bruno Haible  <bruno@clisp.org>
67894
67895         * modules/*: Add 'License' field.
67896         * gnulib-tool: Accept --extract-license option.
67897         (func_get_license): New function.
67898
67899 2004-09-21  Bruno Haible  <bruno@clisp.org>
67900
67901         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
67902         Reported by Simon Josefsson.
67903
67904 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67905
67906         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
67907         gl_AC_TYPE_LONG_LONG.
67908
67909 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67910
67911         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
67912
67913 2004-09-18  Simon Josefsson  <jas@extundo.com>
67914         and  Paul Eggert  <eggert@cs.ucla.edu>
67915
67916         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
67917         calls with autoreconf.  Define GL_LIB.
67918
67919 2004-09-14  Karl Berry  <karl@gnu.org>
67920
67921         * config/srclist.txt: unsync setenv.c, sigh.
67922
67923 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67924
67925         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
67926         Problem reported by Bruno Haible in:
67927         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
67928
67929 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67930
67931         * config/srclist.txt: Comment out argp-pvh.c.
67932
67933 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
67934
67935         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
67936         in case some system header has #define'd it.  Problem reported by
67937         Soeren D. Schulze in
67938         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
67939
67940 2004-09-09  Karl Berry  <karl@gnu.org>
67941
67942         * regex.[ch]: delete from the root.  These were supposed to be
67943                 synced with emacs cvs, but this has not happened for about
67944                 a year, and anyway nothing else uses emacs regex.[ch].
67945                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
67946                 lib/regex[.ch] is untouched.
67947
67948 2004-09-09  Bruno Haible  <bruno@clisp.org>
67949
67950         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
67951
67952 2004-09-09  Bruno Haible  <bruno@clisp.org>
67953
67954         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
67955         modifications.
67956         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
67957
67958 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67959
67960         * modules/xvasprintf: New file.
67961         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
67962
67963 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67964
67965         * lib/xvasprintf.h: New file.
67966         * lib/xvasprintf.c: New file.
67967         * lib/xasprintf.c: New file.
67968
67969 2004-09-08  Bruno Haible  <bruno@clisp.org>
67970
67971         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
67972
67973 2004-09-08  Bruno Haible  <bruno@clisp.org>
67974
67975         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
67976         length is > INT_MAX.
67977         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
67978         more.
67979
67980 2004-09-08  Bruno Haible  <bruno@clisp.org>
67981
67982         * lib/stdint_.h: New file, taken from GNU clisp.
67983
67984 2004-09-08  Bruno Haible  <bruno@clisp.org>
67985             Oskar Liljeblad  <oskar@osk.mine.nu>
67986
67987         * modules/stdint: New file.
67988         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
67989
67990 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67991
67992         Import from coreutils.
67993         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
67994         strings on unbounded length.  alloca's performance benefits aren't
67995         that important here.
67996         (V_STRDUP): Remove.
67997         (parse_with_separator): New function, with most of the internals
67998         of the old parse_user_spec.  Allow user to omit both user and group,
67999         for compatibility with FreeBSD.
68000         Clone only the user name, not the entire spec.
68001         Do not set *uid, *gid unless entirely successful.
68002         Avoid memory leak in some failing cases.
68003         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68004         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68005         (parse_user_spec): Rewrite to use parse_with_separator.
68006
68007 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68008
68009         * modules/userspec: Don't depend on alloca.
68010
68011 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68012
68013         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68014
68015 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68016
68017         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68018         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68019         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68020
68021 2004-08-16  Simon Josefsson  <jas@extundo.com>
68022
68023         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68024         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68025         Add --dry-run for --import.
68026         Let user provided command line parameters override configure.ac
68027         settings.
68028
68029 2004-08-12  Simon Josefsson  <jas@extundo.com>
68030
68031         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68032         as discussed with Paul Eggert in threads rooted at
68033         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68034         and
68035         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68036         Before, the test was empty, and relied on ELIDE_CODE in source
68037         code.)
68038         (gl_PREREQ_GETOPT): New macro.
68039         (gl_GETOPT): Use them.
68040
68041 2004-08-12  Simon Josefsson  <jas@extundo.com>
68042
68043         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68044         * lib/getopt_.h: Renamed from getopt.h.
68045
68046 2004-08-12  Simon Josefsson  <jas@extundo.com>
68047
68048         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68049         Change default library name from libfoo to libgnu.
68050         Now, if you have a configure.ac that says:
68051                 gl_SOURCE_BASE(gl)
68052                 gl_M4_BASE(gl/m4)
68053                 gl_MODULES(error getopt etcetera)
68054                 gl_INIT
68055         you can import all you need by running:
68056                 ../gnulib/gnulib-tool --import
68057
68058         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68059         (Makefile.am): Rewrite, use logic from argz.
68060         (Include): Use <getopt.h> instead of "getopt.h".
68061
68062 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68063
68064         * modules/argp (Files): Add m4/unlocked-io.m4.
68065         (Depends-on): Add extensions.
68066
68067 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68068
68069         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68070         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68071         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68072         Check for program_invocation_name, program_invocation_short_name,
68073         flockfile, funlockfile, features.h, _getopt_long_only_r.
68074
68075 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68076
68077         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68078         its complicated substitute.
68079         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68080         and program_invocation_name.
68081         (__argp_basename) [!_LIBC]: Remove; the only use was
68082         replaced by its body.
68083         (__argp_short_program_name): Change condition from
68084         !defined __argp_short_program_name to
68085         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68086         to match argp-namefrob.h.
68087         (__argp_failure): Don't assume strerror_r returns char *.
68088         * lib/argp-parse.c (N_): Define unconditionally.
68089         (argp_default_options): Fill out initializers with 0 to avoid
68090         gcc warnings.
68091
68092 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68093
68094         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68095         getopt1.c.
68096
68097 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         Merge from coreutils.
68100
68101         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68102
68103         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68104         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68105
68106 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68107
68108         Merge from coreutils.
68109
68110         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68111         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68112         for Reliant Unix 5.43.
68113
68114         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68115         (union fooround): Use uintmax_t, not long int.
68116         The rest is a merge from libc:
68117         [defined _LIBC]: Include <shlib-compat.h>.
68118         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68119
68120         * lib/settime.c (settime): Recode to avoid warning with
68121         Sun Forte C 6U2.
68122
68123         * lib/strverscmp.c: Convert to UTF-8.
68124
68125 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68126
68127         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68128         m4/uintmax_t.m4.
68129
68130 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * modules/xalloc-die: New file.
68133         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68134
68135         * modules/md5 (Files): Add m4/uint32_t.m4.
68136         * modules/sha1: Renamed from modules/sha.
68137         (Files):
68138         Rename lib/sha.h to lib/sha1.h.
68139         Rename lib/sha.c to lib/sha1.c.
68140         Rename m4/sha.m4 to m4/sha1.m4.
68141         (lib_SOURCES): Likewise.
68142         (configure.ac): Rename gl_SHA to gl_SHA1.
68143         (Include): sha.h -> sha1.h.
68144
68145 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68146
68147         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68148         * m4/sha1.m4: Renamed from sha.m4.
68149         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68150
68151 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68152
68153         * lib/obstack.h (obstack_empty_p):
68154         Don't assume that chunk->contents is suitably aligned.
68155         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68156         Likewise. Problem reported by Benno in
68157         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68158
68159         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68160         readable.  This could be improved further but it'd take some work.
68161
68162 2004-08-08  Simon Josefsson  <jas@extundo.com>
68163
68164         * modules/xgethostname (Depends-on): Remove exit and error (not
68165         used).
68166
68167         * modules/getpass-gnu: Add getpass.h.
68168         (Depends-on): Add stdbool.
68169         * modules/getpass: Add getpass.h.
68170
68171 2004-08-08  Simon Josefsson  <jas@extundo.com>
68172
68173         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68174         Check getpass declaration.
68175
68176 2004-08-08  Simon Josefsson  <jas@extundo.com>
68177
68178         * lib/xgethostname.c: Don't include error.h (not used).
68179
68180         * lib/getpass.h: Add.
68181         * lib/getpass.c: Include getpass.h first.
68182
68183 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68184
68185         * lib/xalloc-die.c: New file.
68186         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68187         All uses removed.
68188         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68189         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68190         xalloc-die.c.
68191         (_, N_, xalloc_die): Move to xalloc-die.c.
68192         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68193         so that we needn't mess with xalloc_msg_memory_exhausted.
68194
68195         * lib/sha1.h: Renamed from sha.h.
68196         (SHA1_H): Renamed from _SHA_H.
68197         (sha1_ctx): Renamed from sha_ctx.
68198         (sha1_init_ctx): Renamed from sha_init_ctx.
68199         (sha1_process_block): Renamed from sha_process_block.
68200         (sha1_process_bytes): Renamed from sha_process_bytes.
68201         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68202         (sha1_read_ctx): Renamed from sha_read_ctx.
68203         (sha1_stream): Renamed from sha_stream.
68204         (sha1_buffer): Renamed from sha_buffer.
68205         * lib/sha1.c: Likewise; renamed from sha.c.
68206         Do not include <sys/types.h>.
68207         Include <stddef.h> rather than <stdlib.h>.
68208
68209 2004-08-08  Bruno Haible  <bruno@clisp.org>
68210
68211         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68212         FILESYSTEM_PREFIX_LEN.
68213         * lib/progreloc.c: Likewise.
68214         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68215
68216 2004-08-06  Simon Josefsson  <jas@extundo.com>
68217
68218         * modules/progname (Depends-on): Don't depend on stdbool.
68219
68220 2004-08-06  Simon Josefsson  <jas@extundo.com>
68221
68222         * modules/getsubopt: New file.
68223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68224         getsubopt.
68225
68226 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68227
68228         More merge from coreutils.
68229
68230         * m4/utimens.m4, m4/utimecmp.m4: New files.
68231         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68232         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68233         prereq.m4, sha.m4: Import changes from coreutils.
68234
68235 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68236
68237         More merge from coreutils.
68238         * modules/raise, modules/readtokens0, modules/utimens:
68239         * modules/utimecmp, module/xnanosleep: New files.
68240         * modules/strftime: Add lib/strftime.h.
68241         Change include from <time.h> to "strftime.h".
68242         * modules/yesno: Add lib/yesno.h.
68243         * modules/backupfile: Remove lib/addext.c.
68244         * modules/euidaccess: Add stat-macros.h.
68245         * modules/canonicalize, modules/euidaccess,
68246         modules/filemode, modules/lchown, modules/makepath,
68247         modules/rmdir, modules/stat: Likewise.
68248
68249 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68250
68251         Merge from tar.
68252         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68253         SIZE_MAX is a valid preprocessor constant.
68254         (__argp_basename): Change from "#ifndef _LIBC"
68255         to "#ifndef __argp_short_program_name", so that
68256         we don't compile these functions for tar.
68257
68258         More merges from coreutils.
68259         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68260         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68261         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68262         * lib/addext.c: Remove; no longer needed.
68263         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68264         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68265         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68266         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68267         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68268         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68269         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68270         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68271         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68272         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68273         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68274         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68275         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68276         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68277         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68278         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68279         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68280         Import changes from coreutils.
68281
68282 2004-08-05  Simon Josefsson  <jas@extundo.com>
68283
68284         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68285
68286 2004-08-05  Simon Josefsson  <jas@extundo.com>
68287
68288         * m4/getsubopt.m4: New file.
68289
68290 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68291
68292         Merge from coreutils.
68293
68294         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68295         * m4/getcwd-path-max.m4: New files.
68296
68297         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68298         FILESYSTEM_PREFIX_LEN ->
68299         FILE_SYSTEM_PREFIX_LEN.
68300         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68301         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68302         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68303         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68304
68305         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68306         prerequisite modules now handle the DOS stuff.
68307         Don't check for unistd.h.
68308
68309 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68310
68311         Merge from coreutils.
68312
68313         * lib/.gdb-history: Remove; this doesn't belong here.
68314
68315         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68316         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68317         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68318         * lib/getcwd.c: New files.
68319
68320         * lib/dirname.h: Include <stdbool.h>.
68321         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68322         for consistency with POSIX terminology.  All uses changed.
68323         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68324         (strip_trailing_slashes): Use bool for booleans.
68325         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68326
68327         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68328         sometimes returns a positive errno value even when it succeeds.
68329         (print_errno_message) [!LIBC]: Fall back on strerror if
68330         __strerror_r fails.
68331
68332         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68333         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68334         (longest_relative_suffix): New function.
68335         (path_concat): Use it.  Assume first argument is not NULL.
68336         Port to DOS.  Omit redundant separators.
68337         Report an error instead of returning NULL.
68338         Use mempcpy instead of memcpy.
68339         (xpath_concat): Remove: not declared or used.
68340
68341         * lib/same.h: Include <stdbool.h>
68342         (same_name): Return bool, not int.
68343         * lib/same.c (same_name): Likewise.
68344         (errno): Don't declare; we assume C89 or better now.
68345
68346         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68347         if not already defined.
68348
68349         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68350         * lib/dup-safer.c (errno): Likewise.
68351
68352 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68353
68354         Merge from coreutils.
68355         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68356         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68357         * modules/path-concat: Don't depend on strdup.
68358
68359 2004-08-03  Simon Josefsson  <jas@extundo.com>
68360
68361         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68362         * lib/progname.h: Don't include stdbool.h.
68363
68364 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68365
68366         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68367         * MODULES.html.sh (func_all_modules): Remove fatal.
68368
68369 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68372
68373 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68374
68375         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68376         working.
68377
68378 2004-08-02  Simon Josefsson  <jas@extundo.com>
68379
68380         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68381         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68382         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68383
68384 2004-08-01  Simon Josefsson  <jas@extundo.com>
68385
68386         * lib/xgetdomainname.c: Include stdlib.h, for free().
68387
68388 2004-07-19  Bruno Haible  <bruno@clisp.org>
68389
68390         * MODULES.html.sh (func_all_modules): Add dummy.
68391
68392 2004-07-16  Simon Josefsson  <jas@extundo.com>
68393
68394         * modules/dummy: New file.
68395
68396 2004-07-16  Simon Josefsson  <jas@extundo.com>
68397
68398         * lib/dummy.c: New file.
68399
68400 2004-07-16  Bruno Haible  <bruno@clisp.org>
68401
68402         * lib/backupfile.h: Add extern "C" for C++.
68403         * lib/closeout.h: Likewise.
68404         * lib/copy-file.h: Likewise.
68405         * lib/findprog.h: Likewise.
68406         * lib/full-write.h: Likewise.
68407         * lib/pathname.h: Likewise.
68408         * lib/progname.h: Likewise.
68409         * lib/stpcpy.h: Likewise.
68410         * lib/stpncpy.h: Likewise.
68411         * lib/strcase.h: Likewise.
68412         * lib/strstr.h: Likewise.
68413         * lib/xalloc.h: Likewise.
68414
68415         * lib/mbswidth.h: Add extern "C" for C++.
68416         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
68417
68418 2004-07-13  Robert Millan  <robertmh@gnu.org>
68419
68420         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
68421
68422 2004-07-09  Simon Josefsson  <jas@extundo.com>
68423
68424         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
68425         failed without this.)
68426
68427 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68428
68429         * modules/chown (Files): Add lib/fchown-stub.c, since
68430         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
68431
68432 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68433
68434         * lib/fchown-stub.c: New file.
68435
68436 2004-06-24  Jim Meyering  <jim@meyering.net>
68437
68438         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
68439
68440 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68441
68442         * modules/argz: Omit "#include".
68443
68444         * MODULES.html.sh (func_all_modules): Add calloc, to match
68445         2004-06-01 addition of calloc module.
68446
68447 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68448
68449         * m4/argz.m4: New file, which is autoupdated from libtool.
68450
68451 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68452
68453         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
68454         libtool.
68455
68456 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68457
68458         * config/srclist-update: Don't insist on "USA." before the
68459         close-comment, as libtool omits the period and puts the */ on a
68460         separate line.
68461         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
68462         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
68463
68464 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
68465
68466         * modules/argz: New file.
68467         * MODULES.html.sh (func_all_modules): Add argz.
68468
68469 2004-06-12  Jim Meyering  <jim@meyering.net>
68470         and  Paul Eggert  <eggert@cs.ucla.edu>
68471
68472         * modules/hash (Files): Add lib/xalloc.h.
68473         * modules/pipe (Depends-on): Add wait-process.
68474         * modules/stat (Depends-on): Add xalloc.
68475         * modules/userspec (Files): Add lib/userspec.h.
68476         * modules/xstrto
68477
68478         Upgrade from gettext-0.13.
68479         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
68480         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
68481         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
68482
68483 2004-06-10  Jim Meyering  <jim@meyering.net>
68484
68485         * lib/calloc.c: New file.
68486
68487 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68488
68489         * lib/getdate.y (yylex): Allow space between sign and number.
68490         Problem reported by Dan Jacobson.
68491
68492 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68493
68494         Merge from coreutils CVS.
68495
68496         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
68497         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
68498         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
68499         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
68500         xstrtol.m4: Fix copyright date and/or serial number.
68501
68502         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
68503         See if we need an fchown replacement.
68504         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
68505         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
68506         and use the replacement function if we detect either defect.
68507
68508         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
68509         gl_UTIMECMP.
68510
68511 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68512         and  Jim Meyering  <jim@meyering.net>
68513
68514         Merge from coreutils CVS.
68515
68516         * lib/stat-macros.h: New file, with contents from file-type.h
68517         and coreutils' system.h.
68518         * lib/file-type.c: Include "stat-macros.h".
68519         * lib/file-type.h (file_type): Move all macro definitions to new file,
68520         stat-macros.h.
68521
68522         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
68523         Wrap old code with this conditional.
68524         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
68525         function that does not dereference symlinks.
68526         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
68527
68528         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
68529         dependency problems.
68530         (xreadlink): Accept new arg SIZE, for efficiency.
68531         All decls and uses changed.
68532         * lib/xreadlink.h: Include <stddef.h>, for size_t.
68533
68534         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
68535         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
68536
68537         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
68538         sysexits.h.
68539
68540 2004-06-01  Jim Meyering  <jim@meyering.net>
68541
68542         * m4/calloc.m4: New file.
68543
68544 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
68545
68546         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
68547         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
68548         Also, fix a typo in a diagnostic.
68549
68550 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68551
68552         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
68553         or AC_FUNC_REALLOC.
68554
68555 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
68558         macros to be defined.
68559         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
68560         the allocator returns NULL because the requested size is zero.
68561
68562 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
68565         var.  Add comment explaining why libc still defines it.  This
68566         merges the following patch from glibc:
68567         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
68568
68569 2004-05-20  Andreas Schwab  <schwab@suse.de>
68570
68571         * m4/free.m4: Replace free if it not known to work, not the other
68572         way round.
68573
68574 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68575
68576         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
68577         present in glibc since revision 1.1 of this file.
68578         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
68579         obstack_alignment_mask, obstack_alloc, obstack_base,
68580         obstack_blank, obstack_blank_fast, obstack_chunk_size,
68581         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
68582         obstack_grow0, obstack_init, obstack_int_grow,
68583         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
68584         obstack_next_free, obstack_object_size, obstack_ptr_grow,
68585         obstack_ptr_grow_fast, obstack_room): Remove declarations of
68586         nonexistent functions.
68587
68588 2004-05-18  Karl Berry  <karl@gnu.org>
68589
68590         * config/srclist.txt: break link for vasnprintf.c.
68591
68592 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         Port obstack to the AS/400, where pointers are 16 bytes wide and
68595         you cannot cast an integer to a valid pointer.  This patch is
68596         currently waiting to be integrated into glibc; see
68597         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
68598
68599         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
68600         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
68601         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
68602         (struct obstack): temp member is now a union of a pointer and
68603         an integer, instead of an integer.  All integer uses changed.
68604         This does not affect the physical layout of struct obstack,
68605         except on hosts (like the AS/400) where the size or alignment of
68606         void * is greater than that of ptrdiff_t.
68607         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
68608         __STDC__)]: Store temporary in pointer member of union, not
68609         integer member.
68610         * lib/obstack.c: Include <stddef.h>, for offsetof.
68611         (struct fooalign): Remove; it doesn't need a name.
68612         (union fooround): Change double to long double, and add void *.
68613         (DEFAULT_ALIGNMENT): Use offsetof to compute.
68614         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
68615         not a macro.  Hence the values are always int; so remove all
68616         casts-to-int in uses.
68617
68618 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68619
68620         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
68621         we can get this patch merged into glibc.
68622
68623 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68624             Paul Eggert  <eggert@cs.ucla.edu>
68625
68626         * m4/argp: Depend on alloca.
68627
68628 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68629             Paul Eggert  <eggert@cs.ucla.edu>
68630
68631         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
68632         freecoding.
68633
68634 2004-05-17  Bruno Haible  <bruno@clisp.org>
68635
68636         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
68637         precision that consists of a '.' followed by an empty digit string.
68638         Patch by Tor Lillqvist <tml@iki.fi>.
68639
68640 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68641
68642         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
68643         for backward compatibility with older code.  We need our own
68644         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
68645         it under some other name, and our alloca.h will define it.
68646
68647 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68648             Derek Price  <derek@ximbiot.com>
68649
68650         * lib/alloca.c: Include <alloca.h>, to get our interface.
68651         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
68652         include <alloca.h> first.  Use C89 prototype for alloca; this
68653         requires including <stddef.h> for size_t.  Use extern "C" if C++.
68654         Use #elif for simplicity, since we can assume C89 now.
68655         Don't try to source the system alloca.h since it will not be found
68656         and to prevent recursively including its replacement.
68657         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
68658         * lib/regex.c: Likewise.
68659
68660 2004-05-16  Derek Price  <derek@ximbiot.com>
68661             Paul Eggert  <eggert@cs.ucla.edu>
68662
68663         getline cleanup.  This changes the getndelim2 API: both order of
68664         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
68665         no delimiter).
68666
68667         * lib/getline.c: Don't include stddef.h or stdio.h, since our
68668         interface does that.
68669         (getline): Always use getdelim, so that we don't have two
68670         copies of this code.
68671         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
68672         if available.
68673         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
68674         (GETNDELIM2_MAXIMUM): New macro.
68675         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
68676         instead of the old practice of delim2==0.  All callers changed.
68677         Return -1 on overflow, instead of returning junk.
68678         Do not set *linesize unless allocation succeeds.
68679         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
68680         that we include sys/types.h.
68681         * lib/getnline.h: Likewise.
68682         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
68683         (getndelim2): Reorder arguments.
68684         * lib/getnline.c (getnline, getndelim):
68685         Don't discard the NMAX argument.
68686         (getnline): Invoke getndelim, to avoid code duplication.
68687         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
68688         of (size_t) -1 by callers of the getnline family.
68689
68690 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68691
68692         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
68693         Check for gettimeofday.
68694         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
68695         Check for settimeofday, stime.
68696
68697 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * lib/nanosleep.c (suspended): Change its type from int to
68700         sig_atomic_t volatile.
68701         (first_call): Make it private to rpl_nanosleep, and have it
68702         be zero initially as that's a bit faster.
68703         (my_usleep): Round up fractional times instead of truncating them,
68704         as this is the usual meaning for 'sleep'.
68705
68706         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
68707         doesn't work.
68708         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
68709         (ENOSYS): Define if not defined.
68710         (settime): Fall back on stime if it exists and settimeofday fails.
68711         But don't bother with fallbacks if a method fails with errno == EPERM.
68712
68713 2004-05-11  Jim Meyering  <jim@meyering.net>
68714
68715         Prior to this change, the save_cwd caller required read access to the
68716         current directory on most systems (ones with the fchdir function).
68717
68718         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
68719         fails, try write-only, and finally, resort to using xgetcwd.
68720
68721 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         * lib/obstack.c, obstack.h: Import changes from libc.
68724
68725 2004-04-28  Bruno Haible  <bruno@clisp.org>
68726
68727         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
68728         also implicitly appends .exe to executables.
68729         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
68730         accepts Windows pathnames.
68731         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68732         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68733         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68734         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68735         Reported by Derek Robert Price <derek@ximbiot.com>.
68736
68737 2004-04-21  Karl Berry  <karl@gnu.org>
68738
68739         * config/srclist.txt (localcharset.c): break sync.
68740
68741 2004-04-20  Paul Eggert  <eggert@twinsun.com>
68742
68743         * m4/host-os.m4: Add a copyright notice.
68744
68745 2004-04-20  Jim Meyering  <jim@meyering.net>
68746
68747         Change UTILS_ to gl_ in AC_DEFINE'd names.
68748         Change utils_- and jm_-prefixed variables, too.
68749         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
68750         UTILS_FUNC_MKDIR_TRAILING_SLASH.
68751         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
68752
68753         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
68754         Don't emit trailing blanks.
68755         Also rename jm_-prefixed variables to have gl_ prefix.
68756
68757         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
68758         Also rename jm_-prefixed variables to have gl_ prefix.
68759
68760         * m4/jm-macros.m4: Reflect the renamings.
68761         * m4/prereq.m4: Likewise.
68762
68763 2004-04-20  Jim Meyering  <jim@meyering.net>
68764
68765         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
68766         memory.
68767
68768 2004-04-20  Jim Meyering  <jim@meyering.net>
68769             Bruno Haible  <bruno@clisp.org>
68770
68771         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
68772         memory when realloc fails.
68773
68774 2004-04-19  Jim Meyering  <jim@meyering.net>
68775
68776         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
68777         now that readutmp.c may call `free (0)'.
68778
68779 2004-04-19  Bruno Haible  <bruno@clisp.org>
68780
68781         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
68782         * m4/inttypes_h.m4: Likewise.
68783         * m4/stdint_h.m4: Likewise.
68784         * m4/intmax_t.m4: Likewise.
68785         * m4/uintmax_t.m4: Likewise.
68786
68787 2004-04-18  Jim Meyering  <jim@meyering.net>
68788
68789         * m4/prereq.m4: Don't forbid jm_ prefix.
68790
68791         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
68792         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
68793         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
68794         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
68795         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
68796         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
68797         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
68798         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
68799         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
68800         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
68801         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
68802         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
68803         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
68804         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
68805         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
68806         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
68807         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
68808         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
68809         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
68810
68811 2004-04-18  Jim Meyering  <jim@meyering.net>
68812
68813         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
68814         failure, don't leak memory and do call END_UTMP_ENT.
68815
68816 2004-04-16  Jim Meyering  <jim@meyering.net>
68817
68818         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
68819         coreutils' stat program.
68820         (gl_PREREQ): Don't require jm_PREREQ_STAT.
68821
68822 2004-04-11  Paul Eggert  <eggert@twinsun.com>
68823
68824         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
68825         C89.
68826         (CHAR_BIT): Remove, since we assume C89.
68827         Include <stdint.h> if available, as per current Autoconf CVS advice.
68828
68829 2004-03-31  Jim Meyering  <jim@meyering.net>
68830
68831         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
68832         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
68833         * m4/xalloc.m4: Likewise.
68834
68835 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68836
68837         Merge from coreutils.
68838
68839         * m4/inttostr.m4: New file.
68840         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
68841         Require AM_STDBOOL_H and gl_TIMESPEC instead.
68842         Require gl_CLOCK_TIME.
68843         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
68844
68845 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68846
68847         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
68848         not bool, to be more consistent with Unix conventions.
68849         Suggested by Bruno Haible.
68850
68851         Merge from coreutils.
68852
68853         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
68854         * lib/umaxtostr.c: New files.
68855
68856         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
68857         the usual <time.h> dance.
68858         (get_date): Change signature to support fractional time stamps.
68859         All callers changed.
68860         * lib/getdate.y: Include "getdate.h" first, as we can now
68861         assume C89 and don't need to worry about 'const'.
68862         Similarly, include "unlocked-io.h" near start, not in middle.
68863         Include <limits.h>.
68864         (textint.value): Use long int rather than int.
68865         (textint.digits): Use size_t rather than int.
68866         (BILLION, LOG10_BILLION): New constants.
68867         (parser_control): New member rel_ns.  Members day_ordinal,
68868         time_zone, month, day, hour, minutes, rel_year, rel_month,
68869         rel_day, rel_hour, rel_minutes, rel_seconds
68870         are now long int, not int.  Member seconds is now struct timespec,
68871         not int.  New member timespec_seen.  Members dates_seen, days_seen,
68872         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
68873         not int.
68874         (%union.intval): Now long int, not int.
68875         New member timespec.
68876         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
68877         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
68878         (spec): Now is a timespec or an item list.
68879         (timespec, items): New nonterminals.
68880         (time, rel, relunit, number, get_date):
68881         Add support for fractional seconds.
68882         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
68883         (gmtime, localtime, mktime): Remove decls; not needed with C89.
68884         (to_hour): First arg is now long int, not int.
68885         (to_year): Returns long int, not int.
68886         Don't treat year -70 like 70.
68887         (tm_diff): Returns long int, not int.
68888         (lookup_word): Use bool instead of int when appropriate.
68889         (yylex): Use size_t for count, not int.
68890         Detect overflow when parsing large integer constants.
68891         Add support for fractions.
68892         (get_date): Make pointers 'const' if possible.
68893         Use more-portable code to detect integer overflow.
68894         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
68895         Don't use ctime; it's not reliable if the year has >4 digits.
68896
68897         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
68898         This is for compatibility with BSD.
68899
68900         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
68901         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
68902         From coreutils' system.h.
68903
68904         * lib/userspec.c: Don't include "posixver.h".
68905         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
68906         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
68907         compatible extension.  Simplify code by removing a boolean int
68908         that was always nonzero if a string was nonnull.
68909
68910 2004-03-30  Jim Meyering  <jim@meyering.net>
68911
68912         Merge from coreutils.
68913
68914         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
68915         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
68916         on some systems one must include <grp.h> before it.
68917         Reported by Christian Krackowizer.
68918
68919 2004-03-30  Jim Meyering  <jim@meyering.net>
68920
68921         Merge from coreutils.
68922
68923         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
68924
68925         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
68926         an empty input stream.
68927
68928         * lib/readtokens.c: Include <stdbool.h>.
68929         (readtoken): Use `size_t' rather than int/long.
68930         All callers adjusted.
68931         Use `bool' rather than `int' where appropriate.
68932         Use memset rather than an explicit loop.
68933         Use x2nrealloc rather than xrealloc.
68934         Allow the use of `\0' as a delimiter.
68935         (readtokens): Likewise.
68936         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
68937
68938 2004-03-30  Jim Meyering  <jim@meyering.net>
68939
68940         * m4/realloc.m4: Remove file, since now it does no more than
68941         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
68942         the `configure.ac' section of module/realloc.
68943         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
68944
68945 2004-03-30  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
68948         nonnull.
68949
68950 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68951
68952         Merge changes to getloadavg.c from coreutils and Emacs.
68953
68954         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
68955         Define to an expression, not to the empty string.
68956         Include cloexec.h and xalloc.h.
68957         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
68958         Use set_cloexec_flag rather than rolling our own.
68959         * lib/cloexec.c, lib/cloexec.h: New files.
68960
68961 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68962
68963         * m4/cloexec.m4: New file.
68964
68965 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68966
68967         * lib/getopt.h: Sync with libc CVS.
68968
68969 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68970             Bruno Haible  <bruno@clisp.org>
68971
68972         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
68973         mbswidth.
68974
68975 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68976             Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/mbswidth.h: Include <wchar.h> only if
68979         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
68980         <wchar.h>.
68981         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
68982
68983 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68984
68985         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
68986         Sync with libc CVS.
68987         * lib/getopt_int.h: New file, also synced from libc.
68988
68989 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68990
68991         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
68992         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
68993         Bring back getopt.c, getopt.h, getopt1.c.
68994
68995 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68996
68997         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
68998         All uses changed.  Check for sa_sigaction member; this fixes
68999         a bug first reported by Jason Andrade in
69000         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69001
69002 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69003
69004         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69005         '#if' expressions.  Unlike the code it replaces, it does not
69006         depend on (defined _SC_PAGESIZE).  However, it does depend on
69007         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69008         first reported by Jason Andrade in
69009         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69010
69011 2004-02-25  Simon Josefsson  <jas@extundo.com>
69012
69013         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69014
69015 2004-02-25  Simon Josefsson  <jas@extundo.com>
69016
69017         * lib/strdup.h: New file.
69018         * lib/strdup.c: Include it.
69019         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69020         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69021
69022 2004-02-23  Karl Berry  <karl@gnu.org>
69023
69024         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69025         (from fencepost.gnu.org:/gd/gnuorg).
69026
69027 2004-02-23  Karl Berry  <karl@gnu.org>
69028
69029         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69030         * config/srclist.txt: add maintain/standards documents.
69031
69032 2004-02-18  Bruno Haible  <bruno@clisp.org>
69033
69034         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69035         Reported by Derek Robert Price <derek@ximbiot.com>.
69036
69037 2004-02-16  Karl Berry  <karl@gnu.org>
69038
69039         * config/mkinstalldirs, install-sh: update from automake.
69040
69041 2004-02-06  Karl Berry  <karl@gnu.org>
69042
69043         * m4/po.m4: update from gettext 0.14.1.
69044
69045 2004-02-06  Karl Berry  <karl@gnu.org>
69046
69047         * lib/config.charset: update from gettext 0.14.1.
69048
69049 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69050
69051         Add comments and code, prompted by suggestions from Bruno Haible
69052         for sh-quote.
69053         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69054         describing the enum quoting_style values.
69055         * lib/quotearg.c (quotearg_alloc): New function.
69056         (quotearg_buffer_restyled): Treat lone { and } as special.
69057         Treat = as special.  Work around bug with older shells
69058         that "see" a '\' that is really the 2nd byte of a multibyte char.
69059         Quote empty string with shell_quoting_style.
69060
69061 2004-02-03  Bruno Haible  <bruno@clisp.org>
69062
69063         * m4/pipe.m4: New file, from GNU gettext.
69064
69065 2004-02-03  Bruno Haible  <bruno@clisp.org>
69066
69067         * lib/pipe.h: New file, from GNU gettext.
69068         * lib/pipe.c: New file, from GNU gettext.
69069
69070 2004-01-27  Bruno Haible  <bruno@clisp.org>
69071
69072         * m4/execute.m4: New file, from GNU gettext.
69073
69074 2004-01-27  Bruno Haible  <bruno@clisp.org>
69075
69076         * lib/execute.h: New file, from GNU gettext.
69077         * lib/execute.c: New file, from GNU gettext.
69078         * lib/w32spawn.h: New file, from GNU gettext.
69079
69080 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69081
69082         Merge from diffutils.
69083
69084         * lib/file-type.c (file_type): Add typed memory objects.
69085         * lib/file-type.h (S_TYPEISTMO): New macro.
69086
69087         * lib/c-stack.h (c_stack_action): Remove argv argument.
69088         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69089         (die): Don't calculate message unless segv_action returns.
69090         (get_stack_location, min_address_from_argv, max_address_from_argv,
69091         volatile stack_base, volatile_stack_size): Remove.
69092         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69093         that every segmentation violation is a stack overflow.  (Ouch!)
69094         See Debian bug 136249 (still outstanding) for more info about why
69095         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69096
69097 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69098
69099         Exit-status fix from coreutils.
69100
69101         Use exit_failure consistently in place of EXIT_FAILURE,
69102         so that program exit statuses are consistent on failure.
69103
69104         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69105         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69106         * lib/argmatch.h: Comment fix to match the above.
69107         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69108         Now a macro referring to exit_failure, instead of a separate
69109         variable.  Include "exitfail.h" to get it.
69110         * lib/xstrtol.h: Include "exitfail.h".
69111         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69112
69113         * lib/long-options.c (parse_long_options): Use prototype
69114         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69115         for clarity.
69116
69117 2004-01-21  Jim Meyering  <jim@meyering.net>
69118
69119         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69120         so as not to conflict with a different-sized __mktime_internal
69121         function in GNU libc.
69122         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69123         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69124
69125 2004-01-20  Karl Berry  <karl@gnu.org>
69126
69127         * config/config.guess: update from config.
69128
69129         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69130
69131 2004-01-20  Bruno Haible  <bruno@clisp.org>
69132
69133         Safer stack allocation.
69134         * lib/setenv.c: Include allocsa.h.
69135         (alloca): Remove fallback definition.
69136         (freea): Remove macro.
69137         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69138         instead of freea.
69139
69140 2004-01-20  Bruno Haible  <bruno@clisp.org>
69141
69142         * m4/eealloc.m4: New file, from GNU gettext.
69143
69144 2004-01-20  Bruno Haible  <bruno@clisp.org>
69145
69146         * m4/allocsa.m4: New file, from GNU gettext.
69147
69148 2004-01-20  Bruno Haible  <bruno@clisp.org>
69149
69150         * lib/xallocsa.h: New file, from GNU gettext.
69151         * lib/xallocsa.c: New file, from GNU gettext.
69152
69153 2004-01-20  Bruno Haible  <bruno@clisp.org>
69154
69155         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69156
69157 2004-01-20  Bruno Haible  <bruno@clisp.org>
69158
69159         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69160         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69161         specially.
69162
69163 2004-01-20  Bruno Haible  <bruno@clisp.org>
69164
69165         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69166         patch.
69167
69168 2004-01-20  Bruno Haible  <bruno@clisp.org>
69169
69170         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69171
69172 2004-01-20  Bruno Haible  <bruno@clisp.org>
69173
69174         * lib/eealloc.h: New file.
69175
69176 2004-01-20  Bruno Haible  <bruno@clisp.org>
69177
69178         * lib/binary-io.h: Avoid warnings on Cygwin.
69179
69180 2004-01-20  Bruno Haible  <bruno@clisp.org>
69181
69182         * lib/allocsa.h: New file, from GNU gettext.
69183         * lib/allocsa.c: New file, from GNU gettext.
69184
69185 2004-01-18  Karl Berry  <karl@gnu.org>
69186
69187         * doc/gpl.texi, doc/lgpl.texi: new files.
69188
69189 2004-01-18  Karl Berry  <karl@gnu.org>
69190
69191         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69192         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69193
69194 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69195
69196         Merge from coreutils.
69197
69198         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69199         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69200         (gl_DEFAULT_POSIX2_VERSION): Move
69201         the documentation from 'configure' into 'config.hin',
69202         so that 'configure --help' isn't burdened by it and
69203         we don't have to worry about its formatting there.
69204         Reword the documentation so that it's more succinct
69205         and can be run together into a single paragraph.
69206         * m4/same.m4 (gl_SAME): Check for pathconf.
69207
69208 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69209
69210         Merge from coreutils.
69211
69212         * lib/posixver.c: Include posixver.h.
69213
69214         * lib/same.c: Include <stdbool.h>, <limits.h>.
69215         (_POSIX_NAME_MAX): Define if not defined.
69216         (MIN): New macro.
69217         (same_name): If file names are silently truncated, report
69218         that the file names are the same if they are the same after
69219         the silent truncation.
69220
69221         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69222         conversion function.
69223         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69224         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69225         longer needed.
69226
69227 2004-01-15  Jim Meyering  <jim@meyering.net>
69228
69229         Merge from coreutils.
69230
69231         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69232         if no library is required.
69233         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69234         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69235         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69236         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69237         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69238         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69239         value, $ac_cv_search_crypt, if it's "none required".
69240         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69241         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69242         not gl_FUNC_GETLOADAVG.
69243         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69244         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69245
69246 2004-01-15  Jim Meyering  <jim@meyering.net>
69247
69248         Merge from coreutils.
69249
69250         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69251         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69252         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69253
69254         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69255         optional configure-time default.
69256
69257         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69258
69259         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69260
69261 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69262
69263         Merge from coreutils.
69264
69265         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69266         value, $ac_cv_search_nanosleep, if it's "none required".
69267
69268 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69269
69270         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69271         with like-named macro in fnmatch.c.
69272         (EXT): Use an internal constant instead.
69273
69274         Merge fnmatch patches from glibc.
69275         * lib/fnmatch.c (mbsinit): Remove define.
69276         Add libc_hidden_ver (__fnmatch, fnmatch).
69277         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69278         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69279
69280 2004-01-14  Karl Berry  <karl@gnu.org>
69281
69282         * config/install-sh: update from automake.
69283
69284 2004-01-13  Karl Berry  <karl@gnu.org>
69285
69286         * config/install-sh: update from automake.
69287
69288 2004-01-09  Karl Berry  <karl@gnu.org>
69289
69290         * config/install-sh: update from automake.
69291
69292 2004-01-05  Karl Berry  <karl@gnu.org>
69293
69294         * config/config.{sub,guess}: update from config.
69295
69296 2003-12-31  Karl Berry  <karl@gnu.org>
69297
69298         * config/depcomp: update from automake.
69299
69300 2003-12-14  Karl Berry  <karl@gnu.org>
69301
69302         * lib/config.charset: update from gettext-runtime.
69303
69304 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69305
69306         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69307         Bug reported by Alfred M. Szmidt.
69308
69309 2003-12-03  Bruno Haible  <bruno@clisp.org>
69310
69311         * m4/gettext.m4: Upgrade from gettext-0.13.
69312         * m4/po.m4: Upgrade from gettext-0.13.
69313         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69314         * m4/intmax.m4: New file, from gettext-0.13.
69315         * m4/printf-posix.m4: New file, from gettext-0.13.
69316
69317 2003-11-29  Karl Berry  <karl@gnu.org>
69318
69319         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69320
69321 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69322             Bruno Haible  <bruno@clisp.org>
69323
69324         * lib/printf-parse.h: Don't include sys/types.h.
69325         (ARG_NONE): New macro.
69326         (char_directive): Change type of *arg_index fields to size_t.
69327         * lib/printf-parse.c: Don't include sys/types.h.
69328         (SSIZE_MAX): Remove macro.
69329         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69330         Remove unnecessary overflow check.
69331         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69332         fields.
69333
69334 2003-11-25  Bruno Haible  <bruno@clisp.org>
69335
69336         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69337
69338 2003-11-25  Bruno Haible  <bruno@clisp.org>
69339
69340         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69341         gt_TYPE_SSIZE_T.
69342
69343 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69344
69345         * modules/alloca: Remove dependency on xalloc.
69346
69347 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69348
69349         * lib/alloca.c: Remove dependency on xalloc module.
69350         (xalloc_die): Remove.
69351         (memory_full) [!defined emacs]: New macro.
69352         [!defined emacs]: Don't include xalloc.h.
69353         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69354         address arithmetic overflows.  Change datatypes a bit to avoid
69355         unnecessary casts.
69356
69357 2003-11-22  Jim Meyering  <jim@meyering.net>
69358
69359         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69360         s/size/size_t/.
69361
69362 2003-11-21  Karl Berry  <karl@gnu.org>
69363
69364         * config/config.{sub,guess}: update from config.
69365
69366 2003-11-18  Karl Berry  <karl@gnu.org>
69367
69368         * config/config.{sub,guess}: update from config.
69369
69370         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69371
69372 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69373
69374         * README: Mention that S+T cannot overflow if S is the size of
69375         an existing object and T is sufficiently small.
69376
69377 2003-11-17  Jim Meyering  <jim@meyering.net>
69378
69379         On systems without utime and without a utimes function capable of
69380         dealing with a NULL struct utimbuf* argument, this utime replacement
69381         could -- in unusual circumstances -- leak a file descriptor.
69382         * lib/utime.c: Include <unistd.h> and <errno.h>.
69383         (utime_null): Be sure to close `fd' and to preserve errno.
69384         Reported by Geoff Collyer via Arnold Robbins.
69385
69386 2003-11-17  Bruno Haible  <bruno@clisp.org>
69387
69388         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69389         (Depends-on): Add xsize.
69390
69391 2003-11-17  Bruno Haible  <bruno@clisp.org>
69392
69393         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69394
69395 2003-11-17  Bruno Haible  <bruno@clisp.org>
69396
69397         * lib/vasnprintf.c (alloca): Remove fallback definition.
69398         (freea): Remove definition.
69399         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69400         Reported by Paul Eggert.
69401
69402 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69403             Bruno Haible  <bruno@clisp.org>
69404
69405         Protect against address arithmetic overflow.
69406         * lib/printf-args.h: Include stddef.h.
69407         (arguments): Change type of field 'count' to size_t.
69408         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69409         'unsigned int' where appropriate.
69410         * lib/printf-parse.h: Include sys/types.h.
69411         (char_directive): Change type of *arg_index fields to ssize_t.
69412         (char_directives): Change type of fields 'count', max_*_length to
69413         size_t.
69414         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69415         (SSIZE_MAX): Define fallback value.
69416         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
69417         instead of 'int' where appropriate. Check a_allocated, d_allocated
69418         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
69419         * lib/vasnprintf.c: Include xsize.h.
69420         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
69421         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
69422         overflow. Avoid wraparound when converting a width or precision from
69423         decimal to binary.
69424
69425 2003-11-16  Bruno Haible  <bruno@clisp.org>
69426
69427         Update from GNU gettext.
69428         * lib/printf-parse.c: Generalize to it can be compiled for wide
69429         strings.
69430         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
69431         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
69432         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
69433         SNPRINTF): New macros.
69434         Don't include <alloca.h> if the file is used inside libintl.
69435         (local_wcslen): New function, for Solaris 2.5.1.
69436         (VASNPRINTF): Use it instead of wcslen.
69437
69438 2003-11-16  Bruno Haible  <bruno@clisp.org>
69439
69440         * lib/xsize.h (xmax): New function.
69441         (xsum, xsum3, xsum4): Declare as "pure" functions.
69442
69443 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69444
69445         * modules/xalloc (Files): Undo latest change, since xalloc.h
69446         no longer needs SIZE_MAX or PTRDIFF_MAX.
69447
69448 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69449
69450         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
69451         gl_PTRDIFF_MAX.
69452
69453 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69454
69455         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
69456         "return", to pacify some unknown compiler.  Problem reported
69457         by Joerg Schilling.
69458
69459 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69460
69461         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
69462         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
69463         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
69464         heuristic is just as accurate as far as we know, and it removes a
69465         dependency on size_max.m4 and ptrdiff_max.m4.
69466
69467 2003-11-11  Bruno Haible  <bruno@clisp.org>
69468
69469         * modules/xsize (Files): Add m4/size_max.m4.
69470         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
69471
69472 2003-11-11  Bruno Haible  <bruno@clisp.org>
69473
69474         * m4/size_max.m4: New file.
69475         * m4/ptrdiff_max.m4: New file.
69476         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
69477         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
69478         (gl_XALLOC): Invoke it.
69479
69480 2003-11-11  Bruno Haible  <bruno@clisp.org>
69481
69482         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
69483         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
69484         defined.
69485
69486 2003-11-10  Paul Eggert  <eggert@twinsun.com>
69487
69488         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
69489         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
69490         rejected some allocations of exactly SIZE_MAX - 2 bytes.
69491         From Bruno Haible.
69492         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
69493         not (size_t) -1, since it's defined here.
69494
69495 2003-11-09  Karl Berry  <karl@gnu.org>
69496
69497         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
69498
69499 2003-11-06  Paul Eggert  <eggert@twinsun.com>
69500
69501         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
69502         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
69503         Reject sizes of exactly SIZE_MAX bytes.
69504         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
69505         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
69506
69507 2003-11-05  Bruno Haible  <bruno@clisp.org>
69508
69509         * lib/xsize.h: Include limits.h, to avoid a possible collision with
69510         SIZE_MAX defined in <limits.h> on Solaris.
69511
69512 2003-11-04  Jim Meyering  <jim@meyering.net>
69513
69514         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
69515         variable names, rather than @VAR@.
69516         * modules/poll: Likewise.
69517
69518 2003-11-04  Bruno Haible  <bruno@clisp.org>
69519
69520         * modules/xsize: New file.
69521         * modules/linebreak: Depend on xsize.
69522         * MODULES.html.sh (func_all_modules): Add xsize.
69523
69524 2003-11-04  Bruno Haible  <bruno@clisp.org>
69525
69526         * m4/xsize.m4: New file.
69527
69528 2003-11-04  Bruno Haible  <bruno@clisp.org>
69529
69530         * lib/xsize.h: New file.
69531         * lib/linebreak.c: Include xsize.h.
69532         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
69533         argument for overflow.
69534         Suggested by Paul Eggert.
69535
69536 2003-11-03  Karl Berry  <karl@gnu.org>
69537
69538         * config/config.{guess,sub}: update from config.
69539
69540 2003-11-03  Jim Meyering  <jim@meyering.net>
69541
69542         * modules/userspec (lib_SOURCES): Add userspec.h.
69543         (Include): Add "userspec.h".
69544         Improve description.
69545
69546 2003-11-03  Jim Meyering  <jim@meyering.net>
69547
69548         * lib/userspec.c: Include "userspec.h".
69549         * lib/userspec.h: New file.
69550
69551 2003-11-03  Bruno Haible  <bruno@clisp.org>
69552
69553         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
69554
69555 2003-11-03  Bruno Haible  <bruno@clisp.org>
69556
69557         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
69558         available, to avoid (extremely rare) race condition.
69559         Suggested by Paul Eggert.
69560
69561 2003-11-02  Karl Berry  <karl@gnu.org>
69562
69563         * config/srclist.txt (vasprintf.c): sync broken, sigh.
69564
69565 2003-10-31  Paul Eggert  <eggert@twinsun.com>
69566
69567         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
69568         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
69569         (read_filesystem_list): Set and use me_type_malloced.
69570         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
69571         whatever the type happens to be), for brevity and consistency.
69572         Check for size calculation overflow on Alphas running OSF/1.
69573
69574 2003-10-31  Jim Meyering  <jim@meyering.net>
69575
69576         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
69577
69578         * lib/linebuffer.c: Include <string.h> for declaration of memset.
69579
69580 2003-10-30  Paul Eggert  <eggert@twinsun.com>
69581             Bruno Haible  <bruno@clisp.org>
69582
69583         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
69584         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
69585
69586 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
69589         netbsd*-gnu*.  Suggested by Robert Millan.
69590
69591 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69592
69593         * modules/group-member: Depend on stdbool.
69594
69595 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69596
69597         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
69598
69599 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69600
69601         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
69602         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
69603         after the 'gnu' in these cases.  This fixes some bugs in the
69604         previous change, and is based on suggestions by Robert Millan.
69605
69606 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69607
69608         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
69609         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
69610         no longer needed.
69611         * lib/quotearg.c (quotearg_n_options): Use it.
69612         * lib/group-member.c: Include <stdbool.h>.
69613         (free_group_info): Arg is now const *; don't free arg.
69614         (get_group_info): Now returns bool and accepts struct group_info *,
69615         rather than returning a malloc'ed struct group_info *.
69616         All uses changed.  Check for overflow in internal size calculation.
69617
69618         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
69619         rather than xmalloc/xrealloc.
69620         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
69621         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
69622         conformance bug: the old code used a pointer after freeing the
69623         storage that it addressed.
69624         * lib/hash.c (hash_initialize): Simplify the code by using
69625         xalloc_oversized rather than doing it by hand.
69626         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
69627         the buffer preserved.  Use free and xmalloc instead.
69628         * lib/quotearg.c (quotearg_n_options): Likewise.
69629         Use a simpler test for size overflow.  Don't use xalloc_oversized
69630         because unsigned int might be wider than size_t (!); this suggests
69631         that we should switch from unsigned int to size_t for slot numbers.
69632
69633 2003-10-28  Paul Eggert  <eggert@twinsun.com>
69634
69635         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
69636         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
69637         NetBSD kernels.  Requested by Richard Stallman.
69638
69639 2003-10-27  Paul Eggert  <eggert@twinsun.com>
69640
69641         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
69642         to allocate the returned structure.  Do not allocate a subarray,
69643         as x2nrealloc will do that.
69644         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
69645         instead of xnrealloc.
69646         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
69647
69648 2003-10-27  Bruno Haible  <bruno@clisp.org>
69649
69650         * lib/stdbool_.h: Better support for BeOS.
69651
69652 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69653
69654         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
69655         now uses inline.
69656
69657 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69658
69659         * lib/xalloc.h (xalloc_oversized): New static inline function, for
69660         callers that want to do their own size-overflow checking.  Include
69661         <stdbool.h>, since xalloc_oversized returns bool.
69662         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
69663         to use xalloc_oversized.
69664
69665         Add two functions x2realloc, x2nrealloc, for programs that grow
69666         arrays dynamically by doubling their sizes.
69667         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
69668         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
69669         New functions.
69670
69671         Port to C99 semantics for 'inline' of external functions.
69672         Bug reported by Bruno Haible.
69673         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
69674         with the old contents of xnmalloc.
69675         (xnmalloc, xmalloc): Use it.
69676         (xnrealloc_inline): New static inline function,
69677         with the old contents of xnrealloc.
69678         (xnrealloc, xrealloc): Use it.
69679
69680         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
69681         that.
69682
69683 2003-10-26  Karl Berry  <karl@gnu.org>
69684
69685         * config/srclist.txt (COPYING.DOC): no longer available from
69686         /gd/gnuorg; don't know where the ultimate source is.
69687
69688 2003-10-25  Paul Eggert  <eggert@twinsun.com>
69689
69690         Fix several address-calculation bugs in the hash modules,
69691         plus some minor code cleanup.
69692
69693         * lib/hash.h: Include <stdbool.h>, for bool.
69694         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
69695         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
69696         hash_get_n_entries, hash_get_max_bucket_length,
69697         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
69698         hash_rehash): Use size_t rather than unsigned.
69699         * lib/hash.c (struct hash_table, hash_get_n_buckets,
69700         hash_get_n_buckets_used, hash_get_n_entries,
69701         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
69702         hash_get_entries, hash_do_for_each, hash_string, is_prime,
69703         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
69704         Likewise.
69705         (SIZE_MAX): Define if not defined.
69706         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
69707         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
69708         hash_print):
69709         Use const * when possible.
69710         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
69711         (check_tuning): Fix bug: if tuning parameters were very close to
69712         0 or 1, rounding errors could have caused subscript violations.
69713         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
69714         (hash_initialize): Add 'fail:' label
69715         to free table and return NULL, and use it to simplify code.
69716         Use calloc rather than clearing the storage ourself.
69717         (hash_initialize, hash_rehash): Check for arithmetic overflow in
69718         buffer size calculations.
69719         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
69720         Include <stddef.h>, for size_t.
69721         * lib/hash-pjw.c (hash_pjw): Likewise.
69722         Switch to method described by Bruno Haible.
69723         Include <limits.h>, for CHAR_BIT.
69724         (SIZE_BITS): New macro.
69725
69726 2003-10-23  Paul Eggert  <eggert@twinsun.com>
69727
69728         * m4/getline.m4 (AM_FUNC_GETLINE):
69729         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
69730         hosts.  Problem reported by Derek Robert Price in
69731         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
69732         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
69733         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
69734
69735 2003-10-21  Paul Eggert  <eggert@twinsun.com>
69736
69737         * lib/getndelim2.c (getndelim2): When size calculation overflows,
69738         ceiling the allocation at NMAX bytes rather than silently
69739         discarding input bytes before NMAX is reached.  This makes
69740         a difference only if NMAX exceeds SIZE_MAX / 2.
69741
69742         * lib/obstack.c: Merge from glibc.
69743         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
69744         Add libc_hidden_def (_obstack_newchunk).
69745         (_obstack_free) [! defined _LIBC]: Remove.
69746         [defined _LIBC]: Make a strong alias from obstack_free, rather than
69747         a clone of the function body.
69748         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
69749         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
69750
69751         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
69752         glibc.
69753         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
69754         arg to memcpy.
69755
69756         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
69757         (obstack_ptr_grow_fast, obstack_int_grow_fast):
69758         Don't use lvalue casts, as GCC plans to remove support for them
69759         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
69760         was also present in the non-GCC version, indicating that this
69761         code had always been buggy and had never been widely used.
69762         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
69763         Use the fast variant of each macro, rather than copying the
69764         definiens of the fast variant; that way, we'll be more likely to
69765         catch future bugs in the fast variants.
69766
69767 2003-10-20  Bruno Haible  <bruno@clisp.org>
69768
69769         * modules/wait-process: New file.
69770         * MODULES.html.sh (func_all_modules): Add wait-process.
69771
69772 2003-10-20  Bruno Haible  <bruno@clisp.org>
69773
69774         * m4/wait-process.m4: New file.
69775
69776 2003-10-20  Bruno Haible  <bruno@clisp.org>
69777
69778         * lib/wait-process.h: New file, from GNU gettext.
69779         * lib/wait-process.c: New file, from GNU gettext.
69780
69781 2003-10-19  Jim Meyering  <jim@meyering.net>
69782
69783         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
69784         HPUX 10.20.
69785
69786 2003-10-18  Karl Berry  <karl@gnu.org>
69787
69788         * config/config.guess: update from config.
69789
69790 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69791
69792         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
69793         (getgroups): First arg is int, not size_t.
69794         Don't let 'free' mangle errno.
69795
69796 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69797
69798         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
69799
69800 2003-10-16  Karl Berry  <karl@gnu.org>
69801
69802         * config/config.{guess,sub}: update from config.
69803
69804 2003-10-16  Jim Meyering  <jim@meyering.net>
69805
69806         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
69807         memcpy.
69808
69809 2003-10-15  Paul Eggert  <eggert@twinsun.com>
69810
69811         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
69812         (SIZE_MAX): Remove.
69813         (new_exclude, add_exclude_file): Initial size no longer needs to
69814         be a power of 2.
69815         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
69816         our own address arithmetic overflow checking.
69817
69818         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
69819         (fnmatch): Do not alloca more than 2000 wide characters;
69820         instead, use malloc for large buffers.
69821         Check for address arithmetic overflow, and return -1
69822         with errno set to ENOMEM in that case.
69823         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
69824         (NEW_PATTERN): Do not alloca more than 8000 bytes;
69825         instead, return -1.  Check for address arithmetic overflow.
69826
69827 2003-10-14  Paul Eggert  <eggert@twinsun.com>
69828
69829         Handle invalid suffixes and overflow independently, so that
69830         callers can treat them independently as needed.  Fix some bugs in
69831         suffix handling, e.g., "100k@" was not diagnosed as an invalid
69832         suffix for a human-readable blocksize.  The major caller-visible
69833         change is the addition of a new
69834         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
69835         that both overflow and suffix chars were found.
69836
69837         * lib/human.c (humblock): Don't check separately for invalid suffix
69838         char; that is xstrtoumax's job (now that its bug is fixed).
69839         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
69840         INTMAX_MAX]: New macros.
69841         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
69842         TYPE_MAXIMUM): New macros.
69843         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
69844         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
69845         if overflow occurs, as it's what __strtol does and it's more useful
69846         in practice.
69847         (__xstrtol): If __strtol reports some error other than ERANGE,
69848         reflect it to the caller as LONGINT_INVALID.  If it reports
69849         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
69850         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
69851         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
69852         value.
69853         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
69854         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
69855         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
69856         [defined UINTMAX_MAX]: New macros.
69857
69858 2003-10-14  Bruno Haible  <bruno@clisp.org>
69859
69860         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
69861
69862 2003-10-14  Bruno Haible  <bruno@clisp.org>
69863
69864         * m4/sig_atomic_t: New file, from GNU gettext.
69865         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
69866
69867 2003-10-14  Bruno Haible  <bruno@clisp.org>
69868
69869         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
69870         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
69871         Also use volatile where needed.
69872
69873 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69874
69875         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
69876         Change maintainer from Bruno Haible to 'all'.
69877
69878 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69879
69880         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
69881
69882 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69883
69884         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
69885         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
69886         and define in terms of the other primitives.
69887         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
69888         (SIZE_MAX): Define if not already defined.
69889         (array_size_overflow): New function.
69890         (xalloc_die): Abort instead of exiting if 'error' returns.
69891         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
69892         (xmalloc, xrealloc): Use them.
69893         (xcalloc): Check for address arithmetic overflow.
69894         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
69895         a bit faster than strcpy.
69896
69897 2003-10-10  Simon Josefsson  <jas@extundo.com>
69898
69899         * modules/argp (Depends-on): Add restrict and strcase.
69900
69901 2003-10-10  Simon Josefsson  <jas@extundo.com>
69902
69903         * m4/argp.m4: Add AC_C_INLINE.
69904
69905 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69906
69907         Merge getpass from libc, plus a few fixes.
69908
69909         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
69910         Include <stdbool.h>.
69911         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
69912         __fsetlocking to empty.
69913         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
69914         do include <bits/libc-lock.h>.
69915         Do not include <fcntl.h>; not needed.
69916         [_LIBC]: Include <wchar.h>.
69917         (NOTCANCEL_MODE): New macro.
69918         (flockfile, funlockfile) [_LIBC]: New macros.
69919         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
69920         [!_LIBC]: New macros.
69921         (call_fclose): New function.
69922         (getpass): Use it.  Save tty stream separately; this simplifies the
69923         code and makes it more reliable if stdin happens to equal stdout.
69924         Invoke __fsetlocking on tty.
69925         Handle thread cancellation if needed.
69926         Namespace cleanup (use __tcgetattr, __getline).
69927         Use bool for Booleans.
69928         [USE_IN_LIBIO]: Handle wide streams.
69929         [!_LIBC]: Unconditionally do the fseek, since we don't know what
69930         stream might go where.
69931
69932         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
69933         doesn't have to include <stdio.h> before us.
69934         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
69935         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
69936         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
69937         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
69938         if not declared, so that we can use getpass.c code from libc without
69939         rewriting it.
69940         (flockfile, ftrylockfile, funlockfile): New macros.
69941
69942 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69943
69944         * modules/getpass: Depend on stdbool.
69945
69946 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69947
69948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
69949
69950 2003-10-07  Karl Berry  <karl@gnu.org>
69951
69952         * config/config.{guess,sub}: update from config.
69953
69954 2003-10-06  Jim Meyering  <jim@meyering.net>
69955             Bruno Haible  <bruno@clisp.org>
69956
69957         This lets translators provide better translations for the
69958         "Written by ..." part of --version output.
69959         * lib/version-etc.h: Include stdarg.h.
69960         (version_etc_copyright): Declare as readonly.
69961         (version_etc): Make this function variadic with a NULL-terminated list
69962         of author name strings.
69963         (version_etc_va): New declaration.
69964         * lib/version-etc.c: Include stdarg.h, stdlib.h.
69965         (version_etc_copyright): Declare as readonly.
69966         (version_etc_va): New function. Provide a different translatable string
69967         for each possible number of authors < 10. Abbreviate when there are 10
69968         authors or more.
69969         (version_etc): Make this function variadic. Call version_etc_va.
69970         Suggestion from Gary V. Vaughan.
69971
69972         * lib/long-options.h (parse_long_options): Change prototype: the
69973         authors string is moved to the end and becomes variadic.
69974         * lib/long-options.c: Include stdarg.h.
69975         (parse_long_options): Make this function variadic, too.
69976         Call version_etc_va, not version_etc.
69977
69978 2003-10-06  Bruno Haible  <bruno@clisp.org>
69979
69980         * modules/version-etc-2: Remove file.
69981         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
69982
69983 2003-10-06  Bruno Haible  <bruno@clisp.org>
69984
69985         * modules/fatal-signal: New file.
69986         * MODULES.html.sh (func_all_modules): Add fatal-signal.
69987
69988 2003-10-06  Bruno Haible  <bruno@clisp.org>
69989
69990         * m4/fatal-signal.m4: New file.
69991         * m4/signalblocking.m4: New file, from GNU gettext.
69992
69993 2003-10-06  Bruno Haible  <bruno@clisp.org>
69994
69995         * lib/version-etc-2.h: Remove file.
69996         * lib/version-etc-2.c: Remove file.
69997
69998 2003-10-06  Bruno Haible  <bruno@clisp.org>
69999
70000         * lib/fatal-signal.h: New file, from GNU gettext.
70001         * lib/fatal-signal.c: New file, from GNU gettext.
70002
70003 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70004
70005         * README: Rework advice for preventing empty .o files.
70006         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70007         not <sys/types.h>.
70008
70009 2003-10-04  Karl Berry  <karl@gnu.org>
70010
70011         * lib/argp*: update from libc.
70012
70013 2003-10-04  Karl Berry  <karl@gnu.org>
70014
70015         * config/config.{guess,sub}: update from config.
70016
70017 2003-10-02  Bruno Haible  <bruno@clisp.org>
70018
70019         * modules/lchown (Include): Add lchown.h.
70020         * modules/time_r (Include): Use "..." syntax.
70021         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70022
70023 2003-10-01  Simon Josefsson  <jas@extundo.com>
70024
70025         * MODULES.html.sh (func_all_modules): Move gethostname from section
70026         'based on' to section 'lacking' POSIX:2001.
70027
70028 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70029
70030         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70031         to output mode on the same stream.
70032
70033 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70034
70035         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70036         Fix arg typo in previous patch.
70037
70038 2003-09-28  Jim Meyering  <jim@meyering.net>
70039
70040         * lib/error.c: Correct cpp indentation.
70041
70042 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70043
70044         * modules/free: New file.
70045
70046 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70047
70048         * m4/free.m4: New file.
70049
70050 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70051
70052         * lib/minmax.h (MIN, MAX)
70053         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70054         Omit the special code that used __typeof__, since we worry that
70055         it could be more trouble than it's worth.  See:
70056         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70057         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70058
70059         * lib/free.c: New file.
70060
70061 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70062
70063         Trivial fixes to Makefile.am parts of module listings.
70064         * modules/strstr: Append strstr.h to lib_SOURCES.
70065         * modules/strcase: Likewise, for strcase.h.
70066
70067 2003-09-27  Karl Berry  <karl@gnu.org>
70068
70069         * config/mkinstalldirs: update from automake.
70070
70071 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70072
70073         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70074         (error_tail): Do not loop, reallocating temporary buffer, since
70075         the output cannot contain more wide characters than the input
70076         contains bytes, the size must be big enough already.  This avoids
70077         one potential size overflow calculation.  Check for size overflow
70078         when calculating temporary buffer size.  Free temporary buffer
70079         when done, if it was allocated with malloc; this plugs a memory
70080         leak.  Remove casts from void * to pointers, that are no longer
70081         needed now that we're assuming C89 or better.
70082
70083         Merge error changes from glibc.
70084
70085         * lib/error.c, error.h: Update copyright notice header to match glibc.
70086         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70087         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70088         Disable cancellation while printing error.
70089         * lib/error.h: Prepend __ to parameter names.
70090
70091 2003-09-26  Jim Meyering  <jim@meyering.net>
70092
70093         * lib/error.c (error_tail): Move some declarations
70094         into inner scope where the local variables are used.
70095
70096 2003-09-26  Bruno Haible  <bruno@clisp.org>
70097
70098         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70099         stpncpy().
70100         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70101
70102 2003-09-26  Bruno Haible  <bruno@clisp.org>
70103
70104         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70105         (stpncpy): Define as alias for gnu_stpncpy.
70106         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70107
70108 2003-09-25  Simon Josefsson  <jas@extundo.com>
70109
70110         * lib/xgetdomainname.h: New file.
70111         * lib/xgetdomainname.c: New file.
70112
70113 2003-09-25  Simon Josefsson  <jas@extundo.com>
70114             Bruno Haible  <bruno@clisp.org>
70115
70116         * modules/getdomainname: New file.
70117         * modules/xgetdomainname: New file.
70118         * MODULES.html.sh (func_all_modules): Add getdomainname,
70119         xgetdomainname.
70120
70121 2003-09-25  Simon Josefsson  <jas@extundo.com>
70122             Bruno Haible  <bruno@clisp.org>
70123
70124         * m4/getdomainname.m4: New file.
70125
70126 2003-09-25  Simon Josefsson  <jas@extundo.com>
70127             Bruno Haible  <bruno@clisp.org>
70128
70129         * lib/getdomainname.h: New file.
70130         * lib/getdomainname.c: New file.
70131
70132 2003-09-25  Karl Berry  <karl@gnu.org>
70133
70134         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70135
70136 2003-09-25  Karl Berry  <karl@gnu.org>
70137
70138         * config/install-sh: update from automake.
70139
70140 2003-09-25  Bruno Haible  <bruno@clisp.org>
70141
70142         * modules/version-etc-2: New file, from modules/version-etc with
70143         modifications.
70144         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70145
70146 2003-09-25  Bruno Haible  <bruno@clisp.org>
70147
70148         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70149         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70150
70151 2003-09-24  Simon Josefsson  <jas@extundo.com>
70152
70153         * modules/xgethostname: Add xgethostname.h.
70154
70155 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70156
70157         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70158         the buffer associated with the argument.  Bug reported by
70159         Simon Josefsson.
70160
70161 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70162
70163         * README: Document assumptions that 'int' is at least 32 bits
70164         wide, that integer arithmetic is 2's complement without overflow,
70165         that there are no holes in integer values, that adding sizes of
70166         two nonoverlapping objects can't overflow, and that all-bits-zero
70167         yields scalar zero.  Fix spelling and capitalization typos.
70168
70169 2003-09-19  Karl Berry  <karl@gnu.org>
70170
70171         * lib/argp.h: update from libc.
70172
70173 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70174
70175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70176         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70177         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70178
70179 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70180
70181         * gnulib-tool: Use "test -h", not "test -L", for portability
70182         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70183         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70184         (sed_extract_prog): Issue s commands one-by-one, rather than
70185         using \| in one s command.
70186
70187 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70188
70189         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70190         input error, instead of returning NULL the next time we are called
70191         (and therefore losing track of errno).
70192
70193 2003-09-16  Bruno Haible  <bruno@clisp.org>
70194
70195         * gnulib-tool (func_create_testdir): Warn about duplicated
70196         dependencies.
70197
70198 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70199
70200         * modules/argmatch, modules/fatal, modules/obstack,
70201         modules/xalloc, modules/xgethostname: Sort dependencies by
70202         importance, not alphabetically.
70203
70204 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70205
70206         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70207         fails, so that the caller gets the proper errno.
70208
70209         * lib/readutmp.c (read_utmp): Likewise.
70210         Check for fstat error.  Close stream and free storage
70211         when failing.
70212
70213 2003-09-14  Karl Berry  <karl@gnu.org>
70214
70215         * config/srclist.txt (strdup.c): disable for c89 changes.
70216
70217 2003-09-14  Jim Meyering  <jim@meyering.net>
70218
70219         * lib/getloadavg.c: Correct cpp indentation.
70220         * lib/strdup.c: Likewise.
70221         * lib/vasnprintf.c: Likewise.
70222
70223 2003-09-14  Bruno Haible  <bruno@clisp.org>
70224
70225         * modules/fwriteerror: New file.
70226         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70227
70228 2003-09-14  Bruno Haible  <bruno@clisp.org>
70229
70230         * lib/fwriteerror.h: New file.
70231         * lib/fwriteerror.c: New file.
70232
70233 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70234
70235         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70236         modules/xgethostname, modules/xalloc: Depend on exit.
70237
70238 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70239
70240         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70241
70242         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70243         and AC_MINIX, too, so that their extensions are available.
70244
70245         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70246         This macro has been superseded by gl_BACKUPFILE.
70247
70248         More patches to assume C89 or better.
70249
70250         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70251
70252         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70253         unconditionally.
70254         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70255         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70256         Include <string.h>, <stdlib.h> unconditionally.
70257         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70258         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70259         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70260         headers or for string.h.
70261         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70262         or strtoul.
70263
70264         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70265         headers.
70266         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70267         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70268         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70269         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70270         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70271         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70272         memcpy, memset.
70273         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70274         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70275         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70276         strtol.
70277         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70278         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70279         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70280         strtoul.
70281
70282 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70283
70284         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70285         * lib/obstack.c [!defined _LIBC]: Likewise.
70286         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70287         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70288         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70289
70290         More changes to assume C89 or better.
70291
70292         * lib/error.c (error_tail): Assume vprintf.
70293
70294         * lib/argmatch.c (getenv): Remove decl.
70295         * lib/progreloc.c (get_full_program_name): Define via prototype.
70296         * lib/setenv.c (clearenv): Likewise.
70297         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70298         needed.
70299         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70300         (malloc, memcpy): Remove decls.
70301         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70302         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70303         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70304         (memcpy): Remove macro.
70305         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70306         (__P): Remove.  All uses removed.
70307         (PTR): Remove.  All uses changed to void *.
70308         (CHAR_BIT, NULL): Remove.
70309         (spaces, zeros, memset_space, memset_zero)
70310         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70311         Remove.
70312         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70313         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70314         Define with prototype.
70315         Remove now-unnecessary prototype decl.
70316         (extra_args_spec): Assume ANSI C.  All uses changed.
70317         (extra_args_spec_iso): Remove.
70318         (my_strftime, emacs_strftimeu): Define via prototype.
70319         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70320         unconditionally.
70321         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70322         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70323         (strtoul, strtol): Remove decls.
70324         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70325         LONG_MAX): Remove.
70326         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70327         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70328         (LOCALE_PARAM_PROTO): New macro.
70329         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70330         (INTERNAL (strtol), strtol): Define with a prototype.
70331         (PARAMS): Remove.  All uses removed.
70332         * lib/tempname.c: Include <string.h> unconditionally.
70333         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70334         * lib/xgethostname.c (main): Define with a prototype.
70335         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70336         Include <stdlib.h> unconditionally.
70337         (calloc, malloc, realloc, free): Remove decls.
70338         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70339         Include <stdlib.h> unconditionally.  Sort include file names.
70340         (strtod): Remove.
70341         (xstrtod): Define with a prototype.
70342         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70343         (strtol, strtoul): Remove decls.
70344
70345 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70346
70347         More patches to assume C89 or better.
70348         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70349         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70350         string.h, memchr, STDC_HEADERS.
70351
70352 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70353
70354         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70355         Include <stdlib.h>, <string.h> unconditionally.
70356         Remove now-unnecessary cast to char *.
70357         * lib/strnlen.c: Include <string.h> unconditionally.
70358         * lib/yesno.c (yesno): Define with a prototype.
70359
70360 2003-09-11  Bruno Haible  <bruno@clisp.org>
70361
70362         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70363
70364 2003-09-10  Jim Meyering  <jim@meyering.net>
70365
70366         * lib/error.c: Correct indentation of cpp directives.
70367
70368 2003-09-10  Bruno Haible  <bruno@clisp.org>
70369
70370         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70371         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70372         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70373         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70374         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70375         <stdlib.h> and <string.h> checks.
70376         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70377         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70378
70379 2003-09-10  Bruno Haible  <bruno@clisp.org>
70380
70381         * lib/strcspn.c: Include <string.h> unconditionally.
70382         * lib/strpbrk.c: Include <string.h> unconditionally.
70383         * lib/strstr.c: Include <string.h> unconditionally.
70384         * lib/unicodeio.c: Include <string.h> unconditionally.
70385         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70386         * lib/unsetenv.c: Likewise.
70387         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70388         * lib/yesno.c: Include <stdlib.h> unconditionally.
70389         (rpmatch): Add prototype.
70390
70391 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70392
70393         More patches to assume C89 or better.
70394         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70395         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70396         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70397         or for string.h.
70398         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70399         stdlib.h.
70400         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70401         C headers.
70402         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70403         string.h.
70404         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70405         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70406         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70407         or for string.h.
70408         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70409         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70410         C headers.
70411         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70412         memcpy.
70413         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70414         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70415         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70416         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
70417         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
70418         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
70419         string.h, free.
70420         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
70421         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
70422         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
70423         C headers, or for string.h.
70424         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
70425         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
70426         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
70427         headers, memory.h, stdlib.h, string.h, strings.h.
70428         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
70429         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
70430         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
70431         strchr.
70432         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
70433         headers, memory.h, string.h.
70434         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
70435         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
70436         free.
70437         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
70438         headers.
70439         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
70440         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
70441         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
70442         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
70443         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
70444
70445 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70446
70447         More K&R removal.
70448
70449         * lib/acosl.c (main): Use a prototype.
70450         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
70451         tanl.c: Likewise.
70452
70453         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
70454
70455         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
70456         (getopt, etopt_long, getopt_long_only, _getopt_internal)
70457         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
70458         with a prototype.
70459         * lib/getopt.c (const): Remove macro.
70460         Include <string.h> unconditionally.
70461         (my_index): Remove; all uses changed to strchr.
70462         (strlen): Remove decl.
70463         (exchange): Remove forward decl; no longer needed.
70464         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
70465         Define with prototype.
70466         * lib/getopt1.c (const): Remove macro.
70467         (getopt_long, getopt_long_only, main): Define with prototype.
70468
70469         * lib/getugroups.c: Include <string.h> unconditionally.
70470
70471         * lib/getusershell.c: Include <stdlib.h> unconditionally.
70472         (getusershell, setusershell, endusershell, readname, main):
70473         Define with prototypes.
70474
70475         * lib/group-member.c: Include group-member.h first.
70476         Include <stdlib.h> unconditionally.
70477
70478         * lib/hard-locale.c: Include hard-locale.h first.
70479         Include <stdlib.h>, <string.h> unconditionally.
70480
70481         * lib/hash.c (free, malloc): Remove decls.
70482         Include <stdlib.h> unconditionally.
70483
70484         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
70485         (getenv): Do not declare.
70486
70487         * lib/idcache.c: Include <string.h> unconditionally.
70488
70489         * lib/long-options.c: Include long-options.h first, to test interface.
70490         Include <stdlib.h> unconditionally.
70491
70492         * lib/makepath.c: Include makepath.h first, to test interface.
70493         Include <stdlib.h> and <string.h> unconditionally.
70494
70495         * lib/linebuffer.c: Include <stdlib.h>.
70496         (free): Remove decl.
70497
70498         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
70499         stddef.h. rpl_malloc returns void *, not char *.
70500         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
70501         prototype.
70502
70503         * lib/md5.h: Include <limits.h> unconditionally.
70504         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
70505         (__P): Remove; all uses removed.
70506         * lib/md5.c: Include "md5.h" first.
70507         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
70508         md5_buffer, md5_process_bytes, md5_process_block):
70509         Define with prototypes.
70510         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
70511         * lib/sha.c: Include "sha.h" first.
70512         Include <stdlib.h>, <string.h> unconditionally.
70513
70514         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
70515         * lib/memcmp.c (__ptr_t): Likewise.
70516         * lib/memrchr.c (__ptr_t): Likewise.
70517         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
70518         Include <string.h> unconditionally.
70519         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
70520         * lib/memchr.c: Include <stdlib.h> unconditionally.
70521         * lib/memchr.c (LONG_MAX): Remove.
70522         * lib/memrchr.c (LONG_MAX): Likewise.
70523         * lib/memchr.c (__memchr): Define via a prototype.
70524         * lib/memrchr.c (__memrchr): Likewise.
70525         * lib/memcmp.c (__P): Remove, and remove all uses.
70526         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
70527         Remove forward decls; no longer needed.
70528         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
70529         Use types required by C89 in prototype.
70530
70531         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
70532         * lib/savedir.c: Likewise.
70533         * lib/mkdir.c (free): Remove decl.
70534         * lib/rmdir.c (rmdir): Define with a prototype.
70535         * lib/savedir.c: Include savedir.h first, to test interface.
70536
70537         * lib/mktime.c (STDC_HEADERS): Remove.
70538         Include <stdlib.h>, <string.h> unconditionally.
70539
70540         * lib/modechange.c: Include <stdlib.h> unconditionally.
70541         (malloc): Remove decl.
70542
70543         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
70544         (free): Remove decl.
70545
70546         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
70547         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
70548         (This type really should be intptr_t, but that's a C99ism.)
70549         (_obstack_memcpy): Remove: all uses changed to memcpy.
70550         Include <string.h> unconditionally.
70551         (struct obstack): Assume __STDC__ for types of members
70552         chunkfun, freefun, extra_arg.
70553         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
70554         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
70555         obstack_begin, obstack_specify_allocation,
70556         obstack_specify_allocation_with_arg, obstack_chunkfun,
70557         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
70558         Remove unprototyped decls and the macros that use them.
70559         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
70560         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
70561         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
70562         (defined __STDC__ && __STDC__)]:
70563         Remove nonprototyped code.
70564         Include <stdlib.h> unconditionally.
70565         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
70566         _obstack_allocated_p, _obstack_free, obstack_free,
70567         _obstack_memory_used, print_and_abort):
70568         Define using prototypes.
70569         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
70570         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
70571         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
70572         obstack_next_free, obstack_object_size, obstack_room) [0]:
70573         Remove unused, unprototyped code.
70574
70575         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
70576
70577         * lib/physmem.c (physmem_total, physmem_available, main): Define
70578         with prototypes.
70579
70580         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
70581         (main): Define with a prototype.
70582
70583         * lib/posixver.c (getenv): Remove decl.
70584
70585         * lib/putenv.c (malloc): Returns void *, not char *.
70586         Include <string.h> unconditionally.
70587         (strchr, memcpy, NULL): Do not define.
70588
70589         * lib/readtokens.c: Include readtokens.h first, to test interface.
70590         Include <stdlib.h>, <string.h> unconditionally.
70591         (init_tokenbuffer): Define with a prototype.
70592
70593         * lib/regex.c (PARAMS): Remove.  All uses removed.
70594         All uses of _RE_ARGS removed, too.
70595         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70596         unconditionally.
70597         (bzero): Assume memset exists.
70598         (memcmp, memcpy, NULL): Remove.
70599         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
70600         char, or assignments to local vars of type signed char.
70601         (init_syntax_once, PREFIX(extract_number_and_incr),
70602         PREFIX(print_partial_compiled_pattern),
70603         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
70604         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
70605         PREFIX(regex_grow_registers), PREFIX(regex_compile),
70606         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
70607         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
70608         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
70609         wcs_compile_range, byte_compile_range, truncate_wchar,
70610         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
70611         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
70612         count_mbs_length, wcs_re_match_2_internal,
70613         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
70614         PREFIX(alt_match_null_string_p),
70615         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
70616         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
70617         regfree, PREFIX(extract_number)): Define with prototype.  Remove
70618         now-unnecessary declaration, if any.
70619         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
70620         regcomp, regexec):
70621         Remove now-unnecessary casts among pointer types.
70622         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
70623
70624         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
70625         (free): Remove decl.
70626
70627         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
70628
70629         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
70630         (free): Remove decl.
70631
70632         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
70633         * lib/xgetcwd.c: Likewise.
70634
70635         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
70636         (free): Remove decl.
70637
70638         * lib/strchrnul.c (strchrnul): Define with a prototype.
70639         Fix bug: c_in was not converted to char before searching.
70640
70641         The following changes are not K&R related:
70642
70643         * lib/group-member.h: Include <sys/types.h>, so that this file is
70644         self-contained.
70645         * lib/makepath.h: Likewise.
70646
70647         * lib/getusershell.c (readname, default_index, line_size, readname):
70648         Use size_t, not int, for sizes.
70649         (readname): If the size overflows, report an error instead of
70650         looping forever.
70651
70652 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70653
70654         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
70655         libc.
70656
70657 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70658
70659         * README: New section: portability guidelines.
70660
70661 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70662
70663         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
70664         C89 spec.
70665
70666 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70667
70668         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
70669
70670 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70671
70672         Assume C89 or better; remove K&R cruft.
70673         A few of these changes were first proposed by Derek Robert Price
70674         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
70675
70676         * lib/addext.c: Include <string.h> unconditionally.
70677         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
70678         Don't declare getenv or malloc.
70679
70680         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
70681         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
70682         (NULL): Remove.
70683         (find_stack_direction, alloca): Use prototypes.
70684
70685         * lib/atexit.c (atexit): Define using a prototype.
70686
70687         * lib/basename.c, dirname.c, stripslash.c:
70688         Include <string.h> unconditionally.
70689
70690         * lib/bcopy.c: Include <stddef.h>.
70691         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
70692
70693         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
70694
70695         * lib/error.h (error, error_at_line, error_print_progname)
70696         [! (defined (__STDC__) && __STDC__)]: Remove decls.
70697         * lib/error.c: Include error.h first, to check interface.
70698         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70699         (VA_START): Remove; all uses changeed to va_start.
70700         (exit, strerror): Remove decls.
70701         (error_print_progname): Prototype uncondionally.
70702         Don't include <errno.h>; no longer needed.
70703         (private_strerror): Remove.
70704         (error_tail): Always define.
70705         (error, error_at_line): Assume C89 or better; always use prototypes.
70706         * lib/fatal.c: Include "fatal.h" first, to test interface.
70707         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70708         (VA_START): Remove; all uses changed to va_start.
70709         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
70710         this case.
70711         (exit): Remove decl.
70712         (fatal): Prototype unconditionally.  Assume va_start works.
70713         Abort at end, to pacify gcc.
70714
70715         * lib/euidaccess.c (main): Define with a prototype.
70716
70717         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
70718
70719         * lib/exitfail.c: Include <stdlib.h> unconditionally.
70720
70721         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
70722         prototypes.
70723         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
70724         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
70725         (getenv): Remove decl.
70726         (fnmatch): Define using a prototype.
70727         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
70728         (FCT): Define using a prototype.
70729
70730         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
70731
70732         * lib/gethostname.c: Include <stddef.h>.
70733         (gethostname): Define with prototype.  Length is size_t, not int.
70734
70735 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70736
70737         Assume C89 or better; remove K&R cruft.
70738         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
70739         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
70740         string.h, getenv, malloc.
70741         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
70742         headers.
70743         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
70744         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
70745         do not check for strerror.
70746         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
70747         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
70748         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
70749         do not check for doprnt or vprintf.
70750         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
70751         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
70752
70753 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70754
70755         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
70756         getversion.c should have been removed then, but was accidentally
70757         preserved.
70758
70759         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
70760         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
70761
70762 2003-09-08  Karl Berry  <karl@gnu.org>
70763
70764         * config/config.sub, config.guess, srclistvars.sh: update from savannah
70765                 config, forget about prep.
70766
70767         * config/depcomp, missing: update from automake.
70768
70769 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70770
70771         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
70772         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70773
70774 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70775
70776         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
70777         copy_tm_result.  Bug reported by Simon Josefsson in
70778         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70779
70780 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70781
70782         * m4/time_r.m4: New file.
70783         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
70784         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
70785         is. Check for timegm declaration.
70786         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
70787         Do not check for gmtime_r.
70788         Replace mktime if __mktime_internal does not exist and if mktime
70789         hasn't been replaced already.
70790
70791 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70792
70793         * lib/time_r.c, lib/time_r.h: New files.
70794
70795         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
70796         __localtime_r.
70797         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
70798         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
70799
70800         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
70801         __gmtime_r.
70802         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
70803         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
70804         Include <time_r.h>.
70805
70806         * lib/timegm.c: Switch to glibc implementation, with the following
70807         changes:
70808         [defined HAVE_CONFIG_H]: Include <config.h>.
70809         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
70810         (__mktime_internal) [!defined _LIBC]: New decl.
70811         (__gmtime_r) [!defined _LIBC]: New macro and function.
70812         (timegm): Use a prototype, since gnulib assumes C89.
70813         Do not bother declaring tmp to be const, as it's not really usefu.
70814         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
70815         (timegm): Declare only if HAVE_DECL_TIMEGM.
70816
70817 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70818
70819         * MODULES.html.sh (func_all_modules): Add time_r.
70820         * modules/time_r: New file.
70821         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
70822         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
70823
70824 2003-09-03  Paul Eggert  <eggert@twinsun.com>
70825
70826         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
70827         Bug reported by Lute Kamstra in
70828         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
70829
70830         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
70831         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
70832         course with correspondingly smaller numbers for tomorrow and
70833         yesterday.  From Tadayoshi Funaba.  Originally installed into
70834         sh-utils on 1999-08-07, but the patch got lost (I guess during the
70835         coreutils merge?).
70836
70837 2003-08-31  Simon Josefsson  <jas@extundo.com>
70838
70839         * modules/timegm: New file.
70840         * MODULES.html.sh (func_all_modules): Add timegm.
70841
70842 2003-08-31  Simon Josefsson  <jas@extundo.com>
70843
70844         * m4/timegm.m4: New file.
70845
70846 2003-08-31  Simon Josefsson  <jas@extundo.com>
70847
70848         * lib/timegm.h: New file.
70849         * lib/timegm.c: New file.  Based on
70850         wget-1.8.2/src/http.c:mktime_from_utc.
70851
70852 2003-08-31  Karl Berry  <karl@gnu.org>
70853
70854         * lib/argp.h: update from libc.
70855
70856 2003-08-28  Bruno Haible  <bruno@clisp.org>
70857
70858         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
70859         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
70860         followed by '#define fnmatch fnmatch_posix' gives an error.
70861
70862 2003-08-28  Bruno Haible  <bruno@clisp.org>
70863
70864         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
70865         warning on QNX, which defines O_BINARY to 000000.
70866
70867 2003-08-27  Jim Meyering  <jim@meyering.net>
70868
70869         * m4/mkstemp.m4: Require that the system mkstemp be able to create
70870         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
70871         would fail after 32.  Reported by Danny Levinson.  Details here:
70872         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
70873
70874 2003-08-24  Bruno Haible  <bruno@clisp.org>
70875
70876         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
70877         MSVC7 <stdio.h> is included later.
70878
70879 2003-08-22  Simon Josefsson  <jas@extundo.com>
70880
70881         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
70882
70883 2003-08-20  Karl Berry  <karl@gnu.org>
70884
70885         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
70886
70887 2003-08-20  Bruno Haible  <bruno@clisp.org>
70888
70889         * modules/progname: New file.
70890         * MODULES.html.sh (func_all_modules): Add progname.
70891
70892 2003-08-20  Bruno Haible  <bruno@clisp.org>
70893
70894         * lib/progname.h: New file, from GNU gettext.
70895         * lib/progname.c: New file, from GNU gettext.
70896         * lib/progreloc.c: New file, from GNU gettext.
70897
70898 2003-08-19  Jim Meyering  <jim@meyering.net>
70899
70900         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
70901         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
70902
70903 2003-08-19  Bruno Haible  <bruno@clisp.org>
70904
70905         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
70906         more.
70907
70908 2003-08-19  Bruno Haible  <bruno@clisp.org>
70909
70910         * lib/xstrdup.c: Assume <string.h> exists.
70911
70912 2003-08-18  Paul Eggert  <eggert@twinsun.com>
70913
70914         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
70915         in makefile rules.
70916
70917 2003-08-18  Jim Meyering  <jim@meyering.net>
70918
70919         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
70920         * m4/lib-ld.m4: Likewise.
70921
70922 2003-08-18  Jim Meyering  <jim@meyering.net>
70923
70924         * lib/setenv.h: Indent nested cpp directive.
70925         * lib/vasnprintf.c: Remove trailing blanks.
70926
70927 2003-08-17  Simon Josefsson  <jas@extundo.com>
70928
70929         * modules/xstrndup: New file.
70930         * MODULES.html.sh (func_all_modules): Add xstrndup.
70931
70932 2003-08-17  Simon Josefsson  <jas@extundo.com>
70933
70934         * modules/argp: Fix autoconf macro name. Add more dependencies.
70935
70936 2003-08-17  Simon Josefsson  <jas@extundo.com>
70937
70938         * m4/xstrndup.m4: New file.
70939
70940 2003-08-17  Simon Josefsson  <jas@extundo.com>
70941
70942         * m4/argp.m4: New file.
70943
70944 2003-08-17  Simon Josefsson  <jas@extundo.com>
70945             Bruno Haible  <bruno@clisp.org>
70946
70947         * lib/xstrndup.h: New file.
70948         * lib/xstrndup.c: New file.
70949
70950 2003-08-17  Bruno Haible  <bruno@clisp.org>
70951
70952         * modules/strndup (Files, Include): Add lib/strndup.h.
70953
70954 2003-08-17  Bruno Haible  <bruno@clisp.org>
70955
70956         * modules/euidaccess (Files): Add lib/euidaccess.h.
70957
70958 2003-08-17  Bruno Haible  <bruno@clisp.org>
70959
70960         * lib/strndup.h: New file.
70961
70962 2003-08-17  Bruno Haible  <bruno@clisp.org>
70963
70964         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
70965         like AC_GNU_SOURCE.
70966         * modules/extensions (configure.ac): Comment out the invocation of
70967         gl_USE_SYSTEM_EXTENSIONS.
70968
70969 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70970
70971         Merges from coreutils, etc.
70972         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
70973         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
70974         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
70975         fixing a typo.
70976         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
70977         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
70978
70979 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70980
70981         Document merge from coreutils.
70982         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
70983         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
70984         * modules/utime: Add m4/utimes-null.m4.
70985
70986 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70987
70988         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
70989         space, undoing this 2003-08-12 change:
70990         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70991
70992 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70993
70994         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
70995         strtoul.c from libc, undoing this 2003-08-12 change:
70996         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70997
70998 2003-08-16  Jim Meyering  <jim@meyering.net>
70999
71000         Merges from coreutils.
71001         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71002         prefix.  Adjust cache variables similarly.  Create 500 rather than
71003         just 300 files, to exercise bug on Darwin6.5, too.
71004         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71005         $missing_dir.
71006         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71007         AM_SYS_POSIX_TERMIOS.
71008         Reported by mkc@mathdogs.com.
71009         Also change use of $am_cv_sys_posix_termios
71010         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71011         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71012         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71013         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71014         in /proc/mounts until it finds one with matching device number.  This
71015         is unnecessary when the FILE argument *is* a mount point.  No stat call
71016         is necessary in that case.  So, disable the statvfs-testing code on
71017         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71018         as RedHat bug# 84846.
71019         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71020         to 1MB, so as not to render systems with no stack size limit (e.g.,
71021         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71022         Include <unistd.h>.  On some systems,
71023         it is required for the definition of _SC_PAGESIZE.
71024
71025 2003-08-16  Jim Meyering  <jim@meyering.net>
71026
71027         Merge from coreutils.
71028         * lib/xstrtoimax.c: #else #if -> #elif.
71029         * lib/xstrtoumax.c: Likewise.
71030
71031 2003-08-16  Jim Meyering  <jim@meyering.net>
71032
71033         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71034         * m4/utimes.m4: Removed.
71035         * m4/utimes-null.m4: Renamed from utimes.m4.
71036
71037         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71038         to 1MB, so as not to render systems with no stack size limit (e.g.,
71039         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71040         Include <unistd.h>.  On some systems,
71041         it is required for the definition of _SC_PAGESIZE.
71042
71043 2003-08-16  Jim Meyering  <jim@meyering.net>
71044         and Paul Eggert  <eggert@cs.ucla.edu>
71045
71046         Merges from coreutils, etc.
71047
71048         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71049         using the latest version from cvs.  This avoids problems with #line
71050         directives using a vendor (Sun) compiler.
71051         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71052         Don't set GETGROUPS_LIB here; now it's
71053         done via getgroups.m4's wrapper function.
71054         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71055         rather than just in sh-util/configure.in, so that the
71056         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71057         same.
71058         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71059         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71060         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71061         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71062         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71063         Remove code that is now done by the newly-required macros.
71064         Append $(EXEEXT) to DF_PROG.
71065         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71066         Do not invoke or require the following here,
71067         since prereq.m4 or some gnulib .m4 now does this for us:
71068         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71069         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71070         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71071         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71072         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71073         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71074         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71075         AC_FUNC_OBSTACK.
71076         Do not replace the following functions, as this is now the job
71077         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71078         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71079         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71080         atexit getpass, strdup, getpagesize.
71081         Replace 'raise'.
71082         Do not check for the following functions, as this is now the job
71083         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71084         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71085         setregid.
71086         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71087         Check for sys/sysctl.h.
71088         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71089         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71090         of checking for ssize_t ourselves.
71091
71092         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71093         Require every macro that gnulib/modules/* suggests for us.
71094         (jm_PREREQ_ADDEXT): New macro.
71095         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71096         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71097
71098         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71099         (gl_PHYSMEM): Use it.
71100         Also check for `table' function.
71101         Check for new headers and functions.
71102         Add check for sys/sysmp.h.
71103         With suggestions from Kaveh Ghazi.
71104         Ignore headers that are present but cannot be compiled.  This
71105         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71106         C 5.4.
71107
71108 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71109
71110         Document merge from coreutils.
71111         * modules/userspec: Depend on posixver.
71112         * modules/strftime: Depend on tzset.
71113
71114 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71115
71116         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71117         rather than tab, after '#' in shell-script copyright notices.
71118         Suggested by Bruno Haible.
71119
71120 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71121
71122         * config/srclist-update: Use three spaces, rather than tab, after '#'
71123         in shell-script copyright notices.  Suggested by Bruno Haible.
71124         Remove unnecessary parenthesization in regular expression.
71125
71126 2003-08-15  Jim Meyering  <jim@meyering.net>
71127
71128         Merge from coreutils.
71129         * lib/xgethostname.c: Include <stdlib.h>.
71130         (xghostname): Don't exit for anything other than memory-related
71131         failure; just return NULL.
71132         * lib/userspec.c: Include "posixver.h".
71133         (parse_user_spec): Accept `.' as a separator only
71134         in pre-POSIX-200112 mode.
71135         * lib/strtoimax.c: Use #elif rather than #else #if.
71136         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71137         Remove function, now that we can rely on a working tzset function.
71138         [!_LIBC]: Ensure that the required autoconf test has been run.
71139         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71140         Use underlying_strftime for %r.
71141         * lib/sha.c: Merge in some clean-up and optimization changes from
71142         glibc.
71143         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71144         Ensure that it is a multiple of 64.
71145         Rearrange loop exit tests so as to avoid performing an
71146         additional fread after encountering an error or EOF.
71147         * lib/realloc.c: Update copyright date.
71148
71149 2003-08-15  Jim Meyering  <jim@meyering.net>
71150         and Paul Eggert  <eggert@twinsun.com>
71151
71152         Merge from coreutils.
71153         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71154         member but strut utmpx does not.  Needed for AIX 4.3.3.
71155         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71156
71157 2003-08-15  Jim Meyering  <jim@meyering.net>
71158         and Paul Eggert  <eggert@cs.ucla.edu>
71159
71160         Merges from coreutils, etc.
71161         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71162         Require gl_FUNC_TZSET_CLOBBER.
71163         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71164         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71165         members.
71166
71167 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71168
71169         Help the merge from coreutils.
71170         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71171         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71172         * m4/tzset.m4: Use it too.
71173
71174 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71175
71176         * modules/tzset: New file.
71177
71178 2003-08-14  Jim Meyering  <jim@meyering.net>
71179
71180         Merges from coreutils.
71181         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71182         variable names, rather than @FNMATCH_H@.
71183         * modules/alloca: Likewise for $(ALLOCA_H).
71184
71185         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71186         the three copies of the literal target, `fnmatch.h'.
71187         * modules/alloca (alloca.h): Likewise.
71188
71189 2003-08-14  Jim Meyering  <jim@meyering.net>
71190
71191         Merge from coreutils.
71192         * m4/tzset.m4: New file.
71193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71194         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71195         otherwise, AIX 5.1 systems would end up using the latter.
71196         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71197         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71198         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71199         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71200
71201 2003-08-14  Jim Meyering  <jim@meyering.net>
71202
71203         Merge from coreutils.
71204         * lib/obstack.h: Whitespace changes.
71205         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71206         and xcalloc return values.
71207         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71208         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71209         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71210         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71211         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71212         error from mntctl.
71213         Use mntctl's return value to drive the entry-processing loop, since
71214         we can't rely on the value of the vmt_length member in the last
71215         entry.  On some systems doing so could result in exhausting
71216         virtual memory.  Based in part on a patch from Mike Jetzer.
71217
71218 2003-08-14  Jim Meyering  <jim@meyering.net>
71219         and Paul Eggert  <eggert@twinsun.com>
71220
71221         Merges from coreutils, plus other fixes.
71222         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71223         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71224         for credits and details.  Thanks to Kaveh Ghazi for helping
71225         to keep these files in sync.
71226         (ARRAY_SIZE): Define it.
71227         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71228         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71229         (memcasecmp): Don't assume size_t fits in unsigned int.
71230         Remove casts and duplicate code.
71231         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71232         (memcpy): Remove definition.
71233         Merge in some clean-up and optimization changes from glibc.
71234         [BLOCKSIZE]: Move definition to top of file.
71235         Ensure that it is a multiple of 64.
71236         Rearrange loop exit tests so as to avoid performing an
71237         additional fread after encountering an error or EOF.
71238         * lib/md5.h (md5_uintptr): Define.
71239         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71240         return to the initial working directory.  Preserve errno
71241         for caller.
71242         * lib/idcache.c: Include "xalloc.h".
71243         (xmalloc, xrealloc): Remove decls.
71244         (getuser): Remove casts no longer required in C89.
71245         * lib/human.c: Include stdio.h, for sprintf.
71246         * lib/group-member.c: Include "xalloc.h".
71247         (xmalloc, xrealloc): Remove decls.
71248         (get_group_info): Remove casts no longer required in C89.
71249         * lib/getusershell.c (readname): Remove casts no longer required in
71250         C89.
71251         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71252         * lib/getline.c: Whitespace fix, from coreutils.
71253
71254 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71255
71256         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71257         Check for isascii.
71258
71259         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71260         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71261         Undo previous (whitespace-only) change.
71262
71263 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71264
71265         * lib/exclude.c: Include <ctype.h>
71266         (IN_CTYPE_DOMAIN): New macro.
71267         (is_space): New fn.
71268         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71269         and empty lines.
71270
71271         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71272         Undo previous (whitespace-only) change.
71273
71274 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71275
71276         * config/srclist-update: Change update back to the old behavior,
71277         leaving whitespace alone.  Use one 'sed' command rather than a
71278         pipeline.
71279         (fixlicense): Now a variable, not a function.
71280         (remove_trailing_blanks): Remove.
71281         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71282         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71283         Undo previous (whitespace-only) change.
71284
71285 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71286
71287         Merge from coreutils.
71288         * modules/euidaccess: Add lib_SOURCES, include for new
71289         file euidaccess.h
71290
71291 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71292
71293         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71294         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71295         Normalize leading white space and remove trailing white space.
71296
71297         Merge from coreutils
71298         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71299
71300         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71301         0.12.1.  These files are now being upgraded automatically by
71302         ../config/srclist-update.
71303
71304 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71305
71306         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71307         Normalize leading white space and remove trailing white space.
71308         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71309         notice, as per ../config/srclist-update.
71310
71311         Merge from coreutils.
71312         * lib/euidaccess.h: New file.
71313         * lib/euidaccess.c: Include it.
71314         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71315         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71316         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71317
71318 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71319
71320         * config/srclist-update: Add copyright notice.
71321         (remove_id_lines, remove_trailing_blanks): New constants.
71322         (fixfile): Use them to normalize spacing a bit in copied files.
71323         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71324         Normalize leading white space and remove trailing white space.
71325
71326         * config/texinfo.tex: Sync with texinfo.
71327
71328         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71329         strtoul.c from libc, to merge coreutils whitespace changes.
71330
71331         * config/srclist.txt: Get the following m4 files from gettext:
71332         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71333         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71334         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71335         wint_t.m4.
71336
71337 2003-08-12  Karl Berry  <karl@gnu.org>
71338
71339         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71340         been made.
71341
71342 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71343
71344         * modules/gnu-source, m4/gnu-source.m4:
71345         Remove; we're assuming Autoconf 2.54 or later now.
71346         Suggested by Bruno Haible.
71347         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71348
71349 2003-08-11  Bruno Haible  <bruno@clisp.org>
71350
71351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
71352
71353 2003-08-11  Bruno Haible  <bruno@clisp.org>
71354
71355         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71356         (vasnprintf): Use it instead of wcslen.
71357
71358 2003-08-11  Bruno Haible  <bruno@clisp.org>
71359
71360         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71361         value to ensure that _Bool promotes to int. Use #define for _Bool when
71362         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71363
71364 2003-08-10  Karl Berry  <karl@gnu.org>
71365
71366         * lib/regex.h: update from libc (whitespace fix).
71367
71368 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71369
71370         Merge some files from coreutils.  These changes were
71371         originally made by Jim Meyering.
71372         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71373         many older Unixes require this.
71374         * lib/alloca.c (alloca): Remove cast to argument of free;
71375         no longer needed in C89.
71376         * lib/alloca_.h, regex.h: Fix white space to match
71377         what GNU indent does.
71378
71379 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71380
71381         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71382         apparently Emacs's Unicode mode got confused before my 2003-08-05
71383         checkin.
71384
71385 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71386
71387         * m4/extensions.m4: New file.
71388         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71389         Require gl_USE_SYSTEM_EXTENSIONS.
71390         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71391         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71392
71393 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71394
71395         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71396         * modules/extensions, modules/gnu-source: New files.
71397         * modules/timespec, modules/unlocked-io: Depend on extensions.
71398
71399 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71400
71401         * modules/restrict: New file.
71402         * MODULES.html.sh (func_all_modules): Add restrict.
71403         * modules/regex: Depend on restrict.
71404
71405 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71406
71407         * m4/restrict.m4: New file.
71408         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71409
71410 2003-08-07  Bruno Haible  <bruno@clisp.org>
71411
71412         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71413         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71414
71415 2003-08-07  Bruno Haible  <bruno@clisp.org>
71416
71417         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
71418         makes the module 'getndelim2' compatible with the module 'getline'.
71419
71420 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71421
71422         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
71423         byte with "\201" to avoid glitches when editing that source file
71424         with multi-gnome-terminal.
71425
71426 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71427
71428         * lib/bumpalloc.h: Remove.
71429
71430 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71431
71432         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
71433         * modules/bumpalloc: Remove.
71434
71435 2003-08-04  Paul Eggert  <eggert@twinsun.com>
71436
71437         * lib/getloadavg.c: Change copyright notice and spacing to conform to
71438         GNU coding style.
71439
71440         Merge from coreutils.
71441         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
71442         1. From glibc.
71443         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
71444         from Karl Berry, implemented by Jim Meyering.
71445         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
71446         from Dmitry V. Levin.
71447         Remove anachronistic cast of xrealloc.
71448         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
71449         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
71450         type. Otherwise, it wouldn't compile with at least /bin/cc on
71451         ymp-cray-unicos9.0.2.X.
71452         Combine two mostly-identical uses of alloca into one.
71453         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
71454
71455 2003-08-04  Dave Love  <d.love@dl.ac.uk>
71456
71457         [From Emacs.]
71458
71459         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
71460         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
71461         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
71462         obsolete NLIST_NAME_UNION.
71463         [__GNU__]: Undef BSD and FSCALE.
71464         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
71465
71466 2003-08-03  Paul Eggert  <eggert@twinsun.com>
71467
71468         * lib/stdbool_.h (_Bool): Make it signed char, instead of
71469         an enum type, so that it's guaranteed to promote to int.  See:
71470         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
71471
71472 2003-08-03  Karl Berry  <karl@gnu.org>
71473
71474         * config/depcomp: update from automake.
71475
71476 2003-07-31  Paul Eggert  <eggert@twinsun.com>
71477
71478         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
71479         (strerror): Don't assume that a printable int fits in 14 bytes.
71480
71481 2003-07-31  Bruno Haible  <bruno@clisp.org>
71482
71483         * modules/getpass-gnu: New file.
71484         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
71485
71486 2003-07-31  Bruno Haible  <bruno@clisp.org>
71487
71488         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
71489
71490 2003-07-24  Karl Berry  <karl@gnu.org>
71491
71492         * config/missing: update from automake.
71493
71494 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
71495             Bruno Haible  <bruno@clisp.org>
71496
71497         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
71498         * lib/getline.c (getline, getdelim): Likewise.
71499         Remove _GNU_SOURCE define; now it's defined in config.h through
71500         m4/getline.m4.
71501
71502 2003-07-23  Karl Berry  <karl@gnu.org>
71503
71504         * config/config.sub: update from prep.
71505
71506 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71507
71508         * modules/xalloc (Depends-on): Add exitfail.
71509         * modules/xmemcoll: Likewise.
71510
71511 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71512
71513         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
71514         over-parenthesization in macros.
71515
71516         Sync with coreutils.
71517
71518         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
71519         required by C99.
71520
71521         Use `exit_failure' for xalloc and xmemcoll instead of their own
71522         private exit-failure variables.
71523         * lib/xalloc.h (xalloc_exit_failure): Remove.
71524         * lib/xmalloc.c: Likewise.  Include exitfail.h.
71525         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
71526         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
71527         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
71528         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
71529
71530 2003-07-20  Jim Meyering  <jim@meyering.net>
71531
71532         * modules/closeout (Depends-on): Add exitfail.
71533         Suggestion from Bruno Haible.
71534
71535 2003-07-19  Karl Berry  <karl@gnu.org>
71536
71537         * config/config.sub: update from prep.
71538
71539 2003-07-18  Paul Eggert  <eggert@twinsun.com>
71540
71541         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
71542         Remove.
71543         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
71544         to test that it can stand by itself.  Include "exitfail.h".
71545         Clients should set exit_failure instead.
71546         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
71547
71548 2003-07-18  Bruno Haible  <bruno@clisp.org>
71549
71550         * modules/getndelim2: New file.
71551         * modules/getline: Share files with module getndelim2.
71552         * modules/getnline: Depend on getndelim2 instead of sharing files with
71553         it. Add getnline.c to lib_SOURCES.
71554         * MODULES.html.sh (func_all_modules): Add getndelim2.
71555
71556 2003-07-18  Bruno Haible  <bruno@clisp.org>
71557
71558         * m4/getndelim2.m4: New file.
71559         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
71560         invoke gl_PREREQ_GETNDELIM2.
71561         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
71562         gl_PREREQ_GETNDELIM2.
71563         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
71564         gl_GETNDELIM2.
71565
71566 2003-07-18  Bruno Haible  <bruno@clisp.org>
71567
71568         * lib/getndelim2.h: New file.
71569         * lib/getndelim2.c: Make into a module of its own. Include config.h,
71570         getndelim2.h.
71571         (getndelim2): Make non-static. Change return type to ssize_t.
71572         * lib/getline.h: Change argument names.
71573         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
71574         * lib/getnline.c: Include getndelim2.h.
71575
71576 2003-07-18  Andreas Schwab  <schwab@suse.de>
71577
71578         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
71579
71580 2003-07-17  Karl Berry  <karl@gnu.org>
71581
71582         * config/config.sub: update from prep.
71583
71584 2003-07-17  Bruno Haible  <bruno@clisp.org>
71585
71586         * modules/getnline: New file.
71587         * modules/getline: Add lib/getndelim2.c to source file list.
71588         * MODULES.html.sh (func_all_modules): Add getnline.
71589
71590 2003-07-17  Bruno Haible  <bruno@clisp.org>
71591
71592         * m4/getnline.m4: New file.
71593
71594 2003-07-17  Bruno Haible  <bruno@clisp.org>
71595
71596         * m4/Makefile.am.in: Remove file.
71597         * m4/Makefile.am: Remove file.
71598         * m4/Makefile.in: Remove file.
71599
71600 2003-07-17  Bruno Haible  <bruno@clisp.org>
71601
71602         * lib/getnline.h: New file.
71603         * lib/getnline.c: New file.
71604         * lib/getndelim2.c: New file, extracted from getline.c.
71605         (getndelim2): Renamed from getdelim2, with added nmax argument.
71606         * lib/getline.c: Include getndelim2.c.
71607         (getdelim2): Moved out to getndelim2.c.
71608         (getline, getdelim): Update.
71609
71610 2003-07-17  Bruno Haible  <bruno@clisp.org>
71611
71612         * lib/Makefile.am: Remove file.
71613         * lib/Makefile.in: Remove file.
71614
71615 2003-07-17  Bruno Haible  <bruno@clisp.org>
71616
71617         * configure.in: Remove file.
71618         * Makefile.in: Remove file.
71619
71620 2003-07-17  Bruno Haible  <bruno@clisp.org>
71621
71622         * MODULES.html.sh: Put the </BODY> right before </HTML>.
71623
71624 2003-07-16  Karl Berry  <karl@gnu.org>
71625
71626         * config/srclist-update: was running fixlicense twice, which caused
71627                 texinfo.tex to be nullified for some reason.  Simplify,
71628                 $gplsrc is no longer needed as far as I can see?
71629
71630 2003-07-16  Jim Meyering  <jim@meyering.net>
71631
71632         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
71633
71634 2003-07-15  Paul Eggert  <eggert@twinsun.com>
71635
71636         * config/srclist.txt: Get the following files from gettext-runtime/intl
71637         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
71638         ref-del.sin.  From Bruno Haible.
71639         * config/srclist-update (fixfile): Change grep pattern again, since the
71640         previous fix didn't work (there was another trailing $).  Use
71641         '[$]' to escape the $s.
71642
71643 2003-07-15  Karl Berry  <karl@gnu.org>
71644
71645         * lib/vasnprintf.c: update from gettext.
71646
71647 2003-07-15  Karl Berry  <karl@gnu.org>
71648
71649         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
71650         gets expanded when surrounded by '$'.
71651
71652 2003-07-15  Jim Meyering  <jim@meyering.net>
71653
71654         * modules/save-cwd: Don't depend on error.  From Derek Price.
71655
71656 2003-07-15  Jim Meyering  <jim@meyering.net>
71657
71658         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
71659
71660 2003-07-14  Simon Josefsson  <jas@extundo.com>
71661
71662         * modules/mempcpy: New file.
71663         * MODULES.html.sh (func_all_modules): Add mempcpy.
71664
71665 2003-07-14  Simon Josefsson  <jas@extundo.com>
71666
71667         * m4/mempcpy.m4: New file.
71668
71669 2003-07-14  Simon Josefsson  <jas@extundo.com>
71670
71671         * lib/mempcpy.h: New file.
71672         * lib/mempcpy.c: New file.
71673
71674 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71675
71676         * modules/getdate, modules/posixtm: Depend on mktime.
71677
71678 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71679
71680         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
71681         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
71682         unicodeio.c, unicodeio.h, unlocked-io.h:
71683         Switch from LGPL to GPL.
71684
71685 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71686
71687         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
71688         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
71689         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
71690         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
71691         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
71692         updated automatically by ../config/srclist-update.  This changes
71693         their license from LPGL to GPL.
71694
71695 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71696
71697         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
71698         assumed to refer to the root of the most recent stable gettext version.
71699         * config/srclistvars.sh: Add defaults for eggert.
71700         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
71701         Match "This program" as well as "The program".  This is needed
71702         for gettext.
71703
71704 2003-07-14  Jim Meyering  <jim@meyering.net>
71705
71706         Don't emit diagnostics.  Let callers do that.
71707         * lib/save-cwd.c: Don't include "error.h".
71708         (save_cwd): Don't call error.  Ensure that errno is valid
71709         when returning nonzero.
71710
71711         * lib/save-cwd.h (restore_cwd): Update prototype.
71712         * lib/save-cwd.c (restore_cwd): Remove two parameters.
71713         Simplify.  Don't call error upon failure.  Let callers do that.
71714         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
71715         when auditing is enabled.  But don't bother updating the #if.
71716
71717 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
71718
71719         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
71720         it breaks C++ compilation.
71721         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
71722
71723 2003-07-10  Simon Josefsson  <jas@extundo.com>
71724
71725         * modules/strchrnul (Makefile.am): Add strchrnul.h.
71726
71727 2003-07-10  Jim Meyering  <jim@meyering.net>
71728
71729         * m4/clock_time.m4: Remove trailing blank.
71730         * m4/intmax_t.m4: Likewise.
71731
71732 2003-07-10  Jim Meyering  <jim@meyering.net>
71733
71734         * lib/vasnprintf.c: Remove trailing blanks.
71735         Make cpp indentation consistent.
71736
71737 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71738
71739         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
71740         posixver.c, strftime.c, strnlen.c, strverscmp.c:
71741         Switch from LGPL to GPL.
71742
71743 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71744
71745         * config/srclist.txt: Sort sublists.  Add
71746         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
71747         that differ from gnulib for one reason or another; we'd like this list
71748         to be smaller but for now let's document what we have.
71749
71750 2003-07-08  Paul Eggert  <eggert@twinsun.com>
71751
71752         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
71753         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
71754         and sweeter "eval x=$x".
71755         * config/srclist.txt: Get lib/argp* from glibc.
71756
71757 2003-07-07  Paul Eggert  <eggert@twinsun.com>
71758
71759         * lib/mktime.c: Fix some boundary cases and remove need for floating
71760         point.
71761
71762         Issue a compile-time diagnostic if time_t is floating point, or if
71763         two's complement arithmetic is not in effect, or if arithmetic
71764         right shift does not propagate the sign.  These assumptions were
71765         all in the original code but they weren't checked.
71766
71767         (TIME_T_MIDPOINT, verify): New macros.
71768         (__isleap): Remove; it has integer overflow problems.
71769         (leapyear): New function, without those problems.
71770         (ydhms_tm_diff): Remove; splitting into two parts.
71771         (ydhms_diff): New function, containing the arithmetic part of
71772         the old ydhms_tm_diff function.  Issue a compile-time
71773         diagnostic if we are not using C99 integer division.
71774         Avoid casts when possible.
71775         (guess_time_tm): New function, containing the checking part of
71776         the old ydhms_tm_diff function.  Return the new value, rather than
71777         the difference between it and the old.  Accept a new argument T
71778         so that *T specifies the old value.  Check for overflow in the result.
71779
71780         (__mktime_internal): Use a time_t offset, not a long int offset.
71781         This undoes the 2003-06-04 change, which is no longer needed now
71782         that we have better overflow checking.
71783         (localtime_offset): Likewise.
71784
71785         (__mktime_internal): Avoid harmful overflow on hosts where time_t
71786         and long are 64-bit but int is only 32-bit.
71787         (ydhms_diff): Use long int to store year1 and yday1.
71788         Issue a compile-time diagnostic if long int is not wide enough.
71789
71790         (__mktime_internal): Use long int to store adjusted year and yday.
71791         Use plain C rather than preprocessor commands, if that doesn't
71792         affect efficiency.
71793         Check for overflow (and try to repair) after each probe
71794         rather than checking only at the very end.  This avoids some bugs
71795         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
71796         does not equal GMT offset at maximum time).
71797         Use integer to check for overflow rather than floating point; this
71798         is more portable to non-IEEE hosts, and is a tad faster.
71799         When we detect that we are oscillating between two values,
71800         don't check whether tm_isdst has the requested value, since
71801         we already know the answer.  When tm_isdst has the wrong value,
71802         use a different heuristic to find the right one, based on the
71803         extreme values actually observed in practice in tz2003a,
71804         rather than the (overly optimistic) "previous 3 calendar quarters".
71805
71806         (not_equal_tm, print_tm, check_result): Use "const T" rather than
71807         "T const" to accommodate glibc style.
71808         (check_result): Use less-confusing report format.  "long" -> "long int.
71809         (main): Likewise.
71810         Don't loop if the iteration overflows time_t.
71811         Allow a negative step in the iteration.
71812
71813 2003-07-06  Karl Berry  <karl@gnu.org>
71814
71815         * config/depcomp: update from automake.
71816         * config/config.sub: update from prep.
71817
71818 2003-07-03  Karl Berry  <karl@gnu.org>
71819
71820         * config/config.guess: update from prep.
71821
71822 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71823
71824         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
71825         xreadlink.c now includes it unconditionally.
71826
71827 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71828
71829         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
71830         having it depend on HAVE_SYS_TYPES_H.
71831
71832 2003-07-01  Bruno Haible  <bruno@clisp.org>
71833
71834         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
71835         <sys/types.h> should be sufficient.
71836         Reported by Paul Eggert.
71837
71838 2003-06-26  Karl Berry  <karl@gnu.org>
71839
71840         * config/depcomp: update from automake.
71841
71842 2003-06-26  Bruno Haible  <bruno@clisp.org>
71843
71844         * modules/human: Depend on module stdbool.
71845
71846 2003-06-25  Bruno Haible  <bruno@clisp.org>
71847
71848         * modules/readlink: New file.
71849         * modules/xreadlink: Depend on it.
71850         * MODULES.html.sh (func_all_modules): Add readlink.
71851
71852 2003-06-25  Bruno Haible  <bruno@clisp.org>
71853
71854         * m4/readlink.m4: New file.
71855
71856 2003-06-25  Bruno Haible  <bruno@clisp.org>
71857
71858         * lib/readlink.c: New file.
71859
71860 2003-06-22  Karl Berry  <karl@gnu.org>
71861
71862         * config/srclist.txt: update mkinstalldirs from automake.
71863         * config/mkinstalldirs: update.
71864
71865 2003-06-22  Bruno Haible  <bruno@clisp.org>
71866
71867         Portability to mingw32.
71868         * m4/ssize_t.m4: New file, from GNU gettext.
71869         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
71870         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
71871
71872 2003-06-22  Bruno Haible  <bruno@clisp.org>
71873
71874         * modules/safe-read: Add m4/ssize_t.m4.
71875         * modules/xreadlink: Add m4/ssize_t.m4.
71876
71877 2003-06-20  Bruno Haible  <bruno@clisp.org>
71878
71879         Assume C89, so PARAMS isn't needed.
71880         * lib/unicodeio.h (PARAMS): Remove.
71881         * lib/unicodeio.c: Don't use PARAMS.
71882
71883 2003-06-18  Karl Berry  <karl@gnu.org>
71884
71885         * config/config.{guess,sub}: update from prep.
71886
71887 2003-06-18  Jim Meyering  <jim@meyering.net>
71888
71889         Merge changes from coreutils.
71890         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
71891         Remove explicit declarations of xmalloc and realloc.
71892         Include xalloc.h.
71893         (read_utmp): Remove anachronistic cast of xmalloc.
71894
71895 2003-06-17  Paul Eggert  <eggert@twinsun.com>
71896
71897         Assume C89, so PARAMS isn't needed.
71898         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
71899         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
71900         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
71901         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
71902         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
71903         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
71904         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
71905         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
71906         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
71907         lib/xstrtod.h, lib/xstrtol.h: Likewise.
71908         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
71909         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
71910         no longer needed. Anyway, config.h should always be included before any
71911         other file.
71912
71913 2003-06-11  Simon Josefsson  <jas@extundo.com>
71914
71915         * modules/sysexits: New file.
71916         * MODULES.html.sh (func_all_modules): Add sysexits.
71917
71918 2003-06-11  Simon Josefsson  <jas@extundo.com>
71919
71920         * lib/sysexit_.h: New file.
71921
71922 2003-06-11  Derek Price  <derek@ximbiot.com>
71923
71924         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
71925         necessary.
71926
71927 2003-06-11  Bruno Haible  <bruno@clisp.org>
71928
71929         * m4/sysexits.m4: New file.
71930
71931 2003-06-10  Simon Josefsson  <jas@extundo.com>
71932
71933         * lib/argp.h: New file, from glibc.
71934         * lib/argp-ba.c: New file, from glibc.
71935         * lib/argp-eexst.c: New file, from glibc.
71936         * lib/argp-fmtstream.c: New file, from glibc.
71937         * lib/argp-fmtstream.h: New file, from glibc.
71938         * lib/argp-fs-xinl.c: New file, from glibc.
71939         * lib/argp-help.c: New file, from glibc.
71940         * lib/argp-namefrob.h: New file, from glibc.
71941         * lib/argp-parse.c: New file, from glibc.
71942         * lib/argp-pv.c: New file, from glibc.
71943         * lib/argp-pvh.c: New file, from glibc.
71944         * lib/argp-xinl.c: New file, from glibc.
71945
71946 2003-06-10  Simon Josefsson  <jas@extundo.com>
71947
71948         * modules/strchrnul: New file.
71949
71950 2003-06-10  Simon Josefsson  <jas@extundo.com>
71951
71952         * modules/argp: New file.
71953
71954 2003-06-10  Simon Josefsson  <jas@extundo.com>
71955
71956         * m4/strchrnul.m4: New file.
71957
71958 2003-06-10  Simon Josefsson  <jas@extundo.com>
71959
71960         * lib/strchrnul.h: New file.
71961         * lib/strchrnul.c: New file.
71962
71963 2003-06-10  Bruno Haible  <bruno@clisp.org>
71964
71965         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
71966
71967 2003-06-07  Karl Berry  <karl@gnu.org>
71968
71969         * config/config.{guess,sub}: update from prep.
71970
71971 2003-06-07  Jim Meyering  <jim@meyering.net>
71972
71973         * modules/strtod: Use $(...) notation, not @...@ for
71974         AC_REPLACE'd variables.
71975         * modules/localcharset: Likewise.
71976
71977 2003-06-07  Jim Meyering  <jim@meyering.net>
71978
71979         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
71980         in place of my name in the copyright comment.
71981         Remove definition and uses of __P.
71982
71983         From coreutils.
71984         * lib/stat.c: Don't declare xmalloc explicitly.
71985         Instead, include "xalloc.h".
71986         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
71987         xrealloc, and xcalloc return values.
71988         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
71989         Improve comment.
71990         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
71991
71992 2003-06-07  Bruno Haible  <bruno@clisp.org>
71993
71994         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
71995         avoid AC_CONFIG_LINKS.
71996         * modules/fnmatch (Makefile.am): Use explicit creation rule for
71997         fnmatch.h, to avoid AC_CONFIG_LINKS.
71998         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
71999
72000 2003-06-07  Bruno Haible  <bruno@clisp.org>
72001
72002         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72003         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72004         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72005         directory.
72006         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72007         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72008         directory.
72009
72010 2003-06-06  Jim Meyering  <jim@meyering.net>
72011
72012         Merge from coreutils.
72013         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72014         Consolidate declarations and initializations of *_base* locals.
72015
72016         Merge from coreutils.
72017         This avoids a core dump on systems without GNU putenv,
72018         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72019         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72020         (unsetenv): New static function, from GNU libc.
72021         (rpl_putenv): Use it.
72022
72023         * lib/modechange.c: Remove trailing blanks.
72024
72025         Merge from coreutils.
72026         * lib/fsusage.c: Remove declaration of statfs.
72027         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72028
72029         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72030
72031 2003-06-06  Jim Meyering  <jim@meyering.net>
72032
72033         * lib/stdbool_.h: Renamed from stdbool.h.in.
72034
72035 2003-06-06  Jim Meyering  <jim@meyering.net>
72036             Bruno Haible  <bruno@clisp.org>
72037
72038         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72039         Adjust Makefile.am snippet not to redirect directly to target.
72040         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72041
72042 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72043
72044         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72045         mismatch, look in future quarters as well as past.  This fixes a
72046         bug when processing fall-backwards gaps immediately after a long
72047         period of daylight-saving time.
72048
72049         * lib/mktime.c: Assume freestanding C89 or better.
72050         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72051         (__P): Remove; not used.
72052         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72053         (mktime, not_equal_tm, print_tm, check_result,
72054         main): Use prototypes.  Use const * where appropriate.
72055         (main): Fix typo in testing code that uncovered by above changes.
72056         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72057
72058 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72059
72060         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72061         locale.h, localeconv.  This merges changes from coreutils.
72062
72063         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72064         It can be removed after the next Autoconf is released.
72065         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72066         needed.
72067
72068 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72069
72070         * lib/mktime.c: Fix Debian bug 177940
72071         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72072         (localtime_offset): Now long int, not time_t, because we want it
72073         to be guaranteed to be signed.  All uses changed.
72074         (__mktime_internal): If overflow would occur when adding offset,
72075         don't add it.
72076
72077         Merge 'human' changes from coreutils.  Rewrite to support
72078         locale-specific notations like thousands separators.
72079         * lib/human.c: Simplify authorship notice.
72080         Include human.h immediately after config.h.
72081         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72082         <limits.h>: Do not include, since human.h does.
72083         (SIZE_MAX, UINTMAX_MAX): New macros.
72084         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72085         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72086         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72087         (power_letter): Renamed from suffixes.
72088         (generate_suffix_backwards): Remove.
72089         (adjust_value): Now takes int style (because of human.h changes)
72090         and long double value (for greater precision on some platforms).
72091         (group_number): New function.
72092         (human_readable): Use it.  Use integer options, not enum.
72093         Put the options before the sizes in the arg list.
72094         Support all the new options.
72095         The old human_readable function has been removed;
72096         use inttostr.h instead.
72097         (human_readable, default_block_size, humblock):
72098         Use uintmax_t, not int, for block sizes.
72099         (human_readable_inexact, block_size_types): Remove.
72100         (block_size_opts): New constant.
72101         (human_options): Renamed from human_block_size, with new signature
72102         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72103         * lib/human.h: Add copyright and authorship notice.
72104         Include <limits.h> and <stdbool.h> unconditionally.
72105         (PARAMS): Remove.  All uses removed.
72106         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72107         (enum human_inexact_style): Remove tag; now a nameless enum.
72108         (human_floor, human_ceiling, human_round_to_even): Now have
72109         values 2, 0, 1 rather than -1, 1, 0.
72110         (human_group_digits, human_suppress_point_zero, human_autoscale,
72111         human_base_1024, human_SI, human_B): New constants.
72112         (human_readable_inexact, human_block_size): Remove.
72113         (human_readable): Size args are now uintmax_t, not int.
72114         (human_options): New decl.
72115
72116         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72117         unnecessary now that we assume C89 or better.  This change
72118         imported from coreutils.
72119
72120         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72121         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72122         in the 2003-05-30 sync from glibc.
72123
72124         .h files should stand alone, but we shouldn't include <sys/types.h>
72125         if we can get away with just <stddef.h>.
72126
72127         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72128         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72129         rather than <sys/types.h>, as we merely need size_t.
72130         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72131         to get size_t.
72132         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72133         Include <stdio.h>, to get FILE.
72134         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72135         memcasecmp.h has included <stddef.h> and all we need is size_t.
72136         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72137         our interface, instead of including <sys/types.h>
72138
72139 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72140
72141         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72142         now, as glibc mktime is buggy on non-glibc systems.
72143
72144 2003-06-03  Karl Berry  <karl@gnu.org>
72145
72146         * config/config.sub: update from prep.
72147
72148 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72149
72150         [from coreutils]
72151         Fix some minor time-related bugs with POSIX time arguments.
72152         Some valid time stamps were being rejected (notably -1, and
72153         time stamps before 1900 on 64-bit hosts).  And some invalid
72154         time stamps were being accepted, e.g. September 31.
72155
72156         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72157         that we can return (time_t) -1 successfully.
72158         * lib/posixtm.c: Likewise.
72159         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72160         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72161         (t): Remove static var.
72162         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72163         of static var.  All uses changed.
72164         (year): Do not reject years before 1900; they can occur with
72165         64-bit time_t.
72166         (posix_time_parse): Do not check for out-of-range components;
72167         that is now the caller's responsibility, since our checks were
72168         only approximations.
72169         (posixtime): Use mktime to check for out-of-range components,
72170         since it knows them exactly.
72171         If mktime returns (time_t) -1, check whether an error actually occurred
72172         by invoking localtime on -1.
72173         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72174         posixtime failures better.
72175         Improve the test data (in comments only).
72176
72177 2003-06-02  Karl Berry  <karl@gnu.org>
72178
72179         * config/mkinstalldirs (version): new variable.
72180         (--version): new option.
72181         (usage): improve message.
72182
72183 2003-05-30  Karl Berry  <karl@gnu.org>
72184
72185         * lib/mktime.c: update from libc.
72186
72187 2003-05-30  Bruno Haible  <bruno@clisp.org>
72188
72189         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72190         * config/config.rpath: Upgrade to gettext-0.12.1.
72191
72192 2003-05-30  Bruno Haible  <bruno@clisp.org>
72193
72194         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72195         * m4/nls.m4: New file, from gettext-0.12.1.
72196         * m4/po.m4: New file, from gettext-0.12.1.
72197         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72198
72199 2003-05-30  Bruno Haible  <bruno@clisp.org>
72200
72201         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72202         * lib/localcharset.h: Likewise.
72203         * lib/localcharset.c: Likewise.
72204
72205 2003-05-29  Karl Berry  <karl@gnu.org>
72206
72207         * config/config.rpath: update from gettext.
72208
72209 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72210
72211         Assume the headers required for C89 freestanding compilers.
72212         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72213         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72214         * m4/human.m4 (gl_HUMAN): Likewise.
72215         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72216         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72217         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72218         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72219         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72220         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72221
72222 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72223
72224         Assume the headers required for C89 freestanding compilers.
72225         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72226         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72227         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72228         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72229         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72230         define, since <limits.h> is guaranteed to do that.
72231         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72232         * lib/exclude.c: Include <stdbool.h> unconditionally.
72233         * lib/tempname.c: Include <stddef.h> unconditionally.
72234         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72235         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72236         <stddef.h> does that.
72237         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72238         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72239         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72240         needed.
72241         * lib/xstrtol.c: Likewise.
72242         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72243         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72244
72245         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72246         warnings on some platforms.
72247
72248         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72249         arbitrarily.
72250
72251 2003-05-26  Jim Meyering  <jim@meyering.net>
72252
72253         Merge in a change from coreutils:
72254         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72255         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72256         that condition, rather than `-1' which is slightly misleading.
72257         Change the name of the cache variable to have the gl_ prefix.
72258         Prompted by a patch from Richard Dawe for DJGPP.
72259
72260 2003-05-24  Karl Berry  <karl@gnu.org>
72261
72262         * config/config.guess: update from prep.
72263
72264 2003-05-22  Karl Berry  <karl@gnu.org>
72265
72266         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72267
72268 2003-05-20  Karl Berry  <karl@gnu.org>
72269
72270         * config/config.guess: update from prep.
72271
72272 2003-05-18  Karl Berry  <karl@gnu.org>
72273
72274         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72275         might actually be set by the user.
72276
72277         * config/depcomp, install-sh, mdate-sh: update from automake.
72278
72279 2003-05-17  Bruno Haible  <bruno@clisp.org>
72280
72281         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72282         invalid expansion for AC_EGREP_CPP.
72283         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72284         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72285         Suggested by Akim Demaille <akim@epita.fr> in
72286         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72287
72288 2003-05-12  Jim Meyering  <jim@meyering.net>
72289
72290         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72291         the space-padded-by-default conversion specifiers, %e, %k, %l.
72292
72293 2003-05-12  Bruno Haible  <bruno@clisp.org>
72294
72295         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72296         the string is longer than 4 KB.
72297
72298 2003-05-11  Karl Berry  <karl@gnu.org>
72299
72300         * config/config.{guess,sub}: update from prep.
72301
72302 2003-05-09  Bruno Haible  <bruno@clisp.org>
72303
72304         * modules/error: Add m4/strerror_r.m4 to file list.
72305
72306 2003-05-03  Bruno Haible  <bruno@clisp.org>
72307
72308         Upgrade to Unicode-4.0.
72309         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72310         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72311         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72312         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72313         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72314         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72315         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72316         Change width of U+E0100..U+E01EF from 1 to 0.
72317
72318 2003-04-25  Jim Meyering  <jim@meyering.net>
72319
72320         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72321         of type size_t, not int.
72322
72323 2003-04-25  Bruno Haible  <bruno@clisp.org>
72324
72325         * lib/copy-file.c: Include <stddef.h>, for size_t.
72326
72327 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72328
72329         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72330         code which expansion is under static control.  Patch imported from
72331         Akim Demaille's patch to Bison; see
72332         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72333
72334 2003-04-14  Bruno Haible  <bruno@clisp.org>
72335
72336         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72337
72338 2003-04-11  Jim Meyering  <jim@meyering.net>
72339
72340         Merge changes from Coreutils.
72341
72342         2003-03-22  Jim Meyering  <jim@meyering.net>
72343
72344         * lib/strftime.c (widen): Cast alloca return value to proper type.
72345
72346         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72347
72348         From GNU libc.
72349         * lib/strftime.c (my_strftime): Handle very large width
72350         specifications for numeric values correctly.  Improve checks for
72351         overflow.
72352
72353         2003-01-19  Jim Meyering  <jim@meyering.net>
72354
72355         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72356         definitions.
72357         (nl_get_alt_digit) [! defined my_strftime]: Define.
72358         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72359         _nl_get_alt_digit and _nl_get_walt_digit.
72360
72361         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72362         libc. These changes have no effect outside of _LIBC.
72363
72364 2003-04-10  Bruno Haible  <bruno@clisp.org>
72365
72366         * modules/findprog: New file.
72367         * MODULES.html.sh (func_all_modules): Add it.
72368
72369 2003-04-10  Bruno Haible  <bruno@clisp.org>
72370
72371         * m4/findprog.m4: New file.
72372         * m4/eaccess.m4: New file.
72373
72374 2003-04-10  Bruno Haible  <bruno@clisp.org>
72375
72376         * lib/findprog.h: New file, from GNU gettext.
72377         * lib/findprog.c: New file, from GNU gettext.
72378
72379 2003-04-05  Jim Meyering  <jim@meyering.net>
72380
72381         Merge changes from Coreutils.
72382
72383         * lib/exclude.h (PARAMS): Remove definition and uses.
72384         * lib/exclude.c: Remove uses of `PARAMS'.
72385
72386         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72387         Add test-cases for DOS filenames. Declare program_name.
72388         (main): Set up program_name.  Patch by Rich Dawe.
72389
72390         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72391         error from mntctl.
72392         Use mntctl's return value to drive the entry-processing loop, since
72393         we can't rely on the value of the vmt_length member in the last
72394         entry.  On some systems doing so could result in exhausting
72395         virtual memory.  Based in part on a patch from Mike Jetzer.
72396
72397 2003-04-04  Bruno Haible  <bruno@clisp.org>
72398
72399         * modules/linebreak: New file.
72400         * MODULES.html.sh (func_all_modules): Add it.
72401
72402 2003-04-04  Bruno Haible  <bruno@clisp.org>
72403
72404         * m4/linebreak.m4: New file.
72405
72406 2003-04-04  Bruno Haible  <bruno@clisp.org>
72407
72408         * lib/linebreak.h: New file, from GNU gettext.
72409         * lib/linebreak.c: New file, from GNU gettext with slight
72410         modifications.
72411         * lib/lbrkprop.h: New file, from GNU gettext.
72412
72413 2003-04-03  Bruno Haible  <bruno@clisp.org>
72414
72415         * modules/utf8-ucs4: New file.
72416         * modules/utf16-ucs4: New file.
72417         * modules/ucs4-utf8: New file.
72418         * modules/ucs4-utf16: New file.
72419         * MODULES.html.sh (func_all_modules): Add them.
72420
72421 2003-04-03  Bruno Haible  <bruno@clisp.org>
72422
72423         * m4/utf-ucs4.m4: New file.
72424         * m4/ucs4-utf.m4: New file.
72425
72426 2003-04-03  Bruno Haible  <bruno@clisp.org>
72427
72428         * lib/utf8-ucs4.h: New file, from GNU gettext.
72429         * lib/utf16-ucs4.h: New file, from GNU gettext.
72430         * lib/ucs4-utf8.h: New file, from GNU gettext.
72431         * lib/ucs4-utf16.h: New file, from GNU gettext.
72432
72433 2003-04-02  Bruno Haible  <bruno@clisp.org>
72434
72435         * modules/binary-io: New file.
72436         * MODULES.html.sh (func_all_modules): Add it.
72437
72438 2003-04-02  Bruno Haible  <bruno@clisp.org>
72439
72440         * lib/binary-io.h: New file, from GNU gettext.
72441
72442 2003-04-01  Bruno Haible  <bruno@clisp.org>
72443
72444         * modules/pathname: New file.
72445         * MODULES.html.sh (func_all_modules): Add it.
72446
72447 2003-04-01  Bruno Haible  <bruno@clisp.org>
72448
72449         * lib/pathname.h: New file, from GNU gettext.
72450         * lib/concatpath.c: New file, from GNU gettext.
72451
72452 2003-03-30  Bruno Haible  <bruno@clisp.org>
72453
72454         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
72455
72456 2003-03-30  Bruno Haible  <bruno@clisp.org>
72457
72458         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
72459         function chown() doesn't exist.
72460
72461 2003-03-28  Bruno Haible  <bruno@clisp.org>
72462
72463         * modules/copy-file: New file.
72464         * MODULES.html.sh (func_all_modules): Add it.
72465
72466 2003-03-28  Bruno Haible  <bruno@clisp.org>
72467
72468         * m4/copy-file.m4: New file.
72469
72470 2003-03-28  Bruno Haible  <bruno@clisp.org>
72471
72472         * lib/copy-file.h: New file, from GNU gettext.
72473         * lib/copy-file.c: New file, from GNU gettext.
72474
72475 2003-03-18  Jim Meyering  <jim@meyering.net>
72476
72477         * lib/quote.c (quote_n): Fix typo in comment.
72478
72479 2003-03-18  Bruno Haible  <bruno@clisp.org>
72480
72481         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
72482         checking.
72483         * m4/onceonly_2_57.m4: Likewise.
72484
72485 2003-03-17  Bruno Haible  <bruno@clisp.org>
72486
72487         * m4/onceonly.m4: Require autoconf 2.54 or newer.
72488         (m4_quote): Remove macro.
72489         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
72490
72491 2003-03-14  Jim Meyering  <jim@meyering.net>
72492
72493         Merge changes from Coreutils.
72494         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
72495         to be const, in order to avoid warnings.
72496         (obstack_room): Likewise.
72497         (obstack_empty_p): Likewise.
72498
72499 2003-03-14  Bruno Haible  <bruno@clisp.org>
72500
72501         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
72502         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
72503
72504 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72505
72506         Merge changes from Bison.
72507         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
72508         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
72509         when compiling Bison 1.875's `bitset bset = obstack_alloc
72510         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
72511         * lib/hash.c: Include <stdbool.h> unconditionally.
72512
72513 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72514
72515         * m4/onceonly.m4 (m4_quote): New macro.
72516         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
72517         Quote AC_FOREACH variable-expansions properly.
72518
72519 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72520
72521         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
72522
72523 2003-03-09  Paul Eggert  <eggert@twinsun.com>
72524
72525         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
72526         Reported by Bruce Becker; see:
72527         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
72528
72529 2003-03-03  Paul Eggert  <eggert@twinsun.com>
72530             Bruno Haible  <bruno@clisp.org>
72531
72532         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
72533         Reported by John Hughes, see
72534         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
72535
72536 2003-02-20  Bruno Haible  <bruno@clisp.org>
72537
72538         * MODULES.html.sh (func_all_modules): Add poll.
72539
72540 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72541
72542         * modules/poll: New file.
72543
72544 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72545
72546         * lib/poll_.h: New file.
72547         * lib/poll.c: New file.
72548
72549 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72550
72551         * m4/poll.m4: New file.
72552
72553 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72554
72555         * modules/mathl: New file.
72556
72557 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72558
72559         * lib/mathl.h: New file.
72560         * lib/acosl.c: New file.
72561         * lib/asinl.c: New file.
72562         * lib/atanl.c: New file.
72563         * lib/ceill.c: New file.
72564         * lib/cosl.c: New file.
72565         * lib/expl.c: New file.
72566         * lib/floorl.c: New file.
72567         * lib/frexpl.c: New file.
72568         * lib/ldexpl.c: New file.
72569         * lib/logl.c: New file.
72570         * lib/sincosl.c: New file.
72571         * lib/sinl.c: New file.
72572         * lib/sqrtl.c: New file.
72573         * lib/tanl.c: New file.
72574         * lib/trigl.c: New file.
72575         * lib/trigl.h: New file.
72576
72577 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72578
72579         * m4/mathl.m4: New file.
72580
72581 2003-02-18  Bruno Haible  <bruno@clisp.org>
72582
72583         * MODULES.html.sh (func_all_modules): Add mathl.
72584
72585 2003-02-17  Bruno Haible  <bruno@clisp.org>
72586
72587         * modules/mkdtemp: New module.
72588         * MODULES.html.sh (func_all_modules): Add it.
72589
72590 2003-02-17  Bruno Haible  <bruno@clisp.org>
72591
72592         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
72593
72594 2003-02-17  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/mkdtemp.h: New file, from GNU gettext.
72597         * lib/mkdtemp.c: New file, from GNU gettext.
72598
72599 2003-02-02  Jim Meyering  <jim@meyering.net>
72600
72601         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
72602         e.g. glibc-2.2.93.
72603
72604 2003-01-31  Bruno Haible  <bruno@clisp.org>
72605
72606         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
72607         'rpl_rename'.
72608         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
72609         'rpl_strnlen'.
72610         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
72611         'rpl_strtod'.
72612         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
72613         'rpl_utime'.
72614
72615 2003-01-31  Bruno Haible  <bruno@clisp.org>
72616
72617         * lib/rename.c: #undef rename before defining rpl_rename.
72618         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
72619
72620 2003-01-30  Bruno Haible  <bruno@clisp.org>
72621
72622         * modules/vasnprintf, modules/vasprintf: New modules.
72623         * MODULES.html.sh (func_all_modules): Add them.
72624
72625 2003-01-30  Bruno Haible  <bruno@clisp.org>
72626
72627         * m4/signed.m4: New file, from GNU gettext.
72628         * m4/longdouble.m4: New file, from GNU gettext.
72629         * m4/wchar_t.m4: New file, from GNU gettext.
72630         * m4/wint_t.m4: New file, from GNU gettext.
72631         * m4/vasnprintf.m4: New file.
72632         * m4/vasprintf.m4: New file.
72633
72634 2003-01-30  Bruno Haible  <bruno@clisp.org>
72635
72636         * lib/printf-args.h: New file, from GNU gettext.
72637         * lib/printf-args.c: New file, from GNU gettext.
72638         * lib/printf-parse.h: New file, from GNU gettext.
72639         * lib/printf-parse.c: New file, from GNU gettext.
72640         * lib/vasnprintf.h: New file, from GNU gettext.
72641         * lib/vasnprintf.c: New file, from GNU gettext.
72642         * lib/asnprintf.c: New file, from GNU gettext.
72643         * lib/vasprintf.h: New file, from GNU gettext with modifications.
72644         * lib/vasprintf.c: New file, from GNU gettext.
72645         * lib/asprintf.c: New file, from GNU gettext.
72646
72647 2003-01-29  Bruno Haible  <bruno@clisp.org>
72648
72649         * modules/stpncpy: New module.
72650         * MODULES.html.sh (func_all_modules): Add it.
72651
72652 2003-01-29  Bruno Haible  <bruno@clisp.org>
72653
72654         * m4/stpncpy.m4: New file.
72655
72656 2003-01-29  Bruno Haible  <bruno@clisp.org>
72657
72658         * lib/stpncpy.h: New file, from GNU gettext with modifications.
72659         * lib/stpncpy.c: New file, from GNU gettext with modifications.
72660
72661 2003-01-28  Bruno Haible  <bruno@clisp.org>
72662
72663         * modules/c-ctype: New module.
72664         * MODULES.html.sh (func_all_modules): Add it.
72665
72666 2003-01-28  Bruno Haible  <bruno@clisp.org>
72667
72668         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
72669         Paul Eggert.
72670         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
72671         Paul Eggert.
72672
72673 2003-01-27  Bruno Haible  <bruno@clisp.org>
72674
72675         * modules/xsetenv: New module.
72676         * MODULES.html.sh (func_all_modules): Add it.
72677
72678 2003-01-27  Bruno Haible  <bruno@clisp.org>
72679
72680         * lib/xsetenv.h: New file, from GNU gettext.
72681         * lib/xsetenv.c: New file, from GNU gettext.
72682
72683 2003-01-23  Jim Meyering  <jim@meyering.net>
72684
72685         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
72686         from working on systems without dirfd (at least Irix and OSF1/Tru64).
72687
72688 2003-01-23  Bruno Haible  <bruno@clisp.org>
72689
72690         * modules/minmax: New module.
72691         * MODULES.html.sh (func_all_modules): Add it.
72692
72693 2003-01-23  Bruno Haible  <bruno@clisp.org>
72694
72695         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
72696         Eggert.
72697
72698 2003-01-22  Bruno Haible  <bruno@clisp.org>
72699
72700         * modules/exit: New module.
72701         * MODULES.html.sh (func_all_modules): Add it.
72702
72703 2003-01-22  Bruno Haible  <bruno@clisp.org>
72704
72705         * lib/exit.h: New file, from GNU gettext.
72706
72707 2003-01-19  Bruno Haible  <bruno@clisp.org>
72708
72709         * gnulib-tool: Recognize option --extract-maintainer.
72710         (func_get_maintainer): New function.
72711         * modules/*: Add Maintainer entry.
72712
72713 2003-01-16  Jim Meyering  <jim@meyering.net>
72714
72715         * m4/regex.m4: The `regex' struct is both input and output.
72716         Initialize it before each use.  Patch by Tim Waugh.
72717
72718 2003-01-16  Bruno Haible  <bruno@clisp.org>
72719
72720         * MODULES.html.sh: Add a table of contents. Add the module name as
72721         leftmost column. Add hyperlinks.
72722
72723 2003-01-15  Bruno Haible  <bruno@clisp.org>
72724
72725         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
72726
72727 2003-01-15  Bruno Haible  <bruno@clisp.org>
72728
72729         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
72730         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
72731         suffix.
72732
72733 2003-01-15  Bruno Haible  <bruno@clisp.org>
72734
72735         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
72736
72737 2003-01-15  Bruno Haible  <bruno@clisp.org>
72738
72739         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
72740         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
72741
72742 2003-01-14  Jim Meyering  <jim@meyering.net>
72743
72744         * lib/same.c (same_name): Tweak a comment.
72745
72746 2003-01-14  Bruno Haible  <bruno@clisp.org>
72747
72748         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
72749         when a string comparison is sufficient.
72750
72751 2003-01-14  Bruno Haible  <bruno@clisp.org>
72752
72753         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
72754         'unsigned int'.
72755
72756 2003-01-14  Bruno Haible  <bruno@clisp.org>
72757
72758         * lib/hash-pjw.c: Add comment about low quality of this function.
72759
72760 2003-01-13  Bruno Haible  <bruno@clisp.org>
72761
72762         * modules/stpcpy: Distribute lib/stpcpy.h.
72763         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
72764
72765 2003-01-13  Bruno Haible  <bruno@clisp.org>
72766
72767         * modules/*: Add a description.
72768         * modules/strpbrk: Fix Makefile.am snippet.
72769         * modules/strtoimax: Fix dependencies.
72770         * modules/strtoumax: Likewise.
72771
72772 2003-01-13  Bruno Haible  <bruno@clisp.org>
72773
72774         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
72775         * modules/alloca (Makefile.am): All object files depend on alloca.h.
72776         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
72777
72778 2003-01-13  Bruno Haible  <bruno@clisp.org>
72779
72780         * gnulib-tool (func_create_testdir): Store config/* files in the main
72781         directory.
72782         * config.rpath: Move to ...
72783         * config/config.rpath: ... here.
72784         * modules/gettext: Contains config/config.rpath, not config.rpath.
72785         * modules/iconv: Likewise.
72786
72787 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72788
72789         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72790         to avoid collisions with libcurses and libreadline.
72791
72792         * m4/getstr.m4: Remove.
72793         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
72794
72795 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72796
72797         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72798         to avoid collisions with libcurses and libreadline.
72799
72800         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
72801         * lib/getstr.h, getstr.c: Remove.
72802         * lib/getline.c: Include "getline.h", to check interface.
72803         Move body of old getstr.c here: this defines MIN_CHUNK and
72804         declares getdelim2, which is renamed from getstr.
72805         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
72806
72807         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
72808         All uses changed.
72809         * lib/linebuffer.h: Likewise.
72810         (readline): Remove backward-compatibility macro.
72811
72812 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72813
72814         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72815         to avoid collisions with libcurses and libreadline.
72816         * getstr: Remove.
72817         * MODULES.html.sh: Remove getstr.
72818         * modules/getline: Depend on unlocked-io, not getstr.
72819
72820 2003-01-12  Jim Meyering  <jim@meyering.net>
72821
72822         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
72823
72824 2003-01-10  Bruno Haible  <bruno@clisp.org>
72825
72826         * modules/alloca: Change Makefile.am requirements. Simplify Include
72827         requirements. Add lib/alloca_.h to file list.
72828
72829 2003-01-10  Bruno Haible  <bruno@clisp.org>
72830
72831         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
72832
72833 2003-01-10  Bruno Haible  <bruno@clisp.org>
72834
72835         * lib/alloca_.h: New file.
72836         * lib/getdate.y: Unconditionally include alloca.h.
72837         * lib/makepath.c: Likewise.
72838         * lib/setenv.c: Likewise.
72839         * lib/userspec.c: Likewise.
72840
72841 2003-01-09  Karl Berry  <karl@gnu.org>
72842
72843         * MODULES.html.sh: include `dirname $0` in PATH, to find
72844         gnulib-tool.
72845
72846 2003-01-09  Bruno Haible  <bruno@clisp.org>
72847
72848         * modules/stdbool: Change configure.ac, Makefile.am requirements.
72849         Simplify Include requirements. Add lib/stdbool.h.in to file list.
72850
72851 2003-01-09  Bruno Haible  <bruno@clisp.org>
72852
72853         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
72854
72855 2003-01-09  Bruno Haible  <bruno@clisp.org>
72856
72857         * lib/stdbool.h.in: New file.
72858
72859 2003-01-09  Bruno Haible  <bruno@clisp.org>
72860
72861         * gnulib-tool (func_all_modules): Ignore files ending in ~.
72862         * MODULES.html.sh: Likewise.
72863
72864 2003-01-08  Jim Meyering  <jim@meyering.net>
72865
72866         * lib/full-write.c: Undefine and define-away `const' after inclusion
72867         of errno.h, not before.  Suggestion from Bruno Haible.
72868
72869 2003-01-08  Bruno Haible  <bruno@clisp.org>
72870
72871         * modules/full-read: Depend on full-write.
72872
72873 2003-01-08  Bruno Haible  <bruno@clisp.org>
72874
72875         * lib/safe-read.c: Include specification header first, to ensure its
72876         selfcontainedness.
72877         * lib/full-write.c: Likewise.
72878
72879 2003-01-07  Jim Meyering  <jim@meyering.net>
72880
72881         * lib/full-write.c: Rework so that it may serve to define full_read,
72882         too.
72883         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
72884
72885 2003-01-07  Bruno Haible  <bruno@clisp.org>
72886
72887         * lib/strtoimax.c: Include <stdint.h> as an alternative to
72888         <inttypes.h>.
72889         * lib/xstrtol.h: Likewise.
72890         * lib/xstrtoimax.c: Likewise.
72891         * lib/xstrtoumax.c: Likewise.
72892         * lib/human.h: Likewise.
72893
72894         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
72895         on systems that have <inttypes.h> but not <stdint.h>.
72896
72897 2003-01-07  Bruno Haible  <bruno@clisp.org>
72898
72899         * MODULES.html.sh: Add copyright notice.
72900         (missed_files): Omit CVS directory entries.
72901         (func_module): Make it work with sed-3.02.
72902         * MODULES.txt: Remove file.
72903
72904 2003-01-06  Jim Meyering  <jim@meyering.net>
72905
72906         * lib/version-etc.c: Update year in translatable copyright string.
72907
72908 2003-01-03  Karl Berry  <karl@gnu.org>
72909
72910         * config/config.{guess,sub}: update from prep.
72911
72912 2003-01-02  Karl Berry  <karl@gnu.org>
72913
72914         * doc/COPYING.DOC: belatedly updated to 1.2.
72915
72916 2003-01-01  Karl Berry  <karl@gnu.org>
72917
72918         * gnulib-tool (func_verify_module): report module name $module in
72919         error message, not $1.
72920         * gnulib-tool (create-testdir): don't complain if destdir couldn't
72921         be created, only if it doesn't exist.
72922         * gnulib-tool (last_checkin_date): don't expand the $Date here.
72923
72924 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72925
72926         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
72927
72928 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72929
72930         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
72931         memcmp if strcoll doesn't work.
72932
72933 2002-12-31  Bruno Haible  <bruno@clisp.org>
72934
72935         * lib/utime.c (utime_null): No need to call ftruncate if the file was
72936         nonempty.
72937
72938 2002-12-31  Bruno Haible  <bruno@clisp.org>
72939
72940         * lib/memcoll.c (STRCOLL): New macro.
72941         (memcoll): Use it.
72942
72943 2002-12-31  Bruno Haible  <bruno@clisp.org>
72944
72945         * lib/localcharset.h: New file.
72946         * lib/localcharset.c: Include it.
72947         * lib/unicodeio.c: Likewise.
72948
72949 2002-12-31  Bruno Haible  <bruno@clisp.org>
72950
72951         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
72952         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
72953
72954 2002-12-31  Bruno Haible  <bruno@clisp.org>
72955
72956         * lib/getline.h: Include <stddef.h>, for size_t.
72957
72958         * lib/unicodeio.h: Include <stddef.h>, for size_t.
72959         * lib/unicodeio.c: Don't include <stddef.h>.
72960
72961 2002-12-31  Bruno Haible  <bruno@clisp.org>
72962
72963         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
72964         HAVE_TM_ZONE.
72965
72966 2002-12-24  Karl Berry  <karl@gnu.org>
72967
72968         * config/config.guess: update from prep.
72969
72970 2002-12-24  Bruno Haible  <bruno@clisp.org>
72971
72972         General infrasructure.
72973         * m4/README: Rewritten.
72974         * m4/onceonly.m4: New file.
72975         * m4/onceonly_2_57.m4: New file.
72976
72977         Module atexit.
72978         * m4/atexit.m4: New file.
72979
72980         Module strtod.
72981         * m4/strtod.m4: New file.
72982
72983         Module strtol.
72984         * m4/strtol.m4: New file.
72985
72986         Module strtoul.
72987         * m4/strtoul.m4: New file.
72988
72989         Module memchr.
72990         * m4/memchr.m4: New file.
72991
72992         Module memcmp.
72993         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
72994         (jm_FUNC_MEMCMP): Invoke it.
72995
72996         Module memcpy.
72997         * m4/memcpy.m4: New file.
72998
72999         Module memmove.
73000         * m4/memmove.m4: New file.
73001
73002         Module memset.
73003         * m4/memset.m4: New file.
73004
73005         Module strcspn.
73006         * m4/strcspn.m4: New file.
73007
73008         Module strpbrk.
73009         * m4/strpbrk.m4: New file.
73010
73011         Module strstr.
73012         * m4/strstr.m4: New file.
73013
73014         Module strerror.
73015         * m4/strerror.m4: New file.
73016
73017         Module mktime.
73018         * m4/mktime.m4: Renamed from jm-mktime.m4.
73019         (gl_PREREQ_MKTIME): New macro.
73020         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73021
73022         Module malloc.
73023         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73024         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73025         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73026
73027         Module realloc.
73028         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73029         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73030         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73031
73032         Module strftime.
73033         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73034         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73035         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73036         gl_TM_GMTOFF.
73037         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73038
73039         Module xalloc.
73040         * m4/xalloc.m4: New file.
73041
73042         Module alloca.
73043         * m4/alloca.m4: New file.
73044
73045         Module putenv.
73046         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73047         (jm_FUNC_PUTENV): Invoke it.
73048
73049         Module setenv.
73050         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73051         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73052         when invoked twice.
73053         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73054         gt_FUNC_SETENV.
73055
73056         Module memrchr.
73057         * m4/memrchr.m4: New file.
73058
73059         Module stpcpy.
73060         * m4/stpcpy.m4: New file.
73061
73062         Module strcase.
73063         * m4/strcase.m4: New file.
73064
73065         Module strdup.
73066         * m4/strdup.m4: New file.
73067
73068         Module strnlen.
73069         * m4/strnlen.m4: New file.
73070
73071         Module strndup.
73072         * m4/strndup.m4: New file.
73073
73074         Module xstrtod.
73075         * m4/xstrtod.m4: New file.
73076
73077         Module xstrtol.
73078         * m4/xstrtol.m4: New file.
73079
73080         Module getdate.
73081         * m4/getdate.m4: New file.
73082
73083         Module unlocked-io.
73084         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73085         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73086         * m4/jm-glibc-io.m4n: Remove file.
73087
73088         Module long-options.
73089         * m4/long-options.m4: New file.
73090
73091         Module md5.
73092         * m4/md5.m4: New file.
73093
73094         Module sha.
73095         * m4/sha.m4: New file.
73096
73097         Module getstr.
73098         * m4/getstr.m4: New file.
73099
73100         Module getline.
73101         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73102         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73103         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73104         simply getline. Infoke gl_PREREQ_GETLINE.
73105
73106         Module obstack.
73107         * m4/obstack.m4: New file.
73108
73109         Module hash.
73110         * m4/hash.m4: New file.
73111
73112         Module readtokens.
73113         * m4/readtokens.m4: New file.
73114
73115         Module strverscmp.
73116         * m4/strverscmp.m4: New file.
73117
73118         Module stdbool.
73119         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73120         OSF/1.
73121
73122         Module strtoll.
73123         * m4/strtoll.m4: New file.
73124
73125         Module strtoull.
73126         * m4/strtoull.m4: New file.
73127
73128         Module strtoimax.
73129         * m4/strtoimax.m4: New file.
73130
73131         Module strtoumax.
73132         * m4/strtoumax.m4: New file.
73133
73134         Module xstrtoimax.
73135         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73136         jm_AC_PREREQ_XSTRTOIMAX.
73137         Moved the strtol prerequisites to strtol.m4.
73138         Moved the strtoll prerequisites to strtoll.m4.
73139         Moved the strtoimax prerequisites to strtoimax.m4.
73140
73141         Module xstrtoumax.
73142         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73143         jm_AC_PREREQ_XSTRTOUMAX.
73144         Moved the strtoul prerequisites to strtoul.m4.
73145         Moved the strtoull prerequisites to strtoull.m4.
73146         Moved the strtoumax prerequisites to strtoumax.m4.
73147
73148         Module chown.
73149         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73150         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73151
73152         Module dup2.
73153         * m4/dup2.m4: New file.
73154
73155         Module ftruncate.
73156         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73157         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73158
73159         Module getgroups.
73160         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73161         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73162
73163         Module gettimeofday.
73164         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73165         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73166         gl_PREREQ_GETTIMEOFDAY.
73167
73168         Module mkdir.
73169         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73170         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73171
73172         Module mkstemp.
73173         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73174         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73175         jm_AC_TYPE_UINTMAX_T.
73176         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73177
73178         Module stat.
73179         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73180         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73181
73182         Module lstat.
73183         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73184         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73185
73186         Module timespec.
73187         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73188         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73189         * m4/st_mtim.m4: Indentation.
73190
73191         Module nanosleep.
73192         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73193         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73194         gl_PREREQ_NANOSLEEP.
73195
73196         Module regex.
73197         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73198         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73199         (gl_REGEX): New macro.
73200
73201         Module rename.
73202         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73203         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73204
73205         Module rmdir.
73206         * m4/rmdir.m4: New file.
73207
73208         Module utime.
73209         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73210         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73211         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73212
73213         Module dirname.
73214         * m4/dirname.m4: New file.
73215
73216         Module getopt.
73217         * m4/getopt.m4: New file.
73218
73219         Module unistd-safer.
73220         * m4/unistd-safer.m4: New file.
73221
73222         Module fnmatch.
73223         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73224         declaration.
73225         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73226         (gl_FUNC_FNMATCH_POSIX): New macro.
73227         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73228         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73229         simply fnmatch.
73230
73231         Module exclude.
73232         * m4/exclude.m4: New file.
73233
73234         Module human.
73235         * m4/human.m4: New file.
73236
73237         Module acl.
73238         * m4/acl.m4: Nop.
73239
73240         Module backupfile.
73241         * m4/backupfile.m4: New file.
73242         * m4/d-ino.m4: Indentation.
73243
73244         Module fsusage.
73245         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73246         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73247         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73248
73249         Module dirfd.
73250         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73251         requirements.
73252
73253         Module euidaccess.
73254         * m4/euidaccess.m4: New file.
73255
73256         Module file-type.
73257         * m4/file-type.m4: New file.
73258
73259         Module fileblocks.
73260         * m4/fileblocks.m4: New file.
73261
73262         Module filemode.
73263         * m4/filemode.m4: New file.
73264
73265         Module isdir.
73266         * m4/isdir.m4: New file.
73267
73268         Module lchown.
73269         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73270         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73271
73272         Module makepath.
73273         * m4/makepath.m4: New file.
73274
73275         Module modechange.
73276         * m4/modechange.m4: New file.
73277
73278         Module mountlist.
73279         * m4/mountlist.m4: New file.
73280         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73281         Indentation.
73282
73283         Module path-concat.
73284         * m4/path-concat.m4: New file.
73285
73286         Module pathmax.
73287         * m4/pathmax.m4: New file.
73288
73289         Module same.
73290         * m4/same.m4: New file.
73291
73292         Module save-cwd.
73293         * m4/save-cwd.m4: New file.
73294
73295         Module savedir.
73296         * m4/savedir.m4: New file.
73297
73298         Module xgetcwd.
73299         * m4/xgetcwd.m4: New file.
73300         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73301
73302         Module xreadlink.
73303         * m4/xreadlink.m4: New file.
73304
73305         Module safe-read.
73306         * m4/safe-read.m4: New file.
73307
73308         Module safe-write.
73309         * m4/safe-write.m4: New file.
73310
73311         Module closeout.
73312         * m4/closeout.m4: New file.
73313
73314         Module stdio-safer.
73315         * m4/stdio-safer.m4: New file.
73316
73317         Module getpass.
73318         * m4/getpass.m4: New file.
73319
73320         Module getugroups.
73321         * m4/getugroups.m4: New file.
73322
73323         Module group-member.
73324         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73325         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73326
73327         Module idcache.
73328         * m4/idcache.m4: New file.
73329
73330         Module userspec.
73331         * m4/userspec.m4: New file.
73332
73333         Module gettime.
73334         * m4/clock_time.m4: New file.
73335         * m4/gettime.m4: New file.
73336
73337         Module settime.
73338         * m4/settime.m4: New file.
73339
73340         Module posixtm.
73341         * m4/posixtm.m4: New file.
73342
73343         Module gethostname.
73344         * m4/gethostname.m4: New file.
73345
73346         Module canon-host.
73347         * m4/canon-host.m4: New file.
73348
73349         Module gettext.
73350         * m4/codeset.m4: New file, from gettext-0.11.5.
73351         * m4/gettext.m4: New file, from gettext-0.11.5.
73352         * m4/glibc21.m4: New file, from gettext-0.11.5.
73353         * m4/iconv.m4: New file, from gettext-0.11.5.
73354         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73355         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73356         * m4/inttypes.m4: New file, from gettext-0.11.5.
73357         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73358         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73359         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73360         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73361         * m4/lib-link.m4: New file, from gettext-0.11.5.
73362         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73363         * m4/progtest.m4: New file, from gettext-0.11.5.
73364         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73365         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73366         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73367
73368         Module localcharset.
73369         * m4/localcharset.m4: New file.
73370
73371         Module hard-locale.
73372         * m4/hard-locale.m4: New file.
73373
73374         Module mbswidth.
73375         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73376         onceonly macros.
73377         * m4/mbrtowc.m4: Add comment.
73378
73379         Module memcasecmp.
73380         * m4/memcasecmp.m4: New file.
73381
73382         Module memcoll.
73383         * m4/memcoll.m4: New file.
73384
73385         Module unicodeio.
73386         * m4/unicodeio.m4: New file.
73387
73388         Module rpmatch.
73389         * m4/rpmatch.m4: New file.
73390
73391         Module yesno.
73392         * m4/yesno.m4: New file.
73393
73394         Module exitfail.
73395         * m4/exitfail.m4: New file.
73396
73397         Module c-stack.
73398         * m4/c-stack.m4 (gl_C_STACK): New macro.
73399         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73400
73401         Module error.
73402         * m4/error.m4 (gl_ERROR): New macro.
73403         (jm_PREREQ_ERROR): Use onceonly macros.
73404
73405         Module fatal.
73406         * m4/fatal.m4: New file.
73407
73408         Module getloadavg.
73409         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73410         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73411
73412         Module getpagesize.
73413         * m4/getpagesize.m4: New file.
73414
73415         Module getusershell.
73416         * m4/getusershell.m4: New file.
73417
73418         Module physmem.
73419         * m4/physmem.m4: New file.
73420
73421         Module posixver.
73422         * m4/posixver.m4: New file.
73423
73424         Module quotearg.
73425         * m4/quotearg.m4: New file.
73426
73427         Module quote.
73428         * m4/quote.m4: New file.
73429
73430         Module readutmp.
73431         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
73432
73433         Module sig2str.
73434         * m4/sig2str.m4: New file.
73435
73436         Other.
73437         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
73438         ulonglong.m4.
73439         * m4/intmax_t.m4: New file.
73440         * m4/d-type.m4: Indentation.
73441         * m4/jm-macros.m4: Update.
73442         * m4/prereq.m4 (jm_PREREQ): Update.
73443         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
73444         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
73445         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
73446         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
73447         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
73448         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
73449         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
73450         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
73451         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
73452         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
73453         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
73454         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
73455         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
73456         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
73457         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
73458         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
73459         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
73460         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
73461         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
73462
73463 2002-12-24  Bruno Haible  <bruno@clisp.org>
73464
73465         * MODULES.txt: Update according to m4/ changes.
73466
73467         Module gettext.
73468         * config.rpath: New file, from gettext-0.11.5.
73469
73470         * modules/*: New module descriptions.
73471         * gnulib-tool: New file.
73472         * MODULES.html.sh: New file.
73473
73474 2002-12-21  Karl Berry  <karl@gnu.org>
73475
73476         * doc/fdl.texi: update to version 1.2.
73477
73478 2002-12-19  Karl Berry  <karl@gnu.org>
73479
73480         * config/config.guess: update from prep.
73481
73482 2002-12-18  Bruno Haible  <bruno@clisp.org>
73483
73484         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
73485         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
73486
73487 2002-12-17  Bruno Haible  <bruno@clisp.org>
73488
73489         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
73490         stdlib.h, string.h.
73491
73492 2002-12-17  Bruno Haible  <bruno@clisp.org>
73493
73494         * lib/canon-host.c (strdup): Remove unused declaration.
73495
73496         * lib/fsusage.c: Include full_read.h.
73497         (get_fs_usage): Use full_read instead of safe_read.
73498
73499         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
73500
73501 2002-12-12  Karl Berry  <karl@gnu.org>
73502
73503         * config/config.guess: update from prep.
73504
73505 2002-12-11  Bruno Haible  <bruno@clisp.org>
73506
73507         * m4/setenv.m4: New file, from gettext-0.11.5.
73508
73509 2002-12-11  Bruno Haible  <bruno@clisp.org>
73510
73511         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
73512         not unsetenv().
73513         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
73514         modifications:
73515
73516         2002-12-11  Bruno Haible  <bruno@clisp.org>
73517
73518                 * setenv.c (alloca): Fall back to malloc.
73519                 (freea): New macro.
73520                 (setenv): Use freea() to free memory allocated with alloca().
73521
73522         2002-11-13  Bruno Haible  <bruno@clisp.org>
73523
73524                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
73525                 function declarations.
73526                 * unsetenv.c (unsetenv): Likewise.
73527
73528         2002-03-04  Bruno Haible  <bruno@clisp.org>
73529
73530                 Portability to AIX 4.3.3.
73531                 * unsetenv.c: New file, extracted from setenv.c.
73532                 * setenv.c: Move the unsetenv() function to unsetenv.c.
73533
73534         2001-12-20  Bruno Haible  <bruno@clisp.org>
73535
73536                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
73537                 use malloc instead. For SunOS 4.
73538
73539         2001-12-11  Bruno Haible  <bruno@clisp.org>
73540
73541                 * setenv.c: Declare alloca.
73542                 (compar_fn_t): New typedef.
73543                 (KNOWN_VALUE, STORE_VALUE): Use it.
73544
73545         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
73546         setenv.h.
73547
73548 2002-12-10  Paul Eggert  <eggert@twinsun.com>
73549
73550         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
73551         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
73552         Choose values that are less likely to collide with system fnmatch
73553         options.
73554         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
73555         defined (e.g., a pure POSIX system).
73556         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
73557         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
73558
73559 2002-12-06  Paul Eggert  <eggert@twinsun.com>
73560
73561         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
73562         a pain in practice to deal with generated m4 files.  This change
73563         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
73564
73565         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
73566         and jm-glibc-io.m4, as they are no longer a special case.
73567         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
73568         kludge and the auto-generation stuff.  Check only whether the
73569         functions are declared, not whether they exist, since older hosts
73570         that don't declare the functions can't use the optimization anyway.
73571
73572 2002-12-06  Jim Meyering  <jim@meyering.net>
73573
73574         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
73575
73576         Merge in changes from libc's misc/error.c, in preparation
73577         for the merge of gnulib's changes back into libc.
73578
73579         * lib/error.c (_): Define only if not already defined.
73580         Move definition to follow all #include directives.
73581         Include unlocked-io.h only if !_LIBC.
73582         [_LIBC]: Include <libio/libioP.h>.
73583         [USE_IN_LIBIO]: Include <libio/iolibio.h>
73584         (fflush): Tweak definition to use INTUSE.
73585         (putc): Define.
73586
73587 2002-12-05  Paul Eggert  <eggert@twinsun.com>
73588
73589         * lib/alloca.c [defined emacs]: Include "lisp.h".
73590         (xalloc_die) [defined emacs]: New macro.
73591         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
73592         [! defined emacs]: Include <xalloc.h>.
73593         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
73594         (pointer): Typedef to POINTER_TYPE *.
73595         (malloc): Remove decl; we now always use xmalloc.
73596         (alloca): Use old-style definition, since Emacs needs this.
73597         Check for arithmetic overflow when computing combined size.
73598
73599 2002-12-04  Paul Eggert  <eggert@twinsun.com>
73600
73601         Do not generate unlocked-io.h automatically, since it's easier to
73602         maintain it by hand.
73603
73604         * lib/unlocked-io.h: New file, from GNU diffutils,
73605         but with proper copyright notice and attribution.
73606         * lib/gen-uio: Remove.
73607         * lib/Makefile.am: Add copyright notice.
73608         (libfetish_a_SOURCES): Add unlocked-io.h.
73609         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
73610         (DISTCLEANFILES, io_functions): Remove macros.
73611         (EXTRA_DIST): Remove gen_uio.
73612         (unlocked-io.h): Remove rule.
73613
73614 2002-12-04  Jim Meyering  <jim@meyering.net>
73615
73616         Reflect the fact that stat.c and lstat.c are no longer generated.
73617         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
73618         (DISTCLEANFILES): Likewise.
73619         (EXTRA_DIST): Likewise.
73620         (all_local): Don't depend on stat.c or lstat.c.
73621         (stat.c, lstat.c): Remove rules.
73622         (EXTRA_DIST): Remove xstat.in.
73623
73624         * lib/xstat.in: Remove file.  Contents moved into stat.c.
73625         * lib/stat.c: New file.  Contents mostly from xstat.in.
73626         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
73627         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
73628
73629         * lib/safe-read.c: Rework so that it may serve to define safe_write,
73630         too.
73631         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
73632
73633 2002-12-03  Jim Meyering  <jim@meyering.net>
73634
73635         * lib/safe-read.c, safe-write.c: Change variable names and comments,
73636         but not semantics, to minimize the differences between these two files.
73637         (safe_read): Change comment to mention SAFE_READ_ERROR.
73638
73639         * lib/safe-read.c (IS_EINTR): Define.
73640         (safe_read): Use IS_EINTR in place of in-function cpp directives.
73641
73642 2002-12-02  Jim Meyering  <jim@meyering.net>
73643
73644         * lib/safe-read.c (EINTR): Define.
73645         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73646         (INT_MAX): Provide fallback.
73647         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
73648
73649         * lib/safe-read.h (SAFE_READ_ERROR): Define.
73650
73651 2002-12-02  Bruno Haible  <bruno@clisp.org>
73652
73653         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
73654         Define, taken from safe-read.c.
73655         (INT_MAX): Provide fallback.
73656         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
73657         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
73658
73659         * lib/safe-read.c (EINTR): Remove definition.
73660         (safe_read): Don't use EINTR if it is absent.
73661
73662 2002-12-01  Jim Meyering  <jim@meyering.net>
73663
73664         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
73665         zero.
73666         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
73667
73668 2002-11-27  Paul Eggert  <eggert@twinsun.com>
73669
73670         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
73671         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
73672         with `if (! (value < limit)) abort ();', for readability.
73673
73674 2002-11-26  Karl Berry  <karl@gnu.org>
73675
73676         * lib/strdup.c: copy from libc again, with jim's ok.
73677         * lib/.cppi-disable: re-add strdup.c
73678
73679 2002-11-25  Karl Berry  <karl@gnu.org>
73680
73681         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
73682         instead of "strtol.c".
73683
73684 2002-11-25  Karl Berry  <karl@gnu.org>
73685
73686         * config/install-sh: update from automake for variable quoting, $0 in
73687         error msgs, etc.
73688
73689         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
73690         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
73691         entry.
73692
73693 2002-11-25  Jim Meyering  <jim@meyering.net>
73694
73695         * lib/mktime.c: Sync from libc, now that it has the latest fix.
73696
73697 2002-11-24  Karl Berry  <karl@gnu.org>
73698
73699         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
73700         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
73701
73702 2002-11-24  Jim Meyering  <jim@meyering.net>
73703
73704         Update from coreutils:
73705
73706         * lib/mktime.c: Merge in changes from libc.
73707
73708         Avoid a link-time failure on some Linux systems.
73709         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
73710         (otherwise).
73711         (__mon_yday): Declare with the STATIC attribute.
73712         (__mktime_internal): Likewise.
73713         Based on a report from Greg Schafer.
73714
73715 2002-11-23  Jim Meyering  <jim@meyering.net>
73716
73717         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
73718         Use `unsigned', not `int', as type of index.
73719
73720         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
73721
73722         * lib/fsusage.c: Remove unneeded parentheses around operands of
73723         `defined'.
73724
73725 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73726
73727         * lib/quotearg.h: Allow multiple inclusion by surrounding with
73728         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
73729         so that we can be included first.
73730         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
73731         * lib/quotearg.c: Include quotearg.h immediately after config.h.
73732         No need to include stddef.h or sys/types.h any more.
73733         Surround local include files with "", not "<>".
73734         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
73735         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
73736         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
73737         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
73738         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
73739         (ISPRINT): Remove; no longer needed now that we assume C89.
73740
73741         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
73742         Preserve errno.
73743
73744         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
73745         quotearg_char): Use SIZE_MAX rather than
73746         (size_t) -1 when we are talking about "infinity".
73747
73748         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
73749
73750 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73751
73752         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
73753         hint that one should use `if (! x) abort ();' rather than `assert
73754         (x);', and anyway it's one less thing to worry about configuring.
73755         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
73756         hash_rehash, hash_insert): Use abort rather than assert.
73757
73758 2002-11-22  Bruno Haible  <bruno@clisp.org>
73759
73760         * lib/safe-read.h: Assume C89. Add comments.
73761         (safe_read): Change return type to size_t.
73762         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
73763         byte counts > SSIZE_MAX correctly.
73764         * lib/safe-write.h: New file.
73765         * lib/safe-write.c: New file.
73766         * lib/full-read.h: New file.
73767         * lib/full-read.c: New file.
73768         * lib/full-write.h: Assume C89. Add comments.
73769         * lib/full-write.c: Include safe-write.h.
73770         (full_write): Rewritten to use safe_write.
73771         Suggested by Jim Meyering and Paul Eggert.
73772
73773 2002-11-21  Jim Meyering  <jim@meyering.net>
73774
73775         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
73776
73777         Merge in changes from the coreutils.
73778
73779         2002-09-25  Paul Eggert  <eggert@twinsun.com>
73780         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
73781         <stdint.h>.
73782         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
73783         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
73784         int.  Work more efficiently if X is the same width as uintmax_t.
73785         Do not compare X to -1, to avoid bogus compiler warning.
73786         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
73787         Don't assume that f_frsize and f_bsize are the same type.
73788
73789         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
73790         warning on FreeBSD.
73791
73792         * lib/makepath.c (make_path): Restore umask *before* creating the final
73793         component.
73794         (make_path): Minor reformatting.
73795
73796         * lib/xmalloc.c: Adjust to work with new autoconf macros,
73797         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
73798         HAVE_MALLOC/HAVE_REALLOC.
73799
73800         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
73801         dummy ones.  At least on GNU/Linux systems, `auto' means something
73802         else.
73803         From Michael Stone.
73804
73805 2002-11-21  Bruno Haible  <bruno@clisp.org>
73806
73807         Remove case insensitive option matching.
73808         * lib/argmatch.h (argcasematch): Remove declaration.
73809         (ARGCASEMATCH): Remove macro.
73810         (__xargmatch_internal): Remove case_sensitive argument.
73811         (XARGMATCH): Update.
73812         (XARGCASEMATCH): Remove macro.
73813         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
73814         case_sensitive argument.
73815         (argcasematch): Remove function.
73816         (__xargmatch_internal): Remove case_sensitive argument.
73817         (main): Use XARGMATCH instead of XARGCASEMATCH.
73818
73819         * lib/xmalloc.c: Change compile-time error message. Add comment about
73820         required autoconf version.
73821
73822 2002-11-20  Paul Eggert  <eggert@twinsun.com>
73823
73824         Merge argmatch cleanups from Bison.  Assume C89.
73825
73826         * lib/argmatch.c: Include config.h here, not in argmatch.h.
73827         Include stdlib.h, for EXIT_FAILURE.
73828         Always include <string.h>, since we assume C89.
73829         (EXIT_FAILURE): Remove pre-C89 bug workaround.
73830         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
73831         Include <stddef.h> instead, since it's all we need for size_t.
73832         (PARAMS): Remove.  All uses removed.
73833         (ARRAY_CARDINALITY): Do not bother to #undef.
73834         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
73835         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73836         Remove unnecessary parentheses.
73837         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73838         Insert necessary parentheses.
73839         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
73840         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
73841
73842 2002-11-19  Bruno Haible  <bruno@clisp.org>
73843
73844         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
73845         * lib/mbswidth.h: Include <stddef.h>, for size_t.
73846
73847         * lib/mbswidth.h (PARAMS): Remove macro.
73848         (mbswidth, mbsnwidth): Use ANSI C function declarations.
73849         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
73850
73851         * lib/gcd.h (PARAMS): Remove macro.
73852         (gcd): Use ANSI C function declarations.
73853         * lib/gcd.c (gcd): Likewise.
73854
73855 2002-11-15  Bruno Haible  <bruno@clisp.org>
73856
73857         * lib/strcspn.c: Include <stddef.h>.
73858         (strcspn): Use ANSI C function declaration. Change return type to
73859         size_t. Use NULL.
73860         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
73861         (strpbrk): Use NULL.
73862         * lib/strpbrk.h (PARAMS): Remove macro.
73863         (strpbrk): Use ANSI C function declaration.
73864         * lib/strstr.c: Don't include <sys/types.h>.
73865         * lib/strstr.h (PARAMS): Remove macro.
73866         (strstr): Use ANSI C function declarations.
73867
73868 2002-11-14  Karl Berry  <karl@gnu.org>
73869
73870         * config/mkinstalldirs: `do' on separate line, instead of
73871         `for var; do'.
73872
73873 2002-11-06  Bruno Haible  <bruno@clisp.org>
73874
73875         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
73876         * lib/gcd.c (gcd): Likewise.
73877
73878 2002-11-05  Bruno Haible  <bruno@clisp.org>
73879
73880         * lib/gcd.h: New file, from gettext-0.11.5.
73881         * lib/gcd.c: New file, from gettext-0.11.5.
73882
73883 2002-11-05  Bruno Haible  <bruno@clisp.org>
73884
73885         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73886         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73887         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73888         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73889
73890         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
73891         <libintl.h>.
73892         * lib/makepath.c: Include gettext.h instead of <locale.h> and
73893         <libintl.h>.
73894
73895         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
73896         * lib/human.c: Include gettext.h instead of <libintl.h>.
73897         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
73898         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
73899         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
73900         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
73901         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
73902         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
73903         (textdomain): Remove definition.
73904         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
73905
73906         * lib/long-options.c: Remove include of <libintl.h> and definition of
73907         _.
73908         * lib/same.c: Remove include of <libintl.h> and definition of _.
73909
73910 2002-11-04  Owen Taylor  <otaylor@redhat.com>
73911
73912         * lib/config.charset: A few additions for Solaris.
73913
73914 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73915
73916         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
73917         * lib/localcharset.c (locale_charset): Declare as extern "C".
73918
73919 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73920
73921         * lib/config.charset: msdos in uk_UA uses CP1125.
73922
73923 2002-11-04  Bruno Haible  <bruno@clisp.org>
73924
73925         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
73926         * lib/strcase.h: New file, from GNU gettext-0.11.5.
73927         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
73928         * lib/strstr.h: New file, from GNU gettext-0.11.5.
73929         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
73930
73931 2002-11-04  Bruno Haible  <bruno@clisp.org>
73932
73933         * lib/localcharset.c (locale_charset): Don't return an empty string.
73934
73935 2002-11-04  Bruno Haible  <bruno@clisp.org>
73936
73937         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
73938         aliases.
73939
73940 2002-11-04  Bruno Haible  <bruno@clisp.org>
73941
73942         * lib/config.charset: Update for newest glibc. Add canonical names
73943         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
73944
73945 2002-11-04  Bruno Haible  <bruno@clisp.org>
73946
73947         * lib/config.charset: Add support for NetBSD.
73948
73949 2002-11-04  Bruno Haible  <bruno@clisp.org>
73950
73951         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
73952
73953 2002-11-01  Bruno Haible  <bruno@clisp.org>
73954
73955         * configure.in: Add AC_CONFIG_AUX_DIR call.
73956         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
73957         test/Makefile.
73958         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
73959
73960 2002-09-28  Karl Berry  <karl@gnu.org>
73961
73962         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
73963         installed automake until the next release, since changes have been
73964         made.
73965
73966 2002-09-25  Karl Berry  <karl@gnu.org>
73967
73968         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
73969         * lib/getopt*: copy from libc/posix.
73970         * lib/gettext.h: copy from gettext.
73971         * lib/.cppi-disable: add strdup.c, gettext.h.
73972
73973 2002-09-25  Karl Berry  <karl@gnu.org>
73974
73975         * config/srclist.txt: enable gettext.h check.
73976         * config/config.{guess,sub}: update from prep.
73977         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
73978                 from automake 1.6.3.
73979         See srclist*.
73980
73981 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
73982
73983         * regex.c (PATFETCH): Remove the translating fetch.
73984         (PATFETCH_RAW): Rename to PATFETCH.
73985         (set_image_of_range): New fun.
73986         (SET_RANGE_TABLE_WORK_AREA): Use it.
73987         (regex_compile): Don't translate the pattern chars so eagerly.
73988         Only do it when inserting an `exactn' bytecode or when handling
73989         a char-range.
73990         (mutually_exclusive_p): Avoid empty statement.
73991
73992 2002-07-06  Jim Meyering  <meyering@lucent.com>
73993
73994         * m4/README: Don't mention Makefile.am.in.
73995         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
73996
73997 2002-07-01  Jim Meyering  <meyering@lucent.com>
73998
73999         * lib/c-stack.c: Include sys/time.h.
74000         From Volker Borchert.
74001
74002 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74003
74004         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74005
74006 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74007
74008         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74009         New macro.  Use it uniformly instead of
74010         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74011         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74012         reported by Vin Shelton.
74013
74014 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74015
74016         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74017         Do not assume SA_SIGINFO behavior.
74018         Bug reported by Jim Meyering on NetBSD 1.5.2.
74019
74020 2002-06-22  Jim Meyering  <meyering@lucent.com>
74021
74022         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74023         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74024
74025         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74026         now that configure.ac uses AC_GNU_SOURCE.
74027         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74028         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74029
74030         Update to latest tools.  Suggestions from Paul Eggert.
74031         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74032         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74033         * m4/fnmatch.m4: Likewise.
74034         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74035         to AC_HEADER_STDBOOL
74036
74037 2002-06-22  Jim Meyering  <meyering@lucent.com>
74038
74039         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74040         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74041
74042 2002-06-22  Jim Meyering  <meyering@lucent.com>
74043
74044         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74045
74046         * lib/exitfail.c, exitfail.h: Likewise.
74047         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74048
74049         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74050         of fnmatch.h.
74051         (EXTRA_DIST): Add fnmatch_loop.c.
74052         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74053
74054         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74055         * lib/fnmatch.c: Update from diffutils-2.8.2.
74056         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74057         * lib/fnmatch.h: Remove file.
74058
74059 2002-06-21  Jim Meyering  <meyering@lucent.com>
74060
74061         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74062         * m4/mbrtowc.m4: Likewise.
74063
74064         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74065         * m4/mbswidth.m4: Reflect name change:
74066         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74067         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74068
74069         * m4/lib-link.m4: Update from gettext-0.11.2.
74070         * m4/gettext.m4: Likewise.
74071
74072         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74073         From Alfred M. Szmidt.
74074
74075 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74076
74077         * lib/file-type.h: Report an error if neither S_ISREG nor
74078         S_IFREG is defined, instead of using a test specific to glibc
74079         2.2.  This should be safe, since POSIX requires S_ISREG and
74080         Unix Version 7 had S_IFREG.  We don't need to check for
74081         <sys/types.h> since we don't use any symbols that it defines.
74082
74083 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74084
74085         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74086         $@-t, so that each temporary file name is unique and valid in the first
74087         8 characters, for operation under DOS.
74088
74089 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74090
74091         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74092
74093 2002-06-15  Jim Meyering  <meyering@lucent.com>
74094
74095         Work even with DJGPP 2.03, which lacks support for symlinks.
74096         From Richard Dawe.
74097         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74098         is defined.
74099         * lib/lchown.c (S_ISLNK): Likewise.
74100
74101 2002-06-15  Jim Meyering  <meyering@lucent.com>
74102
74103         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74104         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74105         have been included before this file.
74106
74107 2002-06-14  Jim Meyering  <meyering@lucent.com>
74108
74109         * lib/file-type.h: Use the version from diffutils-2.8.2.
74110         * lib/file-type.c: Likewise.
74111
74112 2002-06-07  Jim Meyering  <meyering@lucent.com>
74113
74114         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74115         They're needed at least for NetBSD 1.5.2.
74116         ($statxfs_includes): Include those same headers.
74117         ($statxfs_includes): Include sys/vfs.h if available.
74118         ($statxfs_includes): Likewise for sys/statvfs.h.
74119         Check for the following members in both structs statfs and statvfs:
74120         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74121
74122 2002-06-01  Jim Meyering  <meyering@lucent.com>
74123
74124         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74125         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74126
74127 2002-05-28  Jim Meyering  <meyering@lucent.com>
74128
74129         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74130         Reported by Volker Borchert.
74131
74132 2002-05-27  Jim Meyering  <meyering@lucent.com>
74133
74134         Fix a problem seen only on nonconforming systems whereby ls.c's
74135         use of localtime, and then of gettimeofday would cause trouble:
74136         the localtime call used to initialize rpl_gettimeofday's save
74137         mechanism would clobber ls's current local time information so
74138         that in any long listing the first file would always be listed
74139         with date 1970-01-01.  Analysis by Volker Borchert.
74140
74141         * lib/gettimeofday.c (localtime): Undefine.
74142         (rpl_localtime): New function.
74143
74144 2002-05-27  Jim Meyering  <meyering@lucent.com>
74145
74146         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74147         localtime.
74148
74149         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74150         use the replacement function; it wouldn't resolve at link time.
74151         Reported by Volker Borchert.
74152
74153 2002-05-22  Jim Meyering  <meyering@lucent.com>
74154
74155         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74156         file-type.h.
74157         * lib/file-type.h: New file.
74158         * lib/file-type.c (file_type): New file/function.  Extracted from
74159         diffutils.
74160
74161 2002-04-30  Jim Meyering  <meyering@lucent.com>
74162
74163         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74164
74165 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74166
74167         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74168
74169 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74170
74171         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74172         Do not check for alloca.h (no longer used) or stdbool.h (was never
74173         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74174
74175 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74176
74177         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74178
74179 2002-04-29  Jim Meyering  <meyering@lucent.com>
74180
74181         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74182         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74183         Use AC_FUNC_STRNLEN here instead.
74184
74185         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74186         With autoconf-2.53a, it's part of AC_PROG_CC.
74187
74188 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74189
74190         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74191         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74192
74193 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74194
74195         * lib/sig2str.h, lib/sig2str.c: New files.
74196         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74197
74198 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74199
74200         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74201         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74202         of 127, since 64 is the largest conceivable number for ancient
74203         nonstandard hosts.
74204         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74205
74206 2002-04-28  Jim Meyering  <meyering@lucent.com>
74207
74208         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74209
74210 2002-04-24  Jim Meyering  <meyering@lucent.com>
74211
74212         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74213         (jm_PREREQ): Use it.
74214
74215         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74216         mach/mach.h fcntl.h.
74217         Check for this function: setlocale.
74218
74219 2002-04-24  Jim Meyering  <meyering@lucent.com>
74220
74221         * lib/gettext.h: New file, from Gettext.
74222         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74223         (libfetish_a_SOURCES): Add gettext.h.
74224
74225 2002-04-16  Jim Meyering  <meyering@lucent.com>
74226
74227         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74228         ut_pid, ut_id, ut_exit.
74229
74230 2002-04-16  Jim Meyering  <meyering@lucent.com>
74231
74232         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74233         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74234         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74235
74236 2002-04-12  Jim Meyering  <meyering@lucent.com>
74237
74238         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74239         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74240         existence of the getmntinfo function.  Needed for Darwin 5.3.
74241
74242         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74243         This is necessary at least on Darwin 5.3.
74244
74245         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74246         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74247         strnlen.o in the library, and that makes some versions of ranlib
74248         object.
74249
74250 2002-04-12  Jim Meyering  <meyering@lucent.com>
74251
74252         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74253
74254 2002-04-09  Jim Meyering  <meyering@lucent.com>
74255
74256         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74257         to be more precise.  Rather than saying we're checking whether the
74258         function `works', say what we're testing.
74259         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74260         Reported by Bruno Haible.
74261
74262 2002-03-10  Jim Meyering  <meyering@lucent.com>
74263
74264         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74265         Suggestion from Santiago Vila.
74266
74267 2002-03-08  Jim Meyering  <meyering@lucent.com>
74268
74269         * lib/rename.c: Mention that this wrapper is needed also on
74270         mips-dec-ultrix4.4 systems.
74271
74272 2002-03-02  Jim Meyering  <meyering@lucent.com>
74273
74274         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74275         not HAVE_CLOCK_SETTIME.
74276
74277 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74278
74279         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74280         Check for clock_settime.
74281
74282 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74283
74284         * lib/nanosleep.h: Rename to....
74285         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74286
74287         * lib/gettime.c: New file.
74288         * lib/settime.c: New file.
74289         * lib/stime.c: Remove.
74290
74291         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74292         timespec.h.  Remove nanosleep.h.
74293
74294 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74295
74296         * m4/acl.m4: New file.
74297         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74298         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74299
74300 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74301
74302         * lib/acl.c, lib/acl.h: New files.
74303         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74304
74305 2002-02-24  Jim Meyering  <meyering@lucent.com>
74306
74307         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74308         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74309         cause trouble.  Reported by Nelson Beebe.
74310
74311 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74312
74313         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74314         compilers that don't know that xalloc_die never returns.
74315
74316 2002-02-20  Jim Meyering  <meyering@lucent.com>
74317
74318         * lib/getdate.c: Regenerate using bison-1.33.
74319
74320 2002-02-17  Jim Meyering  <meyering@lucent.com>
74321
74322         * config/config.guess (main): Don't use `head -1'; it's no longer
74323         portable. Use `sed 1q' instead.
74324
74325 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74326
74327         * m4/codeset.m4: Upgrade to gettext-0.11.
74328         * m4/gettext.m4: Upgrade to gettext-0.11.
74329         * m4/glibc21.m4: Upgrade to gettext-0.11.
74330         * m4/iconv.m4: Upgrade to gettext-0.11.
74331         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74332         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74333         * m4/lib-ld.m4: New file, from gettext-0.11.
74334         * m4/lib-link.m4: New file, from gettext-0.11.
74335         * m4/lib-prefix.m4: New file, from gettext-0.11.
74336         * m4/progtest.m4: Upgrade to gettext-0.11.
74337
74338 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74339
74340         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74341         (jm_PREREQ): Use it.
74342
74343 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74344
74345         * lib/posixver.c, lib/posixver.h: New files.
74346         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74347
74348 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74349             Bruno Haible  <bruno@clisp.org>
74350
74351         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
74352         (fwrite_success_callback): New declaration.
74353         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74354         print_unicode_char. Call failure callback instead of error.
74355         (fwrite_success_callback): New function.
74356         (exit_failure_callback): New function.
74357         (fallback_failure_callback): New function.
74358         (print_unicode_char): Call unicode_to_mb.
74359
74360 2002-01-26  Jim Meyering  <meyering@lucent.com>
74361
74362         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74363         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74364
74365 2002-01-26  Jim Meyering  <meyering@lucent.com>
74366
74367         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74368
74369 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74370
74371         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74372
74373 2002-01-22  Jim Meyering  <meyering@lucent.com>
74374
74375         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74376         Otherwise, some versions of automake would omit the rule that makes
74377         Makefile from Makefile.in.
74378
74379 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74380
74381         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74382         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74383         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74384         (memcoll): Set errno to zero if there is no error.
74385
74386         * lib/quotearg.c (quotearg_buffer_restyled):
74387         Fix bug with quoting buffers containing NUL when backslashing escapes.
74388         This bug was exposed by the other changes in this patch.
74389         (quotearg_n_options): New arg ARGSIZE.
74390         All callers changed.
74391         (quoting_options_from_style): New function.
74392         (quotearg_n_style): Use it.
74393         (quotearg_n_style_mem): New function.
74394
74395         * lib/quotearg.h (quotearg_n_style_mem): New function.
74396
74397 2002-01-19  Jim Meyering  <meyering@lucent.com>
74398
74399         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74400         Remove useless quotes: DF_PROG="df".
74401         * m4/strnlen.m4: New file.
74402
74403 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74404
74405         * lib/backupfile.c (ISDIGIT): Comment fix.
74406         * lib/getdate.y (ISDIGIT): Likewise.
74407         * lib/posixtm.c (ISDIGIT, year): Likewise.
74408         * lib/strverscmp.c (ISDIGIT): Likewise.
74409         * lib/userspec.c (ISDIGIT): Likewise.
74410
74411 2002-01-16  Jim Meyering  <meyering@lucent.com>
74412
74413         * lib/getdate.y: Add three semicolons, each just before a closing
74414         brace. Bison (as of version 1.31) no longer papers over that mistake.
74415
74416 2002-01-05  Jim Meyering  <meyering@lucent.com>
74417
74418         * lib/version-etc.c (version_etc_copyright): Update copyright year.
74419
74420 2001-12-19  Paul Eggert  <eggert@twinsun.com>
74421
74422         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
74423         not silently exit merely because the output buffer happens to
74424         have nothing pending.
74425
74426 2001-12-18  Paul Eggert  <eggert@twinsun.com>
74427
74428         See the big note in ../ChangeLog.
74429         * lib/human.c (suffixes): Prefer K to k for 1024.
74430         (generate_suffix_backwards): New function.
74431         (human_readable_inexact): Use it.
74432         * lib/xstrtol.c (__xstrtol): If there is no number but there
74433         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
74434         Accept 'K' as well as 'k'.
74435
74436 2001-12-15  Jim Meyering  <meyering@lucent.com>
74437
74438         * lib/regex.h (__restrict_arr): Update from libc.
74439
74440         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
74441         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
74442         (STREQ): Define.
74443
74444 2001-12-14  Jim Meyering  <meyering@lucent.com>
74445
74446         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
74447         Suggestion from Bruno Haible.
74448
74449 2001-12-10  Jim Meyering  <meyering@lucent.com>
74450
74451         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
74452         xrealloc, Instead, include "xalloc.h".
74453         (initbuffer): Don't cast xmalloc return value to char*.
74454         (readline): Reword comment.
74455         Don't cast xrealloc return value to char*
74456         Return NULL, not 0.
74457
74458 2001-12-09  Jim Meyering  <meyering@lucent.com>
74459
74460         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
74461         about `signed and unsigned type in conditional expression'.
74462         * lib/posixtm.c (posix_time_parse): Likewise.
74463
74464         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
74465
74466         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
74467         to avoid a pedantic warning.
74468
74469         * lib/getstr.c: Don't include assert.h.
74470         (getstr): Remove warning-evoking assertions.
74471         Return -1 if offset parameter is out of bounds.
74472         Change the type of a local from int to size_t.
74473
74474         * lib/strftime.c (my_strftime_localtime_r): Include this function
74475         definition in the `#if ! HAVE_TM_GMTOFF' block.
74476
74477         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
74478         Include xalloc.h instead.
74479
74480 2001-12-02  Jim Meyering  <meyering@lucent.com>
74481
74482         * lib/tempname.c: Don't declare getenv, thus reverting the change of
74483         2001-11-18.  It's no longer necessary, now that stdlib.h is always
74484         included.
74485
74486         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
74487         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
74488
74489 2001-11-30  Akim Demaille  <akim@epita.fr>
74490
74491         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
74492         before being defined.
74493
74494 2001-11-27  Paul Eggert  <eggert@twinsun.com>
74495
74496         * lib/quotearg.h (quotearg_n, quotearg_n_style):
74497         First arg is int, not unsigned.
74498         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
74499         (SIZE_MAX, UINT_MAX): New macros.
74500         (quotearg_n_options): Abort if N is negative.
74501         Avoid overflow check on hosts where size_t is 64 bits and int
74502         is 32 bits, as overflow is impossible there.
74503         Fix off-by-one typo that caused unnecessary reallocation.
74504
74505 2001-11-27  Jim Meyering  <meyering@lucent.com>
74506
74507         * lib/tempname.c: Merge with version from libc.
74508         * lib/regex.c: Likewise.
74509
74510         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
74511         systems for which STDC_HEADERS is 0, it was not included, resulting in
74512         a warning about an integer-to-pointer conversion problem with getenv.
74513         Reported by Volker Borchert.
74514
74515 2001-11-26  Jim Meyering  <meyering@lucent.com>
74516
74517         * lib/gtod.h: Remove file.
74518         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
74519         * lib/gettimeofday.c: Don't include gtod.h.
74520         (GTOD_init): Remove function.
74521         (rpl_gettimeofday): Do its job here instead, rather than aborting.
74522         Suggestion from Volker Borchert.
74523
74524 2001-11-23  Jim Meyering  <meyering@lucent.com>
74525
74526         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
74527         it.
74528         * lib/hash.c (struct hash_table): Define it here instead.
74529
74530 2001-11-22  Jim Meyering  <meyering@lucent.com>
74531
74532         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
74533
74534 2001-11-20  Jim Meyering  <meyering@lucent.com>
74535
74536         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
74537         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
74538
74539 2001-11-19  Jim Meyering  <meyering@lucent.com>
74540
74541         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
74542         directory.  Use "conftestXXXXXX" as the template.
74543         Suggestion from Paul Eggert.
74544
74545         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
74546         immediately, so the test doesn't mistakenly hit the max-open-files
74547         limit.
74548
74549 2001-11-18  Paul Eggert  <eggert@twinsun.com>
74550
74551         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
74552         (TEMPORARIES): New macro.
74553         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
74554         removes an artificial limitation (e.g. HP-UX 10.20, where
74555         TMP_MAX is 17576).
74556
74557 2001-11-18  Jim Meyering  <meyering@lucent.com>
74558
74559         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
74560
74561 2001-11-18  Jim Meyering  <meyering@lucent.com>
74562
74563         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
74564         on SunOS 4.
74565
74566         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
74567         files will be created before anything else.
74568
74569 2001-11-17  Paul Eggert  <eggert@twinsun.com>
74570
74571         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
74572         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
74573
74574 2001-11-17  Jim Meyering  <meyering@lucent.com>
74575
74576         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
74577         Prompted by a report from Bob Proulx.
74578
74579         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
74580         Instead, require UTILS_FUNC_MKSTEMP.
74581
74582 2001-11-17  Jim Meyering  <meyering@lucent.com>
74583
74584         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
74585         Now, that's done as part of AC_FUNC_STRTOD.
74586
74587 2001-11-17  Jim Meyering  <meyering@lucent.com>
74588
74589         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
74590         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
74591         rather than group writable.  Patch by Juan F. Codagnone.
74592
74593         * lib/readtokens.c: Remove explicit declarations of xmalloc and
74594         xrealloc, Instead, include "xalloc.h".
74595
74596         * lib/mountlist.c: Include unlocked-io.h after all system headers.
74597         Remove explicit declarations of xmalloc, xrealloc,
74598         and xstrdup.  Instead, include "xalloc.h".
74599
74600         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
74601         unlocked-io.h.
74602         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
74603         Likewise.
74604         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
74605
74606         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
74607         Reported by Padraig Brady.
74608
74609         * lib/mkstemp.c: #undef mkstemp.
74610         Include config.h.
74611         (rpl_mkstemp): Rename from mkstemp.
74612         Protoize.
74613
74614 2001-11-16  Jim Meyering  <meyering@lucent.com>
74615
74616         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
74617         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
74618         determine the amount of total physical memory, use pstat_getstatic.
74619         HPUX-11 doesn't define _SC_PHYS_PAGES.
74620         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
74621         If sysconf couldn't be used to determine the amount of available
74622         physical memory, use both pstat_getstatic and pstat_getdynamic.
74623         Based on a patch from Bob Proulx.
74624
74625 2001-11-10  Jim Meyering  <meyering@lucent.com>
74626
74627         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
74628         (jm_PREREQ): Use it.
74629
74630 2001-11-09  Jim Meyering  <meyering@lucent.com>
74631
74632         * m4/jm-macros.m4: Require autoconf-2.52f.
74633         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
74634         Use these AC_-prefixed names, not the AM_-prefixed ones.
74635
74636         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
74637
74638 2001-11-05  Jim Meyering  <meyering@lucent.com>
74639
74640         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
74641
74642 2001-11-04  Jim Meyering  <meyering@lucent.com>
74643
74644         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
74645         $DEFS.
74646
74647 2001-11-03  Jim Meyering  <meyering@lucent.com>
74648
74649         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
74650         of AC_DEFUN.
74651
74652         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
74653         know the name of the variable in the macro definition.
74654
74655 2001-11-03  Jim Meyering  <meyering@lucent.com>
74656
74657         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
74658         in argmatch_to_argument call.
74659
74660         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
74661         argument.
74662
74663         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
74664         e.g., a fault due to an attempt to free a NULL pointer.
74665
74666 2001-11-01  Jim Meyering  <meyering@lucent.com>
74667
74668         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
74669         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
74670
74671 2001-11-01  Jim Meyering  <meyering@lucent.com>
74672
74673         * lib/dirfd.c, lib/dirfd.h: New files.
74674         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
74675
74676         * lib/hash.c (hash_print) [TESTING]: Clean up.
74677
74678 2001-10-22  Paul Eggert  <eggert@twinsun.com>
74679
74680         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
74681         to avoid a warning if -Wall.
74682
74683 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
74684
74685         * README: New file
74686         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
74687         (per RMS's instructions, this is now the canonical source)
74688         * lgpl/, gpl/: New directories.
74689
74690 2001-10-21  Paul Eggert  <eggert@twinsun.com>
74691
74692         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
74693
74694 2001-10-21  Jim Meyering  <meyering@lucent.com>
74695
74696         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
74697         this code would end up calling gettext even in packages built
74698         with --disable-nls.
74699         * lib/getopt.c (_): Likewise.
74700         * lib/regex.c (_): Likewise.
74701
74702 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74703
74704         * m4/error.m4 (jm_PREREQ_ERROR):
74705         Do not invoke AC_CHECK_FUNCS with strerror_r, as
74706         AC_FUNC_STRERROR_R does that.
74707         Check for strerror declaration.
74708
74709         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
74710         are supposed to have them these days.
74711         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
74712         Merge changes from latest Autoconf CVS.
74713         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
74714         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
74715         POSIX decided to standardize on the int flavor of strerror_r.
74716
74717 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74718
74719         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
74720         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
74721         Use strerror_r that is only a macro, even if it is not a function.
74722         (strerror): Check for HAVE_DECL_STRERROR before declaring.
74723         (private_strerror): Use prototypes, not old-style function definition.
74724         (print_errno_message): New function.
74725         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
74726         char*-flavored one.
74727         (error_tail, error, error_at_line): Use it.
74728
74729 2001-10-11  Jim Meyering  <meyering@lucent.com>
74730
74731         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
74732         and quote_n (1, ... to avoid clobbering a buffer.
74733
74734 2001-10-05  Jim Meyering  <meyering@lucent.com>
74735
74736         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
74737         hash-pjw.h.
74738         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
74739         * lib/hash-pjw.h: New file.
74740
74741 2001-09-30  Jim Meyering  <meyering@lucent.com>
74742
74743         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
74744         `struct fsstat' has the `f_fstypename' member.
74745         Use that to define FS_TYPE, which is now used to make
74746         the getfsstat link test tighter.
74747
74748 2001-09-30  Jim Meyering  <meyering@lucent.com>
74749
74750         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
74751         Include <sys/ucred.h>, for Apple Darwin.
74752         Include sys/mount.h and sys/fs_types.h only if available.
74753         (FS_TYPE): Define.
74754         (read_filesystem_list): Use FS_TYPE.
74755
74756 2001-09-29  Paul Eggert  <eggert@twinsun.com>
74757
74758         * lib/exclude.c (excluded_filename): 0 -> false, since it's
74759         a boolean context.
74760
74761 2001-09-29  Jim Meyering  <meyering@lucent.com>
74762
74763         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74764         [one-argument getmntent function]): Include stdio.h before mntent.h.
74765         SunOS 4.1.x needs it for the declaration of `FILE'.
74766         Patch by Volker Borchert.
74767
74768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74769         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
74770         sys/fs_types.h, and make the link-test for getfsstat guard #include
74771         directives with appropriate #if HAVE_*_H tests so that we can
74772         detect getfsstat on Apple Darwin1.3.7 systems.
74773         Reported by Nelson Beebe.
74774         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
74775
74776 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74777
74778         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74779         #defines strtoimax.  Also treat the other strto* functions
74780         like strtoimax.
74781
74782         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74783         Check for strtoul and strtoumax,
74784         as those declarations are made even in the signed case.
74785         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
74786         Likewise, for strtol and strtoimax.
74787
74788 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74789
74790         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74791         #defines strtoimax.  Also treat the other strto* functions
74792         like strtoimax.
74793
74794         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
74795         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
74796         (strtoimax, strtoumax): Do not declare if already defined as a macro.
74797
74798 2001-09-26  Jim Meyering  <meyering@lucent.com>
74799
74800         Most macros in unlocked-io.h had the wrong number of arguments.
74801         * lib/gen-uio: New script.
74802         (USE_UNLOCKED_IO): Define to 1 if not already defined.
74803         * lib/unlocked-io.hin: Remove file.
74804         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
74805         rather than trying to embed it here.
74806         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
74807         Reported by Padraig Brady.
74808
74809 2001-09-25  Volker Borchert  <bt@teknon.de>
74810
74811         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
74812         `result'.
74813
74814 2001-09-24  Jim Meyering  <meyering@lucent.com>
74815
74816         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
74817
74818 2001-09-23  Jim Meyering  <meyering@lucent.com>
74819
74820         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
74821         instead of the mere test for existence of mntent.h.  The latter
74822         would get a false-positive on AIX 3.4 systems.
74823         In the outer getmntent if-block, don't die if neither of the getmntent
74824         tests succeeds.  Instead, just fall through and continue with the
74825         remaining tests.
74826
74827 2001-09-23  Jim Meyering  <meyering@lucent.com>
74828
74829         * lib/mountlist.c: Remove useless parentheses in #if directives.
74830         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
74831         the deprecated MOUNTED symbol is no longer defined in mntent.h.
74832
74833 2001-09-22  Jim Meyering  <meyering@lucent.com>
74834
74835         * m4/gettext.m4: New file.  From gettext.
74836         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
74837         * m4/progtest.m4: Likewise
74838         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
74839         * m4/glibc21.m4: Likewise.
74840
74841         * m4/libintl.m4: Remove.  No longer used.
74842
74843 2001-09-22  Jim Meyering  <meyering@lucent.com>
74844
74845         * lib/localcharset.c: Update from latest gettext.
74846         * lib/config.charset: Likewise.
74847
74848 2001-09-20  Jim Meyering  <meyering@lucent.com>
74849
74850         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
74851         strtoimax.
74852         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
74853         strtoumax.
74854
74855 2001-09-20  Jim Meyering  <meyering@lucent.com>
74856
74857         * lib/xstrtol.c (strtoimax): Guard declaration with
74858         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
74859         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
74860         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
74861         (strtoumax): Likewise, for completeness (it wasn't necessary).
74862
74863 2001-09-17  Paul Eggert  <eggert@twinsun.com>
74864
74865         * lib/strtoimax.c (HAVE_LONG_LONG):
74866         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
74867         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
74868         to work around bug in IBM C compiler.
74869
74870 2001-09-17  Jim Meyering  <meyering@lucent.com>
74871
74872         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
74873         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
74874         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
74875         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
74876         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
74877         whenever the right hand side need not be expanded by the shell.
74878
74879 2001-09-16  Paul Eggert  <eggert@twinsun.com>
74880
74881         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
74882         library.  It's not correct, as some older glibcs are buggy.
74883         fnmatch wasn't fixed until glibc 2.2.
74884
74885         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
74886         special shell magic here.
74887
74888 2001-09-16  Jim Meyering  <meyering@lucent.com>
74889
74890         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
74891         * m4/jm-macros.m4: Require it.
74892
74893 2001-09-16  Jim Meyering  <meyering@lucent.com>
74894
74895         * lib/mkdir.c: New file.
74896
74897 2001-09-15  Jim Meyering  <meyering@lucent.com>
74898
74899         * m4/jm-macros.m4: Check for help2man.
74900
74901 2001-09-11  Jim Meyering  <meyering@lucent.com>
74902
74903         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
74904         The body, by Paul Eggert, was moved here from configure.in.
74905         * m4/jm-macros.m4: Require UTILS_HOST_OS.
74906
74907 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74908
74909         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
74910         (jm_PREREQ): Use it.
74911
74912 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74913
74914         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
74915         Use ssize_t, not int, to store result of readlink.
74916         Check for ssize_t overflow as well as size_t overflow,
74917         as POSIX says the result of readlink is implementation-defined
74918         when ssize_t overflows.
74919         Remove unnecessary cast to char*.
74920         Use free+malloc instead of realloc, as the storage doesn't need
74921         to be preserved and it's clearer and can be more efficient that way.
74922         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
74923         * lib/xreadlink.h (xreadlink): Update prototype.
74924
74925 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74926
74927         * lib/xgetcwd.c: Revert some of the previous change; intead,
74928         fix the HAVE_GETCWD_NULL code to behave more like the
74929         !HAVE_GETCWD_NULL code used to.
74930
74931         Include "xalloc.h".
74932         (xgetcwd): Do not return NULL when memory is exhausted; instead,
74933         invoke xalloc_die.
74934
74935 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74936
74937         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
74938         sys/param.h, as pathmax.h includes them.
74939
74940 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74941
74942         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
74943         (jm_PREREQ_XGETCWD): New macro.
74944
74945         * m4/getcwd.m4: New file.
74946
74947 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74948
74949         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
74950         like the HAVE_GETCWD_NULL code.
74951         Include pathmax.h if not HAVE_GETCWD.
74952         Do not include xalloc.h.
74953         (INITIAL_BUFFER_SIZE): New symbol.
74954         Do not use xmalloc / xrealloc, since the caller is responsible for
74955         handling errors.  Preserve errno around `free' during failure.
74956         Do not overrun buffer when using getwd.
74957
74958 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74959
74960         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
74961         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
74962         getcwd (NULL, 0).
74963
74964 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74965
74966         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
74967         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
74968         spotted by Jim Meyering.
74969
74970 2001-09-03  Jim Meyering  <meyering@lucent.com>
74971
74972         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
74973         failure.
74974
74975 2001-09-02  Jim Meyering  <meyering@lucent.com>
74976
74977         * lib/error.c: Update from GNU libc.
74978
74979 2001-09-01  Jim Meyering  <meyering@lucent.com>
74980
74981         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
74982         Used by df.
74983
74984 2001-09-01  Jim Meyering  <meyering@lucent.com>
74985
74986         * lib/xreadlink.c: New file.
74987         * lib/xreadlink.h: New file.
74988         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
74989         xreadlink.h.
74990
74991         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
74992         doesn't conflict with sparc Solaris 7's definition in
74993         /usr/include/sys/int_types.h.
74994
74995         * lib/exclude.c: Use `""', not `<>' to #include non-system header
74996         files.
74997         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
74998         and strncasecmp as r-values.  Unixware didn't have declarations.
74999
75000 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75001
75002         * lib/xstrtol.h: Add copyright notice.
75003         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75004         LONGINT_INVALID_SUFFIX_CHAR.
75005
75006 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75007
75008         * lib/xstrtol.c (strtoimax): New decl.
75009
75010 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75011
75012         * lib/xgetcwd.c: Don't include pathmax.h.
75013         Include stdlib.h and unistd.h if available.
75014         Include xalloc.h.
75015         (xmalloc, xstrdup, free): Remove decls.
75016         (xgetcwd): Don't assume sizes fit in unsigned.
75017         Check for overflow when computing sizes.
75018         Simplify reallocation code.
75019
75020 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75021
75022         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75023         a directory's st_size can have an arbitrary value, so the old
75024         usage could waste an arbitrary amount of memory.  All uses
75025         changed.
75026         * lib/savedir.h: Update prototype.
75027
75028 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75029
75030         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75031
75032         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75033         old strtoimax.c.
75034
75035         Also, make the following further changes to make this file's
75036         configuration more similar to that of strtol.c:
75037         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75038         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75039         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75040         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75041         changed to signed values.
75042
75043         And make the following changes as well:
75044         Fix copyright notice, as 1999 was missing.
75045         (verify): New macro.
75046         (strtoimax): Check sizes at compile-time, not run-time.
75047         Prefer strtol to strtoll if both work.
75048         (main): Remove; it was not that useful and was a pain to maintain.
75049
75050         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75051
75052 2001-08-31  Jim Meyering  <meyering@lucent.com>
75053
75054         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75055         Use an initial, malloc'd, buffer of length 128 rather than
75056         a statically allocated one of length 1024.
75057
75058 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75059
75060         Simplify code, partly by assuming autoconf 2.52 semantics.
75061
75062         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75063
75064         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75065         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75066         All uses removed.
75067         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75068         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75069         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75070         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75071         jm_AC_HEADER_INTTYPES_H.
75072         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75073
75074         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75075
75076         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75077         Quote first arg of AC_DEFUN.
75078         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75079         since they are needed to parse the include file even if we need
75080         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75081         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75082         but with opposite signedness.
75083
75084 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75085
75086         Merge 'exclude' changes from tar 1.13.22.
75087         This fixes one or two unlikely storage allocation overflow bugs,
75088         but doesn't change user-visible behavior otherwise.
75089
75090 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75091
75092         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75093         (jm_PREREQ_EXCLUDE): New macro.
75094
75095 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75096
75097         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75098         tm to be declared.
75099
75100 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75101
75102         * lib/hash.c: Remove '2001' from copyright notice.
75103
75104 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75105
75106         * lib/full-write.h: New file.
75107         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75108         * lib/full-write.c: Correct credits, as cccp.c no longer
75109         exists and anyway it was so heavily changed from the old cccp
75110         code as to be unrecognizable.  Include full-write.h.
75111         (full_write) Return size_t, with short writes meaning failure.
75112         All callers changed.  This fixes a bug with large buffers
75113         on 64-bit hosts.
75114         * lib/utime.c: Include full-write.h.
75115
75116 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75117
75118         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75119         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75120         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75121         Include if available.
75122         (<xalloc.h>): Include
75123         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75124         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75125         collide with FNM macros.
75126         (struct patopts): New struct.
75127         (struct exclude): Use it, as exclude patterns now come with options.
75128         (new_exclude): Support above changes.
75129         (new_exclude, add_exclude_file):
75130         Initial size must now be a power of two to simplify overflow checking.
75131         (free_exclude, fnmatch_no_wildcards): New function.
75132         (excluded_filename): No longer requires options arg, as the options
75133         are determined by add_exclude.  Now returns bool, not int.
75134         (excluded_filename, add_exclude):
75135         Add support for the fancy new exclusion options.
75136         (add_exclude, add_exclude_file): Now takes int options arg.
75137         Check for arithmetic overflow when computing sizes.
75138         (add_exclude_file): xrealloc might modify errno, so don't
75139         realloc until after errno might be used.
75140
75141         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75142         New macros.
75143         (free_exclude): New decl.
75144         (add_exclude, add_exclude_file): Now takes int options arg.
75145         (excluded_filename): No longer requires options arg, as the options
75146         are determined by add_exclude.  Now returns bool, not int.
75147
75148 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75149
75150         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75151
75152 2001-08-27  Jim Meyering  <meyering@lucent.com>
75153
75154         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75155
75156         * lib/version-etc.c (N_): Remove definition.
75157         Revert most of last change.
75158         Instead, simply don't mark the `Copyright...' string for translation.
75159         Based on advice from Paul Eggert.
75160
75161         * lib/strtoxmax.c: Tweak comment.
75162
75163 2001-08-26  Jim Meyering  <meyering@lucent.com>
75164
75165         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75166
75167         * m4/xstrtoimax.m4: New file.
75168         * m4/xstrtoumax.m4: Add comments explaining why we
75169         AC_REPLACE_FUNCS(strtol).
75170
75171 2001-08-26  Jim Meyering  <meyering@lucent.com>
75172
75173         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75174         of copyright with `%s' so translators don't get an untranslated
75175         message in 2002.
75176         (COPYRIGHT_YEAR): Define.
75177         (version_etc): Use fprintf rather than fputs.
75178         Suggestion from Ulrich Drepper.
75179
75180         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75181
75182         * lib/strtoll.c: New file, from GNU libc.
75183         * lib/xstrtoimax.c: New file.
75184
75185         * lib/xstrtol.h: Add xstrtoimax.
75186         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75187         * lib/strtoimax.c: New file.  Likewise, but first define
75188         STRTOUXMAX_SIGNED.
75189
75190         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75191         ...
75192         * lib/strtoxmax.c: ... then renamed to this.
75193
75194 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75195
75196         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75197         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75198         (jm_AC_TYPE_INTMAX_T): New macro.
75199         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75200
75201         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75202
75203         * m4/longlong.m4: Renamed from ulonglong.m4.
75204         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75205         * m4/uintmax_t.m4: Removed.
75206
75207 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75208
75209         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75210         Port to Solaris 8, where 'sed' requires a space after the 'r'
75211         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75212         Redirect output to $tmp just once.
75213
75214 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75215
75216         * lib/addext.c (<errno.h>): Include.
75217         (errno): Declare if not defined.
75218         (addext): Work correctly when pathconf returns -1 and leaves
75219         errno alone because there is no limit.  Also, work even if
75220         pathconf returns a value greater than SIZE_MAX.
75221
75222 2001-08-12  Jim Meyering  <meyering@lucent.com>
75223
75224         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75225         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75226         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75227         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75228         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75229         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75230         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75231         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75232         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75233         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75234         utime.m4, utimes.m4, xstrtoumax.m4:
75235         Quote the first argument in each use of AC_DEFUN.
75236
75237 2001-08-12  Jim Meyering  <meyering@lucent.com>
75238
75239         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75240         Simply `return getcwd (NULL, 0);'.
75241         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75242         Use 1300 as initial value for length, not PATH_MAX.
75243
75244         * lib/pathmax.h: Clean up cpp syntax.
75245
75246 2001-08-12  Jim Meyering  <meyering@lucent.com>
75247
75248         * lib/gettimeofday.c: New file.
75249         * lib/gtod.h: New file.
75250         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75251
75252 2001-08-05  Jim Meyering  <meyering@lucent.com>
75253
75254         * m4/jm-macros.m4: Require autoconf-2.52.
75255
75256 2001-08-04  Jim Meyering  <meyering@lucent.com>
75257
75258         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75259         stmt, to get in sync with glibc.
75260
75261 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75262
75263         The following changes are from gettext 0.10.39 as maintained by
75264         Bruno Haible.
75265
75266         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75267         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75268         with inverted sense.  All uses changed.
75269
75270         * lib/mbswidth.c: Don't include <limits.h>.
75271         Include <stdlib.h> and <string.h> unconditionally.
75272         (iswcntrl, mbsinit, ISCNTRL): New macros.
75273         (mbsnwidth): Use K&R style function declarations.
75274         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75275         can optimize it when MB_CUR_MAX == 1.
75276         The width of control characters is zero, not 1.
75277
75278 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75279
75280         The following changes are from gettext 0.10.39 as maintained by
75281         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75282
75283         * m4/codeset.m4: Upgrade to serial AM1.
75284         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75285         all uses changed.  Quote first arg of AC_DEFUN.
75286         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75287
75288         * m4/iconv.m4: Upgrade to serial AM2.
75289         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75290         Add --with-libconv-prefix.
75291         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75292         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75293         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75294         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75295         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75296
75297         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75298         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75299         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75300         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75301         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75302         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75303         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75304         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75305         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75306
75307         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75308         string.h any more.
75309
75310         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75311         not the default value.
75312
75313         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75314         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75315         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75316         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75317         Also check for iswcntrl, used for wcwidth fallback.
75318         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75319         to Autoconf 2.13.
75320
75321 2001-08-03  Jim Meyering  <meyering@lucent.com>
75322
75323         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75324         as it was in the original.  Reported by Paul Eggert.
75325
75326 2001-07-16  Jim Meyering  <meyering@lucent.com>
75327
75328         * m4/gettimeofday.m4: New file.
75329         Prompted by a report from Bernhard Baehr.
75330
75331 2001-07-15  Jim Meyering  <meyering@lucent.com>
75332
75333         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75334         stuff. Now it's in ../Makefile.cfg.
75335
75336 2001-07-15  Jim Meyering  <meyering@lucent.com>
75337
75338         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75339         (BUILT_SOURCES): Add unlocked-io.h.
75340         (io_functions): Define.
75341         (unlocked-io.h): New rule.
75342         (DISTCLEANFILES): Add unlocked-io.h.
75343         (all-local): Depend on unlocked-io.h, to ensure it is created.
75344
75345         * lib/unlocked-io.hin: New file
75346
75347         * lib/regex.c: Update from glibc.
75348
75349 2001-07-05  Jim Meyering  <meyering@lucent.com>
75350
75351         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
75352         recommendation.
75353         (libfetish_a_SOURCES): Put all .h files here instead.
75354         Remove a thus-exposed (better checks in automake) duplicate and
75355         two unnecessary .h files.
75356
75357 2001-07-04  Jim Meyering  <meyering@lucent.com>
75358
75359         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75360         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75361         distcheck failure.
75362
75363 2001-07-02  Jim Meyering  <meyering@lucent.com>
75364
75365         The following changes were prompted by suggestions from Bruno Haible.
75366
75367         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75368         is now generated.
75369         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75370         definition of EXTRA_DIST.
75371         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75372         ensure that the generated file is created/updated whenever the list
75373         of $(unlocked_functions) is changed.
75374         (jm-glibc-io.m4): New rule.
75375         (unlocked-io.h): New rule -- currently unused.
75376
75377 2001-06-24  Jim Meyering  <meyering@lucent.com>
75378
75379         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75380         unmatched right bracket, rather than kludging it with an extra,
75381         falsely-matching quote in a comment.  Patch by Akim Demaille.
75382
75383 2001-06-11  Jim Meyering  <meyering@lucent.com>
75384
75385         * lib/regex.c: Update from GNU libc.
75386
75387 2001-05-27  Jim Meyering  <meyering@lucent.com>
75388
75389         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75390         Check for ut_type in struct utmp.
75391
75392 2001-05-27  Jim Meyering  <meyering@lucent.com>
75393
75394         * lib/readutmp.h (UT_TYPE): Define.
75395
75396 2001-05-24  Jim Meyering  <meyering@lucent.com>
75397
75398         * lib/argmatch.c: Include "quote.h".
75399         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75400         quote function.  Reported by Göran Uddeborg.
75401
75402 2001-05-22  Jim Meyering  <meyering@lucent.com>
75403
75404         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75405         now that we use the package-supplied version unconditionally.
75406         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75407
75408 2001-05-21  Jim Meyering  <meyering@lucent.com>
75409
75410         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75411         shell syntax errors.
75412
75413 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75414
75415         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75416
75417 2001-05-20  Paul Eggert  <eggert@twinsun.com>
75418
75419         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
75420         Don't bother to check library strftime, since
75421         we'll be using our own my_strftime function anyway.
75422         Define my_strftime instead of strftime.
75423
75424 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
75425
75426         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
75427         which is not yet declared.
75428
75429 2001-05-15  Jim Meyering  <meyering@lucent.com>
75430
75431         * m4/regex.m4: Use proper quoting so brackets appear in the test
75432         program.
75433         Reported by, and with help from, Bruno Haible.
75434
75435 2001-05-13  Jim Meyering  <meyering@lucent.com>
75436
75437         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
75438         undefined.
75439
75440 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75441
75442         dirname code cleanup.  base_name now behaves more compatibly
75443         with POSIX basename when given file names that have trailing
75444         slashes, and similarly for dir_name.  Add new primitives
75445         base_len and dir_len.  Put the directory-name-related decls
75446         into dirname.h.
75447
75448         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
75449         * lib/backupfile.c (base_name): Likewise.
75450         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
75451         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
75452         * lib/makepath.c (strip_trailing_slashes): Likewise.
75453         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
75454         ISSLASH): Likewise.
75455         * lib/rename.c (strip_trailing_slashes): Likewise.
75456         * lib/same.c (base_name): Likewise.
75457         * lib/stripslash.c (ISSLASH): Likewise.
75458
75459         * lib/addext.c: Include <dirname.h> after size_t is defined.
75460         * lib/backupfile.c: Likewise.
75461
75462         * lib/addext.c (addext): Use base_len to trim redundant
75463         trailing slashes instead of doing it ourselves.
75464         But do not trim the last slash if it is not redundant.
75465
75466         * lib/backupfile.c (find_backup_file_name,
75467         max_backup_version): Use base_len instead of rolling it ourselves.
75468         Handle the case of "" and (on DOS) "C:" correctly.
75469
75470         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
75471         needed. Include <string.h>, <dirname.h>.
75472         (base_name): Allow file names ending in slashes, other than names
75473         that are all slashes.  In this case, return the basename followed
75474         by the slashes.  This is more general, and can be used in places
75475         where the original base_name purposely had an assertion failure.
75476         (base_len): New function.
75477
75478         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
75479         Do not include <assert.h>; no longer needed.
75480         Include xalloc.h.
75481         (memrchr): Remove decl.
75482         (dir_name_r): Remove.
75483         (dir_len): Renamed from dirlen.  All callers changed.
75484         Rewrite in terms of base_name, for simplicity and consistency.
75485         (dir_name): Never return NULL.  All callers changed.
75486         Do not include <stdlib.h> in test program; no longer needed.
75487         return 0; is fine for test program.
75488
75489         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
75490         New macros.
75491         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
75492
75493         * lib/path-concat.c (path_concat): Use base_len to compute
75494         base length, not strlen; this means we cannot rely on memcpy
75495         to null-terminate.
75496
75497         * lib/same.c (STREQ): Remove.
75498         (same_name): Handle the case where the basename ends in trailing '/'.
75499
75500         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
75501         a slash was stripped.  Do not strip the last slash after a
75502         file system prefix.
75503
75504 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75505
75506         * lib/Makefile.am (libfetish_a_SOURCES):
75507         Add strftime.c, since we now compile it on all hosts.
75508
75509         * lib/strftime.c (my_strftime):
75510         Define to nstrftime if emacs, but only if my_strftime is not defined.
75511         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
75512         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
75513         Add one more extra argument: a nanoseconds value.
75514         All uses changed.
75515         (ns): New macro.
75516         (my_strftime function): Add %N format.
75517         (emacs_strftimeu): Renamed from emacs_strftime,
75518         with extra ut argument.
75519
75520 2001-05-09  Paul Eggert  <eggert@twinsun.com>
75521
75522         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
75523
75524 2001-04-21  Jim Meyering  <meyering@lucent.com>
75525
75526         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
75527         doesn't interfere.
75528
75529 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75530
75531         * m4/ftruncate.m4: Check for chsize.
75532         Link with ftruncate.o unconditionally if ftruncate is missing.
75533         This was required when cross-compiling to i586-mingw32msvc.
75534
75535 2001-04-08  Jim Meyering  <meyering@lucent.com>
75536
75537         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
75538         recomputed; that's necessary when the offset spans a DST transition.
75539         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
75540
75541 2001-04-02  Jim Meyering  <meyering@lucent.com>
75542
75543         * lib/regex.h, regex.c: Update from GNU libc.
75544
75545 2001-03-24  Jim Meyering  <meyering@lucent.com>
75546
75547         * m4/jm-macros.m4: Require autoconf-2.49d.
75548
75549 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
75550
75551         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
75552
75553 2001-03-19  Paul Eggert  <eggert@twinsun.com>
75554
75555         * lib/version-etc.c (version_etc_copyright): Update to 2001.
75556
75557 2001-03-17  Jim Meyering  <meyering@lucent.com>
75558
75559         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
75560         now that the version in autoconf is equivalent.
75561         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
75562
75563         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
75564         Suggestion from Akim Demaille.
75565
75566         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
75567         (jm_PREREQ_TEMPNAME): New function.
75568
75569 2001-03-16  Paul Eggert  <eggert@twinsun.com>
75570
75571         * lib/tempname.c (uint64_t): Define to uintmax_t if
75572         not defined, and if UINT64_MAX is not defined.
75573         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
75574         Reported by John David Anglin.
75575
75576 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
75577
75578         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
75579         resolve alias if codeset is empty.
75580         * lib/config.charset (BeOS): Use wildcard syntax.
75581
75582 2001-03-13  Jim Meyering  <meyering@lucent.com>
75583
75584         * lib/path-concat.c (path_concat)
75585         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
75586         concatenating e.g., `C:' and `foo'.
75587         From Bruno Haible.
75588
75589 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75590
75591         * lib/localcharset.c (locale_charset): Don't use
75592         setlocale(LC_CTYPE,NULL). Don't return NULL.
75593         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
75594
75595 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75596
75597         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
75598         support for DOS/DJGPP.
75599
75600 2001-03-01  Paul Eggert  <eggert@twinsun.com>
75601
75602         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
75603         lacks mkstemp.  Compile our own tempname.c if we compile our own
75604         mkstemp.c, as mkstemp relies on tempname.
75605
75606 2001-03-01  Jim Meyering  <meyering@lucent.com>
75607
75608         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
75609         AH_VERBATIM really does output its argument verbatim.
75610
75611 2001-02-28  Paul Eggert  <eggert@twinsun.com>
75612
75613         * lib/Makefile.am (libfetish_a_SOURCES):
75614         Add dup-safer.c, fopen-safer.c.
75615         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
75616
75617         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
75618         * lib/unistd-safer.h: New files.
75619
75620 2001-02-25  Paul Eggert  <eggert@twinsun.com>
75621
75622         The mkstemp replacement is taken from glibc 2.2.2, with some
75623         portability fixes for use outside glibc, as follows:
75624
75625         * lib/tempname.c (struct_stat64): New macro.
75626         (direxists, __gen_tempname): Use it.
75627         This avoids a portability problem with Solaris 8.
75628
75629         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
75630         (<stddef.h>, <stdint.h>, <string.h>):
75631         Include only if STDC_HEADERS || _LIBC.
75632         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
75633         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
75634         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
75635         (__set_errno): Define this macro if <errno.h> doesn't.
75636         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
75637         Define these macros if <stdio.h> doesn't.
75638         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
75639         Define these macros if <sys/stat.h>
75640         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
75641         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
75642         __xstat64): Define if not _LIBC.
75643         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
75644         (__gen_tempname): Invoke gettimeofday only if
75645         HAVE_GETTIMEOFDAY || _LIBC;
75646         otherwise, fall back on plain "time".
75647         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
75648
75649         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
75650
75651         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
75652
75653 2001-02-18  Paul Eggert  <eggert@twinsun.com>
75654
75655         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
75656
75657 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75658
75659         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
75660         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
75661         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
75662         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75663
75664 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75665
75666         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
75667         Remove workaround macros for hosts that have mbrtowc but not
75668         mbstate_t, as we now insist on proper declarations for both
75669         before using mbrtowc.
75670
75671 2001-02-17  Jim Meyering  <meyering@lucent.com>
75672
75673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
75674         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
75675         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
75676         UnixWare 7.1.1.
75677
75678         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
75679         rather than AC_CACHE_VAL.
75680
75681 2001-02-17  Jim Meyering  <meyering@lucent.com>
75682
75683         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
75684         around included file name.
75685
75686         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
75687
75688         * lib/strftime.c: Update from GNU libc (the only changes were to
75689         comments).
75690
75691 2001-02-17  Jim Meyering  <meyering@lucent.com>
75692
75693         * lib/regex.c: Update from libc.
75694
75695 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
75696
75697         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
75698         clash.
75699
75700 2001-02-16  Paul Eggert  <eggert@twinsun.com>
75701
75702         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
75703         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
75704         Reported by Mark Hounschell via Paul Eggert.
75705
75706 2001-02-07  Jim Meyering  <meyering@lucent.com>
75707
75708         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
75709
75710 2001-02-05  Jim Meyering  <meyering@lucent.com>
75711
75712         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
75713         it includes the patch required for `large file' support with at least
75714         HP-UX's 10.20 /bin/cc.
75715
75716 2001-02-03  Jim Meyering  <meyering@lucent.com>
75717
75718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
75719         AS_IF, now that it works once again (mysteriously).
75720         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75721
75722 2001-01-30  Jim Meyering  <meyering@lucent.com>
75723
75724         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
75725         * m4/chown.m4: Rename conftestchown to conftest.chown.
75726         * m4/rename.m4: s/conftestdir/conftest.d1/ and
75727         s/conftestdir2/conftest.d2/.
75728         * m4/utimes.m4: s/conftestdata/conftest.data/
75729         Inspired by Pavel Roskin's change in autoconf.
75730
75731 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
75732
75733         * lib/config.charset: Update for FreeBSD 4.2.
75734
75735 2001-01-27  Jim Meyering  <meyering@lucent.com>
75736
75737         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
75738         a use of AS_IF.
75739         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75740
75741 2001-01-26  Jim Meyering  <meyering@lucent.com>
75742
75743         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
75744         quotearg.c includes it.
75745
75746 2001-01-26  Jim Meyering  <meyering@lucent.com>
75747
75748         * lib/quotearg.c: Include stddef.h.
75749         * lib/quote.c: Include stddef.h.
75750         Reported by Axel Kittenberger.
75751
75752         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
75753         line in double quotes so that it evokes a better diagnostic.
75754         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
75755         Reported by Axel Kittenberger.
75756
75757 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
75758
75759         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
75760         as if it was a `charset'.
75761
75762 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75763
75764         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
75765         has const.
75766
75767 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75768
75769         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
75770         to avoid a warning.  Add back 'const' to inptr.
75771
75772 2001-01-20  Jim Meyering  <meyering@lucent.com>
75773
75774         Be sure that headers are checked before used in code compiled
75775         for the type checks.
75776         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
75777         In place of that, invoke jm_CHECK_ALL_TYPES.
75778         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
75779         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
75780         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
75781         The check for ssize_t was mistakenly run before the test for unistd.h.
75782
75783         The configure-time check for stdbool.h was missing.
75784         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
75785         (jm_PREREQ_HASH): New function.
75786
75787 2001-01-17  Jim Meyering  <meyering@lucent.com>
75788
75789         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
75790         for autoconf-2.49c.
75791         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
75792
75793 2001-01-16  Jim Meyering  <meyering@lucent.com>
75794
75795         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
75796         From Bruno Haible.
75797
75798 2001-01-14  Jim Meyering  <meyering@lucent.com>
75799
75800         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
75801         foo and bar.  Create conftestdir/ in the script, not in the C code.
75802         Remove directories in the script, not in the C code.
75803         Remove conftestdir{,2} before trying to create the directory.
75804         Make the entire configure script fail if the mkdir fails.
75805
75806 2001-01-14  Jim Meyering  <meyering@lucent.com>
75807
75808         * lib/rename.c: New file.  From Volker Borchert.
75809         Include stdlib.h, string.h or strings.h, and xalloc.h.
75810         Use strip_trailing_slashes rather than open-coding it.
75811
75812 2001-01-03  Paul Eggert  <eggert@twinsun.com>
75813
75814         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
75815
75816 2001-01-03  Jim Meyering  <meyering@lucent.com>
75817
75818         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
75819         of local `inptr' to avoid warning with some system declarations of
75820         iconv.
75821
75822 2001-01-02  Volker Borchert  <bt@teknon.de>
75823
75824         * m4/rename.m4: New file.
75825         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
75826
75827 2001-01-01  Jim Meyering  <meyering@lucent.com>
75828
75829         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
75830         even on systems with utmpx.h.  It's necessary for the declaration of
75831         utmp's ut_user member.  Reported by Andreas Jaeger.
75832
75833         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
75834         available. They are required for the declarations of getgrgid and
75835         getpwuid resp.
75836         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
75837         Reported by Andreas Jaeger.
75838
75839 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
75840
75841         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
75842         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
75843         so `make install' also works in VPATH builds.
75844
75845 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
75846
75847         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
75848         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
75849         can be used in subdirectories.
75850
75851 2000-12-29  Paul Eggert  <eggert@twinsun.com>
75852
75853         * lib/modechange.c: Do not assume that mode_t uses the
75854         traditional octal encoding.  E.g. "chmod 1 FOO" should set
75855         the other-execute bit of FOO even if S_IXOTH != 1.
75856
75857         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
75858         WOTH, XOTH, ALLM): New macros.
75859         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
75860          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
75861         Use them.
75862         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
75863         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
75864         (mode_compile):
75865         No need to use uintmax_t; unsigned long is long enough.
75866         Don't bother to get suffix since we don't use it.
75867
75868 2000-12-26  Jim Meyering  <meyering@lucent.com>
75869
75870         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
75871         better with autoheader.
75872
75873 2000-12-24  Jim Meyering  <meyering@lucent.com>
75874
75875         * lib/hash.c (is_prime): Return explicit boolean values.
75876         (hash_get_first): Return NULL to appease Irix5.6's 89.
75877         Reported by Nelson Beebe.
75878
75879 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
75880
75881         * lib/localcharset.c (locale_charset): Add support for Win32.
75882
75883 2000-12-18  Paul Eggert  <eggert@twinsun.com>
75884
75885         * lib/physmem.h, lib/physmem.c: New files.
75886
75887         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
75888         (noinst_HEADERS): Add physmem.h.
75889
75890         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
75891         't' for compatibility with Solaris 8 sort.
75892
75893 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
75894
75895         * lib/config.charset: Add support for BeOS.
75896
75897 2000-12-17  Jim Meyering  <meyering@lucent.com>
75898
75899         * m4/dos.m4 (jm_AC_DOS): New file and macro.
75900         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
75901
75902 2000-12-16  Jim Meyering  <meyering@lucent.com>
75903
75904         This bug had a serious impact on chown: `chown N:M FILE' (for integer
75905         N and M) would have treated it like `chown N:N FILE'.
75906
75907         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
75908
75909 2000-12-16  Jim Meyering  <meyering@lucent.com>
75910
75911         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
75912         SHELLS_FILE to a file name that's useful on djgpp systems.
75913         Include stdlib.h.
75914         (ADDITIONAL_DEFAULT_SHELLS): Define.
75915         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
75916         Based mostly on a patch from Prashant TR.
75917
75918 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
75919
75920         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
75921         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
75922         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
75923
75924 2000-12-08  Andreas Schwab  <schwab@suse.de>
75925
75926         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
75927         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
75928
75929 2000-12-07  Jim Meyering  <meyering@lucent.com>
75930
75931         * lib/stripslash.c (ISSLASH): Define.
75932         (strip_trailing_slashes): Use ISSLASH rather than comparing against
75933         `/'.
75934         From Prashant TR.
75935
75936         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
75937         (dir_name_r): Declare this function as static.
75938         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
75939         manifest itself on a name containing a mix of slashes and
75940         backslashes.
75941         Make this function work with names starting with a DOS-style
75942         drive letter and colon prefix.
75943         (dir_name): Append `.' if necessary.
75944         Based mostly on patches from Prashant TR and Eli Zaretskii.
75945
75946         * lib/dirname.h (dir_name_r): Remove prototype.
75947
75948 2000-12-06  Paul Eggert  <eggert@twinsun.com>
75949
75950         * m4/off_t-format.m4: Remove this file.
75951         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
75952
75953 2000-12-06  Jim Meyering  <meyering@lucent.com>
75954
75955         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
75956         replacement strtoull, we may well need the replacement strtoul, too.
75957         Check for declarations of strtoul and strtoull.
75958         Check for strtol.  Mainly as a cue to cause automake to include
75959         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
75960         Check for limits.h -- strtol.c needs it.
75961
75962 2000-12-05  Jim Meyering  <meyering@lucent.com>
75963
75964         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
75965
75966 2000-12-04  Jim Meyering  <meyering@lucent.com>
75967
75968         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
75969         Also include memory.h, stdlib.h, unistd.h if appropriate.
75970         Reported by Andreas Jaeger (conflicting declaration of malloc).
75971
75972 2000-12-02  Jim Meyering  <meyering@lucent.com>
75973
75974         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
75975         * m4/jm-macros.m4 (jm_MACROS): require it.
75976
75977 2000-12-02  Jim Meyering  <meyering@lucent.com>
75978
75979         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
75980
75981 2000-12-01  Paul Eggert  <eggert@twinsun.com>
75982
75983         * lib/memrchr.c: Include <config.h> before any system include file.
75984
75985 2000-11-30  Jim Meyering  <meyering@lucent.com>
75986
75987         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
75988
75989 2000-11-30  Jim Meyering  <meyering@lucent.com>
75990
75991         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
75992
75993 2000-11-29  Paul Eggert  <eggert@twinsun.com>
75994
75995         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
75996
75997 2000-11-26  Jim Meyering  <meyering@lucent.com>
75998
75999         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76000
76001 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76002
76003         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76004         size of (size_t) -1; it's not portable.
76005
76006 2000-11-17  Jim Meyering  <meyering@lucent.com>
76007
76008         * lib/strstr.c: Update from GNU libc.
76009
76010 2000-11-17  Akim Demaille  <akim@epita.fr>
76011
76012         * lib/obstack.h: Formatting changes.
76013         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76014         prevent type checking.
76015         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76016         cast the value to (void *): assigning a `foo *' to a `void *'
76017         variable is valid.
76018         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76019
76020 2000-11-16  Jim Meyering  <meyering@lucent.com>
76021
76022         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76023
76024 2000-11-11  Jim Meyering  <meyering@lucent.com>
76025
76026         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76027
76028 2000-11-10  Jim Meyering  <meyering@lucent.com>
76029
76030         * lib/obstack.h: Update from GNU libc.
76031         * lib/obstack.c: Likewise.
76032
76033 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76034
76035         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76036
76037 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76038
76039         * lib/getusershell.c (setusershell): Use rewind rather than
76040         fseek/fseeko, to avoid configuration hassles with fseeko.
76041         Don't bother opening SHELLS_FILE if shellstream is NULL;
76042         it's not necessary.
76043
76044 2000-11-05  Jim Meyering  <meyering@lucent.com>
76045
76046         * lib/makepath.h (make_dir): Declare.
76047         * lib/makepath.c (make_dir): Remove `static' attribute.
76048         Tweak a comment.
76049
76050 2000-11-04  Jim Meyering  <meyering@lucent.com>
76051
76052         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76053
76054 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76055
76056         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76057         last one in a bucket, advance to the next bucket.
76058
76059 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76060
76061         * lib/fnmatch.c: Do not comment out all the code if we are using
76062         the GNU C library, because in some cases we are replacing buggy
76063         code in the GNU C library itself.
76064
76065 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76066
76067         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76068         (regex_compile): Catch bogus \(\1\).
76069
76070 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76071
76072         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76073         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76074         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76075
76076 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76077
76078         * lib/error.h, getline.h, modechange.h:
76079         Remove "2000" from Copyright line, as the file hasn't been
76080         changed this year other than in the copyright notice.
76081
76082         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76083         was changed this year.
76084
76085 2000-10-29  Jim Meyering  <meyering@lucent.com>
76086
76087         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76088         renaming.
76089         * m4/ls-mntd-fs.m4: Likewise
76090
76091 2000-10-29  Jim Meyering  <meyering@lucent.com>
76092
76093         * lib/xstat.in: Fix grammar in comment.
76094
76095 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76096
76097         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76098         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76099         doesn't define __restrict_arr.
76100
76101 2000-10-28  Jim Meyering  <meyering@lucent.com>
76102
76103         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76104         (jm_PREREQ_MEMCHR): New function.
76105
76106 2000-10-28  Jim Meyering  <meyering@lucent.com>
76107
76108         * lib/memchr.c: Update from libc.
76109         Adjust for portability:
76110         [HAVE_STDLIB_H]: Include stdlib.h.
76111         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76112         Undef __memchr, too.
76113         [!weak_alias]: Define __memchr to memchr.
76114
76115         * lib/regex.c: Update from libc.
76116         * lib/regex.h: Likewise.
76117         * lib/getopt1.c: Likewise.
76118         * lib/memcmp.c: Likewise.
76119
76120         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76121         Avoid using fseek, when possible -- it's broken by design.
76122         Patch by Ulrich Drepper.
76123
76124 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76125
76126         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76127         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76128         Giving in to popular pressure to shut up the compiler with casts.
76129
76130 2000-10-26  Jim Meyering  <meyering@lucent.com>
76131
76132         * lib/strftime.c: Update from libc.
76133
76134 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76135
76136         * regex.c: More `unsigned char' -> `re_char' changes.
76137         Also change several `int' into `re_wchar_t'.
76138         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76139         (PUSH_FAILURE_POINTER): Don't cast any more.
76140         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76141         We want GCC to complain, since this piece of code makes
76142         re_match non-reentrant, which *should* be fixed.
76143         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76144         (EXTEND_BUFFER): Use RETALLOC.
76145         (SET_LIST_BIT): Don't cast.
76146         (re_wchar_t): New type.
76147         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76148         that those two functions will always properly return.
76149         (IMMEDIATE_QUIT_CHECK): Cast to void.
76150         (analyse_first): Use recursion rather than an explicit stack.
76151         (re_compile_fastmap): Can't fail anymore.
76152         (re_search_2): Don't check re_compile_fastmap for failure.
76153         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76154         Now also sets the new value (passed in a new argument).
76155         (re_match_2_internal): Use it.
76156         Also, use a new var `reg' of type size_t when looping through regs
76157         rather than reuse the inappropriate `mcnt'.
76158
76159 2000-10-25  Jim Meyering  <meyering@lucent.com>
76160
76161         * lib/obstack.c: Update from libc.
76162
76163 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76164
76165         * regex.c (regex_compile): Change the way of handling a range from
76166         a char less than 256 to a char not less than 256.
76167
76168 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76169
76170         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76171         NT-Emacs only.
76172         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76173         so that re_search functions only quit when callers expect them to.
76174
76175 2000-10-23  Jim Meyering  <meyering@lucent.com>
76176
76177         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76178         wrong.  That set_locale call must not have any side effects.
76179         From Paul Eggert.
76180
76181 2000-10-22  Jim Meyering  <meyering@lucent.com>
76182
76183         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76184         [CYCLIC]: Remove now-unused definition.
76185
76186         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76187         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76188         Suggestion from Ulrich Drepper.
76189
76190 2000-10-21  Jim Meyering  <meyering@lucent.com>
76191
76192         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76193         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76194         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76195
76196 2000-10-21  Jim Meyering  <meyering@lucent.com>
76197
76198         * lib/dirname.c (memrchr): Declare if necessary.
76199         (dir_name): Remove the restriction that there be no
76200         trailing slashes.  Now, this code skips past them, effectively
76201         ignoring them.
76202         [TEST_DIRNAME] (main): New unit tests.
76203
76204         * lib/memrchr.c: New file from GNU libc.
76205         Undef __memrchr, too.
76206         [!weak_alias]: Define __memrchr to memrchr.
76207         Guard weak_alias use with `#ifdef weak_alias'.
76208
76209 2000-10-21  Jim Meyering  <meyering@lucent.com>
76210
76211         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76212         (dir_name): Use dir_name_r.
76213         * lib/dirname.h (dir_name_r): Declare it.
76214
76215 2000-10-17  Jim Meyering  <meyering@lucent.com>
76216
76217         * lib/quote.h (PARAMS): Define and use.
76218         Reported by Akim Demaille.
76219
76220         * lib/getopt.c: Update from libc.
76221
76222 2000-10-16  Jim Meyering  <meyering@lucent.com>
76223
76224         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76225         setlocale.
76226         From Jan Fedak.
76227
76228 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76229
76230         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76231
76232 2000-09-25  Jim Meyering  <meyering@lucent.com>
76233
76234         * lib/md5.h (rol): Define (from GnuPG).
76235
76236         * lib/sha.c: Give credit (GnuPG) where due.
76237         (M): Use rol rather than open-coding it.
76238         Add a FIXME comment.
76239
76240 2000-09-21  Jim Meyering  <meyering@lucent.com>
76241
76242         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76243         Reported by Michael Stone.
76244
76245 2000-09-20  Jim Meyering  <meyering@lucent.com>
76246
76247         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76248         (noinst_HEADERS): Add sha.h.
76249         Based on code from Scott G. Miller and from GnuPG.
76250
76251 2000-09-18  Jim Meyering  <meyering@lucent.com>
76252
76253         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76254         LIBS. Otherwise, everyone ends up linking with -lelf for some
76255         configurations.
76256         Reported by Mike Stone.
76257
76258 2000-09-15  Jim Meyering  <meyering@lucent.com>
76259
76260         * lib/regex.c: Update from libc.
76261
76262 2000-09-10  Jim Meyering  <meyering@lucent.com>
76263
76264         * lib/getopt.c (_getopt_internal): Update from glibc.
76265
76266 2000-09-09  Jim Meyering  <meyering@lucent.com>
76267
76268         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76269         think it should be used as a general replacement for isascii.
76270         * lib/fnmatch.c: Likewise.
76271         * lib/mbswidth.c: Likewise
76272         * lib/regex.c: Likewise.
76273
76274         Don't use atoi.
76275         * lib/userspec.c: Include sys/param.h and limits.h.
76276         Include xstrtol.h.
76277         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76278         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76279         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76280         UID, GID.  Check range.
76281
76282 2000-09-06  Jim Meyering  <meyering@lucent.com>
76283
76284         * lib/getopt.c (_getopt_internal): Update from glibc.
76285
76286 2000-08-30  Jim Meyering  <meyering@lucent.com>
76287
76288         * lib/strftime.c: Merge in changes from GNU libc.
76289
76290 2000-08-26  Jim Meyering  <meyering@lucent.com>
76291
76292         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76293         * m4/fpending.m4: New file.
76294
76295 2000-08-26  Jim Meyering  <meyering@lucent.com>
76296
76297         * lib/closeout.c: Include "__fpending.h".
76298         (close_stdout_status): Return right away if there's nothing to flush.
76299
76300         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76301         * lib/__fpending.c: New file.
76302         * lib/__fpending.h: New file.
76303
76304 2000-08-20  Jim Meyering  <meyering@lucent.com>
76305
76306         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76307         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76308         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76309
76310 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76311
76312         Improve fileutils installation on systems where running
76313         programs (like install) can't be unlinked.
76314         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76315         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76316
76317 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76318
76319         Standardize on "memory exhausted" instead of "Memory exhausted"
76320         or "virtual memory exhausted".
76321         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76322         "virtual memory exhausted".
76323         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76324         our own message.
76325         * lib/userspec.c (parse_user_spec): Likewise.
76326         * lib/bumpalloc.h: comment fix
76327         * lib/same.c, userspec.c: Include xalloc.h.
76328
76329         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76330         not char *const and pointing to a constant array.
76331         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76332         (xrealloc): Comment fix.
76333
76334         * lib/userspec.c (parse_user_spec):
76335         Don't translate a message until just before returning,
76336         to avoid unnecessary translation.
76337
76338 2000-08-07  Jim Meyering  <meyering@lucent.com>
76339
76340         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76341         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76342         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76343         getgroups.c, gethostname.c, getopt.h, group-member.c,
76344         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76345         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76346         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76347         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76348         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76349         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76350         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
76351         yesno.c: Back out Copyright date changes for each file with no change
76352         this year.  This eases coordination with other programs using the same
76353         source code modules.  From Paul Eggert.
76354
76355 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76356
76357         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76358         not char, for compatibility with glibc 2.1.3 strftime.c.
76359
76360 2000-08-03  Greg McGary  <greg@mcgary.org>
76361
76362         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76363         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76364         (EXTEND_BUFFER): Use them.
76365
76366 2000-08-01  Jim Meyering  <meyering@lucent.com>
76367
76368         * lib/dirname.c (ISSLASH): Define.
76369         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76370         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76371         both `\' and `/' may be use as path separators.
76372         Based on a patch from Prashant TR.
76373
76374 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76375
76376         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76377         slot vector a constant, since it might get modified.
76378
76379 2000-07-31  Jim Meyering  <meyering@lucent.com>
76380
76381         * lib/xmalloc.c: Use `virtual memory exhausted', not
76382         `Memory exhausted'.
76383         * lib/obstack.c (print_and_abort): Likewise.
76384
76385 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76386
76387         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76388         buffer, so that the caller can always quote one small
76389         component of a "memory exhausted" message in slot 0.
76390         From a suggestion by Jim Meyering.
76391
76392 2000-07-30  Jim Meyering  <meyering@lucent.com>
76393
76394         * lib/makepath.c (make_path): Quote the other instance, too.
76395
76396         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76397         (STATIC_BUF_SIZE): Define.
76398         (quotearg_n_options): Use only statically allocated storage when
76399         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76400         than STATIC_BUF_SIZE.
76401
76402 2000-07-29  Jim Meyering  <meyering@lucent.com>
76403
76404         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76405         * lib/dirname.c (dir_name): Likewise.
76406
76407         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76408         `/'.
76409
76410         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76411         (dir_name): Assert that there are no trailing slashes.
76412
76413 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76414
76415         * lib/mbswidth.h (mbswidth): Add a flags argument.
76416         (mbswidth): New declaration.
76417         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
76418         * lib/mbswidth.c (mbswidth): Add a flags argument.
76419         (mbsnwidth): New function.
76420
76421 2000-07-24  Jim Meyering  <meyering@lucent.com>
76422
76423         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
76424
76425 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76426
76427         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
76428
76429 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76430
76431         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
76432         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
76433         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
76434         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
76435         invoke multibyte primitives.
76436
76437 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76438
76439         * lib/quotearg.c:
76440         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
76441         so that mbstate_t is always defined.
76442
76443         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
76444         be 1 in at least one GCC installation, and this configuration
76445         error is likely to be common.  Ignoring MB_LEN_MAX hurts
76446         performance on hosts that have mbrtowc but have only unibyte
76447         locales, but I assume these hosts are rare.
76448
76449 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76450
76451         * lib/mbswidth.c (_XOPEN_SOURCE):
76452         Don't define; this causes problems on Solaris 7.
76453         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
76454
76455 2000-07-23  Jim Meyering  <meyering@lucent.com>
76456
76457         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
76458         too: getgrgid, getpwuid, getuid.
76459
76460 2000-07-23  Jim Meyering  <meyering@lucent.com>
76461
76462         * lib/basename.c (base_name): Add an assertion.
76463
76464 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
76465
76466         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
76467         shadow its mbsinit function.
76468
76469 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76470
76471         * lib/mbswidth.h: New file.
76472         * lib/mbswidth.c: New file.
76473         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
76474         (noinst_HEADERS): Add mbswidth.h.
76475
76476 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76477
76478         * lib/config.charset: Add support for FreeBSD. Improve support for
76479         HP-UX and IRIX 6.
76480
76481 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
76482
76483         * m4/mbswidth.m4: New file.
76484         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
76485
76486 2000-07-15  Jim Meyering  <meyering@lucent.com>
76487
76488         * lib/makepath.c: Include quote.h.
76489         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
76490         corresponding argument in a `quote (...)' call.
76491         Give better diagnostics.
76492
76493         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
76494         (noinst_HEADERS): Add quote.h.
76495
76496         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
76497         from tar's src/misc.c.
76498         * lib/quote.h: New file.  Prototypes for same.
76499
76500 2000-07-14  Paul Eggert  <eggert@twinsun.com>
76501
76502         From a suggestion by Bruno Haible.
76503         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
76504         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
76505         to decide whether to define the BeOS workaround macro;
76506         this adjusts to the change to AC_MBSTATE_T.
76507
76508 2000-07-14  Jim Meyering  <meyering@lucent.com>
76509
76510         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
76511         jm_AC_TYPE_UINTMAX_T.
76512
76513 2000-07-13  Paul Eggert  <eggert@twinsun.com>
76514
76515         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
76516
76517         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
76518         quotearg_buffer_restyled): Add support for
76519         clocale_quoting_style.  Undo previous change to
76520         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
76521         and "{RIGHT QUOTATION MARK}" msgids.
76522
76523 2000-07-10  Paul Eggert  <eggert@twinsun.com>
76524
76525         From a suggestion by Bruno Haible.
76526         * m4/mbstate_t.m4 (AC_MBSTATE_T):
76527         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
76528         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
76529         and mbstate_t, to a single-part test that simply defines mbstate_t.
76530         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
76531         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
76532
76533 2000-07-10  Jim Meyering  <meyering@lucent.com>
76534
76535         * m4/strerror_r.m4: Mirror the correction made in autoconf.
76536
76537         * m4/gnu-source.m4: Output to confdefs.h directly.
76538         Suggestion from Akim Demaille.
76539
76540 2000-07-09  Paul Eggert  <eggert@twinsun.com>
76541
76542         The old behavior of quoting `like this' doesn't look good with
76543         newer, ISO-style fonts.  See:
76544         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
76545
76546         Instead, quote "like this" by default.  Let the translator
76547         tailor the locale-specific quoting behavior by providing
76548         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
76549
76550         * lib/quotearg.c (N_): New macro.
76551         (gettext_default): New function.
76552         (quotearg_buffer_restyled): Use
76553         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
76554         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
76555
76556 2000-07-09  Jim Meyering  <meyering@lucent.com>
76557
76558         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
76559         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
76560
76561         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
76562         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
76563
76564 2000-07-09  Jim Meyering  <meyering@lucent.com>
76565
76566         * lib/Most files: Update copyright dates to include 2000.
76567
76568 2000-07-08  Jim Meyering  <meyering@lucent.com>
76569
76570         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
76571         if not defined.
76572         (xgethostname): Remove now-unnecessary #ifdef.
76573         Move declaration of `err' into loop where it's used.
76574
76575 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76576         and Bruno Haible  <haible@clisp.cons.org>
76577
76578         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
76579         only if the test for an object-type mbstate_t fails.  This
76580         prevents us from mistakenly reporting that mbstate_t is a
76581         system object type after we "#define mbstate_t int" to work
76582         around its lack.
76583
76584 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76585         and Bruno Haible  <haible@clisp.cons.org>
76586
76587         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
76588
76589 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76590
76591         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
76592         to strerror_r.
76593         Include <ctype.h> for use of isalpha.
76594
76595 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76596
76597         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
76598         by allocating a larger buffer. Test the gethostname return value for
76599         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
76600         returns an error and ENAMETOOLONG isn't defined.
76601
76602 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76603
76604         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
76605         dimension.
76606
76607 2000-07-04  Jim Meyering  <meyering@lucent.com>
76608
76609         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
76610         of the deprecated AC_CHECKING.
76611
76612 2000-07-04  Jim Meyering  <meyering@lucent.com>
76613
76614         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
76615         Reported by Bruno Haible.
76616
76617 2000-07-04  Jim Meyering  <meyering@lucent.com>
76618
76619         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
76620         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
76621         lacks mbrtowc.
76622
76623 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76624
76625         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
76626         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
76627
76628 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76629         and Bruno Haible  <haible@clisp.cons.org>
76630
76631         * lib/quotearg.c (mbrtowc):
76632         Assign to *pwc, and return 1 only if result is nonzero.
76633         (iswprint): Use ISPRINT when substituting our own mbrtowc.
76634
76635 2000-07-03  Jim Meyering  <meyering@lucent.com>
76636
76637         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
76638
76639 2000-07-03  Jim Meyering  <meyering@lucent.com>
76640
76641         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
76642         This is necessary to get a definition of e.g., UTMP_FILE on
76643         HP-UX 10.20.
76644         From Bob Proulx.
76645
76646 2000-07-02  Jim Meyering  <meyering@lucent.com>
76647
76648         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
76649
76650         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
76651         AC_LIBOBJ(function_name).
76652         * m4/chown.m4: Likewise.
76653         * m4/fnmatch.m4: Likewise.
76654         * m4/ftruncate.m4: Likewise.
76655         * m4/getgroups.m4: Likewise.
76656         * m4/getline.m4: Likewise.
76657         * m4/group-member.m4: Likewise.
76658         * m4/jm-macros.m4: Likewise.
76659         * m4/lstat.m4: Likewise.
76660         * m4/malloc.m4: Likewise.
76661         * m4/memcmp.m4: Likewise.
76662         * m4/nanosleep.m4: Likewise.
76663         * m4/putenv.m4: Likewise.
76664         * m4/realloc.m4: Likewise.
76665         * m4/regex.m4: Likewise.
76666         * m4/stat.m4: Likewise.
76667         * m4/strftime.m4: Likewise.
76668
76669 2000-07-02  Jim Meyering  <meyering@lucent.com>
76670
76671         * lib/quotearg.c (mbstate_t): Don't define here.
76672
76673 2000-07-02  Jim Meyering  <meyering@lucent.com>
76674
76675         * lib/nanosleep.c (SIGCONT): Define if not already defined.
76676
76677 2000-07-01  Jim Meyering  <meyering@lucent.com>
76678
76679         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
76680
76681 2000-07-01  Jim Meyering  <meyering@lucent.com>
76682
76683         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
76684         problem.
76685
76686 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76687
76688         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
76689         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
76690
76691 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76692
76693         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
76694         per change in ../m4/ls-mntd-fs.m4.
76695         (read_filesystem_list): Ignore symbolic links.
76696
76697 2000-06-29  Jim Meyering  <meyering@lucent.com>
76698
76699         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
76700         for declaration of strcmp.
76701
76702         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
76703
76704         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
76705         Avoid warning by casting result to `char *' to remove `const'.
76706
76707 2000-06-28  Jim Meyering  <meyering@lucent.com>
76708
76709         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
76710         included by quotearg.c, for which we perform this test.  From
76711         Bruno Haible.
76712
76713 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76714
76715         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
76716         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
76717         <utmpx.h> exists, put readutmp.o into LIBOBJS.
76718
76719 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76720
76721         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
76722
76723 2000-06-26  Paul Eggert  <eggert@twinsun.com>
76724
76725         savedir now sets errno on failure and invokes xmalloc to get memory.
76726         Fix a couple of other minor bugs while we're at it.
76727
76728         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
76729         (NAMLEN): Remove macro.
76730         (malloc, realloc): Remove decls.
76731         (stpcpy): Likewise.
76732         ("xalloc.h"): Include.
76733         (NAME_SIZE_DEFAULT): New macro.
76734         (savedir): Use xmalloc / xrealloc to allocate memory.
76735         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
76736         Skip "" directory entries.
76737         Use strlen to calculate directory entry length, since the old method
76738         is rarely used these days and isn't worth supporting.
76739         Don't use a pointer after freeing it.
76740         Check for integer overflow when calculating allocation size.
76741         Use memcpy to copy entries, instead of stpcpy.
76742         Set errno properly when returning NULL.
76743         Check for readdir error.
76744
76745 2000-06-26  Jim Meyering  <meyering@lucent.com>
76746
76747         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
76748
76749 2000-06-25  Jim Meyering  <meyering@lucent.com>
76750
76751         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
76752         Linux header bug when _XOPEN_SOURCE is defined to 500.
76753
76754 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76755
76756         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
76757         deficiency.
76758
76759 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76760
76761         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
76762         Include xalloc.h.
76763         Don't include <stdlib.h>.  Don't declare malloc, realloc.
76764
76765 2000-06-24  Jim Meyering  <meyering@lucent.com>
76766
76767         * m4/strerror_r.m4: Revive this file -- to try out an experimental
76768         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
76769         for which strerror does return char*, but which lacks a conveniently
76770         accessible declaration of the function.  If the compile-test says
76771         strerror_r doesn't work, then resort to a `run'-test that works on
76772         BeOS and segfaults on DEC Unix.
76773
76774 2000-06-24  Jim Meyering  <meyering@lucent.com>
76775
76776         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
76777
76778 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76779
76780         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
76781         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
76782
76783 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76784
76785         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
76786         (mbrtowc, mbstate_t): Define substitutes if
76787         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
76788         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
76789         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
76790
76791 2000-06-23  Jim Meyering  <meyering@lucent.com>
76792
76793         * m4/afs.m4: Add missing AC_MSG_RESULT.
76794         Reported by Bruno Haible.
76795
76796         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
76797         Suggestion from Bruno Haible.
76798
76799 2000-06-23  Jim Meyering  <meyering@lucent.com>
76800
76801         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
76802
76803 2000-06-21  Jim Meyering  <meyering@lucent.com>
76804
76805         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
76806
76807 2000-06-21  Jim Meyering  <meyering@lucent.com>
76808
76809         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
76810         (noinst_HEADERS): Add getstr.h.
76811
76812         * lib/getline.c (getstr): Move into a separate file.
76813         * lib/getstr.c (getstr): New file, extracted from getline.c, with
76814         the following changes: new parameter, delim2; both delim[12]
76815         parameters have type `int', not `char'.  The latter would lose
76816         with 8-bit delimiters.
76817         * lib/getstr.h: New file.
76818
76819 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76820
76821         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
76822         than 1024, return a memory chunk of least possible size, instead
76823         of size PATH_MAX + 2. In the loop, increment the size proportionally.
76824         Use free/xmalloc instead of xrealloc to avoid copying for very long
76825         paths.
76826
76827 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76828
76829         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
76830         the empty string.
76831
76832 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76833
76834         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
76835         address, not strdup.  Include <stdlib.h> and don't declare free().
76836
76837 2000-06-19  Jim Meyering  <meyering@lucent.com>
76838
76839         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
76840
76841 2000-06-18  Jim Meyering  <meyering@lucent.com>
76842
76843         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
76844
76845         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
76846         `checking whether...' message to be consistent with that of the
76847         lstat test.
76848
76849 2000-06-18  Jim Meyering  <meyering@lucent.com>
76850
76851         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
76852         Besides, these days every porting target provides a mkdir function.
76853
76854         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
76855         needed. (this snippet comes from src/system.h).
76856
76857 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
76858
76859         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
76860
76861 2000-06-15  Paul Eggert  <eggert@twinsun.com>
76862
76863         * lib/human.c (adjust_value): New function.
76864         (human_readable_inexact): Apply rounding style even when
76865         printing approximate values.
76866
76867 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76868
76869         * lib/human.c (human_readable_inexact): Allow an input block
76870         size that is not a multiple of the output block size, and vice versa.
76871         Reported by Piergiorgio Sartor.
76872
76873 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76874
76875         * lib/getdate.y (get_date): Apply relative times after time
76876         zone indicator, not before.  Reported by Todd A. Jacobs.
76877
76878 2000-06-13  Jim Meyering  <meyering@lucent.com>
76879
76880         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
76881
76882         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
76883
76884 2000-06-12  Paul Eggert  <eggert@twinsun.com>
76885
76886         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
76887
76888 2000-06-12  Jim Meyering  <meyering@lucent.com>
76889
76890         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
76891         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
76892         optional argument.
76893         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
76894         the optional argument, `lib'.
76895
76896 2000-06-08  Jim Meyering  <meyering@lucent.com>
76897
76898         * m4/largefile.m4: Remove file (now that it's part of autoconf).
76899
76900 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76901
76902         Rewrite largefile configuration so that we don't need to run
76903         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
76904         AC_CANONICAL_HOST in configure.in -- jmm]
76905
76906         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
76907         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
76908         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
76909         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
76910         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
76911         All uses changed.
76912         Instead of inspecting the output of getconf, try to compile the
76913         test program without and with the macro definition.
76914         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
76915         for getconf.  Instead, check for the needed flags by compiling
76916         test programs.
76917
76918 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76919
76920         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
76921
76922 2000-06-04  Jim Meyering  <meyering@lucent.com>
76923
76924         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
76925         SunOS 4.1.4 for which gid_t is an unsigned type.
76926
76927 2000-06-03  Jim Meyering  <meyering@lucent.com>
76928
76929         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
76930         now that autoconf requires that.
76931
76932         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
76933         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
76934         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
76935
76936 2000-06-03  Jim Meyering  <meyering@lucent.com>
76937
76938         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
76939
76940 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76941
76942         * m4/glibc21.m4: New file.
76943         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
76944
76945 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76946
76947         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
76948         newer, don't install charset.alias.
76949         * lib/config.charset: Change the Linux/glibc rules so they become empty
76950         on glibc-2.1 or newer.
76951
76952 2000-06-02  Jim Meyering  <meyering@lucent.com>
76953
76954         * lib/mountlist.c: Back out last change.  Instead, do this...
76955         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
76956         me_dummy member using the same `ignore'-testing code.
76957         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
76958         fs_type strings.
76959         From Mark D. Roth.
76960
76961 2000-05-29  Jim Meyering  <meyering@lucent.com>
76962
76963         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
76964         mounts with the `ignore' attribute.  Based on a patch from
76965         Mark D. Roth.
76966
76967 2000-05-28  Jim Meyering  <meyering@lucent.com>
76968
76969         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
76970         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76971         * m4/stat.m4: Likewise.
76972         * m4/lstat.m4: Likewise.
76973         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
76974
76975         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
76976         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
76977
76978 2000-05-26  Jim Meyering  <meyering@lucent.com>
76979
76980         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
76981
76982 2000-05-24  Jim Meyering  <meyering@lucent.com>
76983
76984         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
76985         autoconf requires that.
76986         * m4/lib-check.m4: Likewise.
76987         * m4/jm-macros.m4: Likewise.
76988         * m4/strftime.m4: Likewise.
76989
76990         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
76991         AC_CHECK_DECLS, now that autoconf requires that.
76992
76993 2000-05-22  Jim Meyering  <meyering@lucent.com>
76994
76995         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76996         * m4/lstat.m4: Likewise.
76997
76998 2000-05-22  Jim Meyering  <meyering@lucent.com>
76999
77000         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77001
77002 2000-05-20  Jim Meyering  <meyering@lucent.com>
77003
77004         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77005         (jm_PREREQ): Use it.
77006
77007 2000-05-18  Jim Meyering  <meyering@lucent.com>
77008
77009         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77010         back, too, since it may have been modified by allocate_entry.
77011         (hash_delete): Rewrite to use neither the assignment operator
77012         nor the comma operator in an if-expression.
77013
77014 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77015
77016         * lib/closeout.c:
77017         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77018         Remove; no longer needed.
77019         "quotearg.h": Add include.
77020         (file_name): Do not bother to explicitly initialize to NULL; it's less
77021         efficient on some hosts.
77022         (close_stdout_status): Remove test as to whether stdout was already
77023         closed; it breaks for the case "echo x | sort >&-".
77024         Quote file name colons.
77025         Do not assume that _("write error") lacks format strings.
77026
77027 2000-05-15  Jim Meyering  <meyering@lucent.com>
77028
77029         * lib/version-etc.c (version_etc_copyright): Update the copyright
77030         string used in all --version output.
77031
77032 2000-05-14  Jim Meyering  <meyering@lucent.com>
77033
77034         * lib/closeout.c (close_stdout_set_file_name): New function.
77035         (close_stdout_status): Use new file-scoped global.
77036         Return right away if fstat says the stdout file descriptor is invalid.
77037         * lib/closeout.h (close_stdout_set_file_name): Declare.
77038
77039 2000-05-10  Jim Meyering  <meyering@lucent.com>
77040
77041         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77042         (close_stdout_set_status): New function.
77043         * lib/closeout.h (close_stdout_set_status): Declare.
77044
77045 2000-05-09  Jim Meyering  <meyering@lucent.com>
77046
77047         * m4/gettext.m4: Rename this...
77048         * m4/libintl.m4: ...to this.
77049
77050 2000-05-08  Jim Meyering  <meyering@lucent.com>
77051
77052         * lib/long-options.c: Don't include closeout.h.
77053         (parse_long_options): Don't call close_stdout for --version.
77054
77055 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77056
77057         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77058         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77059         2.1.3 bug.  This avoids a clash when files like regex.c define
77060         _GNU_SOURCE.
77061
77062 2000-05-06  Jim Meyering  <meyering@lucent.com>
77063
77064         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77065         (AC_REPLACE_FUNCS): Add strnlen.
77066
77067         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77068         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77069
77070         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77071         AC_SEARCH_LIBS call for nanosleep.
77072         (LIB_NANOSLEEP): Set and AC_SUBST.
77073
77074 2000-05-06  Jim Meyering  <meyering@lucent.com>
77075
77076         * lib/strnlen.c: Undefine __strnlen and strnlen.
77077         [!weak_alias]: Define __strnlen to strnlen.
77078
77079         * lib/atexit.c: New file, from libiberty.
77080
77081 2000-05-06  Jim Meyering  <meyering@lucent.com>
77082
77083         * lib/closeout.c (close_stdout_status): Also check for errors on the
77084         stderr stream.
77085
77086 2000-05-05  Jim Meyering  <meyering@lucent.com>
77087
77088         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77089         AC_SEARCH_LIBS call for clock_gettime.
77090         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77091
77092         * m4/search-libs.m4: Update from autoconf.
77093
77094         su doesn't work on Solaris 2.6.
77095         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77096         <shadow.h>.  Reported by Dragos Harabor.
77097
77098 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77099
77100         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77101         memcpy instead of xmalloc, xrealloc, path_concat.
77102         (locale_charset): Treat empty environment variables as absent.
77103         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77104
77105 2000-05-04  Jim Meyering  <meyering@lucent.com>
77106
77107         * lib/getopt.c: Update from glibc.
77108         * lib/obstack.c: Likewise.
77109         * lib/obstack.h: Likewise.
77110         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77111         file
77112
77113         * lib/regex.h: Likewise.
77114         * lib/strndup.c: Likewise.
77115         * lib/strnlen.c: New file, from glibc.
77116
77117 2000-05-03  Jim Meyering  <meyering@lucent.com>
77118
77119         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77120
77121 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77122
77123         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77124         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77125         compile-time test, rather than inspecting host and OS, to
77126         decide whether to define _LARGEFILE_SOURCE.
77127
77128 2000-05-01  Jim Meyering  <meyering@lucent.com>
77129
77130         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77131
77132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77133         Based on a patch from Bruno Haible.
77134
77135 2000-05-01  Jim Meyering  <meyering@lucent.com>
77136
77137         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77138
77139 2000-04-29  Jim Meyering  <meyering@lucent.com>
77140
77141         * lib/path-concat.c: Declare strdup only if it's not defined.
77142         * lib/canon-host.c: Likewise.
77143
77144 2000-04-28  Jim Meyering  <meyering@lucent.com>
77145
77146         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77147         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77148         is included first, then limits.h is included by locale.h by libintl.h.
77149         From John David Anglin.
77150
77151 2000-04-25  Jim Meyering  <meyering@lucent.com>
77152
77153         * lib/makepath.c (S_IRWXUGO): Define.
77154         (make_path): Always perform explicit chmod if MODE specifies any
77155         of the `special' permission bits.  Prompted by a bug report against
77156         install from Mate Wierdl and Joost van Baal.
77157
77158 2000-04-18  Jim Meyering  <meyering@lucent.com>
77159
77160         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77161         (jm_PREREQ): Use it.
77162
77163 2000-04-18  Jim Meyering  <meyering@lucent.com>
77164
77165         * lib/README: New file.
77166
77167         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77168         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77169
77170 2000-04-17  Jim Meyering  <meyering@lucent.com>
77171
77172         Get it right :-)
77173         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77174         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77175         Suggestion from Akim Demaille.
77176
77177 2000-04-17  Jim Meyering  <meyering@lucent.com>
77178
77179         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77180         the definition of it to rpl_strftime also defined-away the system's
77181         declaration.
77182
77183 2000-04-15  Jim Meyering  <meyering@lucent.com>
77184
77185         Use `C' to denote so-called `contiguous' files, the same way
77186         that tar does.
77187         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77188         (ftypelet): Use S_ISCTG.
77189         From Michael Deutschmann.
77190
77191 2000-04-14  Jim Meyering  <meyering@lucent.com>
77192
77193         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77194         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77195         clobbered.
77196
77197 2000-04-14  Jim Meyering  <meyering@lucent.com>
77198
77199         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77200
77201 2000-04-13  Jim Meyering  <meyering@lucent.com>
77202
77203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77204         AH_VERBATIM to insert required #ifndef into config.h.in.
77205         Suggestion from Akim Demaille.
77206
77207 2000-04-12  Jim Meyering  <meyering@lucent.com>
77208
77209         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77210         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77211         Christian Krackowizer.
77212
77213         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77214         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77215         (AC_SYS_LARGEFILE): Require.
77216         (AM_C_PROTOTYPES): Require.
77217
77218 2000-04-08  Jim Meyering  <meyering@lucent.com>
77219
77220         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77221         names don't conflict.  Reported by Eli Zaretskii.
77222
77223 2000-04-07  Jim Meyering  <meyering@lucent.com>
77224
77225         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77226         sys/types.h, to work around system header problems on AIX 3.2.5.
77227         From Bruno Haible.
77228
77229 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77230
77231         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77232         bug.  Deal with the different error behavior of Irix iconv.
77233
77234 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77235
77236         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77237         IRIX if the installer said otherwise.
77238
77239 2000-04-05  Jim Meyering  <meyering@lucent.com>
77240
77241         Portability tweaks required for ultrix4.3.
77242         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77243         (jm_CHECK_DECLS): Add getutent to the list of functions.
77244         (_jm_DECL_HEADERS): Add utmpx.h.
77245         From John David Anglin.
77246
77247         * m4/strftime.m4: Back out the 2000-04-02 change.
77248         Instead of that change, simply undefine putenv in the test program.
77249
77250 2000-04-05  Jim Meyering  <meyering@lucent.com>
77251
77252         Portability tweaks required for ultrix4.3.
77253         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77254         getutent.
77255         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77256         * lib/canon-host.c: Declare strdup.
77257         * lib/path-concat.c: Likewise.
77258         From John David Anglin.
77259
77260 2000-04-04  Jim Meyering  <meyering@lucent.com>
77261
77262         Be more DOS 8.3-friendly.
77263         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77264         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77265         * lib/Makefile.am: Reflect renaming.
77266         Reported by Eli Zaretskii.
77267
77268         Use a temporary file name that won't clash with `charset.alias'
77269         in the DOS 8.3 name space.
77270         * lib/Makefile.am (charset_tmp): Define.
77271         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77272         (uninstall-local): Likewise.
77273         Reported by Eli Zaretskii.
77274
77275 2000-04-03  Jim Meyering  <meyering@lucent.com>
77276
77277         * m4/gettext.m4: Fix typo in comment.
77278
77279         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77280         textutils/configure.in).  Suggestion from Paul Eggert.
77281         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77282
77283 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77284
77285         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77286         variable in the shell rather than using putenv, which isn't
77287         portable.  This avoids the configure-time inter-test dependency
77288         on the potentially-renamed putenv function.
77289
77290 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77291
77292         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77293         before checking struct stat.st_blksize, so that
77294         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77295
77296 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77297
77298         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77299         since strftime.c uses HAVE_STRFTIME to decide whether to use
77300         the underlying strftime.
77301
77302 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77303
77304         * lib/time/strftime.c (my_strftime): Make sure we call the system
77305         strftime, not ourselves, when invoking the underlying strftime.
77306
77307 2000-03-24  Jim Meyering  <meyering@lucent.com>
77308
77309         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77310         (charset_alias): Define.
77311         (install-exec-local): Factor out common code.
77312         (uninstall-local): Split lines longer than 80.
77313         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77314         (SUFFIXES): Define.
77315         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77316         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77317
77318 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77319
77320         * lib/config.charset: Output a line containing "Packages using this
77321         file".
77322         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77323         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77324         ref-del.sed): New rules.
77325
77326 2000-03-17  Jim Meyering  <meyering@lucent.com>
77327
77328         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77329         Otherwise, include <strings.h>
77330
77331 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77332
77333         * lib/unicodeio.c (utf8_wctomb): New function.
77334         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77335         format instead of in UCS-4 with platform dependent endianness.
77336
77337 2000-03-10  Jim Meyering  <meyering@lucent.com>
77338
77339         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77340         From Marco Franzen.
77341
77342 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77343
77344         * lib/savedir.c (savedir): Work even if directory size is
77345         negative; this can happen with some screwy NFS configurations.
77346
77347 2000-03-06  Jim Meyering  <meyering@lucent.com>
77348
77349         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77350         if it's NULL (because we ran out of memory).  From Bruno Haible.
77351
77352 2000-03-05  Jim Meyering  <meyering@lucent.com>
77353
77354         * lib/localcharset.c ("path-concat.h"): Include.
77355         (get_charset_aliases): Use path_concat instead of ANSI string
77356         concatenation.
77357
77358         * lib/unicodeio.h (PARAMS): Define.
77359         Use it to guard prototype.
77360
77361 2000-03-04  Jim Meyering  <meyering@lucent.com>
77362
77363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77364         for lib/localcharset.c.
77365
77366 2000-03-04  Jim Meyering  <meyering@lucent.com>
77367
77368         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77369         installing into it.
77370         (uninstall-local): Uncomment this rule so `make distcheck' works
77371         once again.
77372
77373         * lib/unicodeio.c (<errno.h>): Include it.
77374         (errno): Declare if not defined.
77375
77376         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77377
77378         * lib/config.charset: New version, incorporating remarks from a linux
77379         i18n mailing list.  From Bruno Haible.
77380
77381 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77382
77383         * m4/codeset.m4: New file.
77384         * m4/iconv.m4: New file.
77385         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77386
77387 2000-03-03  Jim Meyering  <meyering@lucent.com>
77388
77389         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77390
77391 2000-03-02  Jim Meyering  <meyering@lucent.com>
77392
77393         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77394         the messages come out on separate lines.
77395
77396         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77397         rather than jm_CHECK_DECLARATIONS.
77398         * m4/decl.m4: Remove now-unused file.
77399
77400         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77401         geteuid.
77402
77403 2000-03-02  Jim Meyering  <meyering@lucent.com>
77404
77405         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77406
77407 2000-03-01  Jim Meyering  <meyering@lucent.com>
77408
77409         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77410         * lib/unicodeio.c: Likewise.
77411
77412 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77413
77414         * lib/config.charset: New file.
77415         * lib/localcharset.c: New file.
77416         * lib/unicodeio.h, lib/unicodeio.c: New files.
77417         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
77418         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
77419         (noinst_HEADERS): Add unicodeio.h.
77420         (all-local, install-exec-local, charset.alias): New targets.
77421
77422 2000-02-28  Paul Eggert  <eggert@twinsun.com>
77423
77424         * lib/quotearg.c (ALERT_CHAR): New macro.
77425         (quotearg_buffer_restyled): Use it.
77426
77427 2000-02-27  Jim Meyering  <meyering@lucent.com>
77428
77429         * m4/check-decl.m4: Add getenv to the list.
77430
77431 2000-02-27  Jim Meyering  <meyering@lucent.com>
77432
77433         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
77434         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
77435
77436         * lib/backupfile.c: Guard inclusion of stdlib.h with
77437         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
77438         Declare malloc if needed.
77439
77440         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
77441         `#ifndef HAVE_DECL..'
77442         now that autoconf always defines the HAVE_DECL_ symbols.
77443         * lib/human.c: Likewise.
77444         * lib/same.c: Likewise.
77445         * lib/strtoumax.c: Likewise.
77446
77447         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
77448         declaration check was not run.
77449         * lib/hash.c: Likewise.
77450         * lib/human.c: Likewise.
77451         * lib/same.c: Likewise.
77452         * lib/strtoumax.c: Likewise.
77453
77454         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
77455         `.', then first look up the entire `.'-containing string as a login
77456         name.
77457
77458 2000-02-23  Jim Meyering  <meyering@lucent.com>
77459
77460         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
77461         in place of my hack.
77462
77463 2000-02-18  Paul Eggert  <eggert@twinsun.com>
77464
77465         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
77466         (textint): New typedef.
77467         (parser_control): Member year changed from int to textint.
77468         All uses changed.
77469         (YYSTYPE): Removed; replaced by %union with int and textint members.
77470         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
77471         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
77472         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
77473         (tSNUMBER, tUNUMBER): Now of type <textintval>.
77474         (date, number, to_year): Use width of number in digits, not its value,
77475         to determine whether it's a 2-digit year, or a 2-digit time.
77476         (yylex): Store number of digits of numeric tokens.
77477         Reported by John Kendall.
77478
77479         (parser_control): Changed from struct parser_control to typedef (for
77480         consistency).  All uses changed.
77481
77482         (tID): Removed; not used.
77483         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
77484
77485 2000-02-14  Paul Eggert  <eggert@twinsun.com>
77486
77487         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
77488         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
77489
77490 2000-02-12  Jim Meyering  <meyering@lucent.com>
77491
77492         * lib/userspec.c (ISDIGIT): Define it.
77493         (isdigit): Remove definition.
77494         (is_number): Use ISDIGIT, not isdigit.
77495         <libintl.h>: Include.
77496         (_ and N_): Define.
77497         (parse_user_spec): Mark translatable strings.
77498
77499 2000-02-10  Jim Meyering  <meyering@lucent.com>
77500
77501         With these changes, nanosleep.[ch] are finally enough like the other
77502         lib/* replacement files to compile on a few more losing systems.
77503
77504         * lib/nanosleep.h: Don't include config.h.
77505         Remove prototype from declaration of nanosleep.
77506         (PARAMS): Remove now-unneeded definition.
77507         * lib/nanosleep.c: #undef nanosleep.
77508         (rpl_nanosleep): Rename from nanosleep.
77509
77510 2000-02-10  Jim Meyering  <meyering@lucent.com>
77511
77512         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
77513         gnu_nanosleep to rpl_nanosleep.
77514
77515 2000-02-09  Jim Meyering  <meyering@lucent.com>
77516
77517         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
77518         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
77519
77520 2000-02-08  Akim Demaille  <akim@epita.fr>
77521
77522         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
77523         `[' and `]' and remove uses of `changequote'.
77524         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
77525         (AC_SYS_LARGEFILE): Likewise.
77526         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
77527         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
77528         of changequote.
77529         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
77530         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
77531         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
77532         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
77533
77534 2000-02-05  Jim Meyering  <meyering@lucent.com>
77535
77536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
77537         Remove explicit use of AC_HEADER_TIME.  It is required by
77538         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
77539         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
77540         in autoconf whereby the expansion of the latter ended up preceding
77541         the expansion of its prerequisite, AC_HEADER_TIME.
77542         Reported by Volker Borchert.
77543
77544 2000-02-03  Jim Meyering  <meyering@lucent.com>
77545
77546         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
77547
77548 2000-02-03  Jim Meyering  <meyering@lucent.com>
77549
77550         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
77551         rather than with `#if HAVE_UTMPNAME'.
77552
77553 2000-02-02  Jim Meyering  <meyering@lucent.com>
77554
77555         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
77556         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
77557         Reported by Eli Zaretskii.
77558
77559 2000-02-01  Jim Meyering  <meyering@lucent.com>
77560
77561         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
77562
77563 2000-01-31  Jim Meyering  <meyering@lucent.com>
77564
77565         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
77566         functions.  Add the time.h and sys/time.h headers along with the
77567         AC_REQUIRE'ment of AC_HEADER_TIME.
77568
77569 2000-01-31  Jim Meyering  <meyering@lucent.com>
77570
77571         * lib/nanosleep.h (nanosleep): Guard declaration with
77572         `#if ! HAVE_DECL_NANOSLEEP'.
77573         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
77574         the declaration in that vendor's sys/timers.h.
77575         Reported by Christian Krackowizer.
77576
77577         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
77578         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
77579         (ISPRINT): Likewise.
77580         Reported by Tom Tromey.
77581
77582 2000-01-30  Jim Meyering  <meyering@lucent.com>
77583
77584         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
77585
77586         * m4/prereq.m4 (utmp_includes): Define.
77587         Check for ut_user and ut_name members in both struct utmpx
77588         and struct utmp.
77589
77590 2000-01-30  Jim Meyering  <meyering@lucent.com>
77591
77592         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
77593         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
77594         header files where only utmpx.ut_user is declared.
77595
77596         * lib/readutmp.h (UT_USER): Define.
77597
77598 2000-01-29  Jim Meyering  <meyering@lucent.com>
77599
77600         * m4/lib-check.m4: New file containing library-related checks from
77601         fileutils and sh-utils (textutils had none).
77602
77603 2000-01-28  Jim Meyering  <meyering@lucent.com>
77604
77605         * m4/perl.m4: Change format of warning message to look more like that
77606         from the missing script.  Suggestion from François Pinard.
77607
77608 2000-01-25  Jim Meyering  <meyering@lucent.com>
77609
77610         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
77611         well as time.h in the compile check.
77612         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
77613         Fix typo in cross-compiling case: s/yes/no/.
77614
77615 2000-01-23  Jim Meyering  <meyering@lucent.com>
77616
77617         * m4/jm-macros.m4: Move df-related tests here from
77618         fileutils/configure.in
77619
77620         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
77621         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
77622
77623         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
77624         s/space/ac_fsusage_space/.
77625         (jm_FILE_SYSTEM_USAGE): Take two parameters.
77626
77627         * m4/ftruncate.m4: New file (derived from part of
77628         fileutils/configure.in).
77629         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
77630         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
77631
77632         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
77633         AC_SUBST these here, rather than just in sh-util/configure.in, so
77634         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
77635         all the same.
77636         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
77637         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
77638         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
77639         (AC_SUBST(POW_LIBM)): Likewise.
77640         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
77641
77642 2000-01-23  Jim Meyering  <meyering@lucent.com>
77643
77644         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
77645         obstack.c.
77646
77647 2000-01-22  Jim Meyering  <meyering@lucent.com>
77648
77649         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
77650
77651         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
77652
77653         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
77654         configure.in
77655         (AC_CHECK_HEADERS): Likewise for sh-utils.
77656         (AC_CHECK_HEADERS): Likewise for textutils.
77657         Merge the three lists of headers.
77658
77659         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
77660         from fileutils' configure.in.
77661
77662         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
77663         code. Moved tests into their own function (_jm_DECL_HEADERS) in
77664         check-decl.m4.
77665
77666         * m4/check-decl.m4: Use #if rather than #ifdef.
77667         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
77668         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
77669         (_jm_DECL_HEADERS): Define new function.
77670         (jm_CHECK_DECLARATIONS): Require it.
77671
77672 2000-01-22  Jim Meyering  <meyering@lucent.com>
77673
77674         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
77675         [! HAVE_DECL_STRTOULL]: Declare strtoull.
77676         Required for some AIX systems.  Reported by Christian Krackowizer.
77677         [TESTING] (main): New function.
77678
77679         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
77680         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
77681         letters.
77682
77683         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
77684         iswprint.
77685
77686         * lib/strverscmp.c (ISDIGIT): Define.
77687         (strverscmp): Use ISDIGIT, not isdigit.
77688
77689 2000-01-19  Jim Meyering  <meyering@lucent.com>
77690
77691         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
77692         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
77693         defines `struct timespec' in <sys/time.h>
77694
77695         * m4/c-bs-a.m4: Remove uses of changequote altogether.
77696         Thanks to Akim for explaining.
77697
77698 2000-01-17  Paul Eggert  <eggert@twinsun.com>
77699
77700         * lib/nanosleep.c (nanosleep):
77701         Don't use SA_INTERRUPT to decide whether to call sigaction, as
77702         POSIX.1 doesn't require SA_INTERRUPT and some systems
77703         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
77704         it's been part of POSIX.1 since day 1 (in 1988).
77705
77706 2000-01-17  Jim Meyering  <meyering@lucent.com>
77707
77708         * lib/interlock: Remove unused file.  Reported by François Pinard.
77709
77710 2000-01-16  Paul Eggert  <eggert@twinsun.com>
77711
77712         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
77713         alert, backslash, formfeed, and vertical tab unnecessarily in
77714         shell quoting style.
77715
77716 2000-01-16  Jim Meyering  <meyering@lucent.com>
77717
77718         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
77719         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
77720         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
77721         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
77722
77723 2000-01-16  Jim Meyering  <meyering@lucent.com>
77724
77725         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
77726         because the latter didn't work.
77727
77728 2000-01-15  Jim Meyering  <meyering@lucent.com>
77729
77730         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
77731         (AC_REPLACE_FUNCS): Add memcpy and memset.
77732         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
77733         Add strpbrk.
77734         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
77735
77736 2000-01-12  Jim Meyering  <meyering@lucent.com>
77737
77738         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
77739         (jm_PREREQ): Use it.
77740         (jm_PREREQ_READUTMP): New macro.
77741         (jm_PREREQ): Use it.
77742
77743 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77744
77745         Quote multibyte characters correctly.
77746         * m4/c-bs-a.m4: New file.
77747         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
77748         (jm_PREREQ): Use it.
77749
77750 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77751
77752         * m4/uintmax_t.m4: Port to autoconf 2.13.
77753
77754 2000-01-08  Jim Meyering  <meyering@ascend.com>
77755
77756         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
77757         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
77758
77759 2000-01-04  Jim Meyering  <meyering@ascend.com>
77760
77761         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
77762         jm_STRUCT_DIRENT_D_TYPE.
77763         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
77764         jm_STRUCT_DIRENT_D_INO.
77765         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
77766         jm_STRUCT_UTIMBUF.
77767         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
77768         renamings.
77769         * m4/utime.m4: Likewise.
77770
77771         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
77772         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
77773
77774 2000-01-03  Paul Eggert  <eggert@twinsun.com>
77775
77776         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
77777         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
77778
77779 2000-01-02  Jim Meyering  <meyering@ascend.com>
77780
77781         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
77782         remember if this is necessary.
77783
77784 1999-12-26  Jim Meyering  <meyering@ascend.com>
77785
77786         * m4/jm-macros.m4: Use it here.
77787         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
77788
77789 1999-12-23  Jim Meyering  <meyering@ascend.com>
77790
77791         * m4/jm-macros.m4: Check for clock_gettime (moved from
77792         fileutils/configure.in)
77793         Check for gettimeofday.
77794
77795 1999-12-20  Jim Meyering  <meyering@ascend.com>
77796
77797         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
77798         autoconf-2.14a-1999-12-20.
77799
77800 1999-12-19  Jim Meyering  <meyering@ascend.com>
77801
77802         * m4/lstat-slash.m4: New file.
77803         * m4/jm-macros.m4: Use the new macro:
77804         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77805
77806 1999-12-07  Jim Meyering  <meyering@ascend.com>
77807
77808         * m4/perl.m4: Require that File::Compare be available, too.
77809         Too many systems seem to lack it.
77810
77811         * m4/strftime.m4: Add checks for most of the cpp macros tested in
77812         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
77813
77814 1999-11-18  Paul Eggert  <eggert@twinsun.com>
77815
77816         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
77817         problem with the QNX 4.25 shell, which doesn't propagate exit
77818         status of failed commands inside shell assignments.
77819
77820 1999-11-17  Jim Meyering  <meyering@ascend.com>
77821
77822         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
77823
77824 1999-11-07  Jim Meyering  <meyering@ascend.com>
77825
77826         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
77827
77828 1999-11-06  Jim Meyering  <meyering@ascend.com>
77829
77830         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
77831         * m4/jm-macros.m4 (jm_MACROS): Use it here.
77832
77833 1999-11-05  Jim Meyering  <meyering@ascend.com>
77834
77835         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
77836         configure.in of textutils, fileutils, and sh-utils into this one
77837         (shared between those packages) file.
77838         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
77839         AC_STRUCT_ST_BLKSIZE.
77840
77841 1999-11-03  Jim Meyering  <meyering@ascend.com>
77842
77843         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
77844         of AC_CHECK_TYPE checks includes unistd.h.
77845         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
77846         Suggestion from Akim Demaille.
77847
77848 1999-10-30  Jim Meyering  <meyering@ascend.com>
77849
77850         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
77851         m4-quoted string.
77852         * m4/ls-mntd-fs.m4: Likewise.
77853         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
77854         * m4/jm-winsz1.m4: Likewise.
77855
77856         * m4/const.m4: Remove file, since the fix made it into the experimental
77857         version of autoconf.
77858         * m4/mktime.m4: Likewise.
77859
77860         * m4/check-type.m4: Remove file, now that the latest version of
77861         AC_CHECK_TYPE takes a third arg to specify additional #includes.
77862
77863         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
77864         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
77865         AC_CHECK_TYPE.
77866
77867 1999-10-04  Jim Meyering  <meyering@ascend.com>
77868
77869         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
77870
77871 1999-09-22  Paul Eggert  <eggert@twinsun.com>
77872
77873         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
77874         2.95.1 bug with HP-UX 10.20.
77875
77876 1999-09-17  Jim Meyering  <meyering@ascend.com>
77877
77878         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
77879         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
77880         due to missing strdup (against sh-utils-2.0).
77881
77882 1999-08-29  Jim Meyering  <meyering@ascend.com>
77883
77884         * m4/jm-macros.m4: Require jm_BISON.
77885         * m4/bison.m4: New file.
77886
77887 1999-08-17  Paul Eggert  <eggert@twinsun.com>
77888
77889         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
77890         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
77891
77892 1999-08-05  Jim Meyering  <meyering@ascend.com>
77893
77894         * m4/getline.m4: Rename test file from conftestdata to conftest.data
77895         to avoid conflicts with `conftest' on 8+3 filesystems.
77896         Suggestion from Eli Zaretskii.
77897
77898 1999-08-04  Jim Meyering  <meyering@ascend.com>
77899
77900         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
77901         fileutils and sh-utils (textutils's getline test was inadequate).
77902         (AM_FUNC_GETLINE): Run this test.
77903         (AC_CHECK_FUNCS): Check for getdelim.
77904         Reported by Bob Proulx.
77905
77906 1999-08-02  Jim Meyering  <meyering@ascend.com>
77907
77908         * m4/jm-macros.m4: Add a comment.
77909
77910 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77911
77912         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
77913         <inttypes.h> defines strtoumax as a macro (and not as a
77914         function).
77915
77916 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77917
77918         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
77919         that we can shift, multiply and divide unsigned long long
77920         values; Ultrix cc can't do it.
77921
77922 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77923
77924         * m4/mktime.m4: New file, which is a preview of what should appear
77925         in the next public autoconf release.
77926
77927 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77928
77929         * m4/lfs.m4: Remove this file.
77930         * m4/largefile.m4: New file.  It contains the old contents of
77931         lfs.m4, except that all names with prefix AC_LFS have been
77932         changed to use the prefix AC_SYS_LARGEFILE instead, to be
77933         compatible with future autoconf versions.  Also, some minor m4
77934         quoting problems have been fixed.
77935
77936 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77937
77938         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
77939         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
77940         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
77941         and simplify the shell code.
77942
77943 1999-08-01  Jim Meyering  <meyering@ascend.com>
77944
77945         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
77946         m4.
77947
77948 1999-07-20  Jim Meyering  <meyering@ascend.com>
77949
77950         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
77951
77952 1999-07-15  Jim Meyering  <meyering@ascend.com>
77953
77954         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
77955
77956 1999-05-22  Jim Meyering  <meyering@ascend.com>
77957
77958         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
77959
77960 1999-05-20  Jim Meyering  <meyering@ascend.com>
77961
77962         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
77963         Add a colon after each `then' in case $4 is empty.
77964
77965 1999-05-16  Jim Meyering  <meyering@ascend.com>
77966
77967         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
77968
77969 1999-05-10  Jim Meyering  <meyering@ascend.com>
77970
77971         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
77972
77973         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
77974         AC_FUNC_MKTIME.
77975
77976 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
77977
77978         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
77979
77980 1999-05-04  Paul Eggert  <eggert@twinsun.com>
77981
77982         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
77983         not CPPFLAGS, so that linking works correctly in IRIX.
77984
77985 1999-04-30  Paul Eggert  <eggert@twinsun.com>
77986
77987         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
77988
77989 1999-04-20  Paul Eggert  <eggert@twinsun.com>
77990
77991         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
77992         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
77993         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
77994         jm_AC_TYPE_UNSIGNED_LONG_LONG.
77995         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
77996
77997         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
77998
77999 1999-04-20  Jim Meyering  <meyering@ascend.com>
78000
78001         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78002         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78003         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78004
78005 1999-04-18  Jim Meyering  <meyering@ascend.com>
78006
78007         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78008         * m4/jm-macros.m4: Use it.
78009
78010 1999-04-06  Jim Meyering  <meyering@ascend.com>
78011
78012         * m4/strftime.m4: Remove test for %f.
78013
78014 1999-03-29  Jim Meyering  <meyering@ascend.com>
78015
78016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78017         superset of the AC_TYPE_* checks in the textutils, fileutils,
78018         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78019         AC_TYPE_PID_T.
78020
78021 1999-03-28  Jim Meyering  <meyering@ascend.com>
78022
78023         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78024         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78025         replaced e.g., in the *.sh files of the sh-utils.
78026
78027 1999-03-20  Jim Meyering  <meyering@ascend.com>
78028
78029         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78030         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78031         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78032
78033 1999-03-19  Jim Meyering  <meyering@ascend.com>
78034
78035         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78036
78037 1999-03-12  Jim Meyering  <meyering@ascend.com>
78038
78039         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78040
78041 1999-03-07  Jim Meyering  <meyering@ascend.com>
78042
78043         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78044         declared.
78045
78046 1999-02-17  Jim Meyering  <meyering@ascend.com>
78047
78048         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78049         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78050
78051 1999-02-07  Jim Meyering  <meyering@ascend.com>
78052
78053         * m4/group-member.m4: New file -- extracted from sh-utils'
78054         configure.in.
78055
78056         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78057         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78058
78059 1999-02-06  Jim Meyering  <meyering@ascend.com>
78060
78061         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78062         * m4/fnmatch.m4: Likewise.
78063         * m4/getgroups.m4: Likewise.
78064         * m4/lstat.m4: Likewise.
78065         * m4/malloc.m4: Likewise.
78066         * m4/putenv.m4: Likewise.
78067         * m4/realloc.m4: Likewise.
78068         * m4/regex.m4: Likewise.
78069         * m4/stat.m4: Likewise.
78070         * m4/strftime.m4: Likewise.
78071         Suggestion from Alain Magloire.
78072
78073         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78074         * m4/fnmatch.m4: Likewise.
78075         * m4/getgroups.m4: Likewise.
78076         * m4/getline.m4: Likewise.
78077         * m4/lstat.m4: Likewise.
78078         * m4/malloc.m4: Likewise.
78079         * m4/memcmp.m4: Likewise.
78080         * m4/putenv.m4: Likewise.
78081         * m4/realloc.m4: Likewise.
78082         * m4/regex.m4: Likewise.
78083         * m4/stat.m4: Likewise.
78084         * m4/strftime.m4: Likewise.
78085         Suggestion from Alain Magloire.
78086
78087         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78088         an argument.
78089
78090         * m4/regex.m4: Add a run-time Test for proper operation of
78091         re_compile_pattern.
78092
78093 1999-01-31  Jim Meyering  <meyering@ascend.com>
78094
78095         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78096
78097 1999-01-30  Jim Meyering  <meyering@ascend.com>
78098
78099         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78100
78101         * m4/jm-mktime.m4: Make this a wrapper around the official
78102         AM_FUNC_MKTIME rather than my private copy, now that the official one
78103         is up to date.
78104         * m4/mktime.m4: Remove file.
78105
78106         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78107         * m4/uptime.m4: Likewise.
78108         * m4/uintmax_t.m4: Likewise.
78109
78110 1999-01-28  Jim Meyering  <meyering@ascend.com>
78111
78112         * m4/jm-macros.m4: Use jm_AFS.
78113         * m4/afs.m4: New file (from fileutils' configure.in).
78114
78115         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78116         * m4/chown.m4: Likewise.
78117         * m4/d-ino.m4: Likewise.
78118         * m4/d-type.m4: Likewise.
78119         * m4/fnmatch.m4: Likewise.
78120         * m4/getgroups.m4: Likewise.
78121         * m4/gettext.m4: Likewise.
78122         * m4/jm-mktime.m4: Likewise.
78123         * m4/jm-winsz2.m4: Likewise.
78124         * m4/lcmessage.m4: Likewise.
78125         * m4/ls-mntd-fs.m4: Likewise.
78126         * m4/malloc.m4: Likewise.
78127         * m4/memcmp.m4: Likewise.
78128         * m4/putenv.m4: Likewise.
78129         * m4/realloc.m4: Likewise.
78130         * m4/st_mtim.m4: Likewise.
78131         * m4/strftime.m4: Likewise.
78132
78133 1999-01-16  Jim Meyering  <meyering@ascend.com>
78134
78135         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78136         (ARGMATCH_DIE_DECL): Define.
78137
78138 1999-01-12  Jim Meyering  <meyering@ascend.com>
78139
78140         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78141         Reported by Lars Hecking.
78142
78143 1999-01-10  Jim Meyering  <meyering@ascend.com>
78144
78145         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78146         gross kludge.
78147         * m4/inttypes_h.m4: Likewise.
78148         * m4/lstat.m4: Likewise.
78149         * m4/malloc.m4: Likewise.
78150         * m4/readdir.m4: Likewise.
78151         * m4/realloc.m4: Likewise.
78152         * m4/st_dm_mode.m4: Likewise.
78153         * m4/stat.m4: Likewise.
78154         * m4/utimbuf.m4: Likewise.
78155         * m4/utimes.m4: Likewise.
78156
78157         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78158         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78159         comments in config.h.in are meaningful.
78160
78161         * m4/jm-macros.m4: Require autoconf-2.13 here.
78162
78163         * m4/regex.m4: By default, don't use the included regex.c on systems
78164         with glibc 2.  Suggestion from Uli Drepper.
78165
78166 1999-01-02  Jim Meyering  <meyering@ascend.com>
78167
78168         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78169
78170 1998-12-18  Jim Meyering  <meyering@ascend.com>
78171
78172         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78173         Based on a suggestion from Lars Hecking.
78174
78175 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78176
78177         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78178
78179 1998-11-16  Jim Meyering  <meyering@ascend.com>
78180
78181         * m4/lfs.m4: Double-quote the `uname...` expression.
78182
78183 1998-11-14  Jim Meyering  <meyering@ascend.com>
78184
78185         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78186         * m4/stat.m4: Likewise.
78187
78188 1998-11-03  Jim Meyering  <meyering@ascend.com>
78189
78190         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78191         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78192
78193 1998-10-18  Jim Meyering  <meyering@ascend.com>
78194
78195         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78196
78197 1998-10-17  Jim Meyering  <meyering@ascend.com>
78198
78199         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78200         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78201         calls for those previously hard-coded headers.  Instead, take a new
78202         parameter.
78203         (jm_CHECK_DECLARATIONS): Reflect interface change.
78204         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78205         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78206
78207         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78208
78209 1998-10-14  Jim Meyering  <meyering@ascend.com>
78210
78211         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78212         instead of "TZ=America/Vancouver".  From Paul Eggert.
78213
78214 1998-10-11  Jim Meyering  <meyering@ascend.com>
78215
78216         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78217         This adds a test for a recently added compatibility fix for mktime.c.
78218         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78219
78220 1998-09-27  Jim Meyering  <meyering@ascend.com>
78221
78222         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78223
78224         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78225         ../configure.in, including a change from Gordon Matzigkeit to allow
78226         cross-compiling for the Hurd.
78227
78228         * m4/glibc.m4: New file/macro to test for the GNU C Library
78229         versions 1 and 2.  From Gordon Matzigkeit.
78230         Indent.
78231
78232 1998-09-21  Jim Meyering  <meyering@ascend.com>
78233
78234         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78235
78236 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78237
78238         Port nanosecond-resolution times to UnixWare 2.1.2 and
78239         pedantic Solaris 2.6.
78240
78241         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78242         AC_STRUCT_ST_MTIM.
78243         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78244         Generate name of ns member, instead of just 1 or undef.
78245         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78246
78247 1998-08-15  Jim Meyering  <meyering@ascend.com>
78248
78249         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78250         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78251         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78252         instead of jm_TYPE_SSIZE_T.
78253
78254 1998-08-12  Jim Meyering  <meyering@ascend.com>
78255
78256         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78257
78258 1998-08-02  Jim Meyering  <meyering@ascend.com>
78259
78260         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78261         in acconfig.h manually.
78262
78263 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78264
78265         * m4/st_mtim.m4: New file.
78266
78267 1998-07-28  Jim Meyering  <meyering@ascend.com>
78268
78269         * m4/utimes.m4: Undef stat.
78270
78271 1998-07-25  Jim Meyering  <meyering@ascend.com>
78272
78273         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78274         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78275
78276 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78277
78278         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78279         uid and gid actually remain unchanged.
78280
78281 1998-07-07  Jim Meyering  <meyering@ascend.com>
78282
78283         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78284
78285 1998-07-04  Jim Meyering  <meyering@ascend.com>
78286
78287         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78288         to prove that this macro can be used in packages without regex.c.
78289
78290 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78291
78292         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78293         is to be used.
78294
78295 1998-07-03  Jim Meyering  <meyering@ascend.com>
78296
78297         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78298
78299         * m4/gettext.m4: New file -- from gettext-0.10.35.
78300         * m4/lcmessage.m4: Likewise.
78301         * m4/progtest.m4: Likewise.
78302
78303         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78304         * m4/jm-macros.m4: Require the new macro.
78305
78306 1998-06-29  Jim Meyering  <meyering@ascend.com>
78307
78308         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78309         for the definition of NGROUPS (used in a system header included
78310         by sys/mount.h).
78311
78312 1998-06-28  Jim Meyering  <meyering@ascend.com>
78313
78314         * m4/ls-mntd-fs.m4: New file.
78315         * m4/fstypename.m4: New file.
78316
78317         * m4/jm-macros.m4: Require the new macro.
78318         * m4/jm-glibc-io.m4: New file.
78319
78320 1998-05-19  Jim Meyering  <meyering@ascend.com>
78321
78322         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78323         * m4/lchown.m4: New file.
78324
78325         * m4/Makefile.am.in: New file.
78326         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78327
78328 1998-05-14  Jim Meyering  <meyering@ascend.com>
78329
78330         * m4/Makefile.am (EXTRA_DIST): Add them.
78331         * m4/jm-macros.m4: New file.
78332         * m4/utimbuf.m4: New file.
78333
78334 1998-05-12  Jim Meyering  <meyering@ascend.com>
78335
78336         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78337
78338 1998-05-11  Jim Meyering  <meyering@ascend.com>
78339
78340         * m4/isc-posix.m4: New file.
78341
78342 1998-05-10  Jim Meyering  <meyering@ascend.com>
78343
78344         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78345
78346 1998-05-09  Jim Meyering  <meyering@ascend.com>
78347
78348         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78349         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78350         with automake.
78351
78352         * m4/ssize_t.m4: New file.
78353         * m4/mktime.m4: Remove file -- the new automake has this now.
78354
78355 1998-04-26  Jim Meyering  <meyering@ascend.com>
78356
78357         * m4/assert.m4: New file.
78358         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78359
78360 1998-04-05  Jim Meyering  <meyering@ascend.com>
78361
78362         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78363         (jm_PREREQ): Use it here.
78364
78365 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78366
78367         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78368         in acconfig.h.
78369
78370 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78371
78372         * m4/prereq.m4: New file.
78373         * m4/error.m4: New file.
78374         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78375
78376 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78377
78378         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78379         cache-check for the same variable -- that defeated the purpose of
78380         the test; the test program was never run.  This was a problem only
78381         on systems with losing getline functions -- HP-UX 10.20 is one.
78382         Reported by Bjorn Helgaas.
78383
78384 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78385
78386         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78387
78388 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78389
78390         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78391
78392         * m4/const.m4: New file.  Use an initializer in this declaration
78393         typedef int charset[2]; const charset x;
78394         Reported by Bob Glickstein.
78395
78396 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78397
78398         * m4/chown.m4: Fix reversed types on -1 args to chown.
78399         From Kaveh Ghazi.
78400
78401 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78402
78403         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78404         Add lseek and memchr.
78405
78406         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78407         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78408         have a 20-character limit on names.
78409
78410 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78411
78412         * m4/inttypes_h.m4: New file.
78413         * m4/uintmax_t.m4: New file.
78414         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78415
78416
78417         -----
78418
78419         Local Variables:
78420         coding: utf-8
78421         End:
78422
78423         Copyright (C) 1997-2011 Free Software Foundation, Inc.
78424
78425         Copying and distribution of this file, with or without
78426         modification, are permitted provided the copyright notice
78427         and this notice are preserved.